$ar_comps['gzip'] = "gzip";
echo "<tr><td>$label</td><td>";
- array_selector('comp', $value, $ar_comps);
+ echo array_selector('comp', $value, $ar_comps);
echo "</td></tr>";
}
$Ajax->activate('_page_body');
echo "<center>" . _('Extensions:') . " ";
-extset_list('extset', null, true);
+echo extset_list('extset', null, true);
echo "</center><br>";
$set = get_post('extset', -1);
label_cell($descr == '' ? '???<sup>1)</sup>' : _($descr));
$_POST['Prn'.$rep] = isset($prints[$rep]) ? $prints[$rep] : '';
echo '<td>';
- printers_list('Prn'.$rep, null,
+ echo printers_list('Prn'.$rep, null,
$rep == '' ? _('Browser support') : _('Default'));
echo '</td>';
if ($descr == '') $unkn = 1;
$_POST['LineMemo'] = $item->reference;
hidden('Index', $id);
- gl_all_accounts_list('code_id', null, true, true);
+ echo gl_all_accounts_list('code_id', null, true, true);
if ($dim >= 1)
dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
if ($dim > 1)
$_POST['code_id'] =
get_company_pref($payment ? 'default_cogs_act':'default_inv_sales_act');
}
- gl_all_accounts_list('code_id', null, true, true);
+ echo gl_all_accounts_list('code_id', null, true, true);
if ($dim >= 1)
dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
if ($dim > 1)
hidden('Index', $id);
$skip_bank = !$_SESSION["wa_current_user"]->can_access('SA_BANKJOURNAL');
- gl_all_accounts_list('code_id', null, $skip_bank, true);
+ echo gl_all_accounts_list('code_id', null, $skip_bank, true);
if ($dim >= 1)
dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
if ($dim > 1)
}
$skip_bank = !$_SESSION["wa_current_user"]->can_access('SA_BANKJOURNAL');
- gl_all_accounts_list('code_id', null, $skip_bank, true);
+ echo gl_all_accounts_list('code_id', null, $skip_bank, true);
if ($dim >= 1)
dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
if ($dim > 1)
echo "<center>";
echo _("Select a currency :") . " ";
-currencies_list('curr_abrev', null, true);
+echo currencies_list('curr_abrev', null, true);
echo "</center>";
// if currency sel has changed, clear the form
function submit_center($name, $value, $echo=true, $title=false, $async=false, $icon=false)
{
- echo "<center>";
+ if ($echo) echo "<center>";
submit($name, $value, $echo, $title, $async, $icon);
- echo "</center>";
+ if ($echo) echo "</center>";
}
function submit_center_first($name, $value, $title=false, $async=false, $icon=false)
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Item:"). " ";
-stock_costable_items_list('stock_id', $_POST['stock_id'], false, true);
+echo stock_costable_items_list('stock_id', $_POST['stock_id'], false, true);
echo "</center><hr>";
set_global_stock_item($_POST['stock_id']);
$_POST['stock_id'] = get_global_stock_item();
echo "<center> " . _("Item:"). " ";
-stock_items_list('stock_id', $_POST['stock_id'], false, true);
+echo stock_items_list('stock_id', $_POST['stock_id'], false, true);
echo "<br>";
echo "<hr></center>";
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Item:"). " ";
-stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
+echo stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
echo "<hr></center>";
textarea_row(_('Description:'), 'long_description', null, 42, 3);
-stock_categories_list_row(_("Category:"), 'category_id', null, $new_item);
+stock_categories_list_row(_("Category:"), 'category_id', null, false, $new_item);
if ($new_item && (list_updated('category_id') || !isset($_POST['units']))) {
start_form();
echo "<center>" . _("Select a sale kit:") . " ";
-sales_kits_list('item_code', null, _('New kit'), true);
+echo sales_kits_list('item_code', null, _('New kit'), true);
echo "</center><br>";
$props = get_kit_props($_POST['item_code']);
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Item:"). " ";
-sales_items_list('stock_id', $_POST['stock_id'], false, true);
+echo sales_items_list('stock_id', $_POST['stock_id'], false, true);
echo "<hr></center>";
set_global_stock_item($_POST['stock_id']);
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Item:"). " ";
-stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
+echo stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
echo "<hr></center>";
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Item:"). " ";
-stock_costable_items_list('stock_id', $_POST['stock_id'], false, true);
+echo stock_costable_items_list('stock_id', $_POST['stock_id'], false, true);
echo "<hr></center>";
$_POST['stock_id'] = get_global_stock_item();
echo "<center>" . _("Select an item to display its parent item(s).") . " ";
-stock_items_list('stock_id', $_POST['stock_id'], false, true);
+echo stock_items_list('stock_id', $_POST['stock_id'], false, true);
echo "<hr></center>";
set_global_stock_item($_POST['stock_id']);
label_cell(_("Component:"));
echo "<td>";
- stock_component_items_list('component', $selected_parent, null, false, true);
+ echo stock_component_items_list('component', $selected_parent, null, false, true);
if (get_post('_component_update'))
{
$Ajax->activate('quantity');
$_POST['supplier_id'] = get_global_supplier();
echo "<center>" . _("Select a Supplier: ") . " ";
- supplier_list('supplier_id', $_POST['supplier_id'], true, true);
+ echo supplier_list('supplier_id', $_POST['supplier_id'], true, true);
echo "<br>";
check(_("Show Settled Items:"), 'ShowSettled', null, true);
echo "</center><br><br>";
$_POST['gl_code'] = $accs['purchase_account'];
alt_table_row_color($k);
- gl_all_accounts_list('gl_code', null, true, true);
+ echo gl_all_accounts_list('gl_code', null, true, true);
$dim = get_company_pref('use_dimension');
if ($dim >= 1)
dimensions_list_cells(null, 'dimension_id', null, true, " ", false, 1);
{
echo "<div style='float:right;'>";
echo _("Quick Entry:")." ";
- quick_entries_list('qid', null, QE_SUPPINV, true);
+ echo quick_entries_list('qid', null, QE_SUPPINV, true);
$qid = get_quick_entry(get_post('qid'));
if (list_updated('qid')) {
unset($_POST['totamount']); // enable default
echo "<tr><td>" . _("Receive Into:") . "</td>";
echo "<td>";
- locations_list('StkLocation', null, false, true);
+ echo locations_list('StkLocation', null, false, true);
echo "</td></tr>";
table_section(3);
$_POST['customer_id'] = get_global_customer();
echo "<center>" . _("Select a customer: ") . " ";
- customer_list('customer_id', $_POST['customer_id'], true, true);
+ echo customer_list('customer_id', $_POST['customer_id'], true, true);
echo "<br>";
check(_("Show Settled Items:"), 'ShowSettled', null, true);
echo "</center><br><br>";
start_form();
echo "<center>" . _("Select a customer: ") . " ";
-customer_list('customer_id', null, false, true);
+echo customer_list('customer_id', null, false, true);
echo "</center><br>";
$num_branches = db_customer_has_branches($_POST['customer_id']);