- $result = db_query($sql, "could not query transactions on $table_name");
-
- if (db_num_rows($result) == 0)
- {
- echo _("There are no transactions for the given parameters.");
- return;
- }
-
- start_table($table_style);
- if ($trans_ref)
- $th = array(_("#"), _("Reference"), _("View"), _("GL"));
- else
- $th = array(_("#"), _("View"), _("GL"));
- 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($_POST['filterType'], $line[$trans_no_name], _("View GL")));