本文整理汇总了PHP中text_row_ex函数的典型用法代码示例。如果您正苦于以下问题:PHP text_row_ex函数的具体用法?PHP text_row_ex怎么用?PHP text_row_ex使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了text_row_ex函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: edit_param
function edit_param()
{
$_POST['data_filter'] = $this->data_filter;
$_POST['days_future'] = $this->days_future;
text_row_ex(_("Days in future:"), 'days_future', 2);
text_row_ex(_("Filter:"), 'data_filter', 50);
}
开发者ID:raqib,项目名称:ac_dev,代码行数:7,代码来源:reminders.php
示例2: edit_param
function edit_param()
{
global $top, $sequences, $asc_desc;
$graph_types = array('LineChart' => _("Line Chart"), 'ColumnChart' => _("Column Chart"), 'Table' => _("Table"));
$_POST['top'] = $this->top;
$_POST['graph_type'] = $this->graph_type;
$_POST['data_filter'] = $this->data_filter;
text_row_ex(_("Number of weeks:"), 'top', 2);
text_row_ex(_("Filter:"), 'data_filter', 50);
select_row(_("Graph Type:"), "graph_type", null, $graph_types, null);
}
开发者ID:BGCX067,项目名称:fa-dashboard-module-svn-to-git,代码行数:11,代码来源:dailysales.php
示例3: end_row
end_row();
}
end_table(1);
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
$result = fetchAuthors($selected_id);
while ($myrow = db_fetch($result)) {
$_POST['fname'] = $myrow['author_fname'];
$_POST['mname'] = $myrow['author_mname'];
$_POST['lname'] = $myrow['author_lname'];
$_POST['bdate'] = sql2date($myrow["author_birthdate"]);
$_POST['address'] = $myrow['author_address'];
$_POST['contact_number'] = $myrow['author_contact_number'];
$_POST['email_address'] = $myrow['author_email'];
$_POST['selected_id'] = $myrow['id'];
}
}
hidden('selected_id', $selected_id);
}
text_row_ex(_("First Name:"), 'fname', 25);
text_row_ex(_("Middle Name:"), 'mname', 25);
text_row_ex(_("Last Name:"), 'lname', 25);
date_row(_("Birth Date:"), 'bdate');
text_row_ex(_("Address:"), 'address', 25);
text_row_ex(_("Contact Number:"), 'contact_number', 25);
text_row_ex(_("Email Address:"), 'email_address', 25);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:author.php
示例4: array
$th = array(_("ID"), _("Group Name"), "", "");
inactive_control_column($th);
table_header($th);
$k = 0;
while ($myrow = db_fetch($result)) {
alt_table_row_color($k);
label_cell($myrow["id"]);
label_cell($myrow["description"]);
inactive_control_cell($myrow["id"], $myrow["inactive"], 'groups', 'id');
edit_button_cell("Edit" . $myrow["id"], _("Edit"));
delete_button_cell("Delete" . $myrow["id"], _("Delete"));
end_row();
}
inactive_control_row($th);
end_table(1);
//-------------------------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
//editing an existing group
$myrow = get_sales_group($selected_id);
$_POST['description'] = $myrow["description"];
}
hidden("selected_id", $selected_id);
label_row(_("ID"), $myrow["id"]);
}
text_row_ex(_("Group Name:"), 'description', 30);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:sales_groups.php
示例5: end_table
end_table();
//------------------------------------------------------------------------------------------------
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Sales Person"));
//------------------------------------------------------------------------------------------------
start_form();
if (isset($selected_id)) {
//editing an existing Sales-person
$sql = "SELECT * FROM salesman WHERE salesman_code='{$selected_id}'";
$result = db_query($sql, "could not get sales person");
$myrow = db_fetch($result);
$_POST['salesman_name'] = $myrow["salesman_name"];
$_POST['salesman_phone'] = $myrow["salesman_phone"];
$_POST['salesman_fax'] = $myrow["salesman_fax"];
$_POST['salesman_email'] = $myrow["salesman_email"];
$_POST['provision'] = percent_format($myrow["provision"]);
$_POST['break_pt'] = price_format($myrow["break_pt"]);
$_POST['provision2'] = percent_format($myrow["provision2"]);
hidden('selected_id', $selected_id);
}
start_table("{$table_style2} width=60%");
text_row_ex(tr("Sales person name:"), 'salesman_name', 30);
text_row_ex(tr("Telephone number:"), 'salesman_phone', 20);
text_row_ex(tr("Fax number:"), 'salesman_fax', 20);
text_row_ex(tr("Email:"), 'salesman_email', 40);
percent_row(tr("Provision"), 'provision');
amount_row(tr("Break Pt.:"), 'break_pt');
percent_row(tr("Provision") . " 2", 'provision2');
end_table(1);
submit_add_or_update_center(!isset($selected_id));
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:sales_people.php
示例6: inactive_control_row
inactive_control_row($th);
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != "") {
if ($Mode == 'Edit') {
//editing an existing status code
$myrow = get_account_type($selected_id);
$_POST['id'] = $myrow["id"];
$_POST['name'] = $myrow["name"];
$_POST['parent'] = $myrow["parent"];
if ($_POST['parent'] == '-1') {
$_POST['parent'] == "";
}
$_POST['class_id'] = $myrow["class_id"];
hidden('selected_id', $myrow['id']);
hidden('old_id', $myrow["id"]);
} else {
hidden('selected_id', $selected_id);
hidden('old_id', $_POST["old_id"]);
}
}
text_row_ex(_("ID:"), 'id', 10);
text_row_ex(_("Name:"), 'name', 50);
gl_account_types_list_row(_("Subgroup Of:"), 'parent', null, _("None"), true);
class_list_row(_("Class:"), 'class_id', null);
end_table(1);
submit_add_or_update_center($selected_id == "", '', 'both');
end_form();
//------------------------------------------------------------------------------------
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:gl_account_types.php
示例7: foreach
break;
case '5':
if (!isset($_POST['name'])) {
foreach ($_SESSION['inst_set'] as $name => $val) {
$_POST[$name] = $val;
}
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.'));
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:index.php
示例8: label_cell
label_cell($myrow["address"]);
inactive_control_cell($myrow["shipper_id"], $myrow["inactive"], 'shippers', 'shipper_id');
edit_button_cell("Edit" . $myrow["shipper_id"], _("Edit"));
delete_button_cell("Delete" . $myrow["shipper_id"], _("Delete"));
end_row();
}
inactive_control_row($th);
end_table(1);
//----------------------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
//editing an existing Shipper
$myrow = get_shipper($selected_id);
$_POST['shipper_name'] = $myrow["shipper_name"];
$_POST['contact'] = $myrow["contact"];
$_POST['phone'] = $myrow["phone"];
$_POST['phone2'] = $myrow["phone2"];
$_POST['address'] = $myrow["address"];
}
hidden('selected_id', $selected_id);
}
text_row_ex(_("Name:"), 'shipper_name', 40);
text_row_ex(_("Contact Person:"), 'contact', 30);
text_row_ex(_("Phone Number:"), 'phone', 32, 30);
text_row_ex(_("Secondary Phone Number:"), 'phone2', 32, 30);
text_row_ex(_("Address:"), 'address', 50);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:shipping_companies.php
示例9: edit_param
function edit_param()
{
$_POST['data_filter'] = $this->data_filter;
text_row_ex(_("Filter:"), 'data_filter', 50);
}
开发者ID:raqib,项目名称:ac_dev,代码行数:5,代码来源:salesinvoices.php
示例10: get_tax_group
//editing an existing status code
if (!isset($_POST['name'])) {
$group = get_tax_group($selected_id);
$_POST['name'] = $group["name"];
$_POST['tax_shipping'] = $group["tax_shipping"];
$items = get_tax_group_items($selected_id);
$i = 0;
while ($tax_item = db_fetch($items)) {
$_POST['tax_type_id' . $i] = $tax_item["tax_type_id"];
$_POST['rate' . $i] = percent_format($tax_item["rate"]);
$i++;
}
}
hidden('selected_id', $selected_id);
}
text_row_ex(tr("Description:"), 'name', 40);
yesno_list_row(tr("Tax Shipping:"), 'tax_shipping', null, "", "", true);
end_table();
display_note(tr("Select the taxes that are included in this group."), 1);
start_table($table_style2);
$th = array(tr("Tax"), tr("Default Rate (%)"), tr("Rate (%)"));
table_header($th);
for ($i = 0; $i < 5; $i++) {
start_row();
if (!isset($_POST['tax_type_id' . $i])) {
$_POST['tax_type_id' . $i] = 0;
}
tax_types_list_cells(null, 'tax_type_id' . $i, $_POST['tax_type_id' . $i], true, tr("None"), true);
if ($_POST['tax_type_id' . $i] != 0 && $_POST['tax_type_id' . $i] != reserved_words::get_all_numeric()) {
$default_rate = get_tax_type_default_rate($_POST['tax_type_id' . $i]);
label_cell(percent_format($default_rate), "nowrap align=right");
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:tax_groups.php
示例11: hidden
}
hidden('selected_id', $selected_id);
}
text_row_ex(_("Description") . ':', 'description', 50, 60);
quick_entry_types_list_row(_("Entry Type") . ':', 'type', null, true);
if (get_post('type') == QE_JOURNAL) {
yesno_list_row(_("Balance Based"), 'bal_type', null, _("Yes"), _("No"), true);
}
if (list_updated('bal_type') || list_updated('type')) {
$Ajax->activate('qe');
}
if (get_post('type') == QE_JOURNAL && get_post('bal_type') == 1) {
yesno_list_row(_("Period"), 'base_amount', null, _("Monthly"), _("Yearly"));
gl_all_accounts_list_row(_("Account"), 'base_desc', null, true);
} else {
text_row_ex(_("Base Amount Description") . ':', 'base_desc', 50, 60, '');
amount_row(_("Default Base Amount") . ':', 'base_amount', price_format(0));
}
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
div_end();
if ($selected_id != -1) {
display_heading(_("Quick Entry Lines") . " - " . $_POST['description']);
$result = get_quick_entry_lines($selected_id);
start_table(TABLESTYLE2);
$dim = get_company_pref('use_dimension');
if ($dim == 2) {
$th = array(_("Post"), _("Account/Tax Type"), _("Amount"), _("Dimension"), _("Dimension") . " 2", "", "");
} elseif ($dim == 1) {
$th = array(_("Post"), _("Account/Tax Type"), _("Amount"), _("Dimension"), "", "");
} else {
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:gl_quick_entries.php
示例12: edit_param
function edit_param()
{
global $top;
$item_types = array('stock' => _("Stock"), 'manuf' => _("Manufactured"));
$graph_types = array('PieChart' => _("Pie Chart"), 'Table' => _("Table"));
$_POST['top'] = $this->top;
$_POST['item_type'] = $this->item_type;
$_POST['graph_type'] = $this->graph_type;
$_POST['data_filter'] = $this->data_filter;
text_row_ex(_("Number of items:"), 'top', 2);
text_row_ex(_("Filter:"), 'data_filter', 50);
select_row(_("Graph Type"), "graph_type", null, $graph_types, null);
select_row(_("Item Type"), "item_type", null, $item_types, null);
}
开发者ID:BGCX067,项目名称:fa-dashboard-module-svn-to-git,代码行数:14,代码来源:items.php
示例13: label_cell
}
label_cell($myrow["cid"]);
label_cell($myrow['class_name']);
label_cell($bs_text);
edit_link_cell("selected_id=" . $myrow["cid"]);
delete_link_cell("selected_id=" . $myrow["cid"] . "&delete=1");
end_row();
}
end_table();
//-----------------------------------------------------------------------------------
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Account Class"));
start_form();
start_table($table_style2);
if ($selected_id != -1) {
//editing an existing status code
$myrow = get_account_class($selected_id);
$_POST['id'] = $myrow["cid"];
$_POST['name'] = $myrow["class_name"];
$_POST['Balance'] = $myrow["balance_sheet"];
hidden('selected_id', $selected_id);
label_row(tr("Class ID:"), $_POST['id']);
} else {
text_row_ex(tr("Class ID:"), 'id', 3);
}
text_row_ex(tr("Class Name:"), 'name', 50);
yesno_list_row(tr("Balance Sheet:"), 'Balance', null, "", "", false);
end_table(1);
submit_add_or_update_center($selected_id == -1);
end_form();
//------------------------------------------------------------------------------------
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:gl_account_classes.php
示例14: hyperlink_no_params
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Location"));
start_form();
start_table($table_style2);
if (isset($selected_id)) {
//editing an existing Location
$myrow = get_item_location($selected_id);
$_POST['loc_code'] = $myrow["loc_code"];
$_POST['location_name'] = $myrow["location_name"];
$_POST['delivery_address'] = $myrow["delivery_address"];
$_POST['contact'] = $myrow["contact"];
$_POST['phone'] = $myrow["phone"];
$_POST['fax'] = $myrow["fax"];
$_POST['email'] = $myrow["email"];
hidden("selected_id", $selected_id);
hidden("loc_code", $_POST['loc_code']);
label_row(tr("Location Code:"), $_POST['loc_code']);
} else {
//end of if $selected_id only do the else when a new record is being entered
text_row(tr("Location Code:"), 'loc_code', null, 5, 5);
}
text_row_ex(tr("Location Name:"), 'location_name', 50, 50);
text_row_ex(tr("Contact for deliveries:"), 'contact', 30, 30);
textarea_row(tr("Address:"), 'delivery_address', null, 35, 5);
text_row_ex(tr("Telephone No:"), 'phone', 30, 30);
text_row_ex(tr("Facsimile No:"), 'fax', 30, 30);
text_row_ex(tr("Email:"), 'email', 30, 30);
end_table(1);
submit_add_or_update_center(!isset($selected_id));
end_form();
//end if record deleted no point displaying form to add record
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:locations.php
示例15: table_section_title
possible separators can be added by modifying the array definition by editing that file */
if (!isset($_POST['language'])) {
$_POST['language'] = $_SESSION['language']->code;
}
table_section_title(_("Language"));
languages_list_row(_("Language:"), 'language', $_POST['language']);
table_section(2);
table_section_title(_("Miscellaneous"));
check_row(_("Show hints for new users:"), 'show_hints', user_hints());
check_row(_("Show GL Information:"), 'show_gl', user_show_gl_info());
check_row(_("Show Item Codes:"), 'show_codes', user_show_codes());
themes_list_row(_("Theme:"), "theme", user_theme());
/* The array $themes is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
pagesizes_list_row(_("Page Size:"), "page_size", user_pagesize());
tab_list_row(_("Start-up Tab"), 'startup_tab', user_startup_tab());
/* The array $pagesizes is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
if (!isset($_POST['print_profile'])) {
$_POST['print_profile'] = user_print_profile();
}
print_profiles_list_row(_("Printing profile") . ':', 'print_profile', null, _('Browser printing support'));
check_row(_("Use popup window to display reports:"), 'rep_popup', user_rep_popup(), false, _('Set this option to on if your browser directly supports pdf files'));
check_row(_("Use icons instead of text links:"), 'graphic_links', user_graphic_links(), false, _('Set this option to on for using icons instead of text links'));
text_row_ex(_("Query page size:"), 'query_size', 5, 5, '', user_query_size());
check_row(_("Remember last document date:"), 'sticky_doc_date', sticky_doc_date(), false, _('If set document date is remembered on subsequent documents, otherwise default is current date'));
end_outer_table(1);
submit_center('setprefs', _("Update"), true, '', 'default');
end_form(2);
//-------------------------------------------------------------------------------------------------
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:display_prefs.php
示例16: display_module_edit
function display_module_edit($selected_id)
{
global $installed_modules, $table_style2;
if ($selected_id != -1) {
$n = $selected_id;
} else {
$n = count($installed_modules);
}
start_form(true, true);
echo "\n\t\t<script language='javascript'>\n\t\tfunction updateModule() {\n\t\t\tdocument.forms[0].action='inst_module.php?c=u&id=" . $n . "'\n\t\t\tdocument.forms[0].submit()\n\t\t}\n\t\t</script>";
start_table($table_style2);
if ($selected_id != -1) {
$mod = $installed_modules[$selected_id];
$_POST['tab'] = $mod['tab'];
$_POST['name'] = $mod['name'];
$_POST['path'] = $mod['path'];
$_POST['filename'] = $mod['filename'];
hidden('selected_id', $selected_id);
hidden('filename', $_POST['filename']);
}
tab_list_row(tr("Menu Tab"), 'tab', null);
text_row_ex(tr("Name"), 'name', 30);
text_row_ex(tr("Folder"), 'path', 20);
label_row(tr("Module File"), "<input name='uploadfile' type='file'>");
label_row(tr("SQL File"), "<input name='uploadfile2' type='file'>");
end_table(0);
display_note(tr("Select your module PHP file from your local harddisk."), 0, 1);
echo "<center><input onclick='javascript:updateModule()' type='button' style='width:150' value='" . tr("Save") . "'>";
end_form();
}
开发者ID:ravenii,项目名称:guardocs,代码行数:30,代码来源:inst_module.php
示例17: end_table
//END WHILE LIST LOOP
end_table();
hyperlink_no_params($_SERVER['PHP_SELF'], tr("New Payment Term"));
//-------------------------------------------------------------------------------------------------
start_form();
start_table($table_style2);
$day_in_following_month = $days_before_due = 0;
if (isset($selected_id)) {
//editing an existing payment terms
$sql = "SELECT * FROM payment_terms\n\t\tWHERE terms_indicator='{$selected_id}'";
$result = db_query($sql, "could not get payment term");
$myrow = db_fetch($result);
$_POST['terms'] = $myrow["terms"];
$days_before_due = $myrow["days_before_due"];
$day_in_following_month = $myrow["day_in_following_month"];
hidden('selected_id', $selected_id);
}
text_row(tr("Terms Description:"), 'terms', null, 40, 40);
check_row(tr("Due After A Given No. Of Days:"), 'DaysOrFoll', $day_in_following_month == 0);
if (!isset($_POST['DayNumber'])) {
if ($days_before_due != 0) {
$_POST['DayNumber'] = $days_before_due;
} else {
$_POST['DayNumber'] = $day_in_following_month;
}
}
text_row_ex(tr("Days (Or Day In Following Month):"), 'DayNumber', 3);
end_table(1);
submit_add_or_update_center(!isset($selected_id));
end_form();
end_page();
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:payment_terms.php
示例18: display_company_edit
function display_company_edit($selected_id)
{
global $def_coy, $db_connections, $tb_pref_counter, $table_style2;
if ($selected_id != -1) {
$n = $selected_id;
} else {
$n = count($db_connections);
}
start_form(true, true);
echo "\n\t\t<script language='javascript'>\n\t\tfunction updateCompany() {\n\t\t\tif (document.forms[0].uploadfile.value!='' && document.forms[0].dbname.value!='') {\n\t\t\t\tdocument.forms[0].action='create_coy.php?c=u&ul=1&id=" . $n . "&fn=' + document.forms[0].uploadfile.value\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdocument.forms[0].action='create_coy.php?c=u&id=" . $n . "&fn=' + document.forms[0].uploadfile.value\n\t\t\t}\n\t\t\tdocument.forms[0].submit()\n\t\t}\n\t\t</script>";
start_table($table_style2);
if ($selected_id != -1) {
$conn = $db_connections[$selected_id];
$_POST['name'] = $conn['name'];
$_POST['host'] = $conn['host'];
$_POST['dbuser'] = $conn['dbuser'];
$_POST['dbpassword'] = $conn['dbpassword'];
$_POST['dbname'] = $conn['dbname'];
if ($selected_id == $def_coy) {
$_POST['def'] = true;
} else {
$_POST['def'] = false;
}
$_POST['dbcreate'] = false;
hidden('selected_id', $selected_id);
hidden('dbpassword', $_POST['dbpassword']);
} else {
text_row_ex(tr("Company"), 'name', 30);
}
text_row_ex(tr("Host"), 'host', 30);
text_row_ex(tr("Database User"), 'dbuser', 30);
if ($selected_id == -1) {
text_row_ex(tr("Database Password"), 'dbpassword', 30);
}
text_row_ex(tr("Database Name"), 'dbname', 30);
yesno_list_row(tr("Default"), 'def', null, "", "", false);
start_row();
label_cell(tr("Database Script"));
label_cell("<input name='uploadfile' type='file'>");
end_row();
text_row_ex(tr("New script Admin Password"), 'admpassword', 20);
end_table();
display_note(tr("Choose from Database scripts in SQL folder. No Datase is created without a script."), 0, 1);
echo "<center><input onclick='javascript:updateCompany()' type='button' style='width:150' value='" . tr("Save") . "'>";
end_form();
}
开发者ID:ravenii,项目名称:guardocs,代码行数:46,代码来源:create_coy.php
示例19: _
} else {
$disallow_text = "<b>" . _("NO INVOICING") . "</b>";
}
label_cell($myrow["reason_description"]);
label_cell($disallow_text);
inactive_control_cell($myrow["id"], $myrow["inactive"], 'credit_status', 'id');
edit_button_cell("Edit" . $myrow['id'], _("Edit"));
delete_button_cell("Delete" . $myrow['id'], _("Delete"));
end_row();
}
inactive_control_row($th);
end_table();
echo '<br>';
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
if ($Mode == 'Edit') {
//editing an existing status code
$myrow = get_credit_status($selected_id);
$_POST['reason_description'] = $myrow["reason_description"];
$_POST['DisallowInvoices'] = $myrow["dissallow_invoices"];
}
hidden('selected_id', $selected_id);
}
text_row_ex(_("Description:"), 'reason_description', 50);
yesno_list_row(_("Dissallow invoicing ?"), 'DisallowInvoices', null);
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
//------------------------------------------------------------------------------------
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:credit_status.php
示例20: start_table
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != "") {
if ($Mode == 'Edit') {
//editing an existing status code
$myrow = get_account_class($selected_id);
$_POST['id'] = $myrow["cid"];
$_POST['name'] = $myrow["class_name"];
if (isset($use_oldstyle_convert) && $use_oldstyle_convert == 1) {
$_POST['ctype'] = $myrow["ctype"] >= CL_ASSETS && $myrow["ctype"] < CL_INCOME ? 1 : 0;
} else {
$_POST['ctype'] = $myrow["ctype"];
}
hidden('selected_id', $selected_id);
}
hidden('id');
label_row(_("Class ID:"), $_POST['id']);
} else {
text_row_ex(_("Class ID:"), 'id', 3);
}
text_row_ex(_("Class Name:"), 'name', 50, 60);
if (isset($use_oldstyle_convert) && $use_oldstyle_convert == 1) {
check_row(_("Balance Sheet"), 'ctype', null);
} else {
class_types_list_row(_("Class Type:"), 'ctype', null);
}
end_table(1);
submit_add_or_update_center($selected_id == "", '', 'both');
end_form();
//------------------------------------------------------------------------------------
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:gl_account_classes.php
注:本文中的text_row_ex函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论