<?php
-
+/**********************************************************************
+ Copyright (C) FrontAccounting, LLC.
+ Released under the terms of the GNU Affero General Public License,
+ AGPL, as published by the Free Software Foundation, either version
+ 3 of the License, or (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+***********************************************************************/
$path_to_root="..";
$page_security = 5;
ref_cells(_("to #:"), 'ToTransNo');
- submit_cells('ProcessSearch', _("Search"));
+ submit_cells('ProcessSearch', _("Search"), '', '', true);
end_row();
end_table(1);
{
if (!is_numeric($_POST['FromTransNo']) OR $_POST['FromTransNo'] <= 0)
{
- display_note(_("The starting transaction number is expected to be numeric and greater than zero."));
+ display_error(_("The starting transaction number is expected to be numeric and greater than zero."));
return false;
}
if (!is_numeric($_POST['ToTransNo']) OR $_POST['ToTransNo'] <= 0)
{
- echo _("The ending transaction number is expected to be numeric and greater than zero.");
+ display_error(_("The ending transaction number is expected to be numeric and greater than zero."));
return false;
}
if (!isset($_POST['filterType']) || $_POST['filterType'] == "")
if (db_num_rows($result) == 0)
{
- echo _("There are no transactions for the given parameters.");
+ display_notification(_("There are no transactions for the given parameters."));
return;
}
$print_type = $_POST['filterType'];
$print_type == systypes::po() || $print_type == systypes::sales_order());
if ($print_out)
{
- print_hidden_script($print_type);
if ($trans_ref)
$th = array(_("#"), _("Reference"), _("View"), _("Print"), _("GL"));
else
else
$th = array(_("#"), _("View"), _("GL"));
}
+ div_start('transactions');
start_table($table_style);
table_header($th);
$k = 0;
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_trans_view_str($_POST['filterType'],$line[$trans_no_name], _("View"), ICON_VIEW));
if ($print_out)
- label_cell(print_document_link($line[$trans_no_name], _("Print"), true, $print_type));
- label_cell(get_gl_view_str($_POST['filterType'], $line[$trans_no_name], _("View GL")));
+ label_cell(print_document_link($line[$trans_no_name], _("Print"), true, $print_type, ICON_PRINT));
+ label_cell(get_gl_view_str($_POST['filterType'], $line[$trans_no_name]));
end_row();
}
end_table();
+ div_end();
}
}
{
if (!check_valid_entries())
unset($_POST['ProcessSearch']);
+ $Ajax->activate('transactions');
}
//----------------------------------------------------------------------------------------