else
display_notification_centered(_("The Budget has been deleted."));
- //meta_forward($_SERVER['PHP_SELF']);
$Ajax->activate('budget_tbl');
}
if (isset($_POST['submit']) || isset($_POST['update']))
if (db_has_gl_accounts())
{
$dim = get_company_pref('use_dimension');
- start_table($table_style2);
+ start_table(TABLESTYLE2);
fiscalyears_list_row(_("Fiscal Year:"), 'fyear', null);
gl_all_accounts_list_row(_("Account Code:"), 'account', null);
if (!isset($_POST['dim1']))
dimensions_list_row(_("Dimension")." 1", 'dim1', $_POST['dim1'], true, null, false, 1);
dimensions_list_row(_("Dimension")." 2", 'dim2', $_POST['dim2'], true, null, false, 2);
}
- else if ($dim == 1)
+ elseif ($dim == 1)
{
dimensions_list_row(_("Dimension"), 'dim1', $_POST['dim1'], true, null, false, 1);
hidden('dim2', 0);
submit_row('submit', _("Get"), true, '', '', true);
end_table(1);
div_start('budget_tbl');
- start_table($table_style2);
+ start_table(TABLESTYLE2);
$showdims = (($dim == 1 && $_POST['dim1'] == 0) ||
($dim == 2 && $_POST['dim1'] == 0 && $_POST['dim2'] == 0));
if ($showdims)
end_page();
-?>