本文整理汇总了PHP中submit_center_last函数的典型用法代码示例。如果您正苦于以下问题:PHP submit_center_last函数的具体用法?PHP submit_center_last怎么用?PHP submit_center_last使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了submit_center_last函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: edit_allocations_for_transaction
function edit_allocations_for_transaction($type, $trans_no)
{
global $systypes_array;
$cart = $_SESSION['alloc'];
display_heading(sprintf(_("Allocation of %s # %d"), $systypes_array[$cart->type], $cart->trans_no));
display_heading($cart->person_name);
display_heading2(_("Date:") . " <b>" . $cart->date_ . "</b>");
display_heading2(_("Total:") . " <b>" . price_format($cart->bank_amount) . ' ' . $cart->currency . "</b>");
if ($cart->currency != $cart->person_curr) {
$total = _("Total in clearing currency:") . " <b>" . price_format($cart->amount) . "</b>" . sprintf(" %s (%s %s/%s)", $cart->person_curr, exrate_format($cart->bank_amount / $cart->amount), $cart->currency, $cart->person_curr);
display_heading2($total);
}
echo "<br>";
start_form();
div_start('alloc_tbl');
if (count($cart->allocs) > 0) {
show_allocatable(true);
submit_center_first('UpdateDisplay', _("Refresh"), _('Start again allocation of selected amount'), true);
submit('Process', _("Process"), true, _('Process allocations'), 'default');
submit_center_last('Cancel', _("Back to Allocations"), _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
} else {
display_note(_("There are no unsettled transactions to allocate."), 0, 1);
submit_center('Cancel', _("Back to Allocations"), true, _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
}
div_end();
end_form();
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:27,代码来源:customer_allocate.php
示例2: voiding_controls
function voiding_controls()
{
global $table_style2;
start_form(false, true);
start_table($table_style2);
systypes_list_row(tr("Transaction Type:"), "filterType", null, true);
text_row(tr("Transaction #:"), 'trans_no', null, 12, 12);
date_row(tr("Voiding Date:"), 'date_');
textarea_row(tr("Memo:"), 'memo_', null, 30, 4);
end_table(1);
if (!isset($_POST['ProcessVoiding'])) {
submit_center('ProcessVoiding', tr("Void Transaction"));
} else {
display_note(tr("Are you sure you want to void this transaction ? This action cannot be undone."), 0, 1);
submit_center_first('ConfirmVoiding', tr("Proceed"));
submit_center_last('CancelVoiding', tr("Cancel"));
}
end_form();
}
开发者ID:ravenii,项目名称:guardocs,代码行数:19,代码来源:void_transaction.php
示例3: edit_allocations_for_transaction
function edit_allocations_for_transaction($type, $trans_no)
{
global $systypes_array;
start_form();
display_heading(_("Allocation of") . " " . $systypes_array[$_SESSION['alloc']->type] . " # " . $_SESSION['alloc']->trans_no);
display_heading($_SESSION['alloc']->person_name);
display_heading2(_("Date:") . " <b>" . $_SESSION['alloc']->date_ . "</b>");
display_heading2(_("Total:") . " <b>" . price_format(-$_SESSION['alloc']->amount) . "</b>");
echo "<br>";
div_start('alloc_tbl');
if (count($_SESSION['alloc']->allocs) > 0) {
show_allocatable(true);
submit_center_first('UpdateDisplay', _("Refresh"), _('Start again allocation of selected amount'), true);
submit('Process', _("Process"), true, _('Process allocations'), 'default');
submit_center_last('Cancel', _("Back to Allocations"), _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
} else {
display_note(_("There are no unsettled transactions to allocate."), 0, 1);
submit_center('Cancel', _("Back to Allocations"), true, _('Abandon allocations and return to selection of allocatable amounts'), 'cancel');
}
div_end();
end_form();
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:22,代码来源:supplier_allocate.php
示例4: handle_new_item
}
if (isset($_POST['AddItem'])) {
handle_new_item();
}
if (isset($_POST['UpdateItem'])) {
handle_update_item();
}
if (isset($_POST['CancelItemChanges'])) {
line_start_focus();
}
//-----------------------------------------------------------------------------------------------
if (isset($_GET['NewAdjustment']) || !isset($_SESSION['adj_items'])) {
handle_new_order();
}
//-----------------------------------------------------------------------------------------------
$textcart_mgr = new ItemsAdjTextCartManager();
$textcart_mgr->handle_post_request();
function display_order_in_tab($title, $cart)
{
display_adjustment_items($title, $cart);
}
start_form();
display_order_header($_SESSION['adj_items']);
start_outer_table(TABLESTYLE, "width=70%", 10);
$textcart_mgr->tab_display(_("Adjustment Items"), $_SESSION['adj_items'], "display_order_in_tab");
adjustment_options_controls();
end_outer_table(1, false);
submit_center_first('Update', _("Update"), '', null);
submit_center_last('Process', _("Process Adjustment"), '', 'default');
end_form();
end_page();
开发者ID:blestab,项目名称:frontaccounting,代码行数:31,代码来源:adjustments.php
示例5: display_po_items
display_po_items($_SESSION['PO']);
start_table(TABLESTYLE2);
textarea_row(_("Memo:"), 'Comments', null, 70, 4);
end_table(1);
div_start('controls', 'items_table');
$process_txt = _("Place Order");
$update_txt = _("Update Order");
$cancel_txt = _("Cancel Order");
if ($_SESSION['PO']->trans_type == ST_SUPPRECEIVE) {
$process_txt = _("Process GRN");
$update_txt = _("Update GRN");
$cancel_txt = _("Cancel GRN");
} elseif ($_SESSION['PO']->trans_type == ST_SUPPINVOICE) {
$process_txt = _("Process Invoice");
$update_txt = _("Update Invoice");
$cancel_txt = _("Cancel Invoice");
}
if ($_SESSION['PO']->order_has_items()) {
if ($_SESSION['PO']->order_no) {
submit_center_first('Commit', $update_txt, '', 'default');
} else {
submit_center_first('Commit', $process_txt, '', 'default');
}
submit_center_last('CancelOrder', $cancel_txt);
} else {
submit_center('CancelOrder', $cancel_txt, true, false, 'cancel');
}
div_end();
//---------------------------------------------------------------------------------------------------
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:po_entry_items.php
示例6: start_form
if (!isset($_POST['OrderDate'])) {
$_POST['OrderDate'] = $_SESSION['PO']->orig_order_date;
}
if (!isset($_POST['Requisition'])) {
$_POST['Requisition'] = $_SESSION['PO']->requisition_no;
}
if (!isset($_POST['Comments'])) {
$_POST['Comments'] = $_SESSION['PO']->Comments;
}
}
//---------------------------------------------------------------------------------------------------
start_form(false, true);
display_po_header($_SESSION['PO']);
echo "<br>";
display_po_items($_SESSION['PO']);
start_table($table_style2);
textarea_row(tr("Memo:"), 'Comments', null, 70, 4);
end_table(1);
if ($_SESSION['PO']->order_has_items()) {
if ($_SESSION['PO']->order_no) {
submit_center_first('Commit', tr("Update Order"));
} else {
submit_center_first('Commit', tr("Place Order"));
}
submit_center_last('CancelOrder', tr("Cancel Order"));
} else {
submit_center('CancelOrder', tr("Cancel Order"));
}
//---------------------------------------------------------------------------------------------------
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:po_entry_items.php
示例7: handle_new_item
}
if (isset($_POST['AddItem'])) {
handle_new_item();
}
if (isset($_POST['UpdateItem'])) {
handle_update_item();
}
//-----------------------------------------------------------------------------------------------
if (isset($_GET['NewDeposit']) || !isset($_SESSION['deposit_items'])) {
handle_new_order();
}
//-----------------------------------------------------------------------------------------------
start_form(false, true);
display_order_header($_SESSION['deposit_items']);
start_table("{$table_style} width=90%", 10);
start_row();
echo "<td>";
display_gl_items(tr("Deposit Items"), $_SESSION['deposit_items']);
gl_options_controls();
echo "</td>";
end_row();
end_table(1);
if (!isset($_POST['Process'])) {
submit_center_first('Update', tr("Update"));
if ($_SESSION['deposit_items']->count_gl_items() >= 1) {
submit_center_last('Process', tr("Process Deposit"));
}
}
end_form();
//------------------------------------------------------------------------------------------------
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:gl_deposit.php
示例8: display_languages
function display_languages()
{
global $table_style, $installed_languages, $dflt_lang, $GetText;
$th = array(_("Language"), _("Name"), _("Encoding"), _("Right To Left"), _("Installed"), _("Available"), _("Default"), "", "");
$currlang = $_SESSION["language"]->code;
div_start('lang_tbl');
start_form();
//
// select/display system locales support for sites using native gettext
//
if (function_exists('gettext')) {
if (check_value('DisplayAll')) {
array_insert($th, 7, _("Supported"));
}
start_table();
check_row(_('Display also languages not supported by server locales'), 'DisplayAll', null, true);
end_table();
}
start_table(TABLESTYLE);
table_header($th);
$k = 0;
// get list of all (available and installed) langauges
$langs = get_languages_list();
foreach ($langs as $pkg_name => $lng) {
if ($lng == 'C') {
// skip default locale (aka no translation)
continue;
}
$lang = $lng['code'];
$lang_name = $lng['name'];
$charset = $lng['encoding'];
$rtl = @$lng['rtl'] == 'yes' || @$lng['rtl'] === true;
$available = @$lng['available'];
$installed = @$lng['version'];
$id = @$lng['local_id'];
if ($lang == $currlang) {
start_row("class='stockmankobg'");
} else {
alt_table_row_color($k);
}
$support = $GetText->check_support($lang, $charset);
if (function_exists('gettext') && !$support && !get_post('DisplayAll')) {
continue;
}
label_cell($lang);
label_cell($available ? get_package_view_str($lang, $lang_name) : $lang_name);
label_cell($charset);
label_cell($rtl ? _("Yes") : _("No"));
label_cell($id === null ? _("None") : ($available && $installed ? $installed : _("Unknown")));
label_cell($available ? $available : _("None"));
label_cell($id === null ? '' : radio(null, 'CurDflt', $id, $dflt_lang == $lang, true), "align='center'");
if (function_exists('gettext') && check_value('DisplayAll')) {
label_cell($support ? _("Yes") : _("No"));
}
if (!$available && $lang != 'C') {
// manually installed language
button_cell('Edit' . $id, _("Edit"), _('Edit non standard language configuration'), ICON_EDIT);
} elseif (check_pkg_upgrade($installed, $available)) {
// outdated or not installed language in repo
button_cell('Update' . $pkg_name, $installed ? _("Update") : _("Install"), _('Upload and install latest language package'), ICON_DOWN);
} else {
label_cell('');
}
if ($id !== null && $lang != $currlang && $lang != 'C') {
delete_button_cell('Delete' . $id, _('Delete'));
submit_js_confirm('Delete' . $id, sprintf(_("You are about to remove language \\'%s\\'.\nDo you want to continue ?"), $lang_name));
} else {
label_cell('');
}
end_row();
}
end_table();
display_note(_("The marked language is the current language which cannot be deleted."), 0, 0, "class='currentfg'");
br();
submit_center_first('Refresh', _("Update default"), '', null);
submit_center_last('Add', _("Add new language manually"), '', false);
end_form();
div_end();
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:79,代码来源:inst_lang.php
示例9: label_cell
label_cell($date_);
if (!isset($_POST['amount' . $i])) {
$_POST['amount' . $i] = '0';
}
amount_cells(null, 'amount' . $i, null, 15, null, 0);
if ($showdims) {
$d = get_budget_trans_from_to($date_, $date_, $_POST['account'], $_POST['dim1'], $_POST['dim2']);
label_cell(number_format2($d, 0), "nowrap align=right");
$btotal += $d;
}
$lamount = get_gl_trans_from_to(add_years($date_, -1), add_years(end_month($date_), -1), $_POST['account'], $_POST['dim1'], $_POST['dim2']);
$total += input_num('amount' . $i);
$ltotal += $lamount;
label_cell(number_format2($lamount, 0), "nowrap align=right");
$date_ = add_months($date_, 1);
end_row();
}
start_row();
label_cell("<b>" . tr("Total") . "</b>");
label_cell("<b>" . number_format2($total, 0) . "</b>", 'align=right');
if ($showdims) {
label_cell("<b>" . number_format2($btotal, 0) . "</b>", "nowrap align=right");
}
label_cell("<b>" . number_format2($ltotal, 0) . "</b>", "nowrap align=right");
end_row();
end_table(1);
submit_center_first('add', tr("Save"));
submit_center_last('delete', tr("Delete"));
}
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:gl_budget.php
示例10: hidden
hidden('cogs_account', $_POST['cogs_account']);
hidden('adjustment_account', $_POST['adjustment_account']);
}
if (is_manufactured($_POST['mb_flag'])) {
gl_all_accounts_list_row(tr("Item Assembly Costs Account:"), 'assembly_account', $_POST['assembly_account']);
} else {
hidden('assembly_account', $_POST['assembly_account']);
}
$dim = get_company_pref('use_dimension');
if ($dim >= 1) {
table_section_title(tr("Dimensions"));
dimensions_list_row(tr("Dimension") . " 1", 'dimension_id', null, true, " ", false, 1);
if ($dim > 1) {
dimensions_list_row(tr("Dimension") . " 2", 'dimension2_id', null, true, " ", false, 2);
}
}
if ($dim < 1) {
hidden('dimension_id', 0);
}
if ($dim < 2) {
hidden('dimension2_id', 0);
}
end_table(1);
if (!isset($_POST['NewStockID']) || isset($_POST['New']) && $_POST['New'] != "") {
submit_center('addupdate', tr("Insert New Item"));
} else {
submit_center_first('addupdate', tr("Update Item"));
submit_center_last('delete', tr("Delete This Item"));
}
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:items.php
示例11: start_form
}
start_form();
hidden('cart_id');
$customer_error = display_order_header($_SESSION['Items'], $_SESSION['Items']->any_already_delivered() == 0, $idate);
if ($customer_error == "") {
start_table(TABLESTYLE, "width='80%'", 10);
echo "<tr><td>";
display_order_summary($orderitems, $_SESSION['Items'], true);
echo "</td></tr>";
echo "<tr><td>";
display_delivery_details($_SESSION['Items']);
echo "</td></tr>";
end_table(1);
if ($_SESSION['Items']->trans_no == 0) {
submit_center_first('ProcessOrder', $porder, _('Check entered data and save document'), 'default');
submit_center_last('CancelOrder', $cancelorder, _('Cancels document entry or removes sales order when editing an old document'));
submit_js_confirm('CancelOrder', _('You are about to void this Document.\\nDo you want to continue?'));
} else {
submit_center_first('ProcessOrder', $corder, _('Validate changes and update document'), 'default');
submit_center_last('CancelOrder', $cancelorder, _('Cancels document entry or removes sales order when editing an old document'));
if ($_SESSION['Items']->trans_type == ST_SALESORDER) {
submit_js_confirm('CancelOrder', _('You are about to cancel undelivered part of this order.\\nDo you want to continue?'));
} else {
submit_js_confirm('CancelOrder', _('You are about to void this Document.\\nDo you want to continue?'));
}
}
} else {
display_error($customer_error);
}
end_form();
end_page();
开发者ID:blestab,项目名称:frontaccounting,代码行数:31,代码来源:sales_order_entry.php
示例12: table_section_title
table_section_title(_("Employee Informations"));
if (isset($selected_id) && $selected_id != '') {
label_row(_("Employee ID:"), $_POST['empl_id']);
hidden('empl_id', $_POST['empl_id']);
}
text_row(_("Employee Name *:"), 'empl_name', null, 28, 80);
textarea_row(_("Present Address:"), 'pre_address', null, 25, 2);
textarea_row(_("Permanent Address:"), 'per_address', null, 25, 2);
date_row(_("Date of Birth") . ":", 'date_of_birth');
text_row(_("Age:"), 'age', null, 3, 10);
text_row(_("Mobile Phone *:"), 'mobile_phone', null, 28, 40);
text_row(_("Email *:"), 'email', null, 28, 40);
table_section(2);
table_section_title(_("Employee Job Info"));
text_row(_("Grade:"), 'grade', null, 28, 10);
text_row(_("Department:"), 'department', null, 28, 40);
text_row(_("Designation:"), 'designation', null, 28, 40);
text_row(_("Gross Salary Per Month *:"), 'gross_salary', null, 28, 40);
text_row(_("Basic Salary Per Month *:"), 'basic_salary', null, 28, 40);
date_row(_("Date of Join") . ":", 'date_of_join');
end_outer_table(1);
if (isset($selected_id) && $selected_id != '') {
submit_center_first('submit', _("Update Employee"), '', @$_REQUEST['popup'] ? true : 'default');
submit('delete', _("Delete employee"), true, '', true);
submit_center_last('cancel', _("Cancel"), _("Cancel Edition"), 'cancel');
} else {
submit_center('submit', _("Add New Employee"), true, '', 'default');
}
div_end();
end_form();
end_page();
开发者ID:kvvaradha,项目名称:Simple-HRM-for-FrontAccounting,代码行数:31,代码来源:employee.php
示例13: handle_new_item
if (isset($_POST['AddItem'])) {
handle_new_item();
}
if (isset($_POST['UpdateItem'])) {
handle_update_item();
}
//-----------------------------------------------------------------------------------------------
if (isset($_GET['NewTransfer']) || !isset($_SESSION['transfer_items'])) {
handle_new_order();
}
//-----------------------------------------------------------------------------------------------
start_form(false, true);
display_order_header($_SESSION['transfer_items']);
start_table("{$table_style} width=70%", 10);
start_row();
echo "<td>";
display_transfer_items(tr("Items"), $_SESSION['transfer_items']);
transfer_options_controls();
echo "</td>";
end_row();
end_table(1);
if (!isset($_POST['Process'])) {
if ($_SESSION['transfer_items']->count_items() >= 1) {
submit_center_first('Update', tr("Update"));
submit_center_last('Process', tr("Process Transfer"));
} else {
submit_center('Update', tr("Update"));
}
}
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:transfers.php
示例14: foreach
$k = 0;
$unkn = 0;
foreach (get_reports() as $rep => $descr) {
alt_table_row_color($k);
label_cell($rep == '' ? '-' : $rep, 'align=center');
label_cell($descr == '' ? '???<sup>1)</sup>' : _($descr));
$_POST['Prn' . $rep] = isset($prints[$rep]) ? $prints[$rep] : '';
echo '<td>';
echo printers_list('Prn' . $rep, null, $rep == '' ? _('Browser support') : _('Default'));
echo '</td>';
if ($descr == '') {
$unkn = 1;
}
end_row();
}
end_table();
if ($unkn) {
display_note('<sup>1)</sup> - ' . _("no title was found in this report definition file."), 0, 1, '');
} else {
echo '<br>';
}
div_start('controls');
if (get_post('profile_id') == '') {
submit_center('submit', _("Add New Profile"), true, '', 'default');
} else {
submit_center_first('submit', _("Update Profile"), _('Update printer profile'), 'default');
submit_center_last('delete', _("Delete Profile"), _('Delete printer profile (only if not used by any user)'), true);
}
div_end();
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:print_profiles.php
示例15: get_company_pref
echo "</td>\n";
echo "</tr\n";
}
$dim = get_company_pref('use_dimension');
start_form(false, false, "", "accrual");
start_table(TABLESTYLE2);
date_row(_("Date"), 'date_', _('First date of Accruals'), true, 0, 0, 0, null, true);
start_row();
label_cell(_("Accrued Balance Account"), "class='label'");
gl_all_accounts_list_cells(null, 'acc_act', null, true, false, false, true);
end_row();
gl_all_accounts_list_row(_("Revenue / Cost Account"), 'res_act', null, true);
if ($dim >= 1) {
dimensions_list_row(_("Dimension"), 'dimension_id', null, true, " ", false, 1);
}
if ($dim > 1) {
dimensions_list_row(_("Dimension") . " 2", 'dimension2_id', null, true, " ", false, 2);
}
$url = "gl/view/accrual_trans.php?act=" . get_post('acc_act') . "&date=" . get_post('date_');
amount_row(_("Amount"), 'amount', null, null, viewer_link(_("Search Amount"), $url, "", "", ICON_VIEW));
frequency_list_row(_("Frequency"), 'freq', null);
text_row(_("Periods"), 'periods', null, 3, 3);
textarea_row(_("Memo"), 'memo_', null, 35, 3);
end_table(1);
submit_center_first('show', _("Show GL Rows"));
//,true,false,'process',ICON_SUBMIT);
submit_center_last('go', _("Process Accruals"));
//,true,false,'process',ICON_SUBMIT);
submit_js_confirm('go', _("Are you sure you want to post accruals?"));
end_form();
end_page();
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:accruals.php
示例16: start_table
start_table("class='tablestyle_noborder'");
sales_types_list_row(tr("Sales Type/Price List:"), 'sales_type', $_POST['sales_type']);
$dim = get_company_pref('use_dimension');
if ($dim >= 1) {
dimensions_list_row(tr("Dimension") . " 1:", 'dimension_id', $_POST['dimension_id'], true, " ", false, 1);
}
if ($dim > 1) {
dimensions_list_row(tr("Dimension") . " 2:", 'dimension2_id', $_POST['dimension2_id'], true, " ", false, 2);
}
if ($dim < 1) {
hidden('dimension_id', 0);
}
if ($dim < 2) {
hidden('dimension2_id', 0);
}
percent_row(tr("Discount Percent:"), 'discount', $_POST['discount']);
percent_row(tr("Prompt Payment Discount Percent:"), 'pymt_discount', $_POST['pymt_discount']);
amount_row(tr("Credit Limit:"), 'credit_limit', $_POST['credit_limit']);
payment_terms_list_row(tr("Payment Terms:"), 'payment_terms', $_POST['payment_terms']);
credit_status_list_row(tr("Credit Status:"), 'credit_status', $_POST['credit_status']);
end_table();
end_table(1);
// outer table
if (isset($_POST['New'])) {
submit_center('submit', tr("Add New Customer"));
} else {
submit_center_first('submit', tr("Update Customer"));
submit_center_last('delete', tr("Delete Customer"));
}
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:customers.php
示例17: work_order_produce
if ($_POST['ProductionType'] == 0) {
$_POST['quantity'] = -$_POST['quantity'];
}
$id = work_order_produce($_POST['selected_id'], $_POST['ref'], input_num('quantity'), $_POST['date_'], $_POST['memo_'], $close_wo);
meta_forward($_SERVER['PHP_SELF'], "AddedID=" . $_POST['selected_id'] . "&date=" . $_POST['date_']);
}
//-------------------------------------------------------------------------------------
display_wo_details($_POST['selected_id']);
//-------------------------------------------------------------------------------------
start_form();
hidden('selected_id', $_POST['selected_id']);
//hidden('WOReqQuantity', $_POST['WOReqQuantity']);
$dec = get_qty_dec($wo_details["stock_id"]);
if (!isset($_POST['quantity']) || $_POST['quantity'] == '') {
$_POST['quantity'] = qty_format(max($wo_details["units_reqd"] - $wo_details["units_issued"], 0), $wo_details["stock_id"], $dec);
}
start_table(TABLESTYLE2);
br();
ref_row(_("Reference:"), 'ref', '', $Refs->get_next(29));
if (!isset($_POST['ProductionType'])) {
$_POST['ProductionType'] = 1;
}
yesno_list_row(_("Type:"), 'ProductionType', $_POST['ProductionType'], _("Produce Finished Items"), _("Return Items to Work Order"));
small_qty_row(_("Quantity:"), 'quantity', null, null, null, $dec);
date_row(_("Date:"), 'date_');
textarea_row(_("Memo:"), 'memo_', null, 40, 3);
end_table(1);
submit_center_first('Process', _("Process"), '', 'default');
submit_center_last('ProcessAndClose', _("Process And Close Order"), '', true);
end_form();
end_page();
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:work_order_add_finished.php
示例18: edit_allocations_for_transaction
function edit_allocations_for_transaction($type, $trans_no)
{
global $table_style;
start_form(false, true);
display_heading(sprintf(tr("Allocation of %s # %d"), systypes::name($_SESSION['alloc']->type), $_SESSION['alloc']->trans_no));
display_heading($_SESSION['alloc']->person_name);
display_heading2(tr("Date:") . " <b>" . $_SESSION['alloc']->date_ . "</b>");
display_heading2(tr("Total:") . " <b>" . price_format($_SESSION['alloc']->amount) . "</b>");
echo "<br>";
if (count($_SESSION['alloc']->allocs) > 0) {
start_table($table_style);
$th = array(tr("Transaction Type"), tr("#"), tr("Date"), tr("Due Date"), tr("Amount"), tr("Other Allocations"), tr("This Allocation"), tr("Left to Allocate"), "", "");
table_header($th);
$k = $counter = $total_allocated = 0;
foreach ($_SESSION['alloc']->allocs as $allocn_item) {
alt_table_row_color($k);
label_cell(systypes::name($allocn_item->type));
label_cell(get_trans_view_str($allocn_item->type, $allocn_item->type_no));
label_cell($allocn_item->date_, "align=right");
label_cell($allocn_item->due_date, "align=right");
amount_cell($allocn_item->amount);
amount_cell($allocn_item->amount_allocated);
if (!check_num('amount' . $counter)) {
$_POST['amount' . $counter] = price_format($allocn_item->current_allocated);
}
amount_cells(null, 'amount' . $counter, $_POST['amount' . $counter]);
$un_allocated = round($allocn_item->amount - $allocn_item->amount_allocated, 6);
hidden("un_allocated" . $counter, $un_allocated);
amount_cell($un_allocated);
label_cell("<a href='#' name=Alloc{$counter} onclick='allocate_all(this.name.substr(5));return true;'>" . tr("All") . "</a>");
label_cell("<a href='#' name=DeAll{$counter} onclick='allocate_none(this.name.substr(5));return true;'>" . tr("None") . "</a>");
end_row();
$total_allocated += input_num('amount' . $counter);
$counter++;
}
label_row(tr("Total Allocated"), price_format($total_allocated), "colspan=6 align=right", "nowrap align=right id='total_allocated'");
if ($_SESSION['alloc']->amount - $total_allocated < 0) {
$font1 = "<font color=red>";
$font2 = "</font>";
} else {
$font1 = $font2 = "";
}
$left_to_allocate = $_SESSION['alloc']->amount - $total_allocated;
$left_to_allocate = price_format($left_to_allocate);
label_row(tr("Left to Allocate"), $font1 . $left_to_allocate . $font2, "colspan=6 align=right ", "nowrap align=right id='left_to_allocate'");
end_table(1);
hidden('TotalNumberOfAllocs', $counter);
// hidden('left_to_allocate', $left_to_allocate);
submit_center_first('UpdateDisplay', tr("Update"));
submit('Process', tr("Process"));
} else {
display_note(tr("There are no unsettled transactions to allocate."), 0, 1);
}
submit_center_last('Cancel', tr("Back to Allocations"));
end_form();
}
开发者ID:ravenii,项目名称:guardocs,代码行数:56,代码来源:customer_allocate.php
示例19: set_focus
set_focus('name');
}
if (!isset($installed_extensions)) {
$installed_extensions = array();
update_extensions($installed_extensions);
}
subpage_title(_('Company Settings'));
start_table(TABLESTYLE);
text_row_ex(_("Company Name:"), 'name', 30);
text_row_ex(_("Admin Login:"), 'admin', 30);
password_row(_("Admin Password:"), 'pass', @$_POST['pass']);
password_row(_("Reenter Password:"), 'repass', @$_POST['repass']);
coa_list_row(_("Select Chart of Accounts:"), 'coa');
languages_list_row(_("Select Default Language:"), 'lang');
end_table(1);
submit_center_first('back', _('<< Back'));
submit_center_last('set_admin', _('Continue >>'));
break;
case '6':
// final screen
subpage_title(_('SerbizHub Suite ERP has been installed successsfully.'));
display_note(_('Please do not forget to remove install wizard folder.'));
session_unset();
session_destroy();
hyperlink_no_params($path_to_root . '/index.php', _('Click here to start.'));
break;
}
hidden('Tests');
hidden('Page');
end_form(1);
end_page(false, false, true);
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:index.php
示例20: currencies_list_row
currencies_list_row(tr("Supplier's Currency:"), 'curr_code', null);
}
tax_groups_list_row(tr("Tax Group:"), 'tax_group_id', null);
payment_terms_list_row(tr("Payment Terms:"), 'payment_terms', null);
table_section_title(tr("Accounts"));
gl_all_accounts_list_row(tr("Accounts Payable Account:"), 'payable_account', $_POST['payable_account']);
gl_all_accounts_list_row(tr("Purchase Account:"), 'purchase_account', $_POST['purchase_account']);
gl_all_accounts_list_row(tr("Purchase Discount Account:"), 'payment_discount_account', $_POST['payment_discount_account']);
$dim = get_company_pref('use_dimension');
if ($dim >= 1) {
table_section_title(tr("Dimension"));
dimensions_list_row(tr("Dimension") . " 1:", 'dimension_id', null, true, " ", false, 1);
if ($dim > 1) {
dimensions_list_row(tr("Dimension") . " 2:", 'dimension2_id', null, true, " ", false, 2);
}
}
if ($dim < 1) {
hidden('dimension_id', 0);
}
if ($dim < 2) {
hidden('dimension2_id', 0);
}
end_table(1);
if (!isset($_POST['New'])) {
submit_center_first('submit', tr("Update Supplier"));
submit_center_last('delete', tr("Delete Supplier"));
} else {
submit_center('submit', tr("Add New Supplier Details"));
}
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:suppliers.php
注:本文中的submit_center_last函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论