! -> Note
$ -> Affected files
+14-Apr-2010 Joe Hunt
+! Replaced the global variables for table styles to defined CSS classes.
+$ all files that includes the call to start_table and start_outer_table
+
14-Apr-2010 Joe Hunt/ AVB3
+ Added 'View Attachments' if any in all popup view windows
$ /admin/db/attachments_db.inc
div_start('_page_body');
br();br();
start_form(false, false, $_SESSION['timeout']['uri'], "loginform");
- start_table("class='login'");
+ start_table(false, "class='login'");
start_row();
echo "<td align='center' colspan=2>";
if (!$login_timeout) { // FA logo
{
start_form();
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
systypes_list_row(_("Type:"), 'filterType', null, true);
function display_rows($type)
{
- global $table_style;
-
$rows = get_attached_documents($type);
$th = array(_("#"), _("Description"), _("Filename"), _("Size"), _("Filetype"), _("Date Uploaded"), "", "", "", "");
div_start('transactions');
start_form();
- start_table($table_style);
+ start_table(TABLESTYLE);
table_header($th);
$k = 0;
while ($row = db_fetch($rows))
start_form(true);
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
}
//-------------------------------------------------------------------------------
start_form(true, true);
-start_outer_table($table_style2);
+start_outer_table(TABLESTYLE2);
table_section(1);
table_section_title(_("Create backup"));
textarea_row(_("Comments:"), 'comments', null, 30, 8);
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$myrow = get_user($_SESSION["wa_current_user"]->user);
$_POST['round_to'] = $myrow['round_to'];
$_POST['del_coy_logo'] = 0;
-start_outer_table($table_style2);
+start_outer_table(TABLESTYLE2);
table_section(1);
function display_companies()
{
- global $table_style, $def_coy, $db_connections;
+ global $def_coy, $db_connections;
$coyno = $_SESSION["wa_current_user"]->company;
document.location.replace('create_coy.php?c=df&id='+id)
}
</script>";
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Company"), _("Database Host"), _("Database User"),
_("Database Name"), _("Table Pref"), _("Default"), "", "");
function display_company_edit($selected_id)
{
- global $def_coy, $db_connections, $tb_pref_counter, $table_style2;
+ global $def_coy, $db_connections, $tb_pref_counter;
if ($selected_id != -1)
$n = $selected_id;
}
</script>";
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id != -1)
{
start_form();
-start_outer_table($table_style2);
+start_outer_table(TABLESTYLE2);
table_section(1);
table_section_title(_("Decimal Places"));
function display_fiscalyears()
{
- global $table_style;
-
$company_year = get_company_pref('f_year');
$result = get_all_fiscalyears();
display_note(_("Warning: Deleting a fiscal year all transactions
are removed and converted into relevant balances. This process is irreversible!"),
0, 0, "class='currentfg'");
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Fiscal Year Begin"), _("Fiscal Year End"), _("Closed"), "", "");
table_header($th);
function display_fiscalyear_edit($selected_id)
{
- global $table_style2, $Mode;
+ global $Mode;
start_form();
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id != -1)
{
start_form();
-start_outer_table($table_style2);
+start_outer_table(TABLESTYLE2);
$systypes = get_systypes();
table_section(1);
start_form();
-//start_outer_table("class='tablestyle'");
-start_outer_table($table_style2, 5);
+start_outer_table(TABLESTYLE2);
table_section(1);
function display_languages()
{
- global $table_style, $installed_languages, $dflt_lang;
+ global $installed_languages, $dflt_lang;
$lang = $_SESSION["language"]->code;
document.location.replace('inst_lang.php?c=df&id='+id)
}
</script>";
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Language"), _("Name"), _("Encoding"), _("Right To Left"), _("Default"), "", "");
table_header($th);
function display_language_edit($selected_id)
{
- global $installed_languages, $table_style2, $dflt_lang;
+ global $installed_languages, $dflt_lang;
if ($selected_id != -1)
$n = $selected_id;
}
</script>";
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id != -1)
{
function display_extensions()
{
- global $table_style;
-
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Name"),_("Tab"), _("Link text"), _("Folder"), _("Filename"),
_("Access extensions"),"", "");
table_header($th);
function company_extensions($id)
{
- global $table_style;
-
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Name"),_("Tab"), _("Link text"), _("Active"));
function display_ext_edit($selected_id)
{
- global $table_style2, $Mode;
+ global $Mode;
$extensions = get_company_extensions();
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id != -1 && $extensions[$selected_id]['type'] == 'plugin')
{
}
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Version"), _("Description"), _("Sql file"), _("Install"),
_("Force upgrade"));
table_header($th);
$result = get_payment_terms_all(check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Description"), _("Following Month On"), _("Due After (Days)"), "", "");
inactive_control_column($th);
table_header($th);
//-------------------------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
$day_in_following_month = $days_before_due = 0;
if ($selected_id != -1)
$prints[$myrow['report']] = $myrow['printer'];
}
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Report Id"), _("Description"), _("Printer"));
table_header($th);
$result = get_all_printers();
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Name"), _("Description"), _("Host"), _("Printer Queue"),'','');
table_header($th);
start_form();
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
security_roles_list_cells(_("Role:"). " ", 'role', null, true, true, check_value('show_inactive'));
$new_role = get_post('role')=='';
}
//-----------------------------------------------------------------------------------------------
div_start('details');
-start_table($table_style2);
+start_table(TABLESTYLE2);
text_row(_("Role name:"), 'name', null, 20, 22);
text_row(_("Role description:"), 'description', null, 50, 52);
record_status_list_row(_("Current status:"), 'inactive');
end_table(1);
- start_table("$table_style width=40%");
+ start_table(TABLESTYLE, "width=40%");
$k = $j = 0; //row colour counter
$ext = $sec = $m = -1;
$result = get_shippers(check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Name"), _("Contact Person"), _("Phone Number"), _("Secondary Phone"), _("Address"), "", "");
inactive_control_column($th);
table_header($th);
//----------------------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
}
//-------------------------------------------------------------------------------------------------
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
$th = array(_("Test"), _('Test type'), _("Value"), _("Comments"));
table_header($th);
$result = get_tags($_POST['type'], check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Tag Name"), _("Tag Description"), "", "");
inactive_control_column($th);
table_header($th);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1) // We've selected a tag
{
$result = get_users(check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("User login"), _("Full Name"), _("Phone"),
_("E-mail"), _("Last Visit"), _("Access Level"), "", "");
inactive_control_row($th);
end_table(1);
//-------------------------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
$_POST['email'] = "";
if ($selected_id != -1)
{
display_note(_("Only documents can be printed."));
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
start_row();
systypes_list_cells(_("Type:"), 'filterType', null, true);
function handle_search()
{
- global $table_style;
if (check_valid_entries()==true)
{
$trans_ref = false;
function voiding_controls()
{
- global $table_style2;
-
start_form();
- start_table($table_style2);
+ start_table(TABLESTYLE2);
systypes_list_row(_("Transaction Type:"), "filterType", null, true);
start_form();
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
function display_dimension_balance($id, $from, $to)
{
- global $path_to_root, $table_style;
+ global $path_to_root;
$result = get_dimension_balance_all($id, $from, $to);
{
display_heading2(_("Balance for this Dimension"));
br();
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Account"), _("Debit"), _("Credit"));
table_header($th);
start_form(false, false, $_SERVER['PHP_SELF'] ."?outstanding_only=$outstanding_only");
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
ref_cells(_("Reference:"), 'OrderNumber', '',null, '', true);
exit;
}
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("#"), _("Reference"), _("Name"), _("Type"), _("Date"), _("Due Date"));
table_header($th);
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
if (!isset($_POST['TransFromDate']))
//------------------------------------------------------------------------------------------------
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
bank_accounts_list_cells(_("Account:"), 'bank_account', null, true);
div_start('summary');
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Reconcile Date"), _("Beginning<br>Balance"),
_("Ending<br>Balance"), _("Account<br>Total"),_("Reconciled<br>Amount"), _("Difference"));
table_header($th);
function gl_payment_controls()
{
- global $table_style2, $Refs;
+ global $Refs;
$home_currency = get_company_currency();
start_form();
- start_outer_table($table_style2, 5);
+ start_outer_table(TABLESTYLE2);
table_section(1);
display_bank_header($_SESSION['pay_items']);
-start_table("$table_style2 width=90%", 10);
+start_table(TABLESTYLE2, "width=90%", 10);
start_row();
echo "<td>";
display_gl_items($_SESSION['pay_items']->trans_type==ST_BANKPAYMENT ?
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']))
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)
display_order_header($_SESSION['journal_items']);
-start_table("$table_style2 width=90%", 10);
+start_table(TABLESTYLE2, "width=90%", 10);
start_row();
echo "<td>";
display_gl_items(_("Rows"), $_SESSION['journal_items']);
***********************************************************************/
function display_bank_header(&$order)
{
- global $table_style2, $Ajax, $Refs;
+ global $Ajax, $Refs;
$payment = $order->trans_type == ST_BANKPAYMENT;
div_start('pmt_header');
- start_outer_table("width=90% $table_style2"); // outer table
+ start_outer_table(TABLESTYLE2, "width=90%"); // outer table
table_section(1);
function display_gl_items($title, &$order)
{
- global $table_style, $path_to_root;
+ global $path_to_root;
$dim = get_company_pref('use_dimension');
$colspan = ($dim == 2 ? 4 : ($dim == 1 ? 3 : 2));
display_heading($title);
div_start('items_table');
- start_table("$table_style colspan=7 width=95%");
+ start_table(TABLESTYLE, "colspan=7 width=95%");
if ($dim == 2)
$th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1",
function display_order_header(&$Order)
{
- global $table_style2, $Ajax;
+ global $Ajax;
$qes = has_quick_entries(QE_JOURNAL);
$new = $Order->order_id==0;
- start_outer_table("$table_style2 width=90%");
+ start_outer_table(TABLESTYLE2, "width=90%");
table_section(1, $qes ? "20%" : "");
start_row();
function display_gl_items($title, &$order)
{
- global $table_style, $path_to_root;
+ global $path_to_root;
display_heading($title);
$dim = get_company_pref('use_dimension');
div_start('items_table');
- start_table("$table_style colspan=7 width=95%");
+ start_table(TABLESTYLE, "colspan=7 width=95%");
if ($dim == 2)
$th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1",
_("Dimension")." 2", _("Debit"), _("Credit"), _("Memo"), "");
function inquiry_controls()
{
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
date_cells(_("As at:"), 'TransToDate');
submit_cells('Show',_("Show"),'','', 'default');
end_table();
function display_balance_sheet()
{
- global $path_to_root, $table_style;
+ global $path_to_root;
$from = begin_fiscalyear();
$to = $_POST['TransToDate'];
div_start('balance_tbl');
- start_table("width=30% $table_style");
+ start_table(TABLESTYLE, "width=30%");
if (!$drilldown) //Root Level
{
//------------------------------------------------------------------------------------------------
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
bank_accounts_list_cells(_("Account:"), 'bank_account', null);
$act = get_bank_account($_POST["bank_account"]);
display_heading($act['bank_account_name']." - ".$act['bank_curr_code']);
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Type"), _("#"), _("Reference"), _("Date"),
_("Debit"), _("Credit"), _("Balance"), _("Person/Item"), "");
function gl_inquiry_controls()
{
- global $table_style2;
-
$dim = get_company_pref('use_dimension');
start_form();
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
start_row();
gl_all_accounts_list_cells(_("Account:"), 'account', null, false, false, "All Accounts");
date_cells(_("from:"), 'TransFromDate', '', null, -30);
function show_results()
{
- global $path_to_root, $table_style, $systypes_array;
+ global $path_to_root, $systypes_array;
if (!isset($_POST["account"]))
$_POST["account"] = null;
input_num("amount_min") == 0 &&
input_num("amount_max") == 0;
- start_table($table_style);
+ start_table(TABLESTYLE);
$first_cols = array(_("Type"), _("#"), _("Date"));
{
start_form();
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
date_cells(_("From:"), 'TransFromDate', '', null, -30);
date_cells(_("To:"), 'TransToDate');
function display_trial_balance()
{
- global $table_style, $path_to_root;
+ global $path_to_root;
div_start('balance_tbl');
- start_table($table_style);
+ start_table(TABLESTYLE);
$tableheader = "<tr>
<td rowspan=2 class='tableheader'>" . _("Account") . "</td>
<td rowspan=2 class='tableheader'>" . _("Account Name") . "</td>
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
ref_cells(_("Reference:"), 'Ref', '',null, _('Enter reference fragment or leave empty'));
function inquiry_controls()
{
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
date_cells(_("From:"), 'TransFromDate', '', null, -30);
date_cells(_("To:"), 'TransToDate');
function display_profit_and_loss()
{
- global $path_to_root, $table_style, $sel;
+ global $path_to_root, $sel;
$dim = get_company_pref('use_dimension');
$dimension = $dimension2 = 0;
div_start('pl_tbl');
- start_table("width=50% $table_style");
+ start_table(TABLESTYLE, "width=50%");
$tableheader = "<tr>
<td class='tableheader'>" . _("Group/Account Name") . "</td>
function tax_inquiry_controls()
{
- global $table_style2;
-
start_form();
- //start_table($table_style2);
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
start_row();
date_cells(_("from:"), 'TransFromDate', '', null, -30);
function show_results()
{
- global $path_to_root, $table_style;
+ global $path_to_root;
/*Now get the transactions */
div_start('trans_tbl');
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Type"), _("Description"), _("Amount"), _("Outputs")."/"._("Inputs"));
table_header($th);
$result = get_bank_accounts(check_value('show_inactive'));
start_form();
-start_table("$table_style width='80%'");
+start_table(TABLESTYLE, "width='80%'");
$th = array(_("Account Name"), _("Type"), _("Currency"), _("GL Account"),
_("Bank"), _("Number"), _("Bank Address"), _("Dflt"), '','');
$is_editing = $selected_id != -1;
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($is_editing)
{
function display_currencies()
{
- global $table_style;
-
$company_currency = get_company_currency();
$result = get_currencies(check_value('show_inactive'));
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Abbreviation"), _("Symbol"), _("Currency Name"),
_("Hundredths name"), _("Country"), _("Auto update"), "", "");
inactive_control_column($th);
function display_currency_edit($selected_id)
{
- global $table_style2, $Mode;
+ global $Mode;
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id != '')
{
function display_rates($curr_code)
{
- global $table_style;
}
function display_rate_edit()
{
- global $selected_id, $table_style2, $Ajax;
+ global $selected_id, $Ajax;
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id != "")
{
$result = get_account_classes(check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Class ID"), _("Class Name"), _("Class Type"), "", "");
if (isset($use_oldstyle_convert) && $use_oldstyle_convert == 1)
$th[2] = _("Balance Sheet");
end_table(1);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != "")
{
$result = get_account_types(check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Group ID"), _("Group Name"), _("Subgroup Of"), _("Class Type"), "", "");
inactive_control_column($th);
table_header($th);
end_table(1);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != "")
{
if (db_has_gl_accounts())
{
- start_table("class = 'tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
start_row();
gl_all_accounts_list_cells(null, 'AccountList', null, false, false,
_('New account'), true, check_value('show_inactive'));
}
br(1);
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_account != "")
{
$result = get_quick_entries();
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Description"), _("Type"), "", "");
table_header($th);
}
start_form();
div_start('qe');
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
display_heading(_("Quick Entry Lines") . " - " . $_POST['description']);
$result = get_quick_entry_lines($selected_id);
start_form();
- start_table($table_style2);
+ start_table(TABLESTYLE2);
$dim = get_company_pref('use_dimension');
if ($dim == 2)
$th = array(_("Post"), _("Account/Tax Type"), _("Amount"), _("Dimension"), _("Dimension")." 2", "", "");
start_form();
div_start('edit_line');
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id2 != -1)
{
display_heading($systypes_array[ST_BANKTRANSFER] . " #$trans_no");
echo "<br>";
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
start_row();
label_cells(_("From Bank Account"), $from_trans['bank_account_name'], "class='tableheader2'");
display_heading(_("GL Deposit") . " #$trans_no");
echo "<br>";
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
if ($show_currencies)
{
if ($show_currencies)
display_heading2(_("Item Amounts are Shown in :") . " " . $company_currency);
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$dim = get_company_pref('use_dimension');
if ($dim == 2)
$th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1", _("Dimension")." 2",
display_heading(_("GL Payment") . " #$trans_no");
echo "<br>";
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
if ($show_currencies)
{
display_heading2(_("Item Amounts are Shown in :") . " " . $company_currency);
echo "<br>";
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$dim = get_company_pref('use_dimension');
if ($dim == 2)
$th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1", _("Dimension")." 2",
function display_gl_heading($myrow)
{
- global $table_style, $systypes_array;
+ global $systypes_array;
$trans_name = $systypes_array[$_GET['type_id']];
- start_table("$table_style width=95%");
+ start_table(TABLESTYLE, "width=95%");
$th = array(_("General Ledger Transaction Details"), _("Reference"),
_("Date"), _("Person/Item"));
table_header($th);
if (!$heading_shown)
{
display_gl_heading($myrow);
- start_table("$table_style width=95%");
+ start_table(TABLESTYLE, "width=95%");
table_header($th);
$heading_shown = true;
}
// $name is base name for pager controls
function db_pager($sql, $name, $table = null, $page_len=0)
{
- global $table_style;
$this->width = "95%";
if ($page_len == 0) $page_len = user_query_size();
$this->name = $name;
define('ALL_TEXT', '');
define('ALL_NUMERIC', -1);
+//----------------------------------------------------------------------------------
+// Special class values for tables (start_table())
+define('TABLESTYLE', 1);
+define('TABLESTYLE2', 2);
+define('TABLESTYLE_NOBORDER', 3);
+
//----------------------------------------------------------------------------------
define('TAG_ACCOUNT', 1);
function show_allocatable($show_totals) {
- global $table_style, $systypes_array;
+ global $systypes_array;
$k = $counter = $total_allocated = 0;
if (count($_SESSION['alloc']->allocs))
{
- start_table("$table_style width=60%");
+ start_table(TABLESTYLE, "width=60%");
$th = array(_("Transaction Type"), _("#"), _("Date"), _("Due Date"), _("Amount"),
_("Other Allocations"), _("This Allocation"), _("Left to Allocate"),'','');
table_header($th);
// Sql paged table view. Call this function inside form.
//
function display_db_pager(&$pager) {
- global $table_style, $use_popup_windows, $use_date_picker, $path_to_root;
+ global $use_popup_windows, $use_date_picker, $path_to_root;
$pager->select_records();
}
}
/* show a table of records returned by the sql */
- start_table("$table_style width=$pager->width");
+ start_table(TABLESTYLE, "width=$pager->width");
table_header($headers);
if($pager->header_fun) { // if set header handler
echo "</form>\n";
}
-function start_table($extra="", $padding='2', $spacing='0')
+function start_table($class=false, $extra="", $padding='2', $spacing='0')
{
echo "<center><table";
+ if ($class == TABLESTYLE_NOBORDER)
+ echo " class='tablestyle_noborder'";
+ elseif ($class == TABLESTYLE2)
+ echo " class='tablestyle2'";
+ elseif ($class == TABLESTYLE)
+ echo " class='tablestyle'";
if ($extra != "")
echo " $extra";
echo " cellpadding=$padding cellspacing=$spacing>\n";
br($breaks);
}
-function start_outer_table($extra="", $padding='2', $spacing='0', $br=false)
+function start_outer_table($class=false, $extra="", $padding='2', $spacing='0', $br=false)
{
if ($br)
br();
- start_table($extra, $padding, $spacing);
+ start_table($class, $extra, $padding, $spacing);
echo "<tr valign=top><td>\n"; // outer table
}
{
if ($center)
echo "<center>";
- start_table("width=30%");
+ start_table(false, "width=30%");
start_row();
if ($no_menu)
{
function is_voided_display($type, $id, $label)
{
- global $table_style;
$void_entry = get_voided_entry($type, $id);
if ($void_entry == null)
return false;
- start_table("width=50% $table_style");
+ start_table(TABLESTYLE, "width=50%");
echo "<tr><td align=center><font color=red>$label</font><br>";
echo "<font color=red>" . _("Date Voided:") . " " . sql2date($void_entry["date_"]) . "</font><br>";
if (strlen($void_entry["memo_"]) > 0)
function display_allocations($alloc_result, $total)
{
- global $table_style, $systypes_array;
+ global $systypes_array;
if (!$alloc_result || db_num_rows($alloc_result) == 0)
return;
display_heading2(_("Allocations"));
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array( _("Type"), _("Number"), _("Date"), _("Total Amount"),
_("Left to Allocate"), _("This Allocation"));
display_order_header($_SESSION['adj_items']);
-start_outer_table("$table_style width=70%", 10);
+start_outer_table(TABLESTYLE, "width=70%", 10);
display_adjustment_items(_("Adjustment Items"), $_SESSION['adj_items']);
adjustment_options_controls();
hidden("OldLabourCost", $myrow["labour_cost"]);
hidden("OldOverheadCost", $myrow["overhead_cost"]);
-start_table($table_style2);
+start_table(TABLESTYLE2);
$dec1 = $dec2 = $dec3 = 0;
$_POST['material_cost'] = price_decimal_format($myrow["material_cost"], $dec1);
$_POST['labour_cost'] = price_decimal_format($myrow["labour_cost"], $dec2);
function display_order_header(&$order)
{
- global $table_style2, $Refs;
+ global $Refs;
- start_outer_table("width=70% $table_style2"); // outer table
+ start_outer_table(TABLESTYLE2, "width=70%"); // outer table
table_section(1);
locations_list_row(_("Location:"), 'StockLocation', null);
function display_adjustment_items($title, &$order)
{
- global $table_style, $path_to_root;
+ global $path_to_root;
display_heading($title);
div_start('items_table');
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Unit"), _("Unit Cost"), _("Total"), "");
if ( count($order->line_items)) $th[] = '';
function display_order_header(&$order)
{
- global $table_style, $Refs;
+ global $Refs;
- start_outer_table("width=70% $table_style");
+ start_outer_table(TABLESTYLE, "width=70%");
table_section(1);
function display_transfer_items($title, &$order)
{
- global $table_style, $path_to_root;
+ global $path_to_root;
display_heading($title);
div_start('items_table');
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), '');
if ( count($order->line_items)) $th[] = '';
table_header($th);
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
stock_items_list_cells(_("Item:"), 'stock_id', $_POST['stock_id']);
$_POST['BeforeDate'], $_POST['AfterDate']);
div_start('doc_tbl');
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Type"), _("#"), _("Reference"), _("Date"), _("Detail"),
_("Quantity In"), _("Quantity Out"), _("Quantity On Hand"));
$loc_details = get_loc_details($_POST['stock_id']);
-start_table($table_style);
+start_table(TABLESTYLE);
if ($kitset_or_service == true)
{
$result = get_item_categories(check_value('show_inactive'));
start_form();
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
$th = array(_("Name"), _("Tax type"), _("Units"), _("Type"), _("Sales Act"),
_("Inventory Account"), _("COGS Account"), _("Adjustment Account"),
_("Assembly Account"), "", "");
//----------------------------------------------------------------------------------
div_start('details');
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
$result = get_all_item_codes($_POST['stock_id']);
div_start('code_table');
- start_table("$table_style width=60%");
+ start_table(TABLESTYLE, "width=60%");
$th = array(_("EAN/UPC Code"), _("Quantity"), _("Units"),
_("Description"),_("Category"), "", "");
}
echo "<br>";
-start_table($table_style2);
+start_table(TABLESTYLE2);
hidden('code_id', $selected_id);
$result = get_all_item_units(check_value('show_inactive'));
start_form();
-start_table("$table_style width=40%");
+start_table(TABLESTYLE, "width=40%");
$th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
inactive_control_column($th);
//----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != '')
{
if (db_has_stock_items())
{
- start_table("class='tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
start_row();
stock_items_list_cells(_("Select an item:"), 'stock_id', null,
_('New item'), true, check_value('show_inactive'));
}
div_start('details');
-start_outer_table($table_style2, 5);
+start_outer_table(TABLESTYLE2);
table_section(1);
$result = get_item_locations(check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Location Code"), _("Location Name"), _("Address"), _("Phone"), _("Secondary Phone"), "", "");
inactive_control_column($th);
table_header($th);
echo '<br>';
-start_table($table_style2);
+start_table(TABLESTYLE2);
$_POST['email'] = "";
if ($selected_id != -1)
$result = get_all_movement_type(check_value('show_inactive'));
start_form();
-start_table("$table_style width=30%");
+start_table(TABLESTYLE, "width=30%");
$th = array(_("Description"), "", "");
inactive_control_column($th);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
//--------------------------------------------------------------------------------------------------
function display_kit_items($selected_kit)
{
- global $table_style;
-
$result = get_item_kit($selected_kit);
-div_start('bom');
- start_table("$table_style width=60%");
+ div_start('bom');
+ start_table(TABLESTYLE, "width=60%");
$th = array(_("Stock Item"), _("Description"), _("Quantity"), _("Units"),
'','');
table_header($th);
//----------------------------------------------------------------------------------
if (get_post('item_code') == '') {
// New sales kit entry
- start_table($table_style2);
+ start_table(TABLESTYLE2);
text_row(_("Alias/kit code:"), 'kit_code', null, 20, 21);
} else
{
// Kit selected so display bom or edit component
$_POST['description'] = $props['description'];
$_POST['category'] = $props['category_id'];
- start_table($table_style2);
+ start_table(TABLESTYLE2);
text_row(_("Description:"), 'description', null, 50, 200);
stock_categories_list_row(_("Category:"), 'category', null);
submit_row('update_name', _("Update"), false, 'align=center colspan=2', _('Update kit/alias name'), true);
end_table(1);
display_kit_items($selected_kit);
echo '<br>';
- start_table($table_style2);
+ start_table(TABLESTYLE2);
}
if ($Mode == 'Edit') {
$prices_list = get_prices($_POST['stock_id']);
div_start('price_table');
-start_table("$table_style width=30%");
+start_table(TABLESTYLE, "width=30%");
$th = array(_("Currency"), _("Sales Type"), _("Price"), "", "");
table_header($th);
hidden('selected_id', $selected_id);
div_start('price_details');
-start_table($table_style2);
+start_table(TABLESTYLE2);
currencies_list_row(_("Currency:"), 'curr_abrev', null, true);
}
else
{
- start_table("$table_style width=65%");
+ start_table(TABLESTYLE, "width=65%");
$th = array(_("Supplier"), _("Price"), _("Currency"),
_("Supplier's Unit"), _("Conversion Factor"), _("Supplier's Description"), "", "");
br();
hidden('selected_id', $selected_id);
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($Mode == 'Edit')
{
set_global_stock_item($_POST['stock_id']);
div_start('reorders');
-start_table("$table_style width=30%");
+start_table(TABLESTYLE, "width=30%");
$th = array(_("Location"), _("Quantity On Hand"), _("Re-Order Level"));
table_header($th);
display_order_header($_SESSION['transfer_items']);
-start_table("$table_style width=70%", 10);
+start_table(TABLESTYLE, "width=70%", 10);
start_row();
echo "<td>";
display_transfer_items(_("Items"), $_SESSION['transfer_items']);
{
$adjustment_type = get_movement_type($adjustment['person_id']) ;
- start_table("$table_style2 width=90%");
+ start_table(TABLESTYLE2, "width=90%");
start_row();
label_cells(_("At Location"), $adjustment['location_name'], "class='tableheader2'");
label_cells(_("Reference"), $adjustment['reference'], "class='tableheader2'", "colspan=6");
$header_shown = true;
echo "<br>";
- start_table("$table_style width=90%");
+ start_table(TABLESTYLE, "width=90%");
$th = array(_("Item"), _("Description"), _("Quantity"),
_("Units"), _("Unit Cost"));
display_heading($systypes_array[ST_LOCTRANSFER] . " #$trans_no");
echo "<br>";
-start_table("$table_style2 width=90%");
+start_table(TABLESTYLE2, "width=90%");
start_row();
label_cells(_("Item"), $from_trans['stock_id'] . " - " . $from_trans['description'], "class='tableheader2'");
comments_display_row(ST_LOCTRANSFER, $trans_no);
-end_table(1);
+end_table(2);
-echo "<br>";
-start_table("$table_style width=90%");
+start_table(TABLESTYLE, "width=90%");
$th = array(_("Item"), _("Description"), _("Quantity"), _("Units"));
table_header($th);
function display_bom($item_check)
{
- global $table_style;
-
$result = get_bom($item_check);
if (db_num_rows($result) == 0)
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Component"), _("Description"), _("Work Centre"),
_("From Location"), _("Quantity"), _("Unit Cost"), _("Total Cost"));
function display_wo_requirements($woid, $quantity, $show_qoh=false, $date=null)
{
- global $table_style, $SysPrefs;
+ global $SysPrefs;
$result = get_wo_requirements($woid);
else
{
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Component"), _("From Location"), _("Work Centre"),
_("Unit Quantity"), _("Total Quantity"), _("Units Issued"), _("On Hand"));
function display_wo_productions($woid)
{
- global $path_to_root, $table_style;
+ global $path_to_root;
$result = get_work_order_productions($woid);
}
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Reference"), _("Date"), _("Quantity"));
table_header($th);
function display_wo_issues($woid)
{
- global $path_to_root, $table_style;
+ global $path_to_root;
$result = get_work_order_issues($woid);
}
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Reference"), _("Date"));
table_header($th);
function display_wo_payments($woid)
{
- global $path_to_root, $table_style, $wo_cost_types;
+ global $path_to_root, $wo_cost_types;
- //$result = get_bank_trans(null, null, PT_WORKORDER, $woid);
$result = get_gl_wo_cost_trans($woid);
if (db_num_rows($result) == 0)
}
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Type"), _("Date"), _("Amount"));
table_header($th);
function display_wo_details($woid, $suppress_view_link=false)
{
- global $table_style, $wo_types_array;
+ global $wo_types_array;
$myrow = get_work_order($woid);
exit;
}
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
if ($myrow["released"] == true)
$th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
function display_wo_details_quick($woid, $suppress_view_link=false)
{
- global $table_style, $wo_types_array;
+ global $wo_types_array;
$myrow = get_work_order($woid);
exit;
}
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
_("Into Location"), _("Date"), _("Quantity"));
function display_issue_items($title, &$order)
{
- global $table_style, $path_to_root;
+ global $path_to_root;
display_heading($title);
div_start('items_table');
- start_table("$table_style width=80% colspan=7");
+ start_table(TABLESTYLE, "width=80% colspan=7");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Unit"), _("Unit Cost"), '');
if ( count($order->line_items)) $th[] = '';
$Ajax->activate('_page_body');
start_form(false, true);
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
stock_manufactured_items_list_row(_("Select a manufacturable item:"), 'stock_id', null, false, true);
end_table();
br();
function display_bom_items($selected_parent)
{
- global $table_style;
-
$result = get_bom($selected_parent);
div_start('bom');
- start_table("$table_style width=60%");
+ start_table(TABLESTYLE, "width=60%");
$th = array(_("Code"), _("Description"), _("Location"),
_("Work Centre"), _("Quantity"), _("Units"),'','');
table_header($th);
start_form();
start_form(false, true);
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
stock_manufactured_items_list_row(_("Select a manufacturable item:"), 'stock_id', null, false, true);
if (list_updated('stock_id'))
$Ajax->activate('_page_body');
//--------------------------------------------------------------------------------------
echo '<br>';
- start_table($table_style2);
+ start_table(TABLESTYLE2);
if ($selected_id != -1)
{
$result = get_all_work_centres(check_value('show_inactive'));
start_form();
-start_table("$table_style width=50%");
+start_table(TABLESTYLE, "width=50%");
$th = array(_("Name"), _("description"), "", "");
inactive_control_column($th);
table_header($th);
end_table(1);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
start_form(false, false, $_SERVER['PHP_SELF'] ."?outstanding_only=$outstanding_only");
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
ref_cells(_("Reference:"), 'OrderNumber', '',null, '', true);
function display_wo_issue($issue_no)
{
- global $table_style;
-
$myrow = get_work_order_issue($issue_no);
br(1);
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Issue #"), _("Reference"), _("For Work Order #"),
_("Item"), _("From Location"), _("To Work Centre"), _("Date of Issue"));
table_header($th);
function display_wo_issue_details($issue_no)
{
- global $table_style;
-
$result = get_work_order_issue_details($issue_no);
if (db_num_rows($result) == 0)
}
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Component"), _("Quantity"), _("Units"));
table_header($th);
function display_wo_production($prod_id)
{
- global $table_style;
-
$myrow = get_work_order_produce($prod_id);
br(1);
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Production #"), _("Reference"), _("For Work Order #"),
_("Item"), _("Quantity Manufactured"), _("Date"));
table_header($th);
if (!isset($_POST['quantity']) || $_POST['quantity'] == '')
$_POST['quantity'] = qty_format(max($wo_details["units_reqd"] - $wo_details["units_issued"], 0), $wo_details["stock_id"], $dec);
-start_table($table_style2);
+start_table(TABLESTYLE2);
br();
ref_row(_("Reference:"), 'ref', '', $Refs->get_next(29));
hidden('selected_id', $_POST['selected_id']);
//hidden('WOReqQuantity', $_POST['WOReqQuantity']);
-start_table($table_style2);
+start_table(TABLESTYLE2);
br();
start_form();
-start_table($table_style2);
+start_table(TABLESTYLE2);
$existing_comments = "";
start_form();
-start_table("$table_style width=90%", 10);
+start_table(TABLESTYLE, "width=90%", 10);
echo "<tr><td>";
display_issue_items(_("Items to Issue"), $_SESSION['issue_items']);
issue_options_controls();
if (can_process($myrow))
{
- start_table($table_style2);
+ start_table(TABLESTYLE2);
label_row(_("Work Order #:"), $selected_id);
label_row(_("Work Order Reference:"), $myrow["wo_ref"]);
function display_grn_summary(&$po, $editable=false)
{
- global $table_style2, $Refs;
- start_table("$table_style2 width=90%");
+ global $Refs;
+ start_table(TABLESTYLE2, "width=90%");
start_row();
label_cells(_("Supplier"), $po->supplier_name, "class='tableheader2'");
function invoice_header(&$supp_trans)
{
- global $Ajax, $table_style2, $Refs;
+ global $Ajax, $Refs;
// if vars have been lost, recopy
if (!isset($_POST['tran_date']))
copy_from_trans($supp_trans);
- start_outer_table("width=95% $table_style2");
+ start_outer_table(TABLESTYLE2, "width=95%");
table_section(1);
function invoice_totals(&$supp_trans)
{
- global $table_style, $table_style2;
-
copy_to_trans($supp_trans);
$dim = get_company_pref('use_dimension');
$colspan = ($dim == 2 ? 7 : ($dim == 1 ? 6 : 5));
- start_table("$table_style width=95%");
+ start_table(TABLESTYLE, "width=95%");
label_row(_("Sub-total:"), price_format( $supp_trans->ov_amount), "colspan=$colspan align=right", "align=right");
$taxes = $supp_trans->get_taxes($supp_trans->tax_group_id);
$display_total, "colspan=$colspan align=right style='font-weight:bold;color:red;'", "nowrap align=right style='font-weight:bold;color:red;'");
end_table(1);
- start_table($table_style2);
+ start_table(TABLESTYLE2);
textarea_row(_("Memo:"), "Comments", null, 50, 3);
end_table(1);
}
//--------------------------------------------------------------------------------------------------
function display_gl_controls(&$supp_trans, $k)
{
- global $table_style, $table_style2;
-
$accs = get_supplier_accounts($supp_trans->supplier_id);
$_POST['gl_code'] = $accs['purchase_account'];
function display_gl_items(&$supp_trans, $mode=0)
{
- global $table_style, $table_style2, $path_to_root, $Ajax;
+ global $path_to_root, $Ajax;
// if displaying in form, and no items, exit
if (($mode == 2 || $mode == 3) && count($supp_trans->gl_codes) == 0)
else
$heading = _("GL Items for this Credit Note");
- start_outer_table("$table_style width=95%");
+ start_outer_table(TABLESTYLE, "width=95%");
if ($mode == 1)
{
end_outer_table(0, false);
div_start('gl_items');
- start_table("$table_style width=95%");
+ start_table(TABLESTYLE, "width=95%");
$dim = get_company_pref('use_dimension');
if ($dim == 2)
function display_grn_items_for_selection(&$supp_trans, $k)
{
- global $table_style;
-
if ($supp_trans->is_invoice)
$result = get_grn_items(0, $supp_trans->supplier_id, true);
else
function display_grn_items(&$supp_trans, $mode=0)
{
- global $table_style, $path_to_root;
+ global $path_to_root;
$ret = true;
// if displaying in form, and no items, exit
end_outer_table(0, false);
div_start('grn_items');
- start_table("$table_style width=95%");
+ start_table(TABLESTYLE, "width=95%");
if ($mode == 1)
{
$th = array(_("Delivery"), _("Sequence #"), _("P.O."), _("Item"), _("Description"),
function display_po_header(&$order)
{
- global $table_style2, $Ajax, $Refs;
+ global $Ajax, $Refs;
$editable = ($order->order_no == 0);
- start_outer_table("width=80% $table_style2");
+ start_outer_table(TABLESTYLE2, "width=80%");
table_section(1);
if ($editable)
function display_po_items(&$order, $editable=true)
{
- global $table_style;
-
display_heading(_("Order Items"));
div_start('items_table');
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Received"), _("Unit"),
function display_po_summary(&$po, $is_self=false, $editable=false)
{
- global $table_style;
- start_table("$table_style width=90%");
+ start_table(TABLESTYLE, "width=90%");
start_row();
label_cells(_("Reference"), $po->reference, "class='tableheader2'");
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
ref_cells(_("#:"), 'order_number', '',null, '', true);
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
ref_cells(_("#:"), 'order_number', '',null, '', true);
if (!isset($_POST['supplier_id']))
$_POST['supplier_id'] = get_global_supplier();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
supplier_list_cells(_("Select a supplier: "), 'supplier_id', $_POST['supplier_id'], true);
if (!isset($_POST['supplier_id']))
$_POST['supplier_id'] = get_global_supplier();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
supplier_list_cells(_("Select a supplier:"), 'supplier_id', null, true);
function display_supplier_summary($supplier_record)
{
- global $table_style;
-
$past1 = get_company_pref('past_due_days');
$past2 = 2 * $past1;
$nowdue = "1-" . $past1 . " " . _('Days');
$pastdue2 = _('Over') . " " . $past2 . " " . _('Days');
- start_table("width=80% $table_style");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Currency"), _("Terms"), _("Current"), $nowdue,
$pastdue1, $pastdue2, _("Total Balance"));
if (db_has_suppliers())
{
- start_table("", 3);
-// start_table("class = 'tablestyle_noborder'");
+ start_table(false, "", 3);
+// start_table(TABLESTYLE_NOBORDER);
start_row();
supplier_list_cells(_("Select a supplier: "), 'supplier_id', null,
_('New supplier'), true, check_value('show_inactive'));
hidden('supplier_id', get_post('supplier_id'));
}
-start_outer_table($table_style2, 5);
+start_outer_table(TABLESTYLE2);
table_section(1);
display_po_items($_SESSION['PO']);
-start_table($table_style2);
+start_table(TABLESTYLE2);
textarea_row(_("Memo:"), 'Comments', null, 70, 4);
end_table(1);
function display_po_receive_items()
{
- global $table_style;
-
div_start('grn_items');
- start_table("colspan=7 $table_style width=90%");
+ start_table(TABLESTYLE, "colspan=7 width=90%");
$th = array(_("Item Code"), _("Description"), _("Ordered"), _("Units"), _("Received"),
_("Outstanding"), _("This Delivery"), _("Price"), _("Total"));
table_header($th);
start_form();
- start_outer_table("$table_style2 width=60%", 5);
+ start_outer_table(TABLESTYLE2, "width=60%", 5);
table_section(1);
div_end();
}
- start_table("$table_style width=60%");
+ start_table(TABLESTYLE, "width=60%");
amount_row(_("Amount of Discount:"), 'discount');
amount_row(_("Amount of Payment:"), 'amount');
textarea_row(_("Memo:"), 'memo_', null, 22, 4);
display_heading2(_("Line Details"));
-start_table("colspan=9 $table_style width=90%");
+start_table(TABLESTYLE, "colspan=9 width=90%");
$th = array(_("Item Code"), _("Item Description"), _("Delivery Date"), _("Quantity"),
_("Unit"), _("Price"), _("Line Total"), _("Quantity Invoiced"));
echo "<br>";
display_po_summary($purchase_order, true);
-start_table("$table_style width=90%", 6);
+start_table(TABLESTYLE, "width=90%", 6);
echo "<tr><td valign=top>"; // outer table
display_heading2(_("Line Details"));
-start_table("colspan=9 $table_style width=100%");
+start_table(TABLESTYLE, "colspan=9 width=100%");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), _("Price"),
_("Line Total"), _("Requested By"), _("Quantity Received"), _("Quantity Invoiced"));
echo "</td><td valign=top>"; // outer table
display_heading2(_("Deliveries"));
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Reference"), _("Delivered On"));
table_header($th);
while ($myrow = db_fetch($grns_result))
echo "</td><td valign=top>"; // outer table
display_heading2(_("Invoices/Credits"));
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Date"), _("Total"));
table_header($th);
while ($myrow = db_fetch($invoice_result))
display_heading(_("SUPPLIER CREDIT NOTE") . " # " . $trans_no);
echo "<br>";
-start_table($table_style2);
+start_table(TABLESTYLE2);
start_row();
label_cells(_("Supplier"), $supp_trans->supplier_name, "class='tableheader2'");
label_cells(_("Reference"), $supp_trans->reference, "class='tableheader2'");
$display_sub_tot = number_format2($total_gl+$total_grn,user_price_dec());
-start_table("$table_style width=95%");
+start_table(TABLESTYLE, "width=95%");
label_row(_("Sub Total"), $display_sub_tot, "align=right", "nowrap align=right width=17%");
$tax_items = get_trans_tax_details(ST_SUPPCREDIT, $trans_no);
display_heading(_("SUPPLIER INVOICE") . " # " . $trans_no);
echo "<br>";
-start_table("$table_style width=95%");
+start_table(TABLESTYLE, "width=95%");
start_row();
label_cells(_("Supplier"), $supp_trans->supplier_name, "class='tableheader2'");
label_cells(_("Reference"), $supp_trans->reference, "class='tableheader2'");
$display_sub_tot = number_format2($total_gl+$total_grn,user_price_dec());
-start_table("width=95% $table_style");
+start_table(TABLESTYLE, "width=95%");
label_row(_("Sub Total"), $display_sub_tot, "align=right", "nowrap align=right width=15%");
$tax_items = get_trans_tax_details(ST_SUPPINVOICE, $trans_no);
display_heading(_("Payment to Supplier") . " #$trans_no");
echo "<br>";
-start_table("$table_style2 width=80%");
+start_table(TABLESTYLE2, "width=80%");
start_row();
label_cells(_("To Supplier"), $receipt['supplier_name'], "class='tableheader2'");
function getDisplay($class=null)
{
- global $table_style, $path_to_root, $pdf_debug, $Ajax;
+ global $path_to_root, $pdf_debug, $Ajax;
$temp = array_values($this->ar_classes);
$result = get_recurrent_invoices();
-start_table("$table_style width=70%");
+start_table(TABLESTYLE, "width=70%");
$th = array(_("Description"), _("Template No"),_("Customer"),_("Branch")."/"._("Group"),_("Days"),_("Monthly"),_("Begin"),_("End"),_("Last Created"),"");
table_header($th);
$k = 0;
$customer_error = display_credit_header($_SESSION['Items']);
if ($customer_error == "") {
- start_table("$table_style width=80%", 10);
+ start_table(TABLESTYLE, "width=80%", 10);
echo "<tr><td>";
display_credit_items(_("Credit Note Items"), $_SESSION['Items']);
credit_options_controls($_SESSION['Items']);
function display_credit_items()
{
- global $table_style, $table_style2;
-
start_form();
hidden('cart_id');
- start_table("$table_style2 width=80%", 5);
+ start_table(TABLESTYLE2, "width=80%", 5);
echo "<tr><td>"; // outer table
- start_table("$table_style width=100%");
+ start_table(TABLESTYLE, "width=100%");
start_row();
label_cells(_("Customer"), $_SESSION['Items']->customer_name, "class='tableheader2'");
label_cells(_("Branch"), get_branch_name($_SESSION['Items']->Branch), "class='tableheader2'");
echo "</td><td>";// outer table
- start_table("$table_style width=100%");
+ start_table(TABLESTYLE, "width=100%");
label_row(_("Invoice Date"), $_SESSION['Items']->src_date, "class='tableheader2'");
end_table(1); // outer table
div_start('credit_items');
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Item Code"), _("Item Description"), _("Invoiced Quantity"), _("Units"),
_("Credit Quantity"), _("Price"), _("Discount %"), _("Total"));
table_header($th);
//-----------------------------------------------------------------------------
function display_credit_options()
{
- global $table_style2, $Ajax;
- echo "<br>";
+ global $Ajax;
+ br();
-if (isset($_POST['_CreditType_update']))
- $Ajax->activate('options');
+i f (isset($_POST['_CreditType_update']))
+ $Ajax->activate('options');
- div_start('options');
- start_table("$table_style2");
+ div_start('options');
+ start_table(TABLESTYLE2);
credit_type_list_row(_("Credit Note Type"), 'CreditType', null, true);
start_form();
hidden('cart_id');
-start_table("$table_style2 width=80%", 5);
+start_table(TABLESTYLE2, "width=80%", 5);
echo "<tr><td>"; // outer table
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
start_row();
label_cells(_("Customer"), $_SESSION['Items']->customer_name, "class='tableheader2'");
label_cells(_("Branch"), get_branch_name($_SESSION['Items']->Branch), "class='tableheader2'");
echo "</td><td>";// outer table
-start_table("$table_style width=90%");
+start_table(TABLESTYLE, "width=90%");
if (!isset($_POST['due_date']) || !is_date($_POST['due_date'])) {
$_POST['due_date'] = get_invoice_duedate($_SESSION['Items']->payment, $_POST['DispatchDate']);
}
display_heading(_("Delivery Items"));
div_start('Items');
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
$new = $_SESSION['Items']->trans_no==0;
$th = array(_("Item Code"), _("Item Description"),
if ($has_marked) {
display_note(_("Marked items have insufficient quantities in stock as on day of delivery."), 0, 1, "class='red'");
}
-start_table($table_style2);
+start_table(TABLESTYLE2);
policy_list_row(_("Action For Balance"), "bo_policy", null);
start_form();
hidden('cart_id');
-start_table("$table_style2 width=80%", 5);
+start_table(TABLESTYLE2, "width=80%", 5);
start_row();
label_cells(_("Customer"), $_SESSION['Items']->customer_name, "class='tableheader2'");
display_heading(_("Invoice Items"));
div_start('Items');
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
$th = array(_("Item Code"), _("Item Description"), _("Delivered"), _("Units"), _("Invoiced"),
_("This Invoice"), _("Price"), _("Tax Type"), _("Discount"), _("Total"));
end_table(1);
div_end();
-start_table($table_style2);
+start_table(TABLESTYLE2);
textarea_row(_("Memo"), 'Comments', null, 50, 4);
end_table(1);
start_form();
- start_outer_table("$table_style2 width=60%", 5);
+ start_outer_table(TABLESTYLE2, "width=60%", 5);
table_section(1);
customer_list_row(_("From Customer:"), 'customer_id', null, false, true);
div_end();
}
- start_table("$table_style width=60%");
+ start_table(TABLESTYLE, "width=60%");
label_row(_("Customer prompt payment discount :"), $display_discount_percent);
amount_row(_("Amount of Discount:"), 'discount');
function display_credit_header(&$order)
{
- global $table_style, $Ajax, $Refs;
+ global $Ajax, $Refs;
- start_outer_table("width=80% $table_style");
+ start_outer_table(TABLESTYLE, "width=80%");
table_section(1);
$customer_error = "";
function display_credit_items($title, &$order)
{
- global $table_style, $path_to_root;
+ global $path_to_root;
display_heading($title);
div_start('items_table');
- start_table("$table_style width=90%");
+ start_table(TABLESTYLE, "width=90%");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"),
_("Price"), _("Discount %"), _("Total"),'');
function credit_options_controls($credit)
{
- global $table_style2, $Ajax;
- echo "<br>";
+ global $Ajax;
+ br();
-if (isset($_POST['_CreditType_update']))
- $Ajax->activate('options');
+ if (isset($_POST['_CreditType_update']))
+ $Ajax->activate('options');
- div_start('options');
- start_table("$table_style2");
+ div_start('options');
+ start_table(TABLESTYLE2);
credit_type_list_row(_("Credit Note Type"), 'CreditType', null, true);
function display_order_summary($title, &$order, $editable_items=false)
{
- global $table_style, $path_to_root, $SysPrefs;
+ global $path_to_root, $SysPrefs;
display_heading($title);
div_start('items_table');
- start_table("$table_style colspan=7 width=90%");
+ start_table(TABLESTYLE, "colspan=7 width=90%");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Delivered"),
_("Unit"), _("Price"), _("Discount %"), _("Total"), "");
function display_order_header(&$order, $editable, $date_text, $display_tax_group=false)
{
- global $table_style2, $Ajax, $SysPrefs;
+ global $Ajax, $SysPrefs;
- start_outer_table("width=80% $table_style2");
+ start_outer_table(TABLESTYLE2, "width=80%");
table_section(1);
function display_delivery_details(&$order)
{
- global $table_style2, $Ajax;
+ global $Ajax;
div_start('delivery');
if ($order->cash) { // Direct payment sale
$Ajax->activate('items_table');
display_heading(_('Cash payment'));
- start_table("$table_style2 width=60%");
+ start_table(TABLESTYLE2, "width=60%");
label_row(_("Deliver from Location:"), $order->location_name);
hidden('Location', $order->Location);
$delname = _("Required Delivery Date").':';
}
display_heading($title);
- start_outer_table("$table_style2 width=90%");
+ start_outer_table(TABLESTYLE2, "width=90%");
table_section(1);
locations_list_row(_("Deliver from Location:"), 'Location', null,
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
customer_list_cells(_("Select a customer: "), 'customer_id', $_POST['customer_id'], true);
if (!isset($_POST['customer_id']))
$_POST['customer_id'] = get_global_customer();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
customer_list_cells(_("Select a customer: "), 'customer_id', null, true);
function display_customer_summary($customer_record)
{
- global $table_style;
-
$past1 = get_company_pref('past_due_days');
$past2 = 2 * $past1;
if ($customer_record["dissallow_invoices"] != 0)
$pastdue1 = $past1 + 1 . "-" . $past2 . " " . _('Days');
$pastdue2 = _('Over') . " " . $past2 . " " . _('Days');
- start_table("width=80% $table_style");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Currency"), _("Terms"), _("Current"), $nowdue,
$pastdue1, $pastdue2, _("Total Balance"));
table_header($th);
start_form(false, false, $_SERVER['PHP_SELF'] ."?OutstandingOnly=".$_POST['OutstandingOnly']);
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
ref_cells(_("#:"), 'DeliveryNumber', '',null, '', true);
date_cells(_("from:"), 'DeliveryAfterDate', '', null, -30);
start_form();
-start_table("class='tablestyle_noborder'");
+start_table(TABLESTYLE_NOBORDER);
start_row();
ref_cells(_("#:"), 'OrderNumber', '',null, '', true);
if ($_POST['order_view_mode'] != 'DeliveryTemplates' && $_POST['order_view_mode'] != 'InvoiceTemplates')
$result = get_all_credit_status(check_value('show_inactive'));
start_form();
-start_table("$table_style width=40%");
+start_table(TABLESTYLE, "width=40%");
$th = array(_("Description"), _("Dissallow Invoices"),'','');
inactive_control_column($th);
table_header($th);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
else
display_note(_("The selected customer does not have any branches. Please create at least one branch."));
-start_outer_table($table_style2, 5);
+start_outer_table(TABLESTYLE2);
table_section(1);
if (db_has_customers())
{
- start_table("class = 'tablestyle_noborder'");
+ start_table(TABLESTYLE_NOBORDER);
start_row();
customer_list_cells(_("Select a customer: "), 'customer_id', null,
_('New customer'), true, check_value('show_inactive'));
$_POST['inactive'] = $myrow["inactive"];
}
-start_outer_table($table_style2, 5);
+start_outer_table(TABLESTYLE2);
table_section(1);
table_section_title(_("Name and Address"));
$result = get_recurrent_invoices();
start_form();
-start_table("$table_style width=70%");
+start_table(TABLESTYLE, "width=70%");
$th = array(_("Description"), _("Template No"),_("Customer"),_("Branch")."/"._("Group"),_("Days"),_("Monthly"),_("Begin"),_("End"),_("Last Created"),"", "");
table_header($th);
$k = 0;
start_form();
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
$result = get_sales_areas(check_value('show_inactive'));
start_form();
-start_table("$table_style width=30%");
+start_table(TABLESTYLE, "width=30%");
$th = array(_("Area Name"), "", "");
inactive_control_column($th);
//-------------------------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
$result = get_sales_groups(check_value('show_inactive'));
start_form();
-start_table("$table_style width=30%");
+start_table(TABLESTYLE, "width=30%");
$th = array(_("Group Name"), "", "");
inactive_control_column($th);
//-------------------------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
$result = get_salesmen(check_value('show_inactive'));
start_form();
-start_table("$table_style width=60%");
+start_table(TABLESTYLE, "width=60%");
$th = array(_("Name"), _("Phone"), _("Fax"), _("Email"), _("Provision"), _("Break Pt."), _("Provision")." 2", "", "");
inactive_control_column($th);
table_header($th);
$_POST['provision2'] = percent_format(0);
}
-start_table($table_style2);
+start_table(TABLESTYLE2);
text_row_ex(_("Sales person name:"), 'salesman_name', 30);
text_row_ex(_("Telephone number:"), 'salesman_phone', 20);
$result = get_all_sales_points(check_value('show_inactive'));
start_form();
-start_table("$table_style");
+start_table(TABLESTYLE);
$th = array (_('POS Name'), _('Credit sale'), _('Cash sale'), _('Location'), _('Default account'),
'','');
if (!$cash) display_note(_("To have cash POS first define at least one cash bank account."));
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
$result = get_all_sales_types(check_value('show_inactive'));
start_form();
-start_table("$table_style width=30%");
+start_table(TABLESTYLE, "width=30%");
$th = array (_('Type Name'), _('Factor'), _('Tax Incl'), '','');
inactive_control_column($th);
if (!isset($_POST['base']))
$_POST['base'] = 0;
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
($_SESSION['Items']->any_already_delivered() == 0), $idate);
if ($customer_error == "") {
- start_table("$table_style width=80%", 10);
+ start_table(TABLESTYLE, "width=80%", 10);
echo "<tr><td>";
display_order_summary($orderitems, $_SESSION['Items'], true);
echo "</td></tr>";
display_heading("<font color=red>" . sprintf(_("CREDIT NOTE #%d"), $trans_id). "</font>");
echo "<br>";
-start_table("$table_style2 width=95%");
+start_table(TABLESTYLE2, "width=95%");
echo "<tr valign=top><td>"; // outer table
/*Now the customer charged to details in a sub table*/
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Customer"));
table_header($th);
echo "</td><td>"; // outer table
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Branch"));
table_header($th);
echo "</td><td>"; // outer table
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
start_row();
label_cells(_("Ref"), $myrow["reference"], "class='tableheader2'");
label_cells(_("Date"), sql2date($myrow["tran_date"]), "class='tableheader2'");
$result = get_customer_trans_details(ST_CUSTCREDIT, $trans_id);
-start_table("$table_style width=95%");
+start_table(TABLESTYLE, "width=95%");
if (db_num_rows($result) > 0)
{
display_heading(sprintf(_("DISPATCH NOTE #%d"),$trans_id));
echo "<br>";
-start_table("$table_style2 width=95%");
+start_table(TABLESTYLE2, "width=95%");
echo "<tr valign=top><td>"; // outer table
/*Now the customer charged to details in a sub table*/
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Charge To"));
table_header($th);
/*end of the main table showing the company name and charge to details */
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Charge Branch"));
table_header($th);
echo "</td><td>"; // outer table
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Delivered To"));
table_header($th);
echo "</td><td>"; // outer table
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
start_row();
label_cells(_("Reference"), $myrow["reference"], "class='tableheader2'");
label_cells(_("Currency"), $sales_order["curr_code"], "class='tableheader2'");
$result = get_customer_trans_details(ST_CUSTDELIVERY, $trans_id);
-start_table("$table_style width=95%");
+start_table(TABLESTYLE, "width=95%");
if (db_num_rows($result) > 0)
{
display_heading(sprintf(_("SALES INVOICE #%d"),$trans_id));
echo "<br>";
-start_table("$table_style2 width=95%");
+start_table(TABLESTYLE2, "width=95%");
echo "<tr valign=top><td>"; // outer table
/*Now the customer charged to details in a sub table*/
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Charge To"));
table_header($th);
/*end of the main table showing the company name and charge to details */
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Charge Branch"));
table_header($th);
echo "</td><td>"; // outer table
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
$th = array(_("Delivered To"));
table_header($th);
echo "</td><td>"; // outer table
-start_table("$table_style width=100%");
+start_table(TABLESTYLE, "width=100%");
start_row();
label_cells(_("Reference"), $myrow["reference"], "class='tableheader2'");
label_cells(_("Currency"), $sales_order["curr_code"], "class='tableheader2'");
$result = get_customer_trans_details(ST_SALESINVOICE, $trans_id);
-start_table("$table_style width=95%");
+start_table(TABLESTYLE, "width=95%");
if (db_num_rows($result) > 0)
{
display_heading(sprintf(_("Customer Payment #%d"),$trans_id));
echo "<br>";
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width=80%");
start_row();
label_cells(_("From Customer"), $receipt['DebtorName'], "class='tableheader2'");
label_cells(_("Into Bank Account"), $receipt['bank_account_name'], "class='tableheader2'");
$_SESSION['View'] = new Cart($_GET['trans_type'], $_GET['trans_no'], true);
-start_table("$table_style2 width=95%", 5);
+start_table(TABLESTYLE2, "width=95%", 5);
echo "<tr valign=top><td>";
display_heading2(_("Order Information"));
if ($_GET['trans_type'] != ST_SALESQUOTE)
echo "<tr valign=top><td>";
-start_table("$table_style width=95%");
+start_table(TABLESTYLE, "width=95%");
label_row(_("Customer Name"), $_SESSION['View']->customer_name, "class='tableheader2'",
"colspan=3");
start_row();
{
echo "</td><td valign='top'>";
- start_table($table_style);
+ start_table(TABLESTYLE);
display_heading2(_("Delivery Notes"));
end_table();
echo "</td><td valign='top'>";
- start_table($table_style);
+ start_table(TABLESTYLE);
display_heading2(_("Sales Invoices"));
$th = array(_("#"), _("Ref"), _("Date"), _("Total"));
display_heading2(_("Credit Notes"));
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Ref"), _("Date"), _("Total"));
table_header($th);
display_note(_("This Sales Order is used as a Template."), 0, 0, "class='currentfg'");
display_heading2(_("Line Details"));
-start_table("colspan=9 width=95% $table_style");
+start_table(TABLESTYLE, "colspan=9 width=95%");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"),
_("Price"), _("Discount"), _("Total"), _("Quantity Delivered"));
table_header($th);
$result2 = $result = get_all_item_tax_types(check_value('show_inactive'));
start_form();
-start_table("$table_style width=30%");
+start_table(TABLESTYLE, "width=30%");
$th = array(_("Name"), _("Tax exempt"),'','');
inactive_control_column($th);
table_header($th);
end_table(1);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
display_note(_("Select which taxes this item tax type is exempt from."), 0, 1);
- start_table($table_style2);
+ start_table(TABLESTYLE2);
$th = array(_("Tax Name"), _("Rate"), _("Is exempt"));
table_header($th);
$result = get_all_tax_groups(check_value('show_inactive'));
start_form();
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Description"), _("Tax Shipping"), "", "");
inactive_control_column($th);
table_header($th);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
display_note(_("Select the taxes that are included in this group."), 1);
-start_table($table_style2);
+start_table(TABLESTYLE2);
//$th = array(_("Tax"), _("Default Rate (%)"), _("Rate (%)"));
//Editable rate has been removed 090920 Joe Hunt
$th = array(_("Tax"), _("Rate (%)"));
start_form();
display_note(_("To avoid problems with manual journal entry all tax types should have unique Sales/Purchasing GL accounts."));
-start_table($table_style);
+start_table(TABLESTYLE);
$th = array(_("Description"), _("Default Rate (%)"),
_("Sales GL Account"), _("Purchasing GL Account"), "", "");
end_table(1);
//-----------------------------------------------------------------------------------
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($selected_id != -1)
{
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections;
- // you can owerride the table styles from config.php here, if you want.
- //global $table_style, $table_style2;
- //$table_style = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'";
- //$table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'";
echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='2'>\n";
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections;
- // you can owerride the table styles from config.php here, if you want.
- //global $table_style, $table_style2;
- //$table_style = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'";
- //$table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'";
echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='2'>\n";
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections;
- // you can owerride the table styles from config.php here, if you want.
- //global $table_style, $table_style2;
- //$table_style = "cellpadding=3 border=1 bordercolor='#8cacbb' style='border-collapse: collapse'";
- //$table_style2 = "cellpadding=3 border=1 bordercolor='#cccccc' style='border-collapse: collapse'";
echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='2'>\n";