本文整理汇总了PHP中submit_center_first函数的典型用法代码示例。如果您正苦于以下问题:PHP submit_center_first函数的具体用法?PHP submit_center_first怎么用?PHP submit_center_first使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了submit_center_first函数的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: voiding_controls
function voiding_controls()
{
global $selected_id;
$not_implemented = array(ST_PURCHORDER, ST_SALESORDER, ST_SALESQUOTE, ST_COSTUPDATE);
start_form();
start_table(TABLESTYLE_NOBORDER);
start_row();
systypes_list_cells(_("Type:"), 'filterType', null, true, $not_implemented);
if (list_updated('filterType')) {
$selected_id = -1;
}
if (!isset($_POST['FromTransNo'])) {
$_POST['FromTransNo'] = "1";
}
if (!isset($_POST['ToTransNo'])) {
$_POST['ToTransNo'] = "999999";
}
ref_cells(_("from #:"), 'FromTransNo');
ref_cells(_("to #:"), 'ToTransNo');
submit_cells('ProcessSearch', _("Search"), '', '', 'default');
end_row();
end_table(1);
$trans_ref = false;
$sql = get_sql_for_view_transactions($_POST['filterType'], $_POST['FromTransNo'], $_POST['ToTransNo'], $trans_ref);
if ($sql == "") {
return;
}
$cols = array(_("#") => array('insert' => true, 'fun' => 'view_link'), _("Reference") => array('fun' => 'ref_view'), _("Date") => array('type' => 'date', 'fun' => 'date_view'), _("GL") => array('insert' => true, 'fun' => 'gl_view'), _("Select") => array('insert' => true, 'fun' => 'select_link'));
$table =& new_db_pager('transactions', $sql, $cols);
$table->width = "40%";
display_db_pager($table);
start_table(TABLESTYLE2);
if ($selected_id != -1) {
hidden('trans_no', $selected_id);
hidden('selected_id', $selected_id);
} else {
hidden('trans_no', '');
$_POST['memo_'] = '';
}
label_row(_("Transaction #:"), $selected_id == -1 ? '' : $selected_id);
date_row(_("Voiding Date:"), 'date_');
textarea_row(_("Memo:"), 'memo_', null, 30, 4);
end_table(1);
if (!isset($_POST['ProcessVoiding'])) {
submit_center('ProcessVoiding', _("Void Transaction"), true, '', 'default');
} else {
if (!exist_transaction($_POST['filterType'], $_POST['trans_no'])) {
display_error(_("The entered transaction does not exist or cannot be voided."));
unset($_POST['trans_no']);
unset($_POST['memo_']);
unset($_POST['date_']);
submit_center('ProcessVoiding', _("Void Transaction"), true, '', 'default');
} else {
display_warning(_("Are you sure you want to void this transaction ? This action cannot be undone."), 0, 1);
br();
submit_center_first('ConfirmVoiding', _("Proceed"), '', true);
submit_center_last('CancelVoiding', _("Cancel"), '', 'cancel');
}
}
end_form();
}
开发者ID:blestab,项目名称:frontaccounting,代码行数:61,代码来源:void_transaction.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: item_settings
//.........这里部分代码省略.........
$_POST['del_image'] = 0;
$_POST['inactive'] = $myrow["inactive"];
$_POST['editable'] = $myrow["editable"];
}
label_row(_("Item Code/ISBN:"), $_POST['NewStockID']);
hidden('NewStockID', $_POST['NewStockID']);
set_focus('description');
}
/*=================MOODLEARNING====================*/
level_list_row(_("Level:"), 'level_id', null);
/*=================================================*/
text_row(_("Name:"), 'description', null, 52, 200);
textarea_row(_('Description:'), 'long_description', null, 42, 3);
stock_categories_list_row(_("Category/Subject:"), 'category_id', null, false, $new_item);
if ($new_item && (list_updated('category_id') || !isset($_POST['units']))) {
$category_record = get_item_category($_POST['category_id']);
$_POST['level_id'] = $category_record["level_id"];
// moodlearning edit
$_POST['subject_id'] = $category_record["level_id"];
$_POST['tax_type_id'] = $category_record["dflt_tax_type"];
$_POST['units'] = $category_record["dflt_units"];
$_POST['mb_flag'] = $category_record["dflt_mb_flag"];
$_POST['inventory_account'] = $category_record["dflt_inventory_act"];
$_POST['cogs_account'] = $category_record["dflt_cogs_act"];
$_POST['sales_account'] = $category_record["dflt_sales_act"];
$_POST['adjustment_account'] = $category_record["dflt_adjustment_act"];
$_POST['assembly_account'] = $category_record["dflt_assembly_act"];
$_POST['dimension_id'] = $category_record["dflt_dim1"];
$_POST['dimension2_id'] = $category_record["dflt_dim2"];
$_POST['no_sale'] = $category_record["dflt_no_sale"];
$_POST['editable'] = 0;
}
$fresh_item = !isset($_POST['NewStockID']) || $new_item || check_usage($_POST['stock_id'], false);
item_tax_types_list_row(_("Item Tax Type:"), 'tax_type_id', null);
stock_item_types_list_row(_("Item Type:"), 'mb_flag', null, $fresh_item);
stock_units_list_row(_('Units of Measure:'), 'units', null, $fresh_item);
check_row(_("Editable description:"), 'editable');
check_row(_("Exclude from sales:"), 'no_sale');
table_section(2);
$dim = get_company_pref('use_dimension');
if ($dim >= 1) {
table_section_title(_("Dimensions"));
dimensions_list_row(_("Dimension") . " 1", 'dimension_id', null, true, " ", false, 1);
if ($dim > 1) {
dimensions_list_row(_("Dimension") . " 2", 'dimension2_id', null, true, " ", false, 2);
}
}
if ($dim < 1) {
hidden('dimension_id', 0);
}
if ($dim < 2) {
hidden('dimension2_id', 0);
}
table_section_title(_("GL Accounts"));
gl_all_accounts_list_row(_("Sales Account:"), 'sales_account', $_POST['sales_account']);
if (!is_service($_POST['mb_flag'])) {
gl_all_accounts_list_row(_("Inventory Account:"), 'inventory_account', $_POST['inventory_account']);
gl_all_accounts_list_row(_("C.O.G.S. Account:"), 'cogs_account', $_POST['cogs_account']);
gl_all_accounts_list_row(_("Inventory Adjustments Account:"), 'adjustment_account', $_POST['adjustment_account']);
} else {
gl_all_accounts_list_row(_("C.O.G.S. Account:"), 'cogs_account', $_POST['cogs_account']);
hidden('inventory_account', $_POST['inventory_account']);
hidden('adjustment_account', $_POST['adjustment_account']);
}
if (is_manufactured($_POST['mb_flag'])) {
gl_all_accounts_list_row(_("Item Assembly Costs Account:"), 'assembly_account', $_POST['assembly_account']);
} else {
hidden('assembly_account', $_POST['assembly_account']);
}
table_section_title(_("Other"));
// Add image upload for New Item - by Joe
file_row(_("Image File (.jpg)") . ":", 'pic', 'pic');
// Add Image upload for New Item - by Joe
$stock_img_link = "";
$check_remove_image = false;
if (isset($_POST['NewStockID']) && file_exists(company_path() . '/images/' . item_img_name($_POST['NewStockID']) . ".jpg")) {
// 31/08/08 - rand() call is necessary here to avoid caching problems. Thanks to Peter D.
$stock_img_link .= "<img id='item_img' alt = '[" . $_POST['NewStockID'] . ".jpg" . "]' src='" . company_path() . '/images/' . item_img_name($_POST['NewStockID']) . ".jpg?nocache=" . rand() . "'" . " height='{$pic_height}' border='0'>";
$check_remove_image = true;
} else {
$stock_img_link .= _("No image");
}
label_row(" ", $stock_img_link);
if ($check_remove_image) {
check_row(_("Delete Image:"), 'del_image');
}
record_status_list_row(_("Item status:"), 'inactive');
end_outer_table(1);
div_start('controls');
if (!isset($_POST['NewStockID']) || $new_item) {
submit_center('addupdate', _("Insert New Item"), true, '', 'default');
} else {
submit_center_first('addupdate', _("Update Item"), '', @$_REQUEST['popup'] ? true : 'default');
submit_return('select', get_post('stock_id'), _("Select this items and return to document entry."), 'default');
submit('clone', _("Clone This Item"), true, '', true);
submit('delete', _("Delete This Item"), true, '', true);
submit_center_last('cancel', _("Cancel"), _("Cancel Edition"), 'cancel');
}
div_end();
}
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:101,代码来源:items.php
示例7: label_row
$ext = $newext;
$sec = $newsec;
$m = $parms[0] & ~0xff;
// if(!isset($security_sections[$m]))
// display_error(sprintf("Bad section %X:", $m));
label_row($security_sections[$m] . ':', checkbox(null, 'Section' . $m, null, true, _("On/off set of features")), "class='tableheader2'", "class='tableheader'");
}
if (check_value('Section' . $m)) {
alt_table_row_color($k);
check_cells($parms[1], 'Area' . $parms[0], null, false, '', "align='center'");
end_row();
} else {
hidden('Area' . $parms[0]);
}
}
end_table(1);
div_end();
div_start('controls');
if ($new_role) {
submit_center_first('Update', _("Update view"), '', null);
submit_center_last('addupdate', _("Insert New Role"), '', 'default');
} else {
submit_center_first('addupdate', _("Save Role"), '', 'default');
submit('Update', _("Update view"), true, '', null);
submit('clone', _("Clone This Role"), true, '', true);
submit('delete', _("Delete This Role"), true, '', true);
submit_center_last('cancel', _("Cancel"), _("Cancel Edition"), 'cancel');
}
div_end();
end_form();
end_page();
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:security_roles.php
示例8: 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
示例9: get_post
$_POST['ChargeFreightCost'] = get_post('ChargeFreightCost', price_format($_SESSION['Items']->freight_cost));
$colspan = 9;
start_row();
label_cell(_("Shipping Cost"), "colspan={$colspan} align=right");
small_amount_cells(null, 'ChargeFreightCost', $_SESSION['Items']->freight_cost);
end_row();
$inv_items_total = $_SESSION['Items']->get_items_total_dispatch();
$display_sub_total = price_format($inv_items_total + input_num('ChargeFreightCost'));
label_row(_("Sub-total"), $display_sub_total, "colspan={$colspan} align=right", "align=right");
$taxes = $_SESSION['Items']->get_taxes(input_num('ChargeFreightCost'));
$tax_total = display_edit_tax_items($taxes, $colspan, $_SESSION['Items']->tax_included);
$display_total = price_format($inv_items_total + input_num('ChargeFreightCost') + $tax_total);
label_row(_("Amount Total"), $display_total, "colspan={$colspan} align=right", "align=right");
end_table(1);
if ($has_marked) {
display_note(_("Marked items have insufficient quantities in stock as on day of delivery."), 0, 1, "class='stockmankofg'");
}
start_table(TABLESTYLE2);
policy_list_row(_("Action For Balance"), "bo_policy", null);
textarea_row(_("Memo"), 'Comments', null, 50, 4);
end_table(1);
div_end();
submit_center_first('Update', _("Update"), _('Refresh document page'), true);
if (isset($_POST['clear_quantity'])) {
submit('reset_quantity', _('Reset quantity'), true, _('Refresh document page'));
} else {
submit('clear_quantity', _('Clear quantity'), true, _('Refresh document page'));
}
submit_center_last('process_delivery', _("Process Dispatch"), _('Check entered data and save document'), 'default');
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:customer_delivery.php
示例10: 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
示例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: 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
示例13: 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
示例14: 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
示例15: 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
示例16: array
$tagids = array();
while ($tag = db_fetch($tags_result)) {
$tagids[] = $tag['id'];
}
$_POST['account_tags'] = $tagids;
hidden('account_code', $_POST['account_code']);
hidden('selected_account', $selected_account);
label_row(_("Account Code:"), $_POST['account_code']);
} else {
if (!isset($_POST['account_code'])) {
$_POST['account_tags'] = array();
$_POST['account_code'] = $_POST['account_code2'] = '';
$_POST['account_name'] = $_POST['account_type'] = '';
$_POST['inactive'] = 0;
}
text_row_ex(_("Account Code:"), 'account_code', 15);
}
text_row_ex(_("Account Code 2:"), 'account_code2', 15);
text_row_ex(_("Account Name:"), 'account_name', 60);
gl_account_types_list_row(_("Account Group:"), 'account_type', null);
tag_list_row(_("Account Tags:"), 'account_tags', 5, TAG_ACCOUNT, true);
record_status_list_row(_("Account status:"), 'inactive');
end_table(1);
if ($selected_account == "") {
submit_center('add', _("Add Account"), true, '', 'default');
} else {
submit_center_first('update', _("Update Account"), '', 'default');
submit_center_last('delete', _("Delete account"), '', true);
}
end_form();
end_page();
开发者ID:M-Shahbaz,项目名称:FA,代码行数:31,代码来源:gl_accounts.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: 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
示例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
|
请发表评论