Fixed many issues in output HTML code according to HTML 4.01 Transitional format.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 12 Mar 2015 12:00:10 +0000 (13:00 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 12 Mar 2015 13:27:57 +0000 (14:27 +0100)
85 files changed:
access/login.php
access/logout.php
access/password_reset.php
admin/create_coy.php
admin/crm_categories.php
admin/db/attachments_db.inc
admin/inst_upgrade.php
admin/security_roles.php
gl/gl_bank.php
gl/gl_journal.php
gl/includes/ui/gl_bank_ui.inc
gl/includes/ui/gl_journal_ui.inc
gl/inquiry/balance_sheet.php
gl/inquiry/profit_loss.php
gl/view/bank_transfer_view.php
gl/view/gl_deposit_view.php
gl/view/gl_payment_view.php
gl/view/gl_trans_view.php
includes/page/footer.inc
includes/page/header.inc
includes/system_tests.inc
includes/ui/allocation_cart.inc
includes/ui/contacts_view.inc
includes/ui/db_pager_view.inc
includes/ui/ui_controls.inc
includes/ui/ui_input.inc
includes/ui/ui_lists.inc
includes/ui/ui_msgs.inc
includes/ui/ui_view.inc
includes/ui/view_package.php
install/index.php
inventory/adjustments.php
inventory/includes/item_adjustments_ui.inc
inventory/includes/stock_transfers_ui.inc
inventory/manage/item_categories.php
inventory/manage/item_codes.php
inventory/manage/item_units.php
inventory/manage/movement_types.php
inventory/manage/sales_kits.php
inventory/prices.php
inventory/purchasing_data.php
inventory/reorder_level.php
inventory/transfers.php
inventory/view/view_adjustment.php
inventory/view/view_transfer.php
manufacturing/includes/manufacturing_ui.inc
manufacturing/includes/work_order_issue_ui.inc
manufacturing/manage/bom_edit.php
manufacturing/manage/work_centres.php
manufacturing/work_order_issue.php
purchasing/includes/ui/grn_ui.inc
purchasing/includes/ui/invoice_ui.inc
purchasing/includes/ui/po_ui.inc
purchasing/inquiry/supplier_inquiry.php
purchasing/po_receive_items.php
purchasing/supplier_payment.php
purchasing/view/view_grn.php
purchasing/view/view_po.php
purchasing/view/view_supp_credit.php
purchasing/view/view_supp_invoice.php
purchasing/view/view_supp_payment.php
reporting/includes/reports_classes.inc
sales/create_recurrent_invoices.php
sales/credit_note_entry.php
sales/customer_credit_invoice.php
sales/customer_delivery.php
sales/customer_invoice.php
sales/customer_payments.php
sales/includes/ui/sales_credit_ui.inc
sales/includes/ui/sales_order_ui.inc
sales/inquiry/customer_inquiry.php
sales/manage/sales_areas.php
sales/manage/sales_groups.php
sales/manage/sales_people.php
sales/manage/sales_types.php
sales/sales_order_entry.php
sales/view/view_credit.php
sales/view/view_dispatch.php
sales/view/view_invoice.php
sales/view/view_receipt.php
sales/view/view_sales_order.php
taxes/item_tax_types.php
themes/aqua/renderer.php
themes/cool/renderer.php
themes/default/renderer.php

index 45294376db2c38bfc262a99fac70dd554ab62cf2..0233354f0e4be510a99e3414ae6cca44935dc2e7 100644 (file)
@@ -36,7 +36,7 @@ function defaultCompany()
 
        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;
@@ -57,7 +57,7 @@ function defaultCompany()
        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();
@@ -78,14 +78,14 @@ function defaultCompany()
        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":"");
@@ -119,7 +119,7 @@ function defaultCompany()
        }; 
        end_table(1);
        echo "<center><input type='submit' value='&nbsp;&nbsp;"._("Login -->")."&nbsp;&nbsp;' 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
index 0e28a56db7c16434d63c99879c3f2dc88918291e..ddf5ff4c64ce0261ff2ff5ce0ce6616f8511dba5 100644 (file)
@@ -22,7 +22,7 @@ page_header(_("Logout"), true, false, '');
 
 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>&nbsp;</td>
index 4ed58a2f571fdc8b0f62833a3980748d0520096f..8ad67026e4c58237e3597e608d2a33f397a0ec07 100644 (file)
@@ -36,7 +36,7 @@ function defaultCompany()
        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();
@@ -53,11 +53,11 @@ function defaultCompany()
        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);
@@ -81,7 +81,7 @@ function defaultCompany()
   end_row();
        end_table(1);
        echo "<center><input type='submit' value='&nbsp;&nbsp;"._("Send password -->")."&nbsp;&nbsp;' name='SubmitReset'
-                onclick='set_fullmode();' /></center>\n";
+                onclick='set_fullmode();'></center>\n";
 
        end_form(1);
        $Ajax->addScript(true, "document.forms[0].password.focus();");
index db276a063fa5b0627a704966204fe9d40b45a6b5..999f376c8fb93e80d5c6e77629ed2a59d36abda0 100644 (file)
@@ -241,7 +241,7 @@ function display_companies()
        $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
index 372faa71637995cff71b84c3f94d9658f5060d93..f043443af4e680f70cc2c13b16fab6654c9a5071 100644 (file)
@@ -92,7 +92,7 @@ if ($Mode == 'RESET')
 $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"),  "", "&nbsp;");
 inactive_control_column($th);
index 5712b22a9480cf1182ae8db4c51d4c076d2503cb..49f73b096edd18e3c2be8e3ae1edd612e11327d7 100644 (file)
@@ -65,9 +65,9 @@ function get_attachment_string($type, $id)
         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>";
 }
 
 //----------------------------------------------------------------------------------------
index 9691b22e0eedeb4aa15bf0f1bf2958d09031b11f..d650aafa73b7900152b93f18d910769d00bc9d09 100644 (file)
@@ -157,7 +157,7 @@ foreach($installers as $i => $inst)
                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++;
                }
index f8b44552b4630b78b756757edb5082f487e98360..8c96b1eb13edb37f8a39a7f8e370f8721e255fdd 100644 (file)
@@ -197,7 +197,7 @@ start_table(TABLESTYLE2);
        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;
index 788cf83b26595d16e943bfe1c1e7613f5ef36233..5bc7cecd4af4c8f806c878ccfc49c4c0fccfc112 100644 (file)
@@ -401,7 +401,7 @@ start_form();
 
 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 ?
index be1dc607c0c16a50c5055df236cfde030b1cfd83..6d1fd90a034f19056827ffcabcaaacb0f8f45431 100644 (file)
@@ -323,7 +323,7 @@ start_form();
 
 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']);
index 7d98271b88462c99ef6964fb9b668989caf915f7..981569c420943b06583a958f3daa11ad14bdd664 100644 (file)
@@ -17,7 +17,7 @@ function display_bank_header(&$order)
        $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);
        
@@ -146,7 +146,7 @@ function display_gl_items($title, &$order)
        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",
index 8c4aec6ae44d2b27e7db29c0c6013add32e4a7b4..1bb56c2a2f93271525a2cb3444f66c50dbfe3995 100644 (file)
@@ -20,17 +20,15 @@ function display_order_header(&$Order)
 
        $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%");
@@ -78,7 +76,7 @@ function display_gl_items($title, &$order)
        $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"), "");
@@ -207,6 +205,7 @@ function gl_edit_item_controls(&$order, $dim, $Index=null)
                if ($dim > 1)
                        dimensions_list_cells(null, 'dimension2_id', null, true, " ", false, 2);
        }
+
        if ($dim < 1)
                hidden('dimension_id', 0);
        if ($dim < 2)
index 01dc3c1e328c1c9db42636bfb9352b2131a15b18..7bec22c03eedbe89eb31d964f380879f0b389bb1 100644 (file)
@@ -156,7 +156,7 @@ function display_balance_sheet()
 
        div_start('balance_tbl');
        
-       start_table(TABLESTYLE, "width=30%");                   
+       start_table(TABLESTYLE, "width='30%'");
                
        if (!$drilldown) //Root Level
        {               
@@ -172,7 +172,7 @@ function display_balance_sheet()
                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"];      
 
index 3e7a26f4ff55a58b199df4970a62bc6c013a6fd8..b2a09d4f12d36d0ba1daacba184482bb72472b1a 100644 (file)
@@ -229,7 +229,7 @@ function display_profit_and_loss()
        
        div_start('pl_tbl');
 
-       start_table(TABLESTYLE, "width=50%");
+       start_table(TABLESTYLE, "width='50%'");
 
        $tableheader =  "<tr>
         <td class='tableheader'>" . _("Group/Account Name") . "</td>
index 5d0d0a02d501d64c3dfe189e2e8b057955af230f..a6a851acc8e8aefc4e82740a65cf7e1241720af8 100644 (file)
@@ -61,7 +61,7 @@ if ($from_trans['bank_curr_code'] != $to_trans['bank_curr_code'])
 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'");
index 88d315aa1743038d198db0e4a11113e69c1e5533..6ff9bf4d712ee73ab200ab2e9f4472dc397c784f 100644 (file)
@@ -48,7 +48,7 @@ echo "<center>";
 display_heading(_("GL Deposit") . " #$trans_no");
 
 echo "<br>";
-start_table(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
 
 if ($show_currencies)
 {
@@ -98,7 +98,7 @@ else
        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",
index 344eec358e1c37490983e8999a8b02480107fd14..eb99749c41930bed817f196a39488529fcddb930 100644 (file)
@@ -46,7 +46,7 @@ if ($from_trans['bank_curr_code'] != $from_trans['settle_curr'])
 display_heading(_("GL Payment") . " #$trans_no");
 
 echo "<br>";
-start_table(TABLESTYLE, "width=80%");
+start_table(TABLESTYLE, "width='80%'");
 
 if ($show_currencies)
 {
@@ -97,7 +97,7 @@ else
                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",
index 4e61fef91349cf9967a12ef5815ccb6a07bacdfa..e80914eb694875dd3234fa18803f02f9513ae99b 100644 (file)
@@ -31,7 +31,7 @@ function display_gl_heading($myrow)
 {
        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); 
@@ -78,7 +78,7 @@ while ($myrow = db_fetch($result))
        if (!$heading_shown)
        {
                display_gl_heading($myrow);
-               start_table(TABLESTYLE, "width=95%");
+               start_table(TABLESTYLE, "width='95%'");
                table_header($th);
                $heading_shown = true;
        }       
index e3d4c261045a26918a3f341e9b1ac2d6fe03872e..5804c3341069bf5a06802880b2cf37a31a4c720d 100644 (file)
@@ -23,7 +23,7 @@ function page_footer($no_menu=false, $is_index=false)
        $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
index 0ae62638bf7570f688d1f7b85585b9060f07f602..7dd84b6525b66089b3fdbe1a91bbc99a86e0644d 100644 (file)
@@ -40,9 +40,9 @@ function help_url($context=null)
        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()
@@ -121,7 +121,7 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js=""
        $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";
index 0729ec432c7de90b2a144e08423f73746690573c..9ea89d01026e7ef10524f21fcbd7291f1aeeec0f 100644 (file)
@@ -416,7 +416,7 @@ function display_system_tests($install = false)
                );
 
 
-       start_table(TABLESTYLE, "width=80%");
+       start_table(TABLESTYLE, "width='80%'");
        $th = array(_("Test"), _('Test type'), _("Value"), _("Comments"));
        table_header($th);
 
index 2821fe5fe7874786443bb72f0a65ea0e50c669c7..c60c88fe2cffe40bc3f229e0f95388519e14b5db 100644 (file)
@@ -284,7 +284,7 @@ function show_allocatable($show_totals) {
        {
                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"),'','');
 
index 3cdc3c1ad50cbcf814628b1ed7a86619e8d1b05f..21cbf4bd593654d810d599ded22e53e062481d2a 100644 (file)
@@ -36,7 +36,7 @@ class contacts extends simple_crud {
 
                        $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"),  '',
index e8718c636deaecff11ab7472df32d85ec57b75fc..950729d13aadf660c5bb9cf095978404187e7d5b 100644 (file)
@@ -61,7 +61,7 @@ function display_db_pager(&$pager) {
                }
        }
     /* 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
@@ -103,7 +103,7 @@ function display_db_pager(&$pager) {
                   }
                   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
index 6250620528e2d4b153d00de2f8fa5f4114cd67ac..65e0071cf925dda04087868e2bfeca505aed7cb5 100644 (file)
@@ -53,7 +53,7 @@ function start_form($multi=false, $dummy=false, $action="", $name="")
 
 function end_form($breaks=0)
 {
-       global $Ajax;
+       global $Ajax, $hidden_fields;
 
        $_SESSION['csrf_token'] = hash('sha256', uniqid(mt_rand(), true));
        if ($breaks)
@@ -61,7 +61,8 @@ function end_form($breaks=0)
        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');
 }
 
@@ -87,7 +88,7 @@ function start_table($class=false, $extra="", $padding='2', $spacing='0')
                echo " class='tablestyle'";
        if ($extra != "")
                echo " $extra";
-       echo " cellpadding=$padding cellspacing=$spacing>\n";
+       echo " cellpadding='$padding' cellspacing='$spacing'>\n";
 }
 
 function end_table($breaks=0)
@@ -110,7 +111,7 @@ function table_section($number=1, $width=false)
        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
        }
@@ -181,7 +182,7 @@ function hyperlink_back($center=true, $no_menu=true, $type_no=0, $trans_no=0, $f
        echo $attach;   
     }
        $width = ($id != 0 ? "30%" : "20%");    
-       start_table(false, "width=$width");
+       start_table(false, "width='$width'");
        start_row();
        if ($no_menu)
        {
index 5c0cacd163818dde63bb504fb98c88d990357d2e..4f02f9b26b8e4aa89504dc5f7c0dd58cf5306e5e 100644 (file)
@@ -85,10 +85,11 @@ function input_num($postname=null, $dflt=0)
 }
 
 //---------------------------------------------------------------------------------
+$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);
@@ -96,7 +97,7 @@ function hidden($name, $value=null, $echo=true)
        $ret = "<input type=\"hidden\" name=\"$name\" value=\"$value\">";
        $Ajax->addUpdate($name, $name, $value);
        if ($echo)
-               echo $ret."\n";
+                       $hidden_fields[] = $ret;
        else
                return $ret;
 }
@@ -127,7 +128,7 @@ function submit($name, $value, $echo=true, $title=false, $atype=false, $icon=fal
 
        } elseif (!is_bool($atype)) { // necessary: switch uses '=='
 
-               $aspect = "aspect='$atype' ";
+               $aspect = " aspect='$atype' ";
                $types = explode(' ', $atype);
 
                foreach ($types as $type) {
@@ -155,7 +156,7 @@ function submit($name, $value, $echo=true, $title=false, $atype=false, $icon=fal
            ." 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)
@@ -268,7 +269,7 @@ function set_icon($icon, $title=false)
        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='')
@@ -290,7 +291,7 @@ 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='"
@@ -300,7 +301,7 @@ function button($name, $value, $title=false, $icon=false,  $aspect='')
                        .($title ? " title='$title'":'')
                        . ($aspect ? " aspect='$aspect'" : '')
                        . $rel
-                       ." />\n";
+                       ." >\n";
 }
 
 function button_cell($name, $value, $title=false, $icon=false, $aspect='')
@@ -464,14 +465,14 @@ function qty_cell($label, $bold=false, $dec=null, $id=null)
                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 == "")
@@ -666,7 +667,7 @@ function date_row($label, $name, $title=null, $check=null, $inc_days=0, $inc_mon
 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";
 }      
 
@@ -675,7 +676,7 @@ function file_cells($label, $name, $id="")
 {
        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 = "")
 {
index 27f812da38675e43b1bb7a0f267d787dc47c33cf..456f01938aa6e5e5c76162e69a6984327d1713a1 100644 (file)
@@ -214,11 +214,15 @@ $opts = array(            // default options
                        }
                        $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);
        }
 
@@ -368,7 +372,6 @@ $opts = array(              // default options
 
        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
index 1319f362014590d1713c84f338b166d2d9be03d5..1d6d765c80ac38549e05e2eba599b0889c9cc1a5 100644 (file)
@@ -29,6 +29,11 @@ function display_notification_centered($msg)
        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";        
index 9a9eb0932ed8988373c844462bed9c19c9a641d7..cc003088d2595ec51e8815823189b0f6a0534f8e 100644 (file)
@@ -337,7 +337,7 @@ function is_voided_display($type, $id, $label)
        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)
@@ -542,7 +542,7 @@ function display_allocations($alloc_result, $total, $payments=false)
 
     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"));
index dee8a2f9945df7fe4fb03248e100c0ee426f141e..ff015da9ff2a98d55480c936d2cd6e672a86361f 100644 (file)
@@ -43,7 +43,7 @@ $pkg = get_package_info($_GET['id'], null, $filter);
 
 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);
 
index fc27f03038097a200e43db1cb57bf2ddf46d6ae2..2e611766ce3c3300f395489eed55132047b0e35b 100644 (file)
@@ -31,7 +31,7 @@ function subpage_title($txt)
 {
        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;
index dc14d93ef4a31edfbd3d3802c1edcda6cd29c1a6..33c24b62d3d74424f8507674a7b7bf484db35ed8 100644 (file)
@@ -224,7 +224,7 @@ start_form();
 
 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();
index 12571b8ac92e91454dc501738dcbe934f1ef341c..a390634a4aa009a9c20ac4bcc3b2aa1e53056d7e 100644 (file)
@@ -28,7 +28,7 @@ function display_order_header(&$order)
 {
        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);
@@ -58,7 +58,7 @@ function display_adjustment_items($title, &$order)
 
        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[] = '';
index 026e0b6e07c7ff7b08f19521cb48488c40851c49..daa59661e76f6c23b0e4b0d93a8da512787bd742 100644 (file)
@@ -28,7 +28,7 @@ function display_order_header(&$order)
 {
        global $Refs;
 
-       start_outer_table(TABLESTYLE, "width=70%");
+       start_outer_table(TABLESTYLE, "width='70%'");
 
        table_section(1);
        
@@ -56,7 +56,7 @@ function display_transfer_items($title, &$order)
 
        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);
index b52d67c812b27497a42eb5f4a54258bd37086148..c42d910eeb7bcc998fa917b487f2e7940f939d64 100644 (file)
@@ -94,7 +94,7 @@ if (list_updated('mb_flag')) {
 $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"), "", "");
index 892c0a359d42a01520cb78d05a4bfa70ce616788..4ada6e3eb3393c754ef4ce338f5cb385f8a90135 100644 (file)
@@ -119,7 +119,7 @@ $dflt_cat = $result['category_id'];
 
 $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"), "", "");
index 249c09d252b2a42a75790fbb76fac0f0a4bf4f56..2835d593ccf7f2fb41cf1c3729e9e0e36a2521c1 100644 (file)
@@ -90,7 +90,7 @@ if ($Mode == 'RESET')
 $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);
 
index e7086f947432915989c1a32f1f68631f13750c3a..7f336b0de58f7564e573739bce8a1dc8e78a57a6 100644 (file)
@@ -90,7 +90,7 @@ if ($Mode == 'RESET')
 $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);
index 2aef8e8b62845c5b4a957fdcad2715355c3a171e..a327de2d34670c5c73652aac61cf4c3fee02ccc5 100644 (file)
@@ -36,7 +36,7 @@ function display_kit_items($selected_kit)
 {
        $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);
index 66d3bee099482041a449b56a27ddec6f9c900918..650728ca49392514308a34e33e427817b5c09858 100644 (file)
@@ -141,7 +141,7 @@ if (list_updated('stock_id') || isset($_POST['_curr_abrev_update']) || isset($_P
 $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);
index d0b1685d8f5e0acbb5134d660aa2468532dab29b..96b205e076ee93b383f27c2d00782951bf6d8d6f 100644 (file)
@@ -142,7 +142,7 @@ else
     }
     else
     {
-        start_table(TABLESTYLE, "width=65%");
+        start_table(TABLESTYLE, "width='65%'");
 
                $th = array(_("Supplier"), _("Price"), _("Currency"),
                        _("Supplier's Unit"), _("Conversion Factor"), _("Supplier's Description"), "", "");
index bd517f251221a18e5a762835ad5c2177c36bc665..c34ba672828771483399891b35b44faa2be37245 100644 (file)
@@ -60,7 +60,7 @@ div_end();
 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);
index 39768dc9d9b3c710aa9f8dbd937d5fd7557aa78e..f7ae7d959b2c9c70179db098e1373a219f4c933a 100644 (file)
@@ -218,7 +218,7 @@ start_form();
 
 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']);
index e5722c54ff5e6fd4e08d5aa1503a89dbdbbd4679..4b94c7c3866332ba0879a66ea809733b92926bcc 100644 (file)
@@ -38,7 +38,7 @@ while ($adjustment = db_fetch($adjustment_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");
@@ -51,7 +51,7 @@ while ($adjustment = db_fetch($adjustment_items))
                $header_shown = true;
 
                echo "<br>";
-               start_table(TABLESTYLE, "width=90%");
+               start_table(TABLESTYLE, "width='90%'");
 
        $th = array(_("Item"), _("Description"), _("Quantity"),
                _("Units"), _("Unit Cost"));
index 86ad8bfa23c813074184df7e9da707b4983857b3..d3bd8a5fa52b6b8d85d07a15d62eef317c1dbe79 100644 (file)
@@ -33,7 +33,7 @@ $to_trans = $transfer_items[1];
 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'");
@@ -51,7 +51,7 @@ comments_display_row(ST_LOCTRANSFER, $trans_no);
 
 end_table(2);
 
-start_table(TABLESTYLE, "width=90%");
+start_table(TABLESTYLE, "width='90%'");
 
 $th = array(_("Item"), _("Description"), _("Quantity"), _("Units"));
 table_header($th);
index f2cde17f2ee9e09d8e622e0c8221e015d7a6cda0..dfedbb296e4eacebf0ce0e28fa41ebaf08fd5be7 100644 (file)
@@ -79,7 +79,7 @@ function display_wo_requirements($woid, $quantity, $show_qoh=false, $date=null)
     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"));
 
@@ -270,7 +270,7 @@ function display_wo_details($woid, $suppress_view_link=false)
        exit;
     }
 
-       start_table(TABLESTYLE, "width=80%");
+       start_table(TABLESTYLE, "width='80%'");
 
        if ($myrow["released"] == true)
                $th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
@@ -326,7 +326,7 @@ function display_wo_details_quick($woid, $suppress_view_link=false)
        exit;
     }
 
-       start_table(TABLESTYLE, "width=80%");
+       start_table(TABLESTYLE, "width='80%'");
 
        $th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
                _("Into Location"), _("Date"), _("Quantity"));
index e70ce5711851e5c17a43370efd60c51f0a8b198e..98aeeb7d22abe7b18996e5fb43634dc3d8bc62f8 100644 (file)
@@ -29,7 +29,7 @@ function display_issue_items($title, &$order)
 
        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[] = '';
index 9734dfa4d23c0af24f63d58493214569d8d5db9c..f69abf5f3115c6427f6bea1c9706f899f060b358 100644 (file)
@@ -66,7 +66,7 @@ function display_bom_items($selected_parent)
 {
        $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);
index 10fcf365abc6854cac2b76ee49cd5588aa4d5be5..ebc250340e80ad511bf785db7e8913194bdaceee 100644 (file)
@@ -97,7 +97,7 @@ if ($Mode == 'RESET')
 $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);
index cfd4d19761fb49d3e7d841b78c1155906c5bcb64..6aa7f3f22ea08b65ae71dafe3e85f49e49f6fc8d 100644 (file)
@@ -211,7 +211,7 @@ echo "<br>";
 
 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();
index 059c7bd13e270e09bb04d81b92e6b7aeee13e94e..ea654efa8273f11df8e7e8f4fa75b00d1d210dea 100644 (file)
@@ -14,7 +14,7 @@
 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'");
@@ -46,7 +46,7 @@ function edit_grn_summary(&$po)
 {
        global $Refs;
 
-       start_outer_table(TABLESTYLE2, "width=80%");
+       start_outer_table(TABLESTYLE2, "width='80%'");
 
        table_section(1);
                label_row(_("Supplier"), $po->supplier_name);
index ff9c84680d428b9ffdd25f1281022cec57d87265..fafe4c5d79159ab9152b65d058b2d000b4eb6ae3 100644 (file)
@@ -74,7 +74,7 @@ function invoice_header(&$supp_trans)
        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);
 
@@ -154,7 +154,7 @@ function invoice_totals(&$supp_trans)
 
        $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);
@@ -221,7 +221,7 @@ function display_gl_items(&$supp_trans, $mode=0)
        else
                $heading = _("GL Items for this Credit Note");
 
-       start_outer_table(TABLESTYLE, "width=95%");
+       start_outer_table(TABLESTYLE, "width='95%'");
 
        if ($mode == 1)
        {
@@ -251,7 +251,7 @@ function display_gl_items(&$supp_trans, $mode=0)
        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)
@@ -432,7 +432,7 @@ function display_grn_items(&$supp_trans, $mode=0)
     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)
@@ -471,14 +471,14 @@ function display_grn_items(&$supp_trans, $mode=0)
                {
                        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"),
index 728d2e7ce190b57f404e72b9f8984e4cdcf174f9..37e2a81fefa6894ebdd01c5ea5de5c0842ca1365 100644 (file)
@@ -116,7 +116,7 @@ function display_po_header(&$order)
 
        $editable = ($order->order_no == 0);
 
-       start_outer_table(TABLESTYLE2, 'width=80%');
+       start_outer_table(TABLESTYLE2, "width='80%'");
 
        table_section(1);
     if ($editable)
@@ -228,7 +228,7 @@ function display_po_items(&$order, $editable=true)
     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"),
@@ -305,7 +305,7 @@ function display_po_items(&$order, $editable=true)
 
 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'");
index 1e106d0edebbf31be72210045d1c2a62c1c5e486..73393a2030418de13d321897f86814fdea23b171 100644 (file)
@@ -72,7 +72,7 @@ function display_supplier_summary($supplier_record)
        $pastdue2 = _('Over') . " " . $past2 . " " . _('Days');
        
 
-    start_table(TABLESTYLE, "width=80%");
+    start_table(TABLESTYLE, "width='80%'");
     $th = array(_("Currency"), _("Terms"), _("Current"), $nowdue,
        $pastdue1, $pastdue2, _("Total Balance"));
 
index f80130e6402cea4caaf3a7b8eab51a09aefe6bfe..9fd0c753ff0479156cd21f9afe099a944b53deb7 100644 (file)
@@ -58,7 +58,7 @@ if ((!isset($_GET['PONumber']) || $_GET['PONumber'] == 0) && !isset($_SESSION['P
 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);
index b4e6c87864d7ee66a19765bd971386255c541e8d..bb22a30fa8a104755ff0cf80ec6718df7aa4aab1 100644 (file)
@@ -268,7 +268,7 @@ if (isset($_POST['ProcessSuppPayment']))
 
 start_form();
 
-       start_outer_table(TABLESTYLE2, "width=60%", 5);
+       start_outer_table(TABLESTYLE2, "width='60%'", 5);
 
        table_section(1);
 
@@ -319,7 +319,7 @@ start_form();
        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);
index 31126c97f05a5912fbc4917d7af73b478f11a108..d06e8ebffd5fb3e969ec47e16eed127fe02f3dff 100644 (file)
@@ -36,7 +36,7 @@ display_grn_summary($purchase_order);
 
 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"));
 
index ef54291f26ff4839e8654a151ff89f26baba8e23..6463f55d18c5d0acd67cf5bba44b2b68dae0d60d 100644 (file)
@@ -35,12 +35,12 @@ read_po($_GET['trans_no'], $purchase_order);
 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"));
index cdaeb3fe8514c4eac48d8e40e3dde7d04eafa6ac..bad33fce7a1ace03a5198ccb8f9e496382bf4f8c 100644 (file)
@@ -37,7 +37,7 @@ read_supp_invoice($trans_no, ST_SUPPCREDIT, $supp_trans);
 
 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'");
@@ -56,8 +56,8 @@ $total_grn = display_grn_items($supp_trans, 2);
 
 $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);
index 025e6581ef0631b454e268e92def09729802873d..8ce3887b59d736a2eae2711c78cb40ecb794b5dd 100644 (file)
@@ -40,7 +40,7 @@ $supplier_curr_code = get_supplier_currency($supp_trans->supplier_id);
 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'");
@@ -61,8 +61,8 @@ $total_grn = display_grn_items($supp_trans, 2);
 
 $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);
index a23e8d713574a4a90b726305bf3f0fb1a98ae5b0..ecdee25a20eca4a901600c10212cade155e82900 100644 (file)
@@ -47,7 +47,7 @@ echo "<center>";
 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'");
index d9076691cc04b0059c9dfb09968fa4ed2e31c15a..80517758c13deb3efbcbd267b588b7508a6b27f8 100644 (file)
@@ -78,7 +78,7 @@ class BoxReports
                                ."$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: ") . "&nbsp;$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: ") . "&nbsp;$name</b></td></tr>\n";
                        foreach($this->ar_reports[$class_id] as $rep_id => $report)
                        {
                                $acc = access_string($report->name);
index 0db31150c409ca2d00228c16bafc1e53ae3d8a95..a8f817bbd0d4ca2035bc30def17bc6611eebcdf1 100644 (file)
@@ -130,7 +130,7 @@ date_cells(_("Invoice date:"), 'date', '');
 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;
index 70148e81a6574fc99ae54fa30ac53d3158e8abe5..cdd6ebe464ff3c72003ea99948c37b70c41c1747 100644 (file)
@@ -270,7 +270,7 @@ hidden('cart_id');
 $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']);
index e74125caa5f769146cf12422115cf35bba1f9b35..a1e274d173208d2024c58355e4063760ff375808 100644 (file)
@@ -227,10 +227,10 @@ function display_credit_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'");
@@ -263,7 +263,7 @@ function display_credit_items()
 
     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'");
 
@@ -276,7 +276,7 @@ function display_credit_items()
        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);
index 3c3c1800c5e02f1ae396863a37166ad053b6e8a7..1c5753411caece180bfd161ab09d04ebb643a9f4 100644 (file)
@@ -308,10 +308,10 @@ if (isset($_POST['Update']) || isset($_POST['_Location_update']) || isset($_POST
 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'");
@@ -360,7 +360,7 @@ end_table();
 
 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']);
@@ -403,7 +403,7 @@ if ($row['dissallow_invoices'] == 1)
 }      
 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"), 
index ea4898790220e87230b9257d5de5d362a34a1027..f306c08cdfda41888fa0576fe868f5de8518a706 100644 (file)
@@ -379,7 +379,7 @@ $is_edition = $_SESSION['Items']->trans_type == ST_SALESINVOICE && $_SESSION['It
 start_form();
 hidden('cart_id');
 
-start_table(TABLESTYLE2, "width=80%", 5);
+start_table(TABLESTYLE2, "width='80%'", 5);
 
 start_row();
 $colspan = 1;
@@ -474,7 +474,7 @@ if ($row['dissallow_invoices'] == 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"));
 
@@ -528,9 +528,9 @@ foreach ($_SESSION['Items']->line_items as $line=>$ln_itm) {
                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--;
        }
index bf15289a690f68d6c739666555a6c1b26de30192..e32f5a8f58ab1e181eed4df3bc098eaa068a983d 100644 (file)
@@ -328,7 +328,7 @@ start_form();
        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);
 
@@ -388,7 +388,7 @@ start_form();
        show_allocatable(false);
        div_end();
 
-       start_table(TABLESTYLE, "width=60%");
+       start_table(TABLESTYLE, "width='60%'");
 
        label_row(_("Customer prompt payment discount :"), $display_discount_percent);
 
index 07006fb6fa8d2f114294f7692fc56162a481bb41..ccc69d70aab43107c55df127768983612d1dde50 100644 (file)
@@ -17,7 +17,7 @@ function display_credit_header(&$order)
 {
        global $Ajax, $Refs;
 
-       start_outer_table(TABLESTYLE, "width=80%");
+       start_outer_table(TABLESTYLE, "width='80%'");
        table_section(1);
 
        $customer_error = "";
@@ -163,7 +163,7 @@ function display_credit_items($title, &$order)
 
     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"),'');
 
index 456f54f77c7d8447f29cf72448435d6328d4251f..20509efcf373ba48fedd64c0148a925aac6acc5f 100644 (file)
@@ -141,7 +141,8 @@ function display_order_summary($title, &$order, $editable_items=false)
        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"), "");
@@ -244,7 +245,7 @@ function display_order_header(&$order, $editable, $date_text)
 {
        global $Ajax, $SysPrefs;
 
-       start_outer_table(TABLESTYLE2, "width=80%");
+       start_outer_table(TABLESTYLE2, "width='80%'");
 
        table_section(1);
        
@@ -376,6 +377,7 @@ function display_order_header(&$order, $editable, $date_text)
        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) {
@@ -398,6 +400,7 @@ function display_order_header(&$order, $editable, $date_text)
        } else {
                label_cells(_('Payment:'), $order->payment_terms['terms']);
        }
+       end_row();
 
        if($editable) {
                $str = sales_types_list_row(_("Price List:"), 'sales_type', null, true);
@@ -570,7 +573,7 @@ function display_delivery_details(&$order)
        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'))
@@ -601,7 +604,7 @@ function display_delivery_details(&$order)
                        $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);
index 9fdd02761272c5336dff8818fd62a6dbd49634bd..1aa02aeed09308b1988ec19863fd3fad406e3f22 100644 (file)
@@ -76,7 +76,7 @@ function display_customer_summary($customer_record)
        $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);
index 4793ce7eca977f2c8bca5ba18f3bc7207314ca9a..17cfa943f6df61e429e1cd12449a50790839f2e8 100644 (file)
@@ -83,7 +83,7 @@ if ($Mode == 'RESET')
 $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);
index 60482ba34001523cc29c75221f8988be193db40a..2110515a71fc94759ba4dc3f49ea9475d9408edb 100644 (file)
@@ -81,7 +81,7 @@ if ($Mode == 'RESET')
 $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);
 
index 81c0dc268bb2c37eff755696131385536c9c2dec..0fd8e1d68a7812d1faa2ae0fc1a7f525fbb47f75 100644 (file)
@@ -95,7 +95,7 @@ if ($Mode == 'RESET')
 $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);
index 1a5c1f610ea9d2275b809a005d1df448af52ec6f..f356b4e44b52b8c54362f73356ddd2d02da5a8c0 100644 (file)
@@ -98,7 +98,7 @@ if ($Mode == 'RESET')
 $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);
index 3873d4a502b0c76c655151757f812c150665305b..f9933b318d7919f7ce3750cd605c2a2c2aa94210 100644 (file)
@@ -716,7 +716,7 @@ $customer_error = display_order_header($_SESSION['Items'],
        ($_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>";
index 4291d9dc11ee89805c42ab2c9e0d428aa97249d7..7fba678bf433216f497c557c22b04edb9d31884d 100644 (file)
@@ -39,11 +39,11 @@ $branch = get_branch($myrow["branch_code"]);
 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);
 
@@ -54,7 +54,7 @@ end_table();
 
 echo "</td><td>"; // outer table
 
-start_table(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
 $th = array(_("Branch"));
 table_header($th);
 
@@ -63,7 +63,7 @@ end_table();
 
 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'");
@@ -83,7 +83,7 @@ $sub_total = 0;
 
 $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)
 {
@@ -134,7 +134,7 @@ $display_total = price_format($credit_total);
 /*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);
index 7ed8c3041e58e8374923722f7fe25825b30f44ff..d089282b3a95d282272bd2f9d850fee599be11fa 100644 (file)
@@ -43,11 +43,11 @@ $sales_order = get_sales_order_header($myrow["order_"], ST_SALESORDER);
 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);
 
@@ -61,7 +61,7 @@ echo "</td><td>"; // outer table
 
 /*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);
 
@@ -70,7 +70,7 @@ end_table();
 
 echo "</td><td>"; // outer table
 
-start_table(TABLESTYLE, "width=100%");
+start_table(TABLESTYLE, "width='100%'");
 $th = array(_("Delivered To"));
 table_header($th);
 
@@ -80,7 +80,7 @@ end_table();
 
 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'");
@@ -105,7 +105,7 @@ end_table(1); // outer table
 
 $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)
 {
@@ -144,7 +144,7 @@ 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
index d6a6cb7aba96ed7b5874430f4309d74b1299fb37..2d128a518d7a3af7996b39cef6b73fb1d5f3891d 100644 (file)
@@ -43,11 +43,11 @@ $sales_order = get_sales_order_header($myrow["order_"], ST_SALESORDER);
 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);
 
@@ -61,7 +61,7 @@ echo "</td><td>"; // outer table
 
 /*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);
 
@@ -70,7 +70,7 @@ end_table();
 
 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']);
@@ -79,7 +79,7 @@ end_table();
 
 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'");
@@ -106,7 +106,7 @@ end_table(1); // outer table
 
 $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)
 {
@@ -146,7 +146,7 @@ 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);
index 09e9e51ec190698dde0e8f9e533d8977de043970..a96f2f7b1ca7870b81a5658395efe0415ec38834 100644 (file)
@@ -33,7 +33,7 @@ $receipt = get_customer_trans($trans_id, ST_CUSTPAYMENT);
 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'");
index 6790f20d8148696da8cb1e0aa6b36c70445b0769..3276b9582b89fb0a45e391dc207b98dbdac431a5 100644 (file)
@@ -41,7 +41,7 @@ if (isset($_SESSION['View']))
 
 $_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)
 {
@@ -56,7 +56,7 @@ 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();
@@ -197,7 +197,7 @@ if ($_SESSION['View']->so_type == 1)
        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);
index ce94cfe4e5c7d0a1603b22ea30bdaa10f2dc2090..f2d9b06328f275bd5d8d31e05b02a8b8428af0e5 100644 (file)
@@ -113,7 +113,7 @@ if ($Mode == 'RESET')
 $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);
index 1d03c5d9c6b8f453690868f43a449869a318a188..40b7f7ea658c2014d6775b21222184a6aa2bf0bf 100644 (file)
@@ -19,7 +19,7 @@
                                $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'>&nbsp;&nbsp;";
+                       return "<img src='$path_to_root/themes/aqua/images/$img' style='vertical-align:middle;' border='0' ".basename($img).">&nbsp;&nbsp;";
                }
 
                function wa_header()
@@ -51,8 +51,8 @@
                                $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')."'>&nbsp;&nbsp;";
                                $himg = "<img src='$local_path_to_root/themes/aqua/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'>&nbsp;&nbsp;";
 
-                               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>&nbsp;&nbsp;&nbsp;\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>&nbsp;&nbsp;&nbsp;\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))
index 1e597b26acb343e4b2ac4f0202f20fdd321c7c7a..fcf9a8dc60edb41a818dfa58b75d8cb382dae059 100644 (file)
@@ -51,8 +51,8 @@
                                $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')."'>&nbsp;&nbsp;";
                                $himg = "<img src='$local_path_to_root/themes/aqua/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'>&nbsp;&nbsp;";
 
-                               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>&nbsp;&nbsp;&nbsp;\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>&nbsp;&nbsp;&nbsp;\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&amp;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&amp;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))
index ae0cb59e544856495578bc93f9844235975e435a..252dbfb840712807305573dbdbe53e53ab14fa77 100644 (file)
@@ -20,7 +20,7 @@
                                $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'>&nbsp;&nbsp;";
+                       return "<img src='$path_to_root/themes/default/images/$img' style='vertical-align:middle;' border='0' ".basename($img).">&nbsp;&nbsp;";
                }
 
                function wa_header()
@@ -51,8 +51,8 @@
                                $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')."'>&nbsp;&nbsp;";
                                $himg = "<img src='$local_path_to_root/themes/default/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'>&nbsp;&nbsp;";
-                               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>&nbsp;&nbsp;&nbsp;\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>&nbsp;&nbsp;&nbsp;\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))