! -> 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
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
$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))
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']))
$_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."));
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);
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);
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']);
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);
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);
$_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)
{
/* 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.
{
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)
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";
}
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>";
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";
}
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";
}
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)
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";
}
$_POST[$name] = '';
}
if ($label != null)
+ {
+ if ($params == null)
+ $params = "class='label'";
label_cell($label, $params);
-
+ }
if (!isset($max))
$max = $size;
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";
}
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";
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";
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>";
}
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";
}
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";
}
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";
}
//------------------------------------------------------------------------------------
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";
}
{
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));
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";
}
//------------------------------------------------------------------------------------
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";
}
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,
$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))
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
//-----------------------------------------------------------------------------------------------
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(
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',
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";
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
{
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";
}
{
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";
}
{
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";
}
{
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";
}
}
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";
}
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";
}
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";
}
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";
}
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";
}
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";
}
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,
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";
}
{
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
{
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
{
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
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";
}
}
}
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";
}
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";
}
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;
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);
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);
//--------------------------------------------------------------------------------------------------
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'];
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)
{
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)
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;
}
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)
$heading = _("Received Items Credited on this Note");
}
- start_outer_table("width=100%");
-
display_heading($heading);
if ($mode == 1)
if ($heading2 != "")
{
- //br();
display_note($heading2, 0, 0, "class='overduefg'");
}
echo "</td><td width=10% align='right'>";
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"),
$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;
}
}
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);
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'");
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);
div_start('inv_tot');
invoice_totals($_SESSION['supp_trans']);
div_end();
-
- end_outer_table(0, false);
}
if ($id != -1)
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);
invoice_totals($_SESSION['supp_trans']);
div_end();
- end_outer_table(0, false);
}
//-----------------------------------------------------------------------------------------
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);
}
</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>";
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);
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);
}
}
- 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))
{
}
- 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'>";
}
- label_row(null, price_format($invoices_total), "", "colspan=4 align=right");
+ label_row(null, price_format($invoices_total), " ", "colspan=4 align=right");
end_table();
}
label_row(null, "<font color=red>" . price_format(-$credits_total) . "</font>",
- "", "colspan=4 align=right");
+ " ", "colspan=4 align=right");
end_table();
padding: 0;
}
-#loginscreen {
- background: #f5f5f5;
-}
-
tr, td, th {
font-size: 11px;
line-height: 19px;
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;
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;
background-color: #d5cea7;
}
+.navibar tr td {
+ border: none;
+}
+
.listsubmit {
display: none;
}
| cool | | default.css |
|---------------------------------------------------|
| For use with: |
-| FrontAccounting |
-| http://FrontAccounting.com/ |
+| FrontAccounting |
+| http://FrontAccounting.com/ |
| by Joe Hunt Consulting |
|---------------------------------------------------|
| Developer: |
padding: 0;
}
-#loginscreen {
- background: #f5f5f5;
-}
-
tr, td, th {
font-size: 11px;
line-height: 19px;
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;
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;
background-color: #788da1;
}
+.navibar tr td {
+ border: none;
+}
.listsubmit {
display: none;
padding: 0;
}
-#loginscreen {
- background: #f5f5f5;
-}
-
tr, td, th {
font-size: 11px;
line-height: 19px;
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;
text-align: left;
}
-.tableseparator {
- border-left: 1px solid #444466;
-}
-
.titletext {
font-weight: bold;
font-size: 13px;
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;
.navibar {
padding: 0 3px;
color: #000;
- border: 1px solid #8cacbb;
border-collapse: collapse;
background-color: #dee7ec;
}
+.navibar tr td {
+ border: none;
+}
+
.listsubmit {
display: none;
}