CSS style is now implemented in all FA.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 16 Feb 2010 12:25:33 +0000 (12:25 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 16 Feb 2010 12:25:33 +0000 (12:25 +0000)
New label style for the themes. Better layout in supp inv/credit
A lot of code clean up. New password_row and file_row/cells.

25 files changed:
CHANGELOG.txt
access/login.php
admin/attachments.php
admin/change_current_user_password.php
admin/company_preferences.php
admin/create_coy.php
admin/gl_setup.php
admin/inst_lang.php
admin/inst_module.php
admin/users.php
config.default.php
includes/ui/ui_controls.inc
includes/ui/ui_input.inc
includes/ui/ui_lists.inc
inventory/manage/items.php
purchasing/includes/ui/invoice_ui.inc
purchasing/includes/ui/po_ui.inc
purchasing/supplier_credit.php
purchasing/supplier_invoice.php
reporting/includes/reports_classes.inc
sales/includes/ui/sales_order_ui.inc
sales/view/view_sales_order.php
themes/aqua/default.css
themes/cool/default.css
themes/default/default.css

index 391f887d6a20a86033454a0d4c6fd384ee061144..6dfeff674fda49f99cf427646938354b5515a8d6 100644 (file)
@@ -19,6 +19,36 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+! CSS style is now implemented in all FA.
+! New label style for the themes. Better layout in supp inv/credit
+! A lot of code clean up. New password_row and file_row/cells.
+# Several minor bugs during final CSS implementaion
+$ config.default.php
+  /access/login.php
+  /admin/attachments.php
+  /admin/change_current_user_password.php
+  /admin/company_preferences.php
+  /admin/create_coy.php
+  /admin/gl_setup.php
+  /admin/inst_lang.php
+  /admin/inst_module.php
+  /admin/users.php
+  /includes/ui/ui_controls.inc
+  /includes/ui/ui_input.inc
+  /includes/ui/ui_lists.inc
+  /inventory/manage/items.php
+  /purchasing/supplier_credit.php
+  /purchasing/supplier_invoice.php
+  /purchasing/includes/ui/po_ui.inc
+  /purchasing/includes/ui/invoice_ui.inc
+  /reporting/includes/reports_classes.inc
+  /sales/includes/ui/sales_order_ui.inc
+  /sales/view/view_sales_order.php
+  /themes/default/default.css
+  /themes/aqua/default.css
+  /themes/cool/default.css
+  
+
 11-Feb-2010 Janusz Dobrowolski
 # Better check for language session var.
 $ /includes/session.inc
index 210d61d4ca29f15c27249d9078d142976d744f58..0c77bc807991d6b21bb8da700de122a690e44b37 100644 (file)
@@ -66,7 +66,7 @@ function set_fullmode() {
        div_start('_page_body');
        br();br();
        start_form(false, false, $_SESSION['timeout']['uri'], "loginform");
-       start_table("class='login' $table_style2");
+       start_table("class='login'");
        start_row();
        echo "<td align='center' colspan=2>";
        if (!$login_timeout) { // FA logo
@@ -86,9 +86,9 @@ function set_fullmode() {
 
        $password = $allow_demo_mode ? "password":"";
 
-       echo "<tr><td>"._("Password")."</td><td><input type='password' name='password'  value='$password' /></td></tr>\n";
+       password_row(_("Password:"), 'password', $password);
 
-       if ($login_timeout) {
+               if ($login_timeout) {
                hidden('company_login_name', $_SESSION["wa_current_user"]->company);
        } else {
                if (isset($_SESSION['wa_current_user']->company))
index dafa3e022fb1ea592e93b3415269b6aa5ced7ffc..4d75a5087f35bacc2536269eff61a6b01369498c 100644 (file)
@@ -248,9 +248,7 @@ if ($selected_id != -1)
 else
        text_row_ex(_("Transaction #").':', 'trans_no', 10);
 text_row_ex(_("Description").':', 'description', 40);
-start_row();
-label_cells(_("Attached File") . ":", "<input type='file' id='filename' name='filename'>");
-end_row();
+file_row(_("Attached File") . ":", 'filename', 'filename');
 
 end_table(1);
 if (isset($_POST['filterType']))
index bb7c9cb0736be78c9dbc2f3de0c19d289657de54..29112d0376f266ddcb38e38e0398777a0a159ec2 100644 (file)
@@ -75,15 +75,8 @@ label_row(_("User login:"), $myrow['user_id']);
 $_POST['password'] = "";
 $_POST['passwordConfirm'] = "";
 
-start_row();
-label_cell(_("Password:"));
-label_cell("<input type='password' name='password' size=22 maxlength=20 value='" . $_POST['password'] . "'>");
-end_row();
-
-start_row();
-label_cell(_("Repeat password:"));
-label_cell("<input type='password' name='passwordConfirm' size=22 maxlength=20 value='" . $_POST['passwordConfirm'] . "'>");
-end_row();
+password_row(_("Password:"), 'password', $_POST['password']);
+password_row(_("Repeat password:"), 'passwordConfirm', $_POST['passwordConfirm']);
 
 table_section_title(_("Enter your new password in the fields."));
 
index 3ee19edbc7a493be95e19e3763c7ecd0d95cf7ef..9cf0a3a4ab885cbfe8265e45b203de78a4245c1f 100644 (file)
@@ -179,7 +179,7 @@ text_row_ex(_("Tax Periods:"), 'tax_prd', 10, 10, '', null, null, _('Months.'));
 text_row_ex(_("Tax Last Period:"), 'tax_last', 10, 10, '', null, null, _('Months back.'));
 
 label_row(_("Company Logo:"), $_POST['coy_logo']);
-label_row(_("New Company Logo (.jpg)") . ":", "<input type='file' id='pic' name='pic'>");
+file_row(_("New Company Logo (.jpg)") . ":", 'pic', 'pic');
 check_row(_("Delete Company Logo:"), 'del_coy_logo', $_POST['del_coy_logo']);
 
 number_list_row(_("Use Dimensions:"), 'use_dimension', null, 0, 2);
index 423701ae946a43e2a1402418969d00367ece7709..c3bfe489b77c80984c898f07aa5866cbe215a43c 100644 (file)
@@ -346,10 +346,7 @@ function display_company_edit($selected_id)
                label_row(_("Table Pref"), $_POST['tbpref']);
        yesno_list_row(_("Default"), 'def', null, "", "", false);
 
-       start_row();
-       label_cell(_("Database Script"));
-       label_cell("<input name='uploadfile' type='file'>");
-       end_row();
+       file_row(_("Database Script"), "uploadfile");
 
        text_row_ex(_("New script Admin Password"), 'admpassword', 20);
 
index 5208ab10164f3ec88dbae09d1e18f636823d6ad5..68ea64802725ea8526960549e706fabcdd24bb4d 100644 (file)
@@ -194,7 +194,7 @@ gl_all_accounts_list_row(_("Purchase Discount Account:"), 'pyt_discount_act', $_
 table_section_title(_("Inventory"));
 
 check_row(_("Allow Negative Inventory:"), 'allow_negative_stock', null);
-label_row(null, _("Warning:  Checking this will result in adjusted values in General Ledger"), "", "class='stockmankofg' colspan=2"); 
+label_row(null, _("Warning:  This may cause a delay in GL postings"), "", "class='stockmankofg' colspan=2"); 
 
 table_section_title(_("Items Defaults"));
 gl_all_accounts_list_row(_("Sales Account:"), 'default_inv_sales_act', $_POST['default_inv_sales_act']);
index 77fb8d091741dde20ff51731d46041662f697f20..ee44fdf425bb5178b39a8de78dce2ed6d2f37592 100644 (file)
@@ -218,8 +218,8 @@ function display_language_edit($selected_id)
        yesno_list_row(_("Right To Left"), 'rtl', null, "", "", false);
        yesno_list_row(_("Default Language"), 'dflt', null, "", "", false);
 
-       label_row(_("Language File") . " (PO)", "<input name='uploadfile' type='file'>");
-       label_row(_("Language File") . " (MO)", "<input name='uploadfile2' type='file'>");
+       file_row(_("Language File") . " (PO)", 'uploadfile');
+       file_row(_("Language File") . " (MO)", 'uploadfile2');
 
        end_table(0);
        display_note(_("Select your language files from your local harddisk."), 0, 1);
index c465a55133e8cb9708d4c941c9adc110e29a1f1a..d8b00450a1ed478391dd2c7a826afe010349d57a 100644 (file)
@@ -301,9 +301,9 @@ function display_ext_edit($selected_id)
 
        record_status_list_row(_("Default status"), 'active');
 
-       label_row(_("Module File"), "<input name='uploadfile' type='file'>");
-       label_row(_("Access Levels Extensions"), "<input name='uploadfile3' type='file'>");
-       label_row(_("SQL File"), "<input name='uploadfile2' type='file'>");
+       file_row(_("Module File"), 'uploadfile');
+       file_row(_("Access Levels Extensions"), 'uploadfile3');
+       file_row(_("SQL File"), 'uploadfile2');
 
        end_table(0);
        display_note(_("Select your module PHP file from your local harddisk."), 0, 1);
index 52058b298df7d36a3d12bc6f7d5e995b2847d5db..6bf694bc67519d0de985b703905c1f2b6c233ef5 100644 (file)
@@ -190,10 +190,7 @@ else
        $_POST['pos'] = user_pos();
 }
 $_POST['password'] = "";
-start_row();
-label_cell(_("Password:"));
-label_cell("<input type='password' name='password' size=22 maxlength=20 value='" . $_POST['password'] . "'>");
-end_row();
+password_row(_("Password:"), 'password', $_POST['password']);
 
 if ($selected_id != -1) 
 {
index 983d5d66cce56bf490aa946484a64a012ade01be..6babd21a68a8a0c3b3bffcc4d12728bc4d1f650b 100644 (file)
@@ -119,10 +119,8 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        /* Default border and spacing for tables */
        /* Should be moved to CSS */
 
-       if (!isset($_SESSION['bordercolor']))
-               $_SESSION['bordercolor'] = "#8cacbb";
-       $table_style    = "cellpadding=3 border=1 bordercolor='".$_SESSION['bordercolor']."' class='tablestyle'";
-       $table_style2   = "cellpadding=3 border=1 bordercolor='#cccccc' class='tablestyle2'";
+       $table_style    = "class='tablestyle'";
+       $table_style2   = "class='tablestyle2'";
 
        /* Accounts Payable */
        /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
index e809042e093fa3df0b0dbaf50934bf6ed983e2ba..a6140df5e3bde056e7f45908446ca09ead06a62d 100644 (file)
@@ -70,9 +70,10 @@ function table_section($number=1, $width=false)
        {
                echo "</table>\n";
                $width = ($width ? "width=$width" : "");
-               echo "</td><td class='tableseparator' $width>\n"; // outer table
+               //echo "</td><td class='tableseparator' $width>\n"; // outer table
+               echo "</td><td style='border-left:1px solid #cccccc;' $width>\n"; // outer table
        }
-       echo "<table>\n";
+       echo "<table class='tablestyle_inner'>\n";
 }      
 
 function end_outer_table($breaks=0, $close_table=true)
index b27f5fde11ae787a486fc4fa73ecce2556dca591..13d39e63612d7525d132f834ab0ac7167c89571e 100644 (file)
@@ -356,8 +356,8 @@ function check_cells($label, $name, $value=null, $submit_on_change=false, $title
 
 function check_row($label, $name, $value=null, $submit_on_change=false, $title=false)
 {
-       echo "<tr>";
-       echo check_cells($label, $name, $value, $submit_on_change, $title);
+       echo "<tr><td class='label'>$label</td>";
+       echo check_cells(NULL, $name, $value, $submit_on_change, $title);
        echo "</tr>\n";
 }
 
@@ -439,6 +439,11 @@ function label_cells($label, $value, $params="", $params2="", $id='')
 function label_row($label, $value, $params="", $params2="", $leftfill=0, $id='')
 {
        echo "<tr>";
+       if ($params == "")
+       {
+               echo "<td class='label'>$label</td>";
+               $label = null;
+       }       
        label_cells($label, $value, $params, $params2, $id);
        if ($leftfill!=0)
                echo "<td colspan=$leftfill></td>";
@@ -503,9 +508,8 @@ function text_cells_ex($label, $name, $size, $max=null, $init=null, $title=null,
 
 function text_row($label, $name, $value, $size, $max, $title=null, $params="", $post_label="")
 {
-       echo "<tr>";
-
-       text_cells($label, $name, $value, $size, $max, $title, $params, $post_label);
+       echo "<tr><td class='label'>$label</td>";
+       text_cells(null, $name, $value, $size, $max, $title, $params, $post_label);
 
        echo "</tr>\n";
 }
@@ -514,9 +518,8 @@ function text_row($label, $name, $value, $size, $max, $title=null, $params="", $
 
 function text_row_ex($label, $name, $size, $max=null, $title=null, $value=null, $params=null, $post_label=null)
 {
-       echo "<tr>";
-
-       text_cells_ex($label, $name, $size, $max, $value, $title, $params, $post_label);
+       echo "<tr><td class='label'>$label</td>";
+       text_cells_ex(null, $name, $size, $max, $value, $title, $params, $post_label);
 
        echo "</tr>\n";
 }
@@ -614,12 +617,34 @@ function date_cells($label, $name, $title = null, $check=null, $inc_days=0,
 function date_row($label, $name, $title=null, $check=null, $inc_days=0, $inc_months=0, 
        $inc_years=0, $params=null, $submit_on_change=false)
 {
-       echo "<tr>";
-       date_cells($label, $name, $title, $check, $inc_days, $inc_months, 
+       echo "<tr><td class='label'>$label</td>";
+       date_cells(null, $name, $title, $check, $inc_days, $inc_months, 
                $inc_years, $params, $submit_on_change);
        echo "</tr>\n";
 }
 
+//-----------------------------------------------------------------------------------
+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' />");
+       echo "</tr>\n";
+}      
+
+//-----------------------------------------------------------------------------------
+function file_cells($label, $name, $id="")
+{
+       if ($id != "")
+               $id = "id='$id'";
+       label_cells($label, "<input type='file' name='$name' $id />");
+}              
+function file_row($label, $name, $id = "")
+{
+       echo "<tr><td class='label'>$label</td>";
+       file_cells(null, $name, $id);
+       echo "</tr>\n";
+}      
+
 //-----------------------------------------------------------------------------------
 
 function ref_cells($label, $name, $title=null, $init=null, $params=null, $submit_on_change=false)
@@ -631,8 +656,8 @@ function ref_cells($label, $name, $title=null, $init=null, $params=null, $submit
 
 function ref_row($label, $name, $title=null, $init=null, $submit_on_change=false)
 {
-       echo "<tr>";
-       ref_cells($label, $name, $title, $init, null, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       ref_cells(null, $name, $title, $init, null, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -663,8 +688,11 @@ function amount_cells_ex($label, $name, $size, $max=null, $init=null, $params=nu
                        $_POST[$name] = '';
        }
        if ($label != null)
+       {
+               if ($params == null)
+                       $params = "class='label'";
                label_cell($label, $params);
-
+       }
        if (!isset($max))
                $max = $size;
 
@@ -780,8 +808,8 @@ function textarea_cells($label, $name, $value, $cols, $rows, $title = null, $par
 
 function textarea_row($label, $name, $value, $cols, $rows, $title=null, $params="")
 {
-       echo "<tr>";
-       textarea_cells($label, $name, $value, $cols, $rows, $title, $params);
+       echo "<tr><td class='label'>$label</td>";
+       textarea_cells(null, $name, $value, $cols, $rows, $title, $params);
        echo "</tr>\n";
 }
 
index d84b0d9df04d6f310e4d9daf92192059b6128f0a..7465381cae6e3307f4137955325c26fdd5b70672 100644 (file)
@@ -413,7 +413,7 @@ function supplier_list_cells($label, $name, $selected_id=null, $all_option=false
 function supplier_list_row($label, $name, $selected_id=null, $all_option = false, 
        $submit_on_change=false, $all=false, $editkey = false)
 {
-       echo "<tr><td>$label</td><td>";
+       echo "<tr><td class='label'>$label</td><td>";
        echo supplier_list($name, $selected_id, $all_option, $submit_on_change,
                $all, $editkey);
        echo "</td></tr>\n";
@@ -463,7 +463,7 @@ function customer_list_cells($label, $name, $selected_id=null, $all_option=false
 function customer_list_row($label, $name, $selected_id=null, $all_option = false, 
        $submit_on_change=false, $show_inactive=false, $editkey = false)
 {
-       echo "<tr><td>$label</td><td nowrap>";
+       echo "<tr><td class='label'>$label</td><td nowrap>";
        echo customer_list($name, $selected_id, $all_option, $submit_on_change,
                $show_inactive, $editkey);
        echo "</td>\n</tr>\n";
@@ -509,8 +509,8 @@ function customer_branches_list_cells($label,$customer_id, $name, $selected_id=n
 function customer_branches_list_row($label, $customer_id, $name, $selected_id=null, 
        $all_option = true, $enabled=true, $submit_on_change=false, $editkey = false)
 {
-       echo "<tr>";
-       customer_branches_list_cells($label, $customer_id, $name, $selected_id, 
+       echo "<tr><td class='label'>$label</td>";
+       customer_branches_list_cells(null, $customer_id, $name, $selected_id, 
                $all_option, $enabled, $submit_on_change, $editkey);
        echo "</tr>";
 }
@@ -542,8 +542,8 @@ function locations_list_cells($label, $name, $selected_id=null, $all_option=fals
 
 function locations_list_row($label, $name, $selected_id=null, $all_option=false, $submit_on_change=false)
 {
-       echo "<tr>";
-       locations_list_cells($label, $name, $selected_id, $all_option, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       locations_list_cells(null, $name, $selected_id, $all_option, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -574,8 +574,8 @@ function currencies_list_cells($label, $name, $selected_id=null, $submit_on_chan
 
 function currencies_list_row($label, $name, $selected_id=null, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       currencies_list_cells($label, $name, $selected_id, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       currencies_list_cells(null, $name, $selected_id, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -615,8 +615,8 @@ function fiscalyears_list_cells($label, $name, $selected_id=null)
 
 function fiscalyears_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       fiscalyears_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       fiscalyears_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 //------------------------------------------------------------------------------------
@@ -655,8 +655,8 @@ function dimensions_list_cells($label, $name, $selected_id=null, $no_option=fals
 function dimensions_list_row($label, $name, $selected_id=null, $no_option=false, $showname=null,
        $showclosed=false, $showtype=0, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       dimensions_list_cells($label, $name, $selected_id, $no_option, $showname,
+       echo "<tr><td class='label'>$label</td>";
+       dimensions_list_cells(null, $name, $selected_id, $no_option, $showname,
                $showclosed, $showtype, $submit_on_change);
        echo "</tr>\n";
 }
@@ -773,7 +773,7 @@ function sales_local_items_list_row($label, $name, $selected_id=null, $all_optio
 {
        echo "<tr>";
        if ($label != null)
-               echo "<td>$label</td>\n";
+               echo "<td class='label'>$label</td>\n";
        echo "<td>";
        echo sales_items_list($name, $selected_id, $all_option, $submit_on_change,
                'local', array('cells'=>false));
@@ -801,8 +801,8 @@ function stock_manufactured_items_list_cells($label, $name, $selected_id=null,
 function stock_manufactured_items_list_row($label, $name, $selected_id=null,
                $all_option=false, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       stock_manufactured_items_list_cells($label, $name, $selected_id, $all_option, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       stock_manufactured_items_list_cells(null, $name, $selected_id, $all_option, $submit_on_change);
        echo "</tr>\n";
 }
 //------------------------------------------------------------------------------------
@@ -863,8 +863,8 @@ function stock_purchasable_items_list_cells($label, $name, $selected_id=null,
 function stock_purchasable_items_list_row($label, $name, $selected_id=null,
                        $all_option=false, $submit_on_change=false, $editkey=false)
 {
-       echo "<tr>\n";
-       stock_purchasable_items_list_cells($label, $name, $selected_id=null,
+       echo "<tr><td class='label'>$label</td>";
+       stock_purchasable_items_list_cells(null, $name, $selected_id=null,
                $all_option, $submit_on_change, $editkey);
        echo "</tr>\n";
 }
@@ -877,7 +877,7 @@ function stock_item_types_list_row($label, $name, $selected_id=null, $enabled=tr
 
        echo "<tr>";
        if ($label != null)
-               echo "<td>$label</td>\n";
+               echo "<td class='label'>$label</td>\n";
        echo "<td>";
 
        echo array_selector($name, $selected_id, $stock_types, 
@@ -892,7 +892,7 @@ function stock_units_list_row($label, $name, $value=null, $enabled=true)
        $result = get_all_item_units();
        echo "<tr>";
        if ($label != null)
-               echo "<td>$label</td>\n";
+               echo "<td class='label'>$label</td>\n";
        echo "<td>";
 
        while($unit = db_fetch($result))
@@ -931,8 +931,8 @@ function tax_types_list_cells($label, $name, $selected_id=null, $none_option=fal
 function tax_types_list_row($label, $name, $selected_id=null, $none_option=false,
        $submit_on_change=false)
 {
-       echo "<tr>\n";
-       tax_types_list_cells($label, $name, $selected_id, $none_option, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       tax_types_list_cells(null, $name, $selected_id, $none_option, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -964,8 +964,8 @@ function tax_groups_list_cells($label, $name, $selected_id=null, $none_option=fa
 
 function tax_groups_list_row($label, $name, $selected_id=null, $none_option=false, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       tax_groups_list_cells($label, $name, $selected_id, $none_option, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       tax_groups_list_cells(null, $name, $selected_id, $none_option, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -988,8 +988,8 @@ function item_tax_types_list_cells($label, $name, $selected_id=null)
 
 function item_tax_types_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       item_tax_types_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       item_tax_types_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1013,8 +1013,8 @@ function shippers_list_cells($label, $name, $selected_id=null)
 
 function shippers_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       shippers_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       shippers_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1040,8 +1040,8 @@ function sales_persons_list_cells($label, $name, $selected_id=null, $spec_opt=fa
 
 function sales_persons_list_row($label, $name, $selected_id=null, $spec_opt=false)
 {
-       echo "<tr>\n";
-       sales_persons_list_cells($label, $name, $selected_id, $spec_opt);
+       echo "<tr><td class='label'>$label</td>";
+       sales_persons_list_cells(null, $name, $selected_id, $spec_opt);
        echo "</tr>\n";
 }
 
@@ -1064,8 +1064,8 @@ function sales_areas_list_cells($label, $name, $selected_id=null)
 
 function sales_areas_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       sales_areas_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       sales_areas_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1091,8 +1091,8 @@ function sales_groups_list_cells($label, $name, $selected_id=null, $special_opti
 
 function sales_groups_list_row($label, $name, $selected_id=null, $special_option=false)
 {
-       echo "<tr>\n";
-       sales_groups_list_cells($label, $name, $selected_id, $special_option);
+       echo "<tr><td class='label'>$label</td>";
+       sales_groups_list_cells(null, $name, $selected_id, $special_option);
        echo "</tr>\n";
 }
 
@@ -1126,8 +1126,8 @@ function templates_list_cells($label, $name, $selected_id=null, $special_option=
 
 function templates_list_row($label, $name, $selected_id=null, $special_option=false)
 {
-       echo "<tr>\n";
-       templates_list_cells($label, $name, $selected_id, $special_option);
+       echo "<tr><td class='label'>$label</td>";
+       templates_list_cells(null, $name, $selected_id, $special_option);
        echo "</tr>\n";
 }
 
@@ -1150,8 +1150,8 @@ function workorders_list_cells($label, $name, $selected_id=null)
 
 function workorders_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       workorders_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       workorders_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1174,8 +1174,8 @@ function payment_terms_list_cells($label, $name, $selected_id=null)
 
 function payment_terms_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       payment_terms_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       payment_terms_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1198,8 +1198,8 @@ function credit_status_list_cells($label, $name, $selected_id=null)
 
 function credit_status_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       credit_status_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       credit_status_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1229,8 +1229,8 @@ function sales_types_list_cells($label, $name, $selected_id=null, $submit_on_cha
 
 function sales_types_list_row($label, $name, $selected_id=null, $submit_on_change=false, $special_option=false)
 {
-       echo "<tr>\n";
-       sales_types_list_cells($label, $name, $selected_id, $submit_on_change, $special_option);
+       echo "<tr><td class='label'>$label</td>";
+       sales_types_list_cells(null, $name, $selected_id, $submit_on_change, $special_option);
        echo "</tr>\n";
 }
 
@@ -1253,8 +1253,8 @@ function movement_types_list_cells($label, $name, $selected_id=null)
 
 function movement_types_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       movement_types_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       movement_types_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1321,8 +1321,8 @@ function workcenter_list_cells($label, $name, $selected_id=null, $all_option=fal
 
 function workcenter_list_row($label, $name, $selected_id=null, $all_option=false)
 {
-       echo "<tr>\n";
-       workcenter_list_cells($label, $name, $selected_id, $all_option);
+       echo "<tr><td class='label'>$label</td>";
+       workcenter_list_cells(null, $name, $selected_id, $all_option);
        echo "</tr>\n";
 }
 
@@ -1352,8 +1352,8 @@ function bank_accounts_list_cells($label, $name, $selected_id=null, $submit_on_c
 
 function bank_accounts_list_row($label, $name, $selected_id=null, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       bank_accounts_list_cells($label, $name, $selected_id, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       bank_accounts_list_cells(null, $name, $selected_id, $submit_on_change);
        echo "</tr>\n";
 }
 //-----------------------------------------------------------------------------------------------
@@ -1365,7 +1365,7 @@ function cash_accounts_list_row($label, $name, $selected_id=null, $submit_on_cha
                WHERE ".TB_PREF."bank_accounts.account_type=3";
 
        if ($label != null)
-               echo "<tr><td>$label</td>\n";
+               echo "<tr><td class='label'>$label</td>\n";
        echo "<td>";
        echo combo_input($name, $selected_id, $sql, 'id', 'bank_account_name',
        array(
@@ -1384,7 +1384,7 @@ function pos_list_row($label, $name, $selected_id=null, $spec_option=false, $sub
        default_focus($name);
        echo '<tr>';
        if ($label != null)
-               echo "<td>$label</td>\n";
+               echo "<td class='label'>$label</td>\n";
        echo "<td>";
 
        echo combo_input($name, $selected_id, $sql, 'id', 'pos_name',
@@ -1403,7 +1403,7 @@ function pos_list_row($label, $name, $selected_id=null, $spec_option=false, $sub
 function sale_payment_list_cells($label, $name, $selected_id=null, $submit_on_change=false)
 {
        if ($label != null)
-               echo "<td>$label</td>\n";
+               echo "<td class='label'>$label</td>\n";
        echo "<td>";
        echo yesno_list($name, $selected_id, _('Cash'), _('Delayed'), $submit_on_change);
        echo "</td>\n";
@@ -1433,8 +1433,8 @@ function class_list_cells($label, $name, $selected_id=null, $submit_on_change=fa
 
 function class_list_row($label, $name, $selected_id=null, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       class_list_cells($label, $name, $selected_id, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       class_list_cells(null, $name, $selected_id, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -1462,8 +1462,8 @@ function stock_categories_list_cells($label, $name, $selected_id=null, $spec_opt
 
 function stock_categories_list_row($label, $name, $selected_id=null, $spec_opt=false, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       stock_categories_list_cells($label, $name, $selected_id, $spec_opt, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       stock_categories_list_cells(null, $name, $selected_id, $spec_opt, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -1496,8 +1496,8 @@ function gl_account_types_list_cells($label, $name, $selected_id=null, $all_opti
 function gl_account_types_list_row($label, $name, $selected_id=null, $all_option=false,
        $all_option_numeric=false)
 {
-       echo "<tr>\n";
-       gl_account_types_list_cells($label, $name, $selected_id, $all_option,
+       echo "<tr><td class='label'>$label</td>";
+       gl_account_types_list_cells(null, $name, $selected_id, $all_option,
                $all_option_numeric);
        echo "</tr>\n";
 }
@@ -1557,8 +1557,8 @@ function gl_all_accounts_list_cells($label, $name, $selected_id=null,
 function gl_all_accounts_list_row($label, $name, $selected_id=null, 
        $skip_bank_accounts=false, $cells=false, $all_option=false)
 {
-       echo "<tr>\n";
-       gl_all_accounts_list_cells($label, $name, $selected_id, 
+       echo "<tr><td class='label'>$label</td>";
+       gl_all_accounts_list_cells(null, $name, $selected_id, 
                $skip_bank_accounts, $cells, $all_option);
        echo "</tr>\n";
 }
@@ -1586,8 +1586,8 @@ function yesno_list_cells($label, $name, $selected_id=null, $name_yes="", $name_
 
 function yesno_list_row($label, $name, $selected_id=null, $name_yes="", $name_no="", $submit_on_change=false)
 {
-       echo "<tr>\n";
-       yesno_list_cells($label, $name, $selected_id, $name_yes, $name_no, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       yesno_list_cells(null, $name, $selected_id, $name_yes, $name_no, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -1615,8 +1615,8 @@ function languages_list_cells($label, $name, $selected_id=null)
 
 function languages_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       languages_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       languages_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1640,8 +1640,8 @@ function bank_account_types_list_cells($label, $name, $selected_id=null)
 
 function bank_account_types_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr>\n";
-       bank_account_types_list_cells($label, $name, $selected_id);
+       echo "<tr><td class='label'>$label</td>";
+       bank_account_types_list_cells(null, $name, $selected_id);
        echo "</tr>\n";
 }
 
@@ -1671,8 +1671,8 @@ function payment_person_types_list_cells($label, $name, $selected_id=null, $rela
 
 function payment_person_types_list_row($label, $name, $selected_id=null, $related=null)
 {
-       echo "<tr>\n";
-       payment_person_types_list_cells($label, $name, $selected_id, $related);
+       echo "<tr><td class='label'>$label</td>";
+       payment_person_types_list_cells(null, $name, $selected_id, $related);
        echo "</tr>\n";
 }
 
@@ -1688,7 +1688,7 @@ function wo_types_list($name, $selected_id=null)
 
 function wo_types_list_row($label, $name, $selected_id=null)
 {
-       echo "<tr><td>$label</td><td>\n";
+       echo "<tr><td class='label'>$label</td><td>\n";
        echo wo_types_list($name, $selected_id);
        echo "</td></tr>\n";
 }
@@ -1699,7 +1699,7 @@ function dateformats_list_row($label, $name, $value=null)
 {
        global $dateformats;
 
-       echo "<tr><td>$label</td>\n<td>";
+       echo "<tr><td class='label'>$label</td>\n<td>";
        echo array_selector( $name, $value, $dateformats );
        echo "</td></tr>\n";
 }
@@ -1708,7 +1708,7 @@ function dateseps_list_row($label, $name, $value=null)
 {
        global $dateseps;
 
-       echo "<tr><td>$label</td>\n<td>";
+       echo "<tr><td class='label'>$label</td>\n<td>";
        echo array_selector( $name, $value, $dateseps );
        echo "</td></tr>\n";
 }
@@ -1717,7 +1717,7 @@ function thoseps_list_row($label, $name, $value=null)
 {
        global $thoseps;
 
-       echo "<tr><td>$label</td>\n<td>";
+       echo "<tr><td class='label'>$label</td>\n<td>";
        echo array_selector( $name, $value, $thoseps );
        echo "</td></tr>\n";
 }
@@ -1726,7 +1726,7 @@ function decseps_list_row($label, $name, $value=null)
 {
        global $decseps;
 
-       echo "<tr><td>$label</td>\n<td>";
+       echo "<tr><td class='label'>$label</td>\n<td>";
        echo array_selector( $name, $value, $decseps );
        echo "</td></tr>\n";
 }
@@ -1747,7 +1747,7 @@ function themes_list_row($label, $name, $value=null)
        }
        ksort($themes);
 
-       echo "<tr><td>$label</td>\n<td>";
+       echo "<tr><td class='label'>$label</td>\n<td>";
        echo array_selector( $name, $value, $themes );
        echo "</td></tr>\n";
 }
@@ -1760,7 +1760,7 @@ function pagesizes_list_row($label, $name, $value=null)
        foreach ($pagesizes as $pz)
                $items[$pz] = $pz;
 
-       echo "<tr><td>$label</td>\n<td>";
+       echo "<tr><td class='label'>$label</td>\n<td>";
        echo array_selector( $name, $value, $items );
        echo "</td></tr>\n";
 }
@@ -1790,8 +1790,8 @@ function systypes_list_cells($label, $name, $value=null, $submit_on_change=false
 
 function systypes_list_row($label, $name, $value=null, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       systypes_list_cells($label, $name, $value, false, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       systypes_list_cells(null, $name, $value, false, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -1870,8 +1870,8 @@ function policy_list_cells($label, $name, $selected=null)
 
 function policy_list_row($label, $name, $selected=null)
 {
-       echo "<tr>\n";
-       policy_list_cells($label, $name, $selected);
+       echo "<tr><td class='label'>$label</td>";
+       policy_list_cells(null, $name, $selected);
        echo "</tr>\n";
 }
 
@@ -1889,8 +1889,8 @@ function credit_type_list_cells($label, $name, $selected=null, $submit_on_change
 
 function credit_type_list_row($label, $name, $selected=null, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       credit_type_list_cells($label, $name, $selected, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       credit_type_list_cells(null, $name, $selected, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -1916,8 +1916,8 @@ function number_list_cells($label, $name, $selected, $from, $to, $no_option=fals
 
 function number_list_row($label, $name, $selected, $from, $to, $no_option=false)
 {
-       echo "<tr>\n";
-       echo number_list_cells($label, $name, $selected, $from, $to, $no_option);
+       echo "<tr><td class='label'>$label</td>";
+       echo number_list_cells(null, $name, $selected, $from, $to, $no_option);
        echo "</tr>\n";
 }
 
@@ -1934,7 +1934,7 @@ function print_profiles_list_row($label, $name, $selected_id=null, $spec_opt=fal
 
        echo "<tr>";
        if ($label != null)
-               echo "<td>$label</td>\n";
+               echo "<td class='label'>$label</td>\n";
        echo "<td>";
 
        echo array_selector($name, $selected_id, $profiles, 
@@ -1986,15 +1986,16 @@ function quick_entries_list($name, $selected_id=null, $type=null, $submit_on_cha
 
 function quick_entries_list_cells($label, $name, $selected_id=null, $type, $submit_on_change=false)
 {
-       echo "<td>$label</td><td>\n";
+       if ($label != null)
+               echo "<td>$label</td><td>\n";
        echo quick_entries_list($name, $selected_id, $type, $submit_on_change);
        echo "</td>";
 }
 
 function quick_entries_list_row($label, $name, $selected_id=null, $type, $submit_on_change=false)
 {
-       echo "<tr>\n";
-       quick_entries_list_cells($label, $name, $selected_id, $type, $submit_on_change);
+       echo "<tr><td class='label'>$label</td>";
+       quick_entries_list_cells(null, $name, $selected_id, $type, $submit_on_change);
        echo "</tr>\n";
 }
 
@@ -2003,7 +2004,7 @@ function quick_actions_list_row($label, $name, $selected_id=null, $submit_on_cha
 {
        global $quick_actions;
        
-       echo "<tr><td>$label</td><td>";
+       echo "<tr><td class='label'>$label</td><td>";
        echo array_selector($name, $selected_id, $quick_actions, 
                array( 
                        'select_submit'=> $submit_on_change
@@ -2015,7 +2016,7 @@ function quick_entry_types_list_row($label, $name, $selected_id=null, $submit_on
 {
        global $quick_entry_types;
                
-       echo "<tr><td>$label</td><td>";
+       echo "<tr><td class='label'>$label</td><td>";
        echo array_selector($name, $selected_id, $quick_entry_types, 
                array( 
                        'select_submit'=> $submit_on_change
@@ -2031,7 +2032,7 @@ function class_types_list_row($label, $name, $selected_id=null, $submit_on_chang
 {
        global $class_types;
        
-       echo "<tr><td>$label</td><td>";
+       echo "<tr><td class='label'>$label</td><td>";
        echo array_selector($name, $selected_id, $class_types, 
                array( 
                        'select_submit'=> $submit_on_change
@@ -2070,8 +2071,8 @@ function security_roles_list_cells($label, $name, $selected_id=null, $new_item=f
 function security_roles_list_row($label, $name, $selected_id=null, $new_item=false, $submit_on_change=false,
        $show_inactive = false)
 {
-       echo "<tr>";
-       security_roles_list_cells($label, $name, $selected_id, $new_item, $submit_on_change, $show_inactive);
+       echo "<tr><td class='label'>$label</td>";
+       security_roles_list_cells(null, $name, $selected_id, $new_item, $submit_on_change, $show_inactive);
        echo "</tr>\n";
 }
 
@@ -2090,7 +2091,7 @@ function tab_list_row($label, $name, $selected_id=null, $all = false)
                }
        }
        echo "<tr>\n";
-       echo "<td>$label</td><td>\n";
+       echo "<td class='label'>$label</td><td>\n";
        echo array_selector($name, $selected_id, $tabs);
        echo "</td></tr>\n";
 }
@@ -2132,8 +2133,8 @@ function tag_list_cells($label, $name, $height, $type, $mult=false, $all=false,
 
 function tag_list_row($label, $name, $height, $type, $mult=false, $all=false, $spec_opt = false)
 {
-       echo "<tr>\n";
-       tag_list_cells($label, $name, $height, $type, $mult, $all, $spec_opt);
+       echo "<tr><td class='label'>$label</td>";
+       tag_list_cells(null, $name, $height, $type, $mult, $all, $spec_opt);
        echo "</tr>\n"; 
 }
 
index cef962386680539264b82c896d896d6ca2ba8f5d..add74834a11a29cb1ad5f70c1fbbee507fcc3e79 100644 (file)
@@ -419,7 +419,7 @@ else
 table_section_title(_("Other"));
 
 // Add image upload for New Item  - by Joe
-label_row(_("Image File (.jpg)") . ":", "<input type='file' id='pic' name='pic'>");
+file_row(_("Image File (.jpg)") . ":", 'pic', 'pic');
 // Add Image upload for New Item  - by Joe
 $stock_img_link = "";
 $check_remove_image = false;
index baf2ceb5fa281f390a920d1eb1a198921bc9e77f..bc03ee82100b9a932e2775fd6fa2a01b7eedac25 100644 (file)
@@ -55,13 +55,13 @@ function copy_to_trans(&$supp_trans)
 
 function invoice_header(&$supp_trans)
 {
-       global $Ajax, $table_style, $Refs;
+       global $Ajax, $table_style2, $Refs;
        
        // if vars have been lost, recopy
        if (!isset($_POST['tran_date']))
                copy_from_trans($supp_trans);
 
-       start_outer_table("$table_style width=98%", 5);
+       start_outer_table("width=95% $table_style2");
 
        table_section(1);
 
@@ -141,19 +141,21 @@ function invoice_totals(&$supp_trans)
 
        copy_to_trans($supp_trans);
 
-    start_table("$table_style width=95%");
-       label_row(_("Sub-total:"), price_format( $supp_trans->ov_amount), "align=right", "align=right");
+       $dim = get_company_pref('use_dimension');
+       $colspan = ($dim == 2 ? 7 : ($dim == 1 ? 6 : 5));
+       start_table("$table_style 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);
-    $tax_total = display_edit_tax_items($taxes, 1, 0); // tax_included==0 (we are the company)
+    $tax_total = display_edit_tax_items($taxes, $colspan, 0); // tax_included==0 (we are the company)
 
     $display_total = price_format($supp_trans->ov_amount + $tax_total);
 
        if ($supp_trans->is_invoice)
-       label_row(_("Invoice Total:"), $display_total, "align=right style='font-weight:bold;'", "align=right style='font-weight:bold;'");
+       label_row(_("Invoice Total:"), $display_total, "colspan=$colspan align=right style='font-weight:bold;'", "align=right style='font-weight:bold;'");
     else
                label_row(_("Credit Note Total"),
-                       $display_total, "align=right style='font-weight:bold;color:red;'", "nowrap align=right style='font-weight:bold;color:red;'");
+                       $display_total, "colspan=$colspan align=right style='font-weight:bold;color:red;'", "nowrap align=right style='font-weight:bold;color:red;'");
 
     end_table(1);
     start_table($table_style2);
@@ -164,7 +166,7 @@ function invoice_totals(&$supp_trans)
 //--------------------------------------------------------------------------------------------------
 function display_gl_controls(&$supp_trans, $k)
 {
-       global $table_style;
+       global $table_style, $table_style2;
 
        $accs = get_supplier_accounts($supp_trans->supplier_id);
        $_POST['gl_code'] = $accs['purchase_account'];
@@ -197,20 +199,18 @@ function display_gl_controls(&$supp_trans, $k)
 
 function display_gl_items(&$supp_trans, $mode=0)
 {
-       global $table_style, $path_to_root, $Ajax;
+       global $table_style, $table_style2, $path_to_root, $Ajax;
 
     // if displaying in form, and no items, exit
     if (($mode == 2 || $mode == 3) && count($supp_trans->gl_codes) == 0)
        return 0;
 
-       start_outer_table("width=95%");
-
        if ($supp_trans->is_invoice)
                $heading = _("GL Items for this Invoice");
        else
                $heading = _("GL Items for this Credit Note");
 
-       start_outer_table("width=100%");
+       start_outer_table("$table_style width=95%");
 
        if ($mode == 1)
        {
@@ -239,10 +239,8 @@ function display_gl_items(&$supp_trans, $mode=0)
 
        end_outer_table(0, false);
 
-       vertical_space(); // ouer table
-
        div_start('gl_items');
-       start_table("$table_style width=100%");
+       start_table("$table_style width=95%");
 
        $dim = get_company_pref('use_dimension');
        if ($dim == 2)
@@ -310,10 +308,9 @@ function display_gl_items(&$supp_trans, $mode=0)
        label_row(_("Total"), price_format($total_gl_value),
                "colspan=".$colspan." align=right", "nowrap align=right", ($mode==1?3:1));
 
-       end_table();
+       end_table(1);
        div_end();
 
-    end_outer_table(0, false); // outertable
        return $total_gl_value;
 }
 
@@ -417,7 +414,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("width=95%");
+       start_outer_table("style='border:1px solid #cccccc;' width=95%");
 
        $heading2 = "";
        if ($mode == 1)
@@ -439,8 +436,6 @@ function display_grn_items(&$supp_trans, $mode=0)
                        $heading = _("Received Items Credited on this Note");
        }               
 
-       start_outer_table("width=100%");
-
        display_heading($heading);
 
        if ($mode == 1)
@@ -456,7 +451,6 @@ function display_grn_items(&$supp_trans, $mode=0)
                        
                if ($heading2 != "")
                {
-                       //br();
                        display_note($heading2, 0, 0, "class='overduefg'");
                }       
                echo "</td><td width=10% align='right'>";
@@ -466,7 +460,7 @@ function display_grn_items(&$supp_trans, $mode=0)
        end_outer_table(0, false);
 
        div_start('grn_items');
-       start_table("$table_style width=100%");
+       start_table("$table_style width=95%");
        if ($mode == 1)
        {
        $th = array(_("Delivery"), _("Sequence #"), _("P.O."), _("Item"), _("Description"),
@@ -543,20 +537,23 @@ function display_grn_items(&$supp_trans, $mode=0)
                $colspan = 5;
        label_row(_("Total"), price_format($total_grn_value),
                "colspan=$colspan align=right", "nowrap align=right");
-    end_table();
        if (!$ret)
        {
+               start_row();
+               echo "<td colspan=".($colspan + 1).">";
                if ($supp_trans->is_invoice)
-                       display_note(_("There are no outstanding items received from this supplier that have not been invoiced by them."), 0, 1);
+                       display_note(_("There are no outstanding items received from this supplier that have not been invoiced by them."), 0, 0);
                else
                {
                        display_note(_("There are no received items for the selected supplier that have been invoiced."));
-                       display_note(_("Credits can only be applied to invoiced items."), 0, 1);
+                       display_note(_("Credits can only be applied to invoiced items."), 0, 0);
                }
+               echo "</td>";
+               end_row();
        }       
+    end_table(1);
     div_end();
 
-    end_outer_table(0, false); // outertable
        return $total_grn_value;
 }
 
index 830f483f3998e7e04a9ec150f4508d1f618cb8a9..6a2dab209e9d72f7257eed0f7ed12b97ccf059f5 100644 (file)
@@ -116,11 +116,7 @@ function display_po_header(&$order)
        }
 
        text_row(_("Supplier's Reference:"), 'Requisition', null, 16, 15);
-
-       echo "<tr><td>" . _("Receive Into:") . "</td>";
-       echo "<td>";
-    echo locations_list('StkLocation', null, false, true);
-       echo "</td></tr>";
+       locations_list_row(_("Receive Into:"), 'StkLocation', null, false, true); 
 
        table_section(3);
 
@@ -225,8 +221,8 @@ function display_po_items(&$order, $editable=true)
 
 function display_po_summary(&$po, $is_self=false, $editable=false)
 {
-       global $table_style2;
-    start_table("$table_style2 width=90%");
+       global $table_style;
+    start_table("$table_style width=90%");
 
     start_row();
     label_cells(_("Reference"), $po->reference, "class='tableheader2'");
index 1a8d63e9bdca091b7b481876a72b7e6d01d80baa..ff2fa175389cf33dca03b40b39ce646850b9c338 100644 (file)
@@ -318,8 +318,6 @@ invoice_header($_SESSION['supp_trans']);
 if ($_POST['supplier_id']=='') 
        display_error('No supplier found for entered search text');
 else {
-       start_outer_table("$table_style2 width=98%", 5);
-
        $total_grn_value = display_grn_items($_SESSION['supp_trans'], 1);
 
        $total_gl_value = display_gl_items($_SESSION['supp_trans'], 1);
@@ -327,8 +325,6 @@ else {
        div_start('inv_tot');
        invoice_totals($_SESSION['supp_trans']);
        div_end();
-
-       end_outer_table(0, false);
 }
 
 if ($id != -1)
index bd8f0763562879e8a4213f0bea81ba3416ce2f91..13402c62ecb10c4fcbb5c1e8c9032dcb0db1c933 100644 (file)
@@ -383,8 +383,6 @@ invoice_header($_SESSION['supp_trans']);
 if ($_POST['supplier_id']=='') 
        display_error('No supplier found for entered search text');
 else {
-       start_outer_table("$table_style2 width=98%", 5);
-
        display_grn_items($_SESSION['supp_trans'], 1);
 
        display_gl_items($_SESSION['supp_trans'], 1);
@@ -393,7 +391,6 @@ else {
        invoice_totals($_SESSION['supp_trans']);
        div_end();
 
-       end_outer_table(0, false);
 }
 
 //-----------------------------------------------------------------------------------------
index 9cb78d8764f036c2873539bc6cd60ba52f179d58..c6c4cf8839af506306e4aba5361f6d51bd9f2705 100644 (file)
@@ -32,7 +32,7 @@ class BoxReports
 
        function getDisplay($class=null)
        {
-               global $table_style2, $comp_path, $path_to_root, $pdf_debug, $Ajax;
+               global $table_style, $comp_path, $path_to_root, $pdf_debug, $Ajax;
 
 
                $temp = array_values($this->ar_classes);
@@ -99,7 +99,7 @@ class BoxReports
                                        }
                                </script>
                                ";
-               $st .= "<table align='center' width='80%' $table_style2><tr valign='top'>";
+               $st .= "<table align='center' width='80%'><tr valign='top'>";
                $st .= "<td width='30%'>$st_classes</td>";
                $st .= "<td width='35%'>$st_reports</td>";
                $st .= "<td width='35%'>$st_params</td>";
index 028ca8b76c4cfcbbe0b08d9c0628c59cca6a7da8..de12daf9824206ce3617917021bc81c74cfbf6bf 100644 (file)
@@ -226,9 +226,7 @@ function display_order_summary($title, &$order, $editable_items=false)
        label_cell('', 'colspan=2');
        end_row();
        $display_sub_total = price_format($total + input_num('freight_cost'));
-
        label_row(_("Sub-total"), $display_sub_total, "colspan=$colspan align=right","align=right", 2);
-
        $taxes = $order->get_taxes(input_num('freight_cost'));
        $tax_total = display_edit_tax_items($taxes, $colspan, $order->tax_included, 2);
 
@@ -253,9 +251,9 @@ function display_order_summary($title, &$order, $editable_items=false)
 
 function display_order_header(&$order, $editable, $date_text, $display_tax_group=false)
 {
-       global $table_style, $Ajax, $SysPrefs;
+       global $table_style2, $Ajax, $SysPrefs;
 
-       start_outer_table("width=80% $table_style");
+       start_outer_table("width=80% $table_style2");
 
        table_section(1);
        
@@ -359,7 +357,7 @@ function display_order_header(&$order, $editable, $date_text, $display_tax_group
                }
        }
 
-       ref_cells(_("Reference").':', 'ref', _('Reference number unique for this document type'), null, '');
+       ref_row(_("Reference").':', 'ref', _('Reference number unique for this document type'), null, '');
 
        if (!is_company_currency($order->customer_currency))
        {
index ebf60096fa3cf9585d9c0ed62e61f4b422c9071e..c8a212e33447f503f7343c2f74eaca2572f57a1a 100644 (file)
@@ -116,7 +116,7 @@ if ($_GET['trans_type'] != ST_SALESQUOTE)
 
        }
 
-       label_row(null, price_format($delivery_total), "", "colspan=4 align=right");
+       label_row(null, price_format($delivery_total), " ", "colspan=4 align=right");
 
        end_table();
        echo "</td><td valign='top'>";
@@ -149,7 +149,7 @@ if ($_GET['trans_type'] != ST_SALESQUOTE)
 
        }
 
-       label_row(null, price_format($invoices_total), "", "colspan=4 align=right");
+       label_row(null, price_format($invoices_total), " ", "colspan=4 align=right");
 
        end_table();
 
@@ -182,7 +182,7 @@ if ($_GET['trans_type'] != ST_SALESQUOTE)
        }
 
        label_row(null, "<font color=red>" . price_format(-$credits_total) . "</font>",
-               "", "colspan=4 align=right");
+               " ", "colspan=4 align=right");
 
 
        end_table();
index 81f43f235a1801590b80ebd347f8ee2f798b5fbd..b41ad16ec87600b36a2eea846e563843a44418d5 100644 (file)
@@ -24,10 +24,6 @@ body {
        padding: 0;
 }
 
-#loginscreen {
-       background: #f5f5f5;
-}
-
 tr, td, th {
        font-size: 11px;
        line-height: 19px;
@@ -99,13 +95,6 @@ button img, span {
        vertical-align: middle;
 }
 
-.login {
-       width: 350px;
-       border-left: 12px solid #367cb5;
-       border-collapse: collapse;
-       background-color: #eeeeee;
-}
-
 .callout_main {
        font-family: Verdana, Arial, Helvetica;
        border: none;
@@ -374,17 +363,54 @@ div.tabs a:hover {
        color: red;
 }
 
-.tablestyle {
+table.tablestyle {
        border-collapse: collapse;
+       border: 1px solid #8cacbb;
 }
-
-.tablestyle2 {
+table.tablestyle td {
+       border-collapse: collapse;
+       border: 1px solid #8cacbb;
+}
+table.tablestyle2 {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+table.tablestyle2 td {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+table.tablestyle_inner {
        border-collapse: collapse;
+       border: 1px solid #f9f9f9;
+}
+table.tablestyle_inner td {
+       border-collapse: collapse;
+       border: 1px solid #f9f9f9;
 }
 .tablestyle_noborder {
        padding: 3px;
 }
 
+.label {
+       background-color: #efefef;
+       color: black;
+}
+
+#loginscreen {
+       background: #f5f5f5;
+}
+
+.login {
+       width: 350px;
+       border-left: 12px solid #367cb5;
+       border-collapse: collapse;
+       background-color: #eeeeee;
+}
+.login td {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+
 .amount {
        font-family: Verdana, Arial, Helvetica;
        font-size: 11px;
@@ -432,6 +458,10 @@ button.navibutton {
     background-color: #d5cea7;
 }
 
+.navibar tr td {
+    border: none;
+}
+
 .listsubmit {
     display: none;
 }
index 8d58709c4e4c0b6a26f17bfdcf07cde0bfb298be..d48d1aa31f976f192c2c4dde12d596d9594498a0 100644 (file)
@@ -2,8 +2,8 @@
 | cool        |                 | default.css       |
 |---------------------------------------------------|
 | For use with:                                     |
-| FrontAccounting                                                                      |
-| http://FrontAccounting.com/                                  |
+| FrontAccounting                                  |
+| http://FrontAccounting.com/                              |
 | by Joe Hunt Consulting                            |
 |---------------------------------------------------|
 | Developer:                                        |
@@ -24,10 +24,6 @@ body {
        padding: 0;
 }
 
-#loginscreen {
-       background: #f5f5f5;
-}
-
 tr, td, th {
        font-size: 11px;
        line-height: 19px;
@@ -99,13 +95,6 @@ button img, span {
        vertical-align: middle;
 }
 
-.login {
-       width: 350px;
-       border-left: 12px solid #367cb5;
-       border-collapse: collapse;
-       background-color: #eeeeee;
-}
-
 .callout_main {
        font-family: Verdana, Arial, Helvetica;
        border: none;
@@ -378,17 +367,54 @@ div.tabs a:hover {
        color: red;
 }
 
-.tablestyle {
+table.tablestyle {
        border-collapse: collapse;
+       border: 1px solid #8cacbb;
 }
-
-.tablestyle2 {
+table.tablestyle td {
+       border-collapse: collapse;
+       border: 1px solid #8cacbb;
+}
+table.tablestyle2 {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+table.tablestyle2 td {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+table.tablestyle_inner {
        border-collapse: collapse;
+       border: 1px solid #eff9f9;
+}
+table.tablestyle_inner td {
+       border-collapse: collapse;
+       border: 1px solid #eff9f9;
 }
 .tablestyle_noborder {
        padding: 3px;
 }
 
+.label {
+       background-color: #e4ecec;
+       color: black;
+}
+
+#loginscreen {
+       background: #f5f5f5;
+}
+
+.login {
+       width: 350px;
+       border-left: 12px solid #367cb5;
+       border-collapse: collapse;
+       background-color: #eeeeee;
+}
+.login td {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+
 .amount {
        font-family: Verdana, Arial, Helvetica;
        font-size: 11px;
@@ -436,6 +462,9 @@ button.navibutton {
     background-color: #788da1;
 }
 
+.navibar tr td {
+    border: none;
+}
 
 .listsubmit {
     display: none;
index d03e3618ea8f321d7668c9401f4dac359c855381..2e261acc1b4a52aed97c66a7391a47d03bc78183 100644 (file)
@@ -24,10 +24,6 @@ body {
        padding: 0;
 }
 
-#loginscreen {
-       background: #f5f5f5;
-}
-
 tr, td, th {
        font-size: 11px;
        line-height: 19px;
@@ -99,13 +95,6 @@ button img, span {
        vertical-align: middle;
 }
 
-.login {
-       width: 350px;
-       border-left: 12px solid #367cb5;
-       border-collapse: collapse;
-       background-color: #eeeeee;
-}
-
 .callout_main {
        font-family: Verdana, Arial, Helvetica;
        border: none;
@@ -277,10 +266,6 @@ div.tabs a:hover {
        text-align: left;
 }
 
-.tableseparator {
-       border-left: 1px solid #444466;
-}
-
 .titletext {
        font-weight: bold;
        font-size: 13px;
@@ -373,17 +358,54 @@ div.tabs a:hover {
        color: red;
 }
 
-.tablestyle {
+table.tablestyle {
        border-collapse: collapse;
+       border: 1px solid #8cacbb;
 }
-
-.tablestyle2 {
+table.tablestyle td {
+       border-collapse: collapse;
+       border: 1px solid #8cacbb;
+}
+table.tablestyle2 {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+table.tablestyle2 td {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+table.tablestyle_inner {
+       border-collapse: collapse;
+       border: 1px solid #f9f9f9;
+}
+table.tablestyle_inner td {
        border-collapse: collapse;
+       border: 1px solid #f9f9f9;
 }
 .tablestyle_noborder {
        padding: 3px;
 }
 
+.label {
+       background-color: #efefef;
+       color: black;
+}
+
+#loginscreen {
+       background: #f5f5f5;
+}
+
+.login {
+       width: 350px;
+       border-left: 12px solid #367cb5;
+       border-collapse: collapse;
+       background-color: #eeeeee;
+}
+.login td {
+       border-collapse: collapse;
+       border: 1px solid #cccccc;
+}
+
 .amount {
        font-family: Verdana, Arial, Helvetica;
        font-size: 11px;
@@ -427,11 +449,14 @@ button.navibutton {
 .navibar {
     padding: 0 3px;
        color: #000;
-    border: 1px solid #8cacbb;
     border-collapse: collapse;
     background-color: #dee7ec;
 }
 
+.navibar tr td {
+    border: none;
+}
+
 .listsubmit {
     display: none;
 }