<?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;
{
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'];
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();