<?php
-
+/**********************************************************************
+ Copyright (C) FrontAccounting, LLC.
+ Released under the terms of the GNU General Public License, GPL,
+ 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/gpl-3.0.html>.
+***********************************************************************/
$page_security = 3;
$path_to_root="../..";
include($path_to_root . "/includes/session.inc");
function can_process()
{
-
+ if (!is_numeric($_POST['id']))
+ {
+ display_error( _("The account class ID must be numeric."));
+ set_focus('id');
+ return false;
+ }
if (strlen($_POST['name']) == 0)
{
display_error( _("The account class name cannot be empty."));
label_cell($myrow['class_name']);
label_cell($bs_text);
edit_button_cell("Edit".$myrow["cid"], _("Edit"));
- edit_button_cell("Delete".$myrow["cid"], _("Delete"));
+ delete_button_cell("Delete".$myrow["cid"], _("Delete"));
end_row();
}