- }
-
- start_table($table_style);
- if ($trans_ref)
- $th = array(_("#"), _("Reference"), _("View"), _("Print"));
- else
- $th = array(_("#"), _("View"), _("Print"));
- table_header($th);
- $k = 0;
- while ($line = db_fetch($result))
- {
-
- alt_table_row_color($k);
-
- label_cell($line[$trans_no_name]);
- if ($trans_ref)
- label_cell($line[$trans_ref]);
- label_cell(get_trans_view_str($_POST['filterType'],$line[$trans_no_name], _("View")));
- label_cell(get_gl_view_str_cell($_POST['filterType'], $line[$trans_no_name], _("View GL")));
-
- $forms = get_form_entries($_POST['filterType'], $line[$trans_no_name]);
- while ($form_item = db_fetch($forms))
- {
-
- $param1 = $form_item['param1'];
- $param2 = $form_item['param2'];
-
- if ($_POST['filterType'] == systypes::bank_payment()
- || $_POST['filterType'] == systypes::bank_deposit()
- || $_POST['filterType'] == systypes::cust_payment()
- || $_POST['filterType'] == systypes::supp_payment())
- {
- $param1 = payment_person_types::type_name($form_item['param1']);
- $param2 = payment_person_types::person_name($form_item['param1'], $form_item['param2'], false);
- }
-
- //label_cell(printTransaction(_("Print") . " " . getFormTypeName($form_item["form_type"]), $form_item['form_id'], $form_item['form_type'], $_POST['filterType'], $line[$trans_no_name], $line[$trans_ref], $param1, $param2));
- }
- end_row();