if (check_faillog())
{
- $blocked_msg = '<span class=redfg>'._('Too many failed login attempts.<br>Please wait a while or try later.').'</span>';
+ $blocked_msg = '<span class="redfg">'._('Too many failed login attempts.<br>Please wait a while or try later.').'</span>';
$js .= "<script>setTimeout(function() {
document.getElementsByName('SubmitUser')[0].disabled=0;
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
echo "<html dir='$rtl' >\n";
echo "<head profile=\"http://www.w3.org/2005/10/profile\"><title>$title</title>\n";
- echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding' />\n";
+ echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding' >\n";
echo "<link href='$path_to_root/themes/$def_theme/default.css' rel='stylesheet' type='text/css'> \n";
echo "<link href='$path_to_root/themes/default/images/favicon.ico' rel='icon' type='image/x-icon'> \n";
send_scripts();
start_row();
echo "<td align='center' colspan=2>";
if (!$login_timeout) { // FA logo
- echo "<a target='_blank' href='$power_url'><img src='$path_to_root/themes/$def_theme/images/logo_frontaccounting.png' alt='FrontAccounting' height='50' onload='fixPNG(this)' border='0' /></a>";
+ echo "<a target='_blank' href='$power_url'><img src='$path_to_root/themes/$def_theme/images/logo_frontaccounting.png' alt='FrontAccounting' height='50' onload='fixPNG(this)' border='0' ></a>";
} else {
echo "<font size=5>"._('Authorization timeout')."</font>";
}
echo "</td>\n";
end_row();
- echo "<input type='hidden' id=ui_mode name='ui_mode' value='".$_SESSION["wa_current_user"]->ui_mode."' />\n";
+ echo "<input type='hidden' id=ui_mode name='ui_mode' value='".$_SESSION["wa_current_user"]->ui_mode."' >\n";
if (!$login_timeout)
table_section_title(_("Version")." $version Build $build_version - "._("Login"));
$value = $login_timeout ? $_SESSION['wa_current_user']->loginname : ($allow_demo_mode ? "demouser":"");
};
end_table(1);
echo "<center><input type='submit' value=' "._("Login -->")." ' name='SubmitUser'"
- .($login_timeout ? '':" onclick='set_fullmode();'").(isset($blocked_msg) ? " disabled" : '')." /></center>\n";
+ .($login_timeout ? '':" onclick='set_fullmode();'").(isset($blocked_msg) ? " disabled" : '')." ></center>\n";
foreach($_SESSION['timeout']['post'] as $p => $val) {
// add all request variables to be resend together with login data
echo "<table width='100%' border='0'>
<tr>
- <td align='center'><img src='$path_to_root/themes/default/images/logo_frontaccounting.png' alt='FrontAccounting' width='250' height='50' onload='fixPNG(this)' /></td>
+ <td align='center'><img src='$path_to_root/themes/default/images/logo_frontaccounting.png' alt='FrontAccounting' width='250' height='50' onload='fixPNG(this)' ></td>
</tr>
<tr>
<td> </td>
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
echo "<html dir='$rtl' >\n";
echo "<head profile=\"http://www.w3.org/2005/10/profile\"><title>$title</title>\n";
- echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding' />\n";
+ echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding' >\n";
echo "<link href='$path_to_root/themes/$def_theme/default.css' rel='stylesheet' type='text/css'> \n";
echo "<link href='$path_to_root/themes/default/images/favicon.ico' rel='icon' type='image/x-icon'> \n";
send_scripts();
start_table(false, "class='login'");
start_row();
echo "<td align='center' colspan=2>";
- echo "<a target='_blank' href='$power_url'><img src='$path_to_root/themes/$def_theme/images/logo_frontaccounting.png' alt='FrontAccounting' height='50' onload='fixPNG(this)' border='0' /></a>";
+ echo "<a target='_blank' href='$power_url'><img src='$path_to_root/themes/$def_theme/images/logo_frontaccounting.png' alt='FrontAccounting' height='50' onload='fixPNG(this)' border='0' ></a>";
echo "</td>\n";
end_row();
- echo "<input type='hidden' id=ui_mode name='ui_mode' value='".$_SESSION["wa_current_user"]->ui_mode."' />\n";
+ echo "<input type='hidden' id=ui_mode name='ui_mode' value='".$_SESSION["wa_current_user"]->ui_mode."' >\n";
table_section_title(_("Version")." $version Build $build_version - "._("Password reset"));
text_row(_("Email"), "email_entry_field", "", 20, 30);
end_row();
end_table(1);
echo "<center><input type='submit' value=' "._("Send password -->")." ' name='SubmitReset'
- onclick='set_fullmode();' /></center>\n";
+ onclick='set_fullmode();'></center>\n";
end_form(1);
$Ajax->addScript(true, "document.forms[0].password.focus();");
$coyno = $_SESSION["wa_current_user"]->company;
echo "
- <script language='javascript'>
+ <script type='text/javascript'>
function deleteCompany(id, name) {
if (!confirm('" . _("Are you sure you want to delete company no. ") . "'+id+' '+name+'?'))
return
$result = get_crm_categories(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=70%");
+start_table(TABLESTYLE, "width='70%'");
$th = array(_("Category Type"), _("Category Subtype"), _("Short Name"), _("Description"), "", " ");
inactive_control_column($th);
if (strlen($str_return))
$str_return = $str_return . " \n";
$str_return .= _("Attached File:")." <a href='$path_to_root/admin/attachments.php?vw=".$attachment["id"]." ' target='blanc_'> ".
- $attachment["id"] . " " . $attachment["description"]. " - ". $attachment["filename"]."</a><br/>";
+ $attachment["id"] . " " . $attachment["description"]. " - ". $attachment["filename"]."</a><br>";
}
- return $str_return . "<br/>";
+ return $str_return . "<br>";
}
//----------------------------------------------------------------------------------------
if (!$check)
check_cells(null,'install_'.$i, 0);
else {
- label_cell("<span class=redfg>"
+ label_cell("<span class='redfg'>"
. sprintf(_("Partially installed (%s)"), $check) . "</span>");
$partial++;
}
record_status_list_row(_("Current status:"), 'inactive');
end_table(1);
- start_table(TABLESTYLE, "width=40%");
+ start_table(TABLESTYLE, "width='40%'");
$k = $j = 0; //row colour counter
$ext = $sec = $m = -1;
display_bank_header($_SESSION['pay_items']);
-start_table(TABLESTYLE2, "width=90%", 10);
+start_table(TABLESTYLE2, "width='90%'", 10);
start_row();
echo "<td>";
display_gl_items($_SESSION['pay_items']->trans_type==ST_BANKPAYMENT ?
display_order_header($_SESSION['journal_items']);
-start_table(TABLESTYLE2, "width=90%", 10);
+start_table(TABLESTYLE2, "width='90%'", 10);
start_row();
echo "<td>";
display_gl_items(_("Rows"), $_SESSION['journal_items']);
$customer_error = false;
div_start('pmt_header');
- start_outer_table(TABLESTYLE2, "width=90%"); // outer table
+ start_outer_table(TABLESTYLE2, "width='90%'"); // outer table
table_section(1);
display_heading($title);
div_start('items_table');
- start_table(TABLESTYLE, "colspan=7 width=95%");
+ start_table(TABLESTYLE, "width='95%'");
if ($dim == 2)
$th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1",
$qes = has_quick_entries(QE_JOURNAL);
$new = $Order->order_id==0;
- start_outer_table(TABLESTYLE2, "width=90%");
+
+ hidden('ref_original');
+ start_outer_table(TABLESTYLE2, "width='90%'");
table_section(1, $qes ? "20%" : "");
- start_row();
- date_cells(_("Date:"), 'date_', '', $new);
+ date_row(_("Date:"), 'date_', '', $new);
table_section(2, $qes ? "20%" : "50%");
- ref_cells(_("Reference:"), 'ref', '');
- hidden('ref_original');
- end_row();
-
+ ref_row(_("Reference:"), 'ref', '');
if ($new) {
table_section(3, "20%");
$dim = get_company_pref('use_dimension');
div_start('items_table');
- start_table(TABLESTYLE, "colspan=7 width=95%");
+ start_table(TABLESTYLE, "width='95%'");
if ($dim == 2)
$th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1",
_("Dimension")." 2", _("Debit"), _("Credit"), _("Memo"), "");
if ($dim > 1)
dimensions_list_cells(null, 'dimension2_id', null, true, " ", false, 2);
}
+
if ($dim < 1)
hidden('dimension_id', 0);
if ($dim < 2)
div_start('balance_tbl');
- start_table(TABLESTYLE, "width=30%");
+ start_table(TABLESTYLE, "width='30%'");
if (!$drilldown) //Root Level
{
while ($class = db_fetch($classresult))
{
$classclose = 0.0;
- $convert = get_class_type_convert($class["ctype"]);
+ $convert = get_class_type_convert($class["ctype"]);
$ctype = $class["ctype"];
$classname = $class["class_name"];
div_start('pl_tbl');
- start_table(TABLESTYLE, "width=50%");
+ start_table(TABLESTYLE, "width='50%'");
$tableheader = "<tr>
<td class='tableheader'>" . _("Group/Account Name") . "</td>
display_heading($systypes_array[ST_BANKTRANSFER] . " #$trans_no");
echo "<br>";
-start_table(TABLESTYLE, "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(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
if ($show_currencies)
{
if ($show_currencies)
display_heading2(_("Item Amounts are Shown in:") . " " . $company_currency);
- start_table(TABLESTYLE, "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(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
if ($show_currencies)
{
display_heading2(_("Item Amounts are Shown in:") . " " . $company_currency);
echo "<br>";
- start_table(TABLESTYLE, "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",
{
global $systypes_array;
$trans_name = $systypes_array[$_GET['type_id']];
- start_table(TABLESTYLE, "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(TABLESTYLE, "width=95%");
+ start_table(TABLESTYLE, "width='95%'");
table_header($th);
$heading_shown = true;
}
$edits = "editors = ".$Ajax->php2js($Editors).";";
$Ajax->addScript('editors', $edits);
- echo "<script>
+ echo "<script type='text/javascript'>
_focus = '" . get_post('_focus') . "';
_validate = " . $Ajax->php2js($Validate).";
var $edits
if ($clean)
$help_page_url = access_string($help_page_url, true);
- return $help_base_url
+ return htmlspecialchars($help_base_url
.urlencode(strtr(ucwords($help_page_url), array(' '=>'', '/'=>'', '&'=>'And')))
- .'&ctxhelp=1&lang='.$country;
+ .'&ctxhelp=1&lang='.$country);
}
function send_scripts()
$encoding = $_SESSION['language']->encoding;
if (!headers_sent()){
- header("Content-type: text/html; charset='$encoding'");
+ header("Content-type: text/html; charset=$encoding");
}
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
echo "<html dir='" . $_SESSION['language']->dir . "' >\n";
);
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Test"), _('Test type'), _("Value"), _("Comments"));
table_header($th);
{
if ($cart->currency != $cart->person_curr)
display_heading(sprintf(_("Allocated amounts in %s:"), $cart->person_curr));
- start_table(TABLESTYLE, "width=60%");
+ start_table(TABLESTYLE, "width='60%'");
$th = array(_("Transaction Type"), _("#"), $supp_ref ? _("Supplier Ref"): _("Ref"), _("Date"), _("Due Date"), _("Amount"),
_("Other Allocations"), _("Left to Allocate"), _("This Allocation"),'','');
$contacts = get_crm_persons($this->class, $this->subclass, $this->entity);
// check_value('show_inactive'));
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_('Assignment'), _("Reference"), _("Full Name"), _("Phone"), _("Sec Phone"), _("Fax"),
_("email"), '',
}
}
/* show a table of records returned by the sql */
- start_table(TABLESTYLE, "width=$pager->width");
+ start_table(TABLESTYLE, "width='$pager->width'");
table_header($headers);
if($pager->header_fun) { // if set header handler
}
switch($coltype) { // format column
case 'time':
- label_cell($cell, "width=40"); break;
+ label_cell($cell, "width='40'"); break;
case 'date':
label_cell(sql2date($cell), "align='center' nowrap"); break;
case 'dstamp': // time stamp displayed as date
function end_form($breaks=0)
{
- global $Ajax;
+ global $Ajax, $hidden_fields;
$_SESSION['csrf_token'] = hash('sha256', uniqid(mt_rand(), true));
if ($breaks)
hidden('_focus');
hidden('_modified', get_post('_modified', 0));
hidden('_token', $_SESSION['csrf_token']);
- echo "</form>\n";
+
+ echo implode('', $hidden_fields)."</form>\n";
$Ajax->activate('_token');
}
echo " class='tablestyle'";
if ($extra != "")
echo " $extra";
- echo " cellpadding=$padding cellspacing=$spacing>\n";
+ echo " cellpadding='$padding' cellspacing='$spacing'>\n";
}
function end_table($breaks=0)
if ($number > 1)
{
echo "</table>\n";
- $width = ($width ? "width=$width" : "");
+ $width = ($width ? "width='$width'" : "");
//echo "</td><td class='tableseparator' $width>\n"; // outer table
echo "</td><td style='border-left:1px solid #cccccc;' $width>\n"; // outer table
}
echo $attach;
}
$width = ($id != 0 ? "30%" : "20%");
- start_table(false, "width=$width");
+ start_table(false, "width='$width'");
start_row();
if ($no_menu)
{
}
//---------------------------------------------------------------------------------
+$hidden_fields = array(); // store for hiddn fields attached just before form end (for proper html validation)
function hidden($name, $value=null, $echo=true)
{
- global $Ajax;
+ global $Ajax, $hidden_fields;
if ($value === null)
$value = get_post($name);
$ret = "<input type=\"hidden\" name=\"$name\" value=\"$value\">";
$Ajax->addUpdate($name, $name, $value);
if ($echo)
- echo $ret."\n";
+ $hidden_fields[] = $ret;
else
return $ret;
}
} elseif (!is_bool($atype)) { // necessary: switch uses '=='
- $aspect = "aspect='$atype' ";
+ $aspect = " aspect='$atype' ";
$types = explode(' ', $atype);
foreach ($types as $type) {
." name=\"$name\" id=\"$name\" value=\"$value\""
.($title ? " title='$title'" : '')
.">"
- .($icon ? "<img src='$path_to_root/themes/".user_theme()."/images/$icon' height='12'>" : '')
+ .($icon ? "<img src='$path_to_root/themes/".user_theme()."/images/$icon' height='12' alt=''>" : '')
."<span>$value</span>"
."</button>\n";
if ($echo)
global $path_to_root;
if (basename($icon) === $icon) // standard icons does not contain path separator
$icon = "$path_to_root/themes/".user_theme()."/images/$icon";
- return "<img src='$icon' width='12' height='12' border='0'".($title ? " title='$title'" : "")." />\n";
+ return "<img src='$icon' width='12' height='12' border='0'".($title ? " title='$title'" : "")." >\n";
}
function button($name, $value, $title=false, $icon=false, $aspect='')
."' value='1'" . ($title ? " title='$title'":" title='$value'")
. ($aspect ? " aspect='$aspect'" : '')
. $rel
- ." />".set_icon($icon)."</button>\n";
+ ." >".set_icon($icon)."</button>\n";
}
else
return "<input type='submit' class='editbutton' name='"
.($title ? " title='$title'":'')
. ($aspect ? " aspect='$aspect'" : '')
. $rel
- ." />\n";
+ ." >\n";
}
function button_cell($name, $value, $title=false, $icon=false, $aspect='')
label_cell(number_format2($label, $dec), "nowrap align=right", $id);
}
-function label_cells($label, $value, $params="", $params2="", $id='')
+function label_cells($label, $value, $params="", $params2="", $id=null)
{
if ($label != null)
echo "<td $params>$label</td>\n";
label_cell($value, $params2, $id);
}
-function label_row($label, $value, $params="", $params2="", $leftfill=0, $id='')
+function label_row($label, $value, $params="", $params2="", $leftfill=0, $id=null)
{
echo "<tr>";
if ($params == "")
function password_row($label, $name, $value)
{
echo "<tr><td class='label'>$label</td>";
- label_cell("<input type='password' name='$name' size=20 maxlength=20 value='$value' />");
+ label_cell("<input type='password' name='$name' size=20 maxlength=20 value='$value' >");
echo "</tr>\n";
}
{
if ($id != "")
$id = "id='$id'";
- label_cells($label, "<input type='file' name='$name' $id />");
+ label_cells($label, "<input type='file' name='$name' $id >");
}
function file_row($label, $name, $id = "")
{
}
$cat = $contact_row[$opts['category']];
if ($opts['category'] !== false && $cat != $lastcat){
+ if ($lastcat!==null)
+ $selector .= "</optgroup>";
$selector .= "<optgroup label='".$cat."'>\n";
$lastcat = $cat;
}
$selector .= "<option $sel $optclass value='$value'>$descr</option>\n";
}
+ if ($lastcat!==null)
+ $selector .= "</optgroup>";
db_free_result($result);
}
if ($first_id!==false) {
$sel = ($found===$first_id) || ($found===false && ($spec_option===false)) ? "selected='selected'" : '';
- $selector = sprintf($first_opt, $sel).$selector;
}
// Prepend special option.
if ($spec_option !== false) { // if special option used - add it
display_notification($msg, true);
}
+function display_caption($msg)
+{
+ echo "<caption>$msg</caption>\n";
+}
+
function display_heading($msg)
{
echo "<center><span class='headingtext'>$msg</span></center>\n";
if ($void_entry == null)
return false;
- start_table(TABLESTYLE, "width=50%");
+ 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)
display_heading2(($payments ? _("Payments") : _("Allocations")));
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array( _("Type"), _("Number"), _("Date"), _("Total Amount"),
_("Left to Allocate"), _("This Allocation"));
display_heading(sprintf(_("Content information for package '%s'"), $_GET['id']));
br();
-start_table(TABLESTYLE2, "width=80%");
+start_table(TABLESTYLE2, "width='80%'");
$th = array(_("Property"), _("Value"));
table_header($th);
{
global $path_to_root;
- echo '<center><img src="'.$path_to_root.'/themes/default/images/logo_frontaccounting.png" width="250" height="50" alt="Logo" />
+ echo '<center><img src="'.$path_to_root.'/themes/default/images/logo_frontaccounting.png" width="250" height="50" alt="Logo" >
</center>';
$page = @$_POST['Page'] ? $_POST['Page'] : 1;
display_order_header($_SESSION['adj_items']);
-start_outer_table(TABLESTYLE, "width=70%", 10);
+start_outer_table(TABLESTYLE, "width='70%'", 10);
display_adjustment_items(_("Adjustment Items"), $_SESSION['adj_items']);
adjustment_options_controls();
{
global $Refs;
- start_outer_table(TABLESTYLE2, "width=70%"); // outer table
+ start_outer_table(TABLESTYLE2, "width='70%'"); // outer table
table_section(1);
locations_list_row(_("Location:"), 'StockLocation', null);
display_heading($title);
div_start('items_table');
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Unit"), _("Unit Cost"), _("Total"), "");
if ( count($order->line_items)) $th[] = '';
{
global $Refs;
- start_outer_table(TABLESTYLE, "width=70%");
+ start_outer_table(TABLESTYLE, "width='70%'");
table_section(1);
display_heading($title);
div_start('items_table');
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), '');
if ( count($order->line_items)) $th[] = '';
table_header($th);
$result = get_item_categories(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
$th = array(_("Name"), _("Tax type"), _("Units"), _("Type"), _("Sales Act"),
_("Inventory Account"), _("COGS Account"), _("Adjustment Account"),
_("Assembly Account"), "", "");
$result = get_all_item_codes($_POST['stock_id']);
div_start('code_table');
- start_table(TABLESTYLE, "width=60%");
+ start_table(TABLESTYLE, "width='60%'");
$th = array(_("EAN/UPC Code"), _("Quantity"), _("Units"),
_("Description"),_("Category"), "", "");
$result = get_all_item_units(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=40%");
+start_table(TABLESTYLE, "width='40%'");
$th = array(_('Unit'), _('Description'), _('Decimals'), "", "");
inactive_control_column($th);
$result = get_all_movement_type(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
$th = array(_("Description"), "", "");
inactive_control_column($th);
{
$result = get_item_kit($selected_kit);
div_start('bom');
- start_table(TABLESTYLE, "width=60%");
+ start_table(TABLESTYLE, "width='60%'");
$th = array(_("Stock Item"), _("Description"), _("Quantity"), _("Units"),
'','');
table_header($th);
$prices_list = get_prices($_POST['stock_id']);
div_start('price_table');
-start_table(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
$th = array(_("Currency"), _("Sales Type"), _("Price"), "", "");
table_header($th);
}
else
{
- start_table(TABLESTYLE, "width=65%");
+ start_table(TABLESTYLE, "width='65%'");
$th = array(_("Supplier"), _("Price"), _("Currency"),
_("Supplier's Unit"), _("Conversion Factor"), _("Supplier's Description"), "", "");
set_global_stock_item($_POST['stock_id']);
div_start('reorders');
-start_table(TABLESTYLE, "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(TABLESTYLE, "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(TABLESTYLE2, "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(TABLESTYLE, "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(TABLESTYLE2, "width=90%");
+start_table(TABLESTYLE2, "width='90%'");
start_row();
label_cells(_("Item"), $from_trans['stock_id'] . " - " . $from_trans['description'], "class='tableheader2'");
end_table(2);
-start_table(TABLESTYLE, "width=90%");
+start_table(TABLESTYLE, "width='90%'");
$th = array(_("Item"), _("Description"), _("Quantity"), _("Units"));
table_header($th);
else
{
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Component"), _("From Location"), _("Work Centre"),
_("Unit Quantity"), _("Total Quantity"), _("Units Issued"), _("On Hand"));
exit;
}
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
if ($myrow["released"] == true)
$th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
exit;
}
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
_("Into Location"), _("Date"), _("Quantity"));
display_heading($title);
div_start('items_table');
- start_table(TABLESTYLE, "width=80% colspan=7");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Unit"), _("Unit Cost"), '');
if ( count($order->line_items)) $th[] = '';
{
$result = get_bom($selected_parent);
div_start('bom');
- start_table(TABLESTYLE, "width=60%");
+ start_table(TABLESTYLE, "width='60%'");
$th = array(_("Code"), _("Description"), _("Location"),
_("Work Centre"), _("Quantity"), _("Units"),'','');
table_header($th);
$result = get_all_work_centres(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=50%");
+start_table(TABLESTYLE, "width='50%'");
$th = array(_("Name"), _("description"), "", "");
inactive_control_column($th);
table_header($th);
start_form();
-start_table(TABLESTYLE, "width=90%", 10);
+start_table(TABLESTYLE, "width='90%'", 10);
echo "<tr><td>";
display_issue_items(_("Items to Issue"), $_SESSION['issue_items']);
issue_options_controls();
function display_grn_summary(&$po)
{
global $Refs;
- start_table(TABLESTYLE2, "width=90%");
+ start_table(TABLESTYLE2, "width='90%'");
start_row();
label_cells(_("Supplier"), $po->supplier_name, "class='tableheader2'");
{
global $Refs;
- start_outer_table(TABLESTYLE2, "width=80%");
+ start_outer_table(TABLESTYLE2, "width='80%'");
table_section(1);
label_row(_("Supplier"), $po->supplier_name);
if (!isset($_POST['tran_date']))
copy_from_trans($supp_trans);
- start_outer_table(TABLESTYLE2, "width=95%");
+ start_outer_table(TABLESTYLE2, "width='95%'");
table_section(1);
$dim = get_company_pref('use_dimension');
$colspan = ($dim == 2 ? 7 : ($dim == 1 ? 6 : 5));
- start_table(TABLESTYLE, "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);
else
$heading = _("GL Items for this Credit Note");
- start_outer_table(TABLESTYLE, "width=95%");
+ start_outer_table(TABLESTYLE, "width='95%'");
if ($mode == 1)
{
end_outer_table(0, false);
div_start('gl_items');
- start_table(TABLESTYLE, "width=95%");
+ start_table(TABLESTYLE, "width='95%'");
$dim = get_company_pref('use_dimension');
if ($dim == 2)
if (($mode == 2 || $mode == 3) && count($supp_trans->grn_items) == 0)
return 0;
- start_outer_table("style='border:1px solid #cccccc;' width=95%");
+ start_outer_table("style='border:1px solid #cccccc;' width='95%'");
$heading2 = "";
if ($mode == 1)
{
display_note($heading2, 0, 0, "class='overduefg'");
}
- echo "</td><td width=10% align='right'>";
+ echo "</td><td width='10%' align='right'>";
submit('InvGRNAll', _("Add All Items"), true, false,true);
}
end_outer_table(0, false);
div_start('grn_items');
- start_table(TABLESTYLE, "width=95%");
+ start_table(TABLESTYLE, "width='95%'");
if ($mode == 1)
{
$th = array(_("Delivery"), _("P.O."), _("Item"), _("Description"),
$editable = ($order->order_no == 0);
- start_outer_table(TABLESTYLE2, 'width=80%');
+ start_outer_table(TABLESTYLE2, "width='80%'");
table_section(1);
if ($editable)
display_heading(_("Order Items"));
div_start('items_table');
- start_table(TABLESTYLE, "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)
{
- start_table(TABLESTYLE, "width=90%");
+ start_table(TABLESTYLE, "width='90%'");
start_row();
label_cells(_("Reference"), $po->reference, "class='tableheader2'");
$pastdue2 = _('Over') . " " . $past2 . " " . _('Days');
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Currency"), _("Terms"), _("Current"), $nowdue,
$pastdue1, $pastdue2, _("Total Balance"));
function display_po_receive_items()
{
div_start('grn_items');
- start_table(TABLESTYLE, "colspan=7 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(TABLESTYLE2, "width=60%", 5);
+ start_outer_table(TABLESTYLE2, "width='60%'", 5);
table_section(1);
show_allocatable(false);
div_end();
- start_table(TABLESTYLE, "width=60%");
+ start_table(TABLESTYLE, "width='60%'");
amount_row(_("Amount of Discount:"), 'discount', null, '', $supplier_currency);
amount_row(_("Amount of Payment:"), 'amount', null, '', $supplier_currency);
textarea_row(_("Memo:"), 'memo_', null, 22, 4);
display_heading2(_("Line Details"));
-start_table(TABLESTYLE, "colspan=9 width=90%");
+start_table(TABLESTYLE, "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(TABLESTYLE, "width=90%", 6);
+start_table(TABLESTYLE, "width='90%'", 6);
echo "<tr><td valign=top>"; // outer table
display_heading2(_("Line Details"));
-start_table(TABLESTYLE, "colspan=9 width=100%");
+start_table(TABLESTYLE, "width='100%'");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), _("Price"),
_("Requested By"), _("Line Total"), _("Quantity Received"), _("Quantity Invoiced"));
display_heading("<font color=red>" . _("SUPPLIER CREDIT NOTE") . " # " . $trans_no . "</font>");
echo "<br>";
-start_table(TABLESTYLE, "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(TABLESTYLE, "width=95%");
-label_row(_("Sub Total"), $display_sub_tot, "align=right", "nowrap align=right width=17%");
+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_supp_trans_tax_details($tax_items, 1);
display_heading(_("SUPPLIER INVOICE") . " # " . $trans_no);
echo "<br>";
-start_table(TABLESTYLE, "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(TABLESTYLE, "width=95%");
-label_row(_("Sub Total"), $display_sub_tot, "align=right", "nowrap align=right width=15%");
+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_supp_trans_tax_details($tax_items, 1);
display_heading(_("Payment to Supplier") . " #$trans_no");
echo "<br>";
-start_table(TABLESTYLE2, "width=80%");
+start_table(TABLESTYLE2, "width='80%'");
start_row();
label_cells(_("To Supplier"), $receipt['supplier_name'], "class='tableheader2'");
."$acc[1]>$acc[0]</a> <br>";
$style = $class_id==$cur_class ? '' : "style='display:none'";
- $st_reports .= "<table class='repclass' id='TAB_" . $class_id ."' $style cellpadding=0 cellspacing=0 border=0 width='100%'><tr><td><b>" . _("Reports For Class: ") . " $name</b></td></tr>\n";
+ $st_reports .= "<table class='repclass' id='TAB_" . $class_id ."' $style cellpadding='0' cellspacing='0' border='0' width='100%'><tr><td><b>" . _("Reports For Class: ") . " $name</b></td></tr>\n";
foreach($this->ar_reports[$class_id] as $rep_id => $report)
{
$acc = access_string($report->name);
end_row();
end_table();
-start_table(TABLESTYLE, "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(TABLESTYLE, "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']);
start_form();
hidden('cart_id');
- start_table(TABLESTYLE2, "width=80%", 5);
+ start_table(TABLESTYLE2, "width='80%'", 5);
echo "<tr><td>"; // outer table
- start_table(TABLESTYLE, "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(TABLESTYLE, "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(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Item Code"), _("Item Description"), _("Invoiced Quantity"), _("Units"),
_("Credit Quantity"), _("Price"), _("Discount %"), _("Total"));
table_header($th);
start_form();
hidden('cart_id');
-start_table(TABLESTYLE2, "width=80%", 5);
+start_table(TABLESTYLE2, "width='80%'", 5);
echo "<tr><td>"; // outer table
-start_table(TABLESTYLE, "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(TABLESTYLE, "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(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
$new = $_SESSION['Items']->trans_no==0;
$th = array(_("Item Code"), _("Item Description"),
start_form();
hidden('cart_id');
-start_table(TABLESTYLE2, "width=80%", 5);
+start_table(TABLESTYLE2, "width='80%'", 5);
start_row();
$colspan = 1;
display_heading(_("Invoice Items"));
div_start('Items');
-start_table(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
$th = array(_("Item Code"), _("Item Description"), _("Delivered"), _("Units"), _("Invoiced"),
_("This Invoice"), _("Price"), _("Tax Type"), _("Discount"), _("Total"));
if ($dn_line_cnt == 0) {
$dn_line_cnt = $dspans[0];
$dspans = array_slice($dspans, 1);
- label_cell($ln_itm->src_no, "rowspan=$dn_line_cnt class=oddrow");
+ label_cell($ln_itm->src_no, "rowspan=$dn_line_cnt class='oddrow'");
label_cell("<a href='" . $_SERVER['PHP_SELF'] . "?RemoveDN=".
- $ln_itm->src_no."'>" . _("Remove") . "</a>", "rowspan=$dn_line_cnt class=oddrow");
+ $ln_itm->src_no."'>" . _("Remove") . "</a>", "rowspan=$dn_line_cnt class='oddrow'");
}
$dn_line_cnt--;
}
hidden('trans_no');
hidden('old_ref', $old_ref);
- start_outer_table(TABLESTYLE2, "width=60%", 5);
+ start_outer_table(TABLESTYLE2, "width='60%'", 5);
table_section(1);
show_allocatable(false);
div_end();
- start_table(TABLESTYLE, "width=60%");
+ start_table(TABLESTYLE, "width='60%'");
label_row(_("Customer prompt payment discount :"), $display_discount_percent);
{
global $Ajax, $Refs;
- start_outer_table(TABLESTYLE, "width=80%");
+ start_outer_table(TABLESTYLE, "width='80%'");
table_section(1);
$customer_error = "";
display_heading($title);
div_start('items_table');
- start_table(TABLESTYLE, "width=90%");
+ start_table(TABLESTYLE, "width='90%'");
$th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"),
_("Price"), _("Discount %"), _("Total"),'');
display_heading($title);
div_start('items_table');
- start_table(TABLESTYLE, "colspan=7 width=90%");
+ start_table(TABLESTYLE, "width='90%'");
+
$th = array(_("Item Code"), _("Item Description"), _("Quantity"),
_("Delivered"),
_("Unit"), $order->tax_included ? _("Price after Tax") : _("Price before Tax"), _("Discount %"), _("Total"), "");
{
global $Ajax, $SysPrefs;
- start_outer_table(TABLESTYLE2, "width=80%");
+ start_outer_table(TABLESTYLE2, "width='80%'");
table_section(1);
label_row(_("Customer Discount:"), ($order->default_discount * 100) . "%");
table_section(3);
+ start_row();
if ($order->pos['cash_sale'] || $order->pos['credit_sale']) {
// editable payment type
if (get_post('payment') !== $order->payment) {
} else {
label_cells(_('Payment:'), $order->payment_terms['terms']);
}
+ end_row();
if($editable) {
$str = sales_types_list_row(_("Price List:"), 'sales_type', null, true);
if ($order->payment_terms['cash_sale']) { // Direct payment sale
$Ajax->activate('items_table');
display_heading(_('Cash payment'));
- start_table(TABLESTYLE2, "width=60%");
+ start_table(TABLESTYLE2, "width='60%'");
locations_list_row(_("Deliver from Location:"), 'Location', null, false, true);
if (list_updated('Location'))
$delname = _("Required Delivery Date").':';
}
display_heading($title);
- start_outer_table(TABLESTYLE2, "width=90%");
+ start_outer_table(TABLESTYLE2, "width='90%'");
table_section(1);
locations_list_row(_("Deliver from Location:"), 'Location', null, false, true);
$pastdue1 = $past1 + 1 . "-" . $past2 . " " . _('Days');
$pastdue2 = _('Over') . " " . $past2 . " " . _('Days');
- start_table(TABLESTYLE, "width=80%");
+ start_table(TABLESTYLE, "width='80%'");
$th = array(_("Currency"), _("Terms"), _("Current"), $nowdue,
$pastdue1, $pastdue2, _("Total Balance"));
table_header($th);
$result = get_sales_areas(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
$th = array(_("Area Name"), "", "");
inactive_control_column($th);
$result = get_sales_groups(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
$th = array(_("ID"), _("Group Name"), "", "");
inactive_control_column($th);
$result = get_salesmen(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "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);
$result = get_all_sales_types(check_value('show_inactive'));
start_form();
-start_table(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
$th = array (_('Type Name'), _('Factor'), _('Tax Incl'), '','');
inactive_control_column($th);
($_SESSION['Items']->any_already_delivered() == 0), $idate);
if ($customer_error == "") {
- start_table(TABLESTYLE, "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(TABLESTYLE2, "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(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
$th = array(_("Customer"));
table_header($th);
echo "</td><td>"; // outer table
-start_table(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
$th = array(_("Branch"));
table_header($th);
echo "</td><td>"; // outer table
-start_table(TABLESTYLE, "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(TABLESTYLE, "width=95%");
+start_table(TABLESTYLE, "width='95%'");
if (db_num_rows($result) > 0)
{
/*Print out the invoice text entered */
if ($sub_total != 0)
label_row(_("Sub Total"), $display_sub_tot, "colspan=6 align=right",
- "nowrap align=right width=15%");
+ "nowrap align=right width='15%'");
label_row(_("Shipping"), $display_freight, "colspan=6 align=right", "nowrap align=right");
$tax_items = get_trans_tax_details(ST_CUSTCREDIT, $trans_id);
display_heading(sprintf(_("DISPATCH NOTE #%d"),$trans_id));
echo "<br>";
-start_table(TABLESTYLE2, "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(TABLESTYLE, "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(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
$th = array(_("Charge Branch"));
table_header($th);
echo "</td><td>"; // outer table
-start_table(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
$th = array(_("Delivered To"));
table_header($th);
echo "</td><td>"; // outer table
-start_table(TABLESTYLE, "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(TABLESTYLE, "width=95%");
+start_table(TABLESTYLE, "width='95%'");
if (db_num_rows($result) > 0)
{
} //end while there are line items to print out
$display_sub_tot = price_format($sub_total);
label_row(_("Sub-total"), $display_sub_tot, "colspan=6 align=right",
- "nowrap align=right width=15%");
+ "nowrap align=right width='15%'");
}
else
display_heading(sprintf(_("SALES INVOICE #%d"),$trans_id));
echo "<br>";
-start_table(TABLESTYLE2, "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(TABLESTYLE, "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(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
$th = array(_("Charge Branch"));
table_header($th);
echo "</td><td>"; // outer table
-start_table(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
$th = array(_("Payment Terms"));
table_header($th);
$paym = get_payment_terms($myrow['payment_terms']);
echo "</td><td>"; // outer table
-start_table(TABLESTYLE, "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(TABLESTYLE, "width=95%");
+start_table(TABLESTYLE, "width='95%'");
if (db_num_rows($result) > 0)
{
$display_sub_tot = price_format($sub_total);
label_row(_("Sub-total"), $display_sub_tot, "colspan=6 align=right",
- "nowrap align=right width=15%");
+ "nowrap align=right width='15%'");
}
else
display_note(_("There are no line items on this invoice."), 1, 2);
display_heading(sprintf(_("Customer Payment #%d"),$trans_id));
echo "<br>";
-start_table(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
start_row();
label_cells(_("From Customer"), $receipt['DebtorName'], "class='tableheader2'");
label_cells(_("Reference"), $receipt['reference'], "class='tableheader2'");
$_SESSION['View'] = new Cart($_GET['trans_type'], $_GET['trans_no']);
-start_table(TABLESTYLE2, "width=95%", 5);
+start_table(TABLESTYLE2, "width='95%'", 5);
if ($_GET['trans_type'] != ST_SALESQUOTE)
{
echo "<tr valign=top><td>";
-start_table(TABLESTYLE, "width=95%");
+start_table(TABLESTYLE, "width='95%'");
label_row(_("Customer Name"), $_SESSION['View']->customer_name, "class='tableheader2'",
"colspan=3");
start_row();
display_note(_("This Sales Order is used as a Template."), 0, 0, "class='currentfg'");
display_heading2(_("Line Details"));
-start_table(TABLESTYLE, "colspan=9 width=95%");
+start_table(TABLESTYLE, "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(TABLESTYLE, "width=30%");
+start_table(TABLESTYLE, "width='30%'");
$th = array(_("Name"), _("Tax exempt"),'','');
inactive_control_column($th);
table_header($th);
$img = $category == '' ? 'right.gif' : $category.'.png';
else
$img = 'right.gif';
- return "<img src='$path_to_root/themes/aqua/images/$img' style='vertical-align:middle;' border='0'> ";
+ return "<img src='$path_to_root/themes/aqua/images/$img' style='vertical-align:middle;' border='0' ".basename($img)."> ";
}
function wa_header()
$local_path_to_root = $path_to_root;
$sel_app = $_SESSION['sel_app'];
- echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
- echo "<div class=tabs>";
+ echo "<table cellpadding='0' cellspacing='0' width='100%'><tr><td>";
+ echo "<div class='tabs'>";
foreach($applications as $app)
{
if ($_SESSION["wa_current_user"]->check_application_access($app))
$img = "<img src='$local_path_to_root/themes/aqua/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
$himg = "<img src='$local_path_to_root/themes/aqua/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
- echo "<table class=logoutBar>";
- echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
+ echo "<table class='logoutBar'>";
+ echo "<tr><td class='headingtext3'>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
$indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
- echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
+ echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td>";
echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
if ($no_menu == false) // bottom status line
{
if ($is_index)
- echo "<table class=bottomBar>\n";
+ echo "<table class='bottomBar'>\n";
else
- echo "<table class=bottomBar2>\n";
+ echo "<table class='bottomBar2'>\n";
echo "<tr>";
if (isset($_SESSION['wa_current_user'])) {
$phelp = implode('; ', $Pagehelp);
- echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
+ echo "<td class='bottomBarCell'>" . Today() . " | " . Now() . "</td>\n";
$Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
- echo "<td id='hotkeyshelp'>".$phelp."</td>";
+ echo "<td id='hotkeyshelp'>".$phelp.'</td>';
}
- echo "</td></tr></table>\n";
+ echo "</tr></table>\n";
}
echo "</td></tr> </table>\n"; // 'callout_main'
if ($no_menu == false)
return;
}
- echo "<table width=100% cellpadding='0' cellspacing='0'>";
+ echo "<table width='100%' cellpadding='0' cellspacing='0'>";
foreach ($selected_app->modules as $module)
{
if (!$_SESSION["wa_current_user"]->check_module_access($module))
$local_path_to_root = $path_to_root;
$sel_app = $_SESSION['sel_app'];
- echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
- echo "<div class=tabs>";
+ echo "<table cellpadding='0' cellspacing='0' width='100%'><tr><td>";
+ echo "<div class='tabs'>";
foreach($applications as $app)
{
if ($_SESSION["wa_current_user"]->check_application_access($app))
$img = "<img src='$local_path_to_root/themes/aqua/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
$himg = "<img src='$local_path_to_root/themes/aqua/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
- echo "<table class=logoutBar>";
- echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
+ echo "<table class='logoutBar'>";
+ echo "<tr><td class='headingtext3'>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
$indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
- echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
+ echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='middle' style='visibility:hidden;'></td>";
echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
if ($no_menu == false) // bottom status line
{
if ($is_index)
- echo "<table class=bottomBar>\n";
+ echo "<table class='bottomBar'>\n";
else
- echo "<table class=bottomBar2>\n";
+ echo "<table class='bottomBar2'>\n";
echo "<tr>";
if (isset($_SESSION['wa_current_user'])) {
$phelp = implode('; ', $Pagehelp);
- echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
+ echo "<td class='bottomBarCell'>" . Today() . " | " . Now() . "</td>\n";
$Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
echo "<td id='hotkeyshelp'>".$phelp."</td>";
}
- echo "</td></tr></table>\n";
+ echo "</tr></table>\n";
}
echo "</td></tr> </table>\n"; // 'callout_main'
if ($no_menu == false)
if ($allow_demo_mode==true)
{
echo "<tr>\n";
- //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&type=5' alt='SourceForge.net Logo' width='210' height='62' border='0' align='middle' /></a></div></td>\n";
+ //echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&type=5' alt='SourceForge.net Logo' width='210' height='62' border='0' align='center' /></a></div></td>\n";
echo "</tr>\n";
}
echo "</table><br><br>\n";
return;
}
- echo "<table width=100% cellpadding='0' cellspacing='0'>";
+ echo "<table width='100%' cellpadding='0' cellspacing='0'>";
foreach ($selected_app->modules as $module)
{
if (!$_SESSION["wa_current_user"]->check_module_access($module))
$img = $category == '' ? 'right.gif' : $category.'.png';
else
$img = 'right.gif';
- return "<img src='$path_to_root/themes/default/images/$img' style='vertical-align:middle;' border='0'> ";
+ return "<img src='$path_to_root/themes/default/images/$img' style='vertical-align:middle;' border='0' ".basename($img)."> ";
}
function wa_header()
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
$sel_app = $_SESSION['sel_app'];
- echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
- echo "<div class=tabs>";
+ echo "<table cellpadding='0' cellspacing='0' width='100%'><tr><td>";
+ echo "<div class='tabs'>";
foreach($applications as $app)
{
if ($_SESSION["wa_current_user"]->check_application_access($app))
// top status bar
$img = "<img src='$local_path_to_root/themes/default/images/login.gif' width='14' height='14' border='0' alt='"._('Logout')."'> ";
$himg = "<img src='$local_path_to_root/themes/default/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
- echo "<table class=logoutBar>";
- echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
+ echo "<table class='logoutBar'>";
+ echo "<tr><td class='headingtext3'>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
$indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
- echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
+ echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='middle' style='visibility:hidden;' alt='ajaxmark'></td>";
echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
if ($no_menu == false) // bottom status line
{
if ($is_index)
- echo "<table class=bottomBar>\n";
+ echo "<table class='bottomBar'>\n";
else
- echo "<table class=bottomBar2>\n";
+ echo "<table class='bottomBar2'>\n";
echo "<tr>";
if (isset($_SESSION['wa_current_user'])) {
$phelp = implode('; ', $Pagehelp);
- echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
+ echo "<td class='bottomBarCell'>" . Today() . " | " . Now() . "</td>\n";
$Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
echo "<td id='hotkeyshelp'>".$phelp."</td>";
}
- echo "</td></tr></table>\n";
+ echo "</tr></table>\n";
}
echo "</td></tr> </table>\n"; // 'callout_main'
- echo "</table>\n";
if ($no_menu == false)
{
echo "<table align='center' id='footer'>\n";
return;
}
- echo "<table width=100% cellpadding='0' cellspacing='0'>";
+ echo "<table width='100%' cellpadding='0' cellspacing='0'>";
foreach ($selected_app->modules as $module)
{
if (!$_SESSION["wa_current_user"]->check_module_access($module))