本文整理汇总了PHP中text_row函数的典型用法代码示例。如果您正苦于以下问题:PHP text_row函数的具体用法?PHP text_row怎么用?PHP text_row使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了text_row函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_controls
function display_controls()
{
global $table_style2;
start_form(false, true);
if (!isset($_POST['supplier_id'])) {
$_POST['supplier_id'] = get_global_supplier(false);
}
if (!isset($_POST['DatePaid'])) {
$_POST['DatePaid'] = Today();
if (!is_date_in_fiscalyear($_POST['DatePaid'])) {
$_POST['DatePaid'] = end_fiscalyear();
}
}
start_table($table_style2, 5, 7);
echo "<tr><td valign=top>";
// outer table
echo "<table>";
bank_accounts_list_row(tr("From Bank Account:"), 'bank_account', null, true);
amount_row(tr("Amount of Payment:"), 'amount');
amount_row(tr("Amount of Discount:"), 'discount');
date_row(tr("Date Paid") . ":", 'DatePaid');
echo "</table>";
echo "</td><td valign=top class='tableseparator'>";
// outer table
echo "<table>";
supplier_list_row(tr("Payment To:"), 'supplier_id', null, false, true);
set_global_supplier($_POST['supplier_id']);
$supplier_currency = get_supplier_currency($_POST['supplier_id']);
$bank_currency = get_bank_account_currency($_POST['bank_account']);
if ($bank_currency != $supplier_currency) {
exchange_rate_display($bank_currency, $supplier_currency, $_POST['DatePaid']);
}
bank_trans_types_list_row(tr("Payment Type:"), 'PaymentType', null);
ref_row(tr("Reference:"), 'ref', references::get_next(22));
text_row(tr("Memo:"), 'memo_', null, 52, 50);
echo "</table>";
echo "</td></tr>";
end_table(1);
// outer table
submit_center('ProcessSuppPayment', tr("Enter Payment"));
if ($bank_currency != $supplier_currency) {
display_note(tr("The amount and discount are in the bank account's currency."), 2, 0);
}
end_form();
}
示例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();
}
示例3: div_start
div_start('details');
if (isset($selected_id) && $selected_id != '') {
$_POST['empl_id'] = $_POST['selected_id'];
$myrow = get_employee($_POST['empl_id']);
$_POST['empl_id'] = $myrow["empl_id"];
$_POST['empl_name'] = $myrow["empl_name"];
$gross = $_POST['gross_salary'] = $myrow["gross_salary"];
start_table(TABLESTYLE2, "width=30%");
table_section_title(_("Employee Informations"));
hidden('empl_id', $_POST['empl_id']);
label_row(_("Employee Name:"), $_POST['empl_id'] . '-' . $_POST['empl_name']);
date_row(_("Date of Pay") . ":", 'date_of_pay');
label_row(_("Gross Pay:"), $_POST['gross_salary']);
hidden('gross_pay', $_POST['gross_salary']);
text_row(_("Number of Leave days :"), 'leave_days', null, 2, 40);
text_row(_("Monthly loan Amount:"), 'monthly_loan', null, 2, 40);
//submit_cells('RefreshInquiry', _("Show"),'',_('Show Results'), 'default');
end_table();
br();
submit_center('RefreshInquiry', _("Calculate Pay"), true, '', 'default');
br();
br();
}
div_end();
if (isset($selected_id) && $selected_id != '') {
div_start('totals_tbl');
$gross = $_POST['gross_salary'];
//display_notification( $_POST['leave_days'].$_POST['monthly_loan']);
$employee_leave_record = isset($_POST['leave_days']) ? $_POST['leave_days'] : 0;
$staff_loan = isset($_POST['monthly_loan']) ? $_POST['monthly_loan'] : 0;
if (db_has_employee_payslip($_POST['year'], $_POST['month'], $_POST['empl_id'])) {
示例4: hidden
$_POST['sales_account'] = $myrow["sales_account"];
$_POST['sales_discount_account'] = $myrow['sales_discount_account'];
$_POST['receivables_account'] = $myrow['receivables_account'];
$_POST['payment_discount_account'] = $myrow['payment_discount_account'];
if (!isset($_POST['New']) && $num_branches) {
// nothing to do
} else {
hidden('New', 'Yes');
}
hidden('branch_code', $_POST['branch_code']);
table_section_title(tr("Name and Contact"));
text_row(tr("Branch Name:"), 'br_name', $_POST['br_name'], 35, 40);
text_row(tr("Contact Person:"), 'contact_name', $_POST['contact_name'], 35, 40);
text_row(tr("Phone Number:"), 'phone', null, 20, 20);
text_row(tr("Fax Number:"), 'fax', null, 20, 20);
text_row("<a href='Mailto:'>" . tr("E-mail:") . "</a>", 'email', $_POST['email'], 35, 55);
table_section_title(tr("Sales"));
sales_persons_list_row(tr("Sales Person:"), 'salesman', null);
sales_areas_list_row(tr("Sales Area:"), 'area', null);
locations_list_row(tr("Default Inventory Location:"), 'default_location', null);
shippers_list_row(tr("Default Shipping Company:"), 'default_ship_via', null);
tax_groups_list_row(tr("Tax Group:"), 'tax_group_id', null, 31, 30);
language_list_row(tr("Language"), 'lang_code', null, 31, 30);
yesno_list_row(tr("Disable this Branch:"), 'disable_trans', null);
echo "</table>";
echo "</td><td class='tableseparator'>";
// outer table
echo "<table>";
table_section_title(tr("GL Accounts"));
gl_all_accounts_list_row(tr("Sales Account:"), 'sales_account', $_POST['sales_account']);
gl_all_accounts_list_row(tr("Sales Discount Account:"), 'sales_discount_account', $_POST['sales_discount_account']);
示例5: hidden
$_POST['tax_group_id'] = $myrow["tax_group_id"];
$_POST['payable_account'] = $myrow["payable_account"];
$_POST['purchase_account'] = $myrow["purchase_account"];
$_POST['payment_discount_account'] = $myrow["payment_discount_account"];
} else {
// its a new supplier being added
hidden('New', 'Yes');
$company_record = get_company_prefs();
$_POST['payable_account'] = $company_record["creditors_act"];
$_POST['purchase_account'] = $company_record["default_cogs_act"];
$_POST['payment_discount_account'] = $company_record['pyt_discount_act'];
}
text_row(tr("Supplier Name:"), 'supp_name', null, 42, 40);
textarea_row(tr("Address:"), 'address', null, 35, 5);
text_row(tr("Email:"), 'email', null, 42, 40);
text_row(tr("Bank Account:"), 'bank_account', null, 42, 40);
// Sherifoz 23.09.03 currency can't be changed if editing
if (isset($_POST['supplier_id']) && !isset($_POST['New'])) {
label_row(tr("Supplier's Currency:"), $_POST['curr_code']);
hidden('curr_code', $_POST['curr_code']);
} else {
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) {
示例6: customer_settings
function customer_settings($selected_id)
{
global $SysPrefs, $path_to_root, $auto_create_branch;
if (!$selected_id) {
if (list_updated('customer_id') || !isset($_POST['CustName'])) {
$_POST['CustName'] = $_POST['cust_ref'] = $_POST['address'] = $_POST['tax_id'] = '';
$_POST['dimension_id'] = 0;
$_POST['dimension2_id'] = 0;
$_POST['sales_type'] = -1;
$_POST['curr_code'] = get_company_currency();
$_POST['credit_status'] = -1;
$_POST['payment_terms'] = $_POST['notes'] = '';
$_POST['discount'] = $_POST['pymt_discount'] = percent_format(0);
$_POST['credit_limit'] = price_format($SysPrefs->default_credit_limit());
}
} else {
$myrow = get_customer($selected_id);
$_POST['CustName'] = $myrow["name"];
$_POST['cust_ref'] = $myrow["debtor_ref"];
$_POST['address'] = $myrow["address"];
$_POST['tax_id'] = $myrow["tax_id"];
$_POST['dimension_id'] = $myrow["dimension_id"];
$_POST['dimension2_id'] = $myrow["dimension2_id"];
$_POST['sales_type'] = $myrow["sales_type"];
$_POST['curr_code'] = $myrow["curr_code"];
$_POST['credit_status'] = $myrow["credit_status"];
$_POST['payment_terms'] = $myrow["payment_terms"];
$_POST['discount'] = percent_format($myrow["discount"] * 100);
$_POST['pymt_discount'] = percent_format($myrow["pymt_discount"] * 100);
$_POST['credit_limit'] = price_format($myrow["credit_limit"]);
$_POST['notes'] = $myrow["notes"];
$_POST['inactive'] = $myrow["inactive"];
}
start_outer_table(TABLESTYLE2);
table_section(1);
table_section_title(_("Name and Address"));
text_row(_("Customer Name:"), 'CustName', $_POST['CustName'], 40, 80);
text_row(_("Customer Short Name:"), 'cust_ref', null, 30, 30);
textarea_row(_("Address:"), 'address', $_POST['address'], 35, 5);
text_row(_("GSTNo:"), 'tax_id', null, 40, 40);
if (!$selected_id || is_new_customer($selected_id)) {
currencies_list_row(_("Customer's Currency:"), 'curr_code', $_POST['curr_code']);
} else {
label_row(_("Customer's Currency:"), $_POST['curr_code']);
hidden('curr_code', $_POST['curr_code']);
}
sales_types_list_row(_("Sales Type/Price List:"), 'sales_type', $_POST['sales_type']);
if ($selected_id) {
record_status_list_row(_("Customer status:"), 'inactive');
} elseif (isset($auto_create_branch) && $auto_create_branch == 1) {
table_section_title(_("Branch"));
text_row(_("Phone:"), 'phone', null, 32, 30);
text_row(_("Secondary Phone Number:"), 'phone2', null, 32, 30);
text_row(_("Fax Number:"), 'fax', null, 32, 30);
email_row(_("E-mail:"), 'email', null, 35, 55);
sales_persons_list_row(_("Sales Person:"), 'salesman', null);
}
table_section(2);
table_section_title(_("Sales"));
percent_row(_("Discount Percent:"), 'discount', $_POST['discount']);
percent_row(_("Prompt Payment Discount Percent:"), 'pymt_discount', $_POST['pymt_discount']);
amount_row(_("Credit Limit:"), 'credit_limit', $_POST['credit_limit']);
payment_terms_list_row(_("Payment Terms:"), 'payment_terms', $_POST['payment_terms']);
credit_status_list_row(_("Credit Status:"), 'credit_status', $_POST['credit_status']);
$dim = get_company_pref('use_dimension');
if ($dim >= 1) {
dimensions_list_row(_("Dimension") . " 1:", 'dimension_id', $_POST['dimension_id'], true, " ", false, 1);
}
if ($dim > 1) {
dimensions_list_row(_("Dimension") . " 2:", 'dimension2_id', $_POST['dimension2_id'], true, " ", false, 2);
}
if ($dim < 1) {
hidden('dimension_id', 0);
}
if ($dim < 2) {
hidden('dimension2_id', 0);
}
if ($selected_id) {
start_row();
echo '<td class="label">' . _('Customer branches') . ':</td>';
hyperlink_params_td($path_to_root . "/sales/manage/customer_branches.php", '<b>' . (@$_REQUEST['popup'] ? _("Select or &Add") : _("&Add or Edit ")) . '</b>', "debtor_no=" . $selected_id . (@$_REQUEST['popup'] ? '&popup=1' : ''));
end_row();
}
textarea_row(_("General Notes:"), 'notes', null, 35, 5);
if (!$selected_id && isset($auto_create_branch) && $auto_create_branch == 1) {
table_section_title(_("Branch"));
locations_list_row(_("Default Inventory Location:"), 'location');
shippers_list_row(_("Default Shipping Company:"), 'ship_via');
sales_areas_list_row(_("Sales Area:"), 'area', null);
tax_groups_list_row(_("Tax Group:"), 'tax_group_id', null);
}
end_outer_table(1);
div_start('controls');
if (!$selected_id) {
submit_center('submit', _("Add New Customer"), true, '', 'default');
} else {
submit_center_first('submit', _("Update Customer"), _('Update customer data'), @$_REQUEST['popup'] ? true : 'default');
submit_return('select', $selected_id, _("Select this customer and return to document entry."));
submit_center_last('delete', _("Delete Customer"), _('Delete customer data if have been never used'), true);
}
//.........这里部分代码省略.........
示例7: table_section
//----------------
table_section(2);
table_section_title(_("Dimension Defaults"));
text_row(_("Dimension Required By After:"), 'default_dim_required', $_POST['default_dim_required'], 6, 6, '', "", _("days"));
//---------------
table_section_title(_("Suppliers and Purchasing"));
percent_row(_("Delivery Over-Receive Allowance:"), 'po_over_receive');
percent_row(_("Invoice Over-Charge Allowance:"), 'po_over_charge');
table_section_title(_("Suppliers and Purchasing Defaults"));
gl_all_accounts_list_row(_("Payable Account:"), 'creditors_act', $_POST['creditors_act']);
gl_all_accounts_list_row(_("Purchase Discount Account:"), 'pyt_discount_act', $_POST['pyt_discount_act']);
gl_all_accounts_list_row(_("GRN Clearing Account:"), 'grn_clearing_act', get_post('grn_clearing_act'), true, false, _("No postings on GRN"));
table_section_title(_("Inventory"));
check_row(_("Allow Negative Inventory:"), 'allow_negative_stock', null);
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']);
gl_all_accounts_list_row(_("Inventory Account:"), 'default_inventory_act', $_POST['default_inventory_act']);
// this one is default for items and suppliers (purchase account)
gl_all_accounts_list_row(_("C.O.G.S. Account:"), 'default_cogs_act', $_POST['default_cogs_act']);
gl_all_accounts_list_row(_("Inventory Adjustments Account:"), 'default_adj_act', $_POST['default_adj_act']);
gl_all_accounts_list_row(_("Item Assembly Costs Account:"), 'default_assembly_act', $_POST['default_assembly_act']);
//----------------
table_section_title(_("Manufacturing Defaults"));
text_row(_("Work Order Required By After:"), 'default_workorder_required', $_POST['default_workorder_required'], 6, 6, '', "", _("days"));
//----------------
end_outer_table(1);
submit_center('submit', _("Update"), true, '', 'default');
end_form(2);
//-------------------------------------------------------------------------------------------------
end_page();
示例8: amount_cell
amount_cell($myrow["value_change"]);
delete_button_cell("Delete" . $myrow['asset_valuation_id'], _("Delete"));
end_row();
}
end_table(1);
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
//editing an existing status code
$myrow = get_asset_valuation($selected_id);
$_POST['valuationyear'] = $myrow["valuation_year"];
$_POST['assetvalue'] = number_format2($myrow["asset_value"], 2);
}
hidden('selected_id', $selected_id);
}
text_row(_("Year of Valuation :"), 'valuationyear', null, 50, 50);
amount_row(_("Asset Value :"), 'assetvalue', null, null, null, 2);
echo "<input type='hidden' id='assetid' name='assetid' value='" . $_POST['assetid'] . "'/>";
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
// ---------------------------------------------------------------------------------------------
echo "<hr/>\n";
$aresult = get_all_amortisation($_POST['assetid']);
start_form();
start_table(TABLESTYLE, "width=50%");
$th = array(_("Year"), _("Asset Value"), _("Depreciation"));
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($aresult)) {
示例9: label_cells
label_cells(tr("Image File (.jpg)") . ":", "<input type='file' id='pic' name='pic'>");
if ($id != "") {
$fileimg = $path_to_root . "/image.php?id=" . $id;
$stock_img_link = "<img src='{$fileimg}' width='100px' border='0'>";
$stock_img_link .= "<br>" . tr("Delete") . "<input type='checkbox' name='deleteImage' value='1'>";
label_cell($stock_img_link, "valign=top align=center rowspan=1");
}
end_row();
stock_categories_list_row(tr("Category:"), 'category_id', null);
item_tax_types_list_row(tr("Item Tax Type:"), 'tax_type_id', null);
stock_item_types_list_row(tr("Item Type:"), 'mb_flag', null, !isset($_POST['NewStockID']) || isset($_POST['New']));
stock_units_list_row(tr('Units of Measure:'), 'units', null, 1);
// (!isset($_POST['NewStockID']) || isset($_POST['New'])));
check_row(tr("Selling:"), 'selling');
text_row(tr("Depending:"), 'depending', null, 20, 20);
text_row(tr("Barcode:"), 'barcode', null, 20, 64);
amount_row(tr("Weight:"), 'weight', null);
end_table();
start_table("{$table_style2} width=40%");
table_section_title(tr("GL Accounts"));
gl_all_accounts_list_row(tr("Sales Account:"), 'sales_account', $_POST['sales_account']);
gl_all_accounts_list_row(tr("Inventory Account:"), 'inventory_account', $_POST['inventory_account']);
if (!is_service($_POST['mb_flag'])) {
gl_all_accounts_list_row(tr("C.O.G.S. Account:"), 'cogs_account', $_POST['cogs_account']);
gl_all_accounts_list_row(tr("Inventory Adjustments Account:"), 'adjustment_account', $_POST['adjustment_account']);
} else {
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']);
示例10: label_cell
label_cell($myrow["name"]);
label_cell($myrow["decimals"]);
edit_link_cell(SID . "selected_id={$myrow['0']}");
delete_link_cell(SID . "selected_id={$myrow['0']}&delete=yes");
end_row();
}
end_table();
//----------------------------------------------------------------------------------
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Unit of Measure"));
start_form();
start_table("class='tablestyle_noborder'");
if (isset($selected_id)) {
//editing an existing item category
$myrow = get_item_unit($selected_id);
$_POST['abbr'] = $myrow["abbr"];
$_POST['description'] = $myrow["name"];
$_POST['decimals'] = $myrow["decimals"];
hidden('selected_id', $selected_id);
}
if (isset($selected_id) && item_unit_used($selected_id)) {
label_row(tr("Unit Abbreviation:"), $_POST['abbr']);
hidden('abbr', $_POST['abbr']);
} else {
text_row(tr("Unit Abbreviation:"), 'abbr', null, 20, 20);
}
text_row(tr("Descriptive Name:"), 'description', null, 40, 40);
text_row(tr("Decimal Places:"), 'decimals', null, 3, 3);
end_table(1);
submit_add_or_update_center(!isset($selected_id));
end_form();
end_page();
示例11: dimensions_list_row
dimensions_list_row(_("Dimension") . " 2:", 'dimension2_id', $_POST['dimension2_id'], true, " ", false, 2);
}
text_row("Starting osC Customer ID:", 'min_cid', $min_cid, 6, 6);
text_row("Ending osC Customer ID:", 'max_cid', $max_cid, 6, 6);
end_table(1);
hidden('action', 'c_import');
submit_center('cimport', "Import osC Customers");
end_form();
end_page();
}
if ($action == 'oimport') {
start_form(true);
start_table("{$table_style2} width=40%");
table_section_title("Order Import Options");
text_row("Starting Order Number:", 'first_oid', $min_oid, 8, 8);
text_row("Last Order Number:", 'last_oid', $max_oid, 8, 8);
end_table(1);
hidden('action', 'o_import');
submit_center('oimport', "Import osC Orders");
end_form();
end_page();
}
if ($action == 'pcheck') {
start_form(true);
start_table("{$table_style2} width=40%");
table_section_title("Price Check Options");
$company_record = get_company_prefs();
currencies_list_row("Customer Currency:", 'currency', get_company_pref("curr_default"));
sales_types_list_row("Sales Type:", 'sales_type', null);
end_table(1);
hidden('action', 'p_check');
示例12: start_form
start_form();
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
$myrow = get_printer($selected_id);
$_POST['name'] = $myrow['name'];
$_POST['descr'] = $myrow['description'];
$_POST['queue'] = $myrow['queue'];
$_POST['tout'] = $myrow['timeout'];
$_POST['host'] = $myrow['host'];
$_POST['port'] = $myrow['port'];
}
hidden('selected_id', $selected_id);
} else {
if (!isset($_POST['host'])) {
$_POST['host'] = 'localhost';
}
if (!isset($_POST['port'])) {
$_POST['port'] = '515';
}
}
text_row(_("Printer Name") . ':', 'name', null, 20, 20);
text_row(_("Printer Description") . ':', 'descr', null, 40, 60);
text_row(_("Host name or IP") . ':', 'host', null, 30, 40);
text_row(_("Port") . ':', 'port', null, 5, 5);
text_row(_("Printer Queue") . ':', 'queue', null, 20, 20);
text_row(_("Timeout") . ':', 'tout', null, 5, 5);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
示例13: hidden
}
hidden('selected_id', $selected_id);
hidden('account_code');
hidden('account_type');
hidden('BankAccountCurrency', $_POST['BankAccountCurrency']);
set_focus('bank_account_name');
}
text_row(_("Bank Account Name:"), 'bank_account_name', null, 50, 100);
if ($is_used) {
label_row(_("Account Type:"), $bank_account_types[$_POST['account_type']]);
} else {
bank_account_types_list_row(_("Account Type:"), 'account_type', null);
}
if ($is_used) {
label_row(_("Bank Account Currency:"), $_POST['BankAccountCurrency']);
} else {
currencies_list_row(_("Bank Account Currency:"), 'BankAccountCurrency', null);
}
yesno_list_row(_("Default currency account:"), 'dflt_curr_act');
if ($is_used) {
label_row(_("Bank Account GL Code:"), $_POST['account_code']);
} else {
gl_all_accounts_list_row(_("Bank Account GL Code:"), 'account_code', null);
}
text_row(_("Bank Name:"), 'bank_name', null, 50, 60);
text_row(_("Bank Account Number:"), 'bank_account_number', null, 30, 60);
textarea_row(_("Bank Address:"), 'bank_address', null, 40, 5);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
示例14: 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();
示例15: delete_printer_profile
delete_printer_profile($selected_id);
display_notification(_('Selected printing profile has been deleted'));
clear_form();
}
}
if (get_post('_profile_id_update')) {
$Ajax->activate('_page_body');
}
start_form();
start_table();
print_profiles_list_row(_('Select printing profile') . ':', 'profile_id', null, _('New printing profile'), true);
end_table();
echo '<hr>';
start_table();
if (get_post('profile_id') == '') {
text_row(_("Printing Profile Name") . ':', 'name', null, 30, 30);
} else {
label_cells(_("Printing Profile Name") . ':', get_post('profile_id'));
}
end_table(1);
$result = get_print_profile(get_post('profile_id'));
$prints = array();
while ($myrow = db_fetch($result)) {
$prints[$myrow['report']] = $myrow['printer'];
}
start_table(TABLESTYLE);
$th = array(_("Report Id"), _("Description"), _("Printer"));
table_header($th);
$k = 0;
$unkn = 0;
foreach (get_reports() as $rep => $descr) {