当前位置: 首页>>代码示例>>PHP>>正文


PHP yesno_list_row函数代码示例

本文整理汇总了PHP中yesno_list_row函数的典型用法代码示例。如果您正苦于以下问题:PHP yesno_list_row函数的具体用法?PHP yesno_list_row怎么用?PHP yesno_list_row使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了yesno_list_row函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _

    } 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

示例2: display_fiscalyear_edit

function display_fiscalyear_edit($selected_id)
{
    global $Mode;
    start_form();
    start_table(TABLESTYLE2);
    $company_year = get_company_pref('f_year');
    $result = get_all_fiscalyears();
    $row_cnt = db_num_rows($result);
    if ($selected_id != -1) {
        if ($Mode == 'Edit') {
            $myrow = get_fiscalyear($selected_id);
            $_POST['from_date'] = sql2date($myrow["begin"]);
            $_POST['to_date'] = sql2date($myrow["end"]);
            $_POST['closed'] = $myrow["closed"];
        }
        if ($row_cnt == 1) {
            date_row(_("Fiscal Year Begin:"), 'from_date', '', null, 0, 0, 1001);
        } else {
            hidden('from_date');
            label_row(_("Fiscal Year Begin:"), $_POST['from_date']);
        }
        hidden('to_date');
        label_row(_("Fiscal Year End:"), $_POST['to_date']);
        if ($myrow["id"] != $company_year) {
            yesno_list_row(_("Is Closed:"), 'closed', null, "", "", false);
        } else {
            hidden('closed');
            label_row(_("Is Closed:"), yesno_value($_POST['closed']));
        }
    } else {
        $begin = next_begin_date();
        if ($begin && $Mode != 'ADD_ITEM') {
            $_POST['from_date'] = $begin;
            $_POST['to_date'] = end_month(add_months($begin, 11));
            $_POST['closed'] = 0;
        }
        hidden('from_date');
        hidden('to_date');
        hidden('closed');
    }
    hidden('selected_id', $selected_id);
    end_table(1);
    submit_add_or_update_center($selected_id == -1, '', 'both');
    end_form();
}
开发者ID:PaulShipley,项目名称:FrontAccounting,代码行数:45,代码来源:fiscalyears.php

示例3: 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

示例4: price_format

        $_POST['base_desc'] = $myrow["base_desc"];
        $_POST['bal_type'] = $myrow["bal_type"];
        $_POST['base_amount'] = $myrow["bal_type"] ? $myrow["base_amount"] : price_format($myrow["base_amount"]);
    }
    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", "", "");
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:gl_quick_entries.php

示例5: get_tax_group

    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");
        if (!isset($_POST['rate' . $i]) || $_POST['rate' . $i] == "") {
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:tax_groups.php

示例6: hidden

}
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']);
gl_all_accounts_list_row(tr("Accounts Receivable Account:"), 'receivables_account', $_POST['receivables_account']);
gl_all_accounts_list_row(tr("Prompt Payment Discount Account:"), 'payment_discount_account', $_POST['payment_discount_account']);
table_section_title(tr("Addresses"));
textarea_row(tr("Mailing Address:"), 'br_post_address', $_POST['br_post_address'], 35, 5);
textarea_row(tr("Billing Address:"), 'br_address', $_POST['br_address'], 35, 5);
end_table();
end_table(1);
// outer table
开发者ID:ravenii,项目名称:guardocs,代码行数:31,代码来源:customer_branches.php

示例7: record_status_list_row

 function record_status_list_row($label, $name)
 {
     return yesno_list_row($label, $name, null, _('Inactive'), _('Active'));
 }
开发者ID:wizzard94,项目名称:frontaccounting-theme-bootstrap,代码行数:4,代码来源:ListRendererBootstrap.php

示例8: add_labour_cost

    if ($_POST['PaymentType'] == 0) {
        add_labour_cost($wo['stock_id'], 0, $_POST['date_'], input_num('costs'), true);
    } else {
        add_overhead_cost($wo['stock_id'], 0, $_POST['date_'], input_num('costs'), true);
    }
    commit_transaction();
    meta_forward($_SERVER['PHP_SELF'], "AddedID=" . $_POST['selected_id']);
}
//-------------------------------------------------------------------------------------
display_wo_details($_POST['selected_id']);
//-------------------------------------------------------------------------------------
start_form();
hidden('selected_id', $_POST['selected_id']);
//hidden('WOReqQuantity', $_POST['WOReqQuantity']);
start_table(TABLESTYLE2);
br();
yesno_list_row(_("Type:"), 'PaymentType', null, $wo_cost_types[WO_OVERHEAD], $wo_cost_types[WO_LABOUR]);
date_row(_("Date:"), 'date_');
$item_accounts = get_stock_gl_code($wo_details['stock_id']);
$_POST['db_acc'] = $item_accounts['assembly_account'];
$r = get_default_bank_account(get_company_pref('curr_default'));
$_POST['cr_acc'] = $r[0];
amount_row(_("Additional Costs:"), 'costs');
gl_all_accounts_list_row(_("Debit Account"), 'db_acc', null);
gl_all_accounts_list_row(_("Credit Account"), 'cr_acc', null);
end_table(1);
hidden('dim1', $item_accounts["dimension_id"]);
hidden('dim2', $item_accounts["dimension2_id"]);
submit_center('process', _("Process Additional Cost"), true, '', true);
end_form();
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:work_order_costs.php

示例9: 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();
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:bank_accounts.php

示例10: unset

        unset($_POST);
        // clear exemption checkboxes
        $_POST['name'] = $myrow["name"];
        $_POST['exempt'] = $myrow["exempt"];
        // read the exemptions and check the ones that are on
        $exemptions = get_item_tax_type_exemptions($selected_id);
        if (db_num_rows($exemptions) > 0) {
            while ($exmp = db_fetch($exemptions)) {
                $_POST['ExemptTax' . $exmp["tax_type_id"]] = 1;
            }
        }
    }
    hidden('selected_id', $selected_id);
}
text_row_ex(_("Description:"), 'name', 50);
yesno_list_row(_("Is Fully Tax-exempt:"), 'exempt', null, "", "", true);
end_table(1);
if (!isset($_POST['exempt']) || $_POST['exempt'] == 0) {
    display_note(_("Select which taxes this item tax type is exempt from."), 0, 1);
    start_table(TABLESTYLE2);
    $th = array(_("Tax Name"), _("Rate"), _("Is exempt"));
    table_header($th);
    $tax_types = get_all_tax_types_simple();
    while ($myrow = db_fetch($tax_types)) {
        alt_table_row_color($k);
        label_cell($myrow["name"]);
        label_cell(percent_format($myrow["rate"]) . " %", "nowrap align=right");
        check_cells("", 'ExemptTax' . $myrow["id"], null);
        end_row();
    }
    end_table(1);
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:31,代码来源:item_tax_types.php

示例11: display_language_edit

function display_language_edit($selected_id)
{
    global $installed_languages, $dflt_lang;
    if ($selected_id == -1) {
        $n = count($installed_languages);
    } else {
        $n = $selected_id;
    }
    start_form(true);
    start_table(TABLESTYLE2);
    if ($selected_id != -1) {
        $lang = $installed_languages[$n];
        $_POST['code'] = $lang['code'];
        $_POST['name'] = $lang['name'];
        $_POST['encoding'] = $lang['encoding'];
        if (isset($lang['rtl']) && $lang['rtl'] === true) {
            $_POST['rtl'] = $lang['rtl'];
        } else {
            $_POST['rtl'] = false;
        }
        $_POST['dflt'] = $dflt_lang == $lang['code'];
        hidden('selected_id', $selected_id);
    }
    text_row_ex(_("Language Code"), 'code', 20);
    text_row_ex(_("Language Name"), 'name', 20);
    text_row_ex(_("Encoding"), 'encoding', 20);
    yesno_list_row(_("Right To Left"), 'rtl', null, "", "", false);
    yesno_list_row(_("Default Language"), 'dflt', null, "", "", false);
    file_row(_("Language File") . " (PO)", 'uploadfile');
    file_row(_("Language File") . " (MO)", 'uploadfile2');
    end_table(0);
    display_note(_("Select your language files from your local harddisk."), 0, 1);
    submit_add_or_update_center(false, '', 'both');
    end_form();
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:35,代码来源:inst_lang.php

示例12: inactive_control_row

}
inactive_control_row($th);
end_table(1);
//-----------------------------------------------------------------------------------
start_table(TABLESTYLE2);
if ($selected_id != -1) {
    //editing an existing status code
    if ($Mode == 'Edit') {
        $group = get_tax_group($selected_id);
        $_POST['name'] = $group["name"];
        $_POST['tax_shipping'] = $group["tax_shipping"];
    }
    hidden('selected_id', $selected_id);
}
text_row_ex(_("Description:"), 'name', 40);
yesno_list_row(_("Tax applied to Shipping:"), 'tax_shipping', null, "", "", true);
end_table();
display_note(_("Select the taxes that are included in this group."), 1, 1);
// null means transport tax group, but for new we do not use real rates
$items = get_tax_group_rates($selected_id != -1 ? $selected_id : null);
$th = array(_("Tax"), "");
start_table(TABLESTYLE2);
table_header($th);
while ($item = db_fetch_assoc($items)) {
    check_row($item['tax_type_name'], 'tax_type_id' . $item['tax_type_id'], $selected_id != -1 && isset($item['rate']), "align='center'");
}
end_table(1);
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
//------------------------------------------------------------------------------------
end_page();
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:tax_groups.php

示例13: display_fiscalyear_edit

function display_fiscalyear_edit($selected_id)
{
    global $table_style2;
    start_form();
    start_table($table_style2);
    if ($selected_id) {
        $myrow = get_fiscalyear($selected_id);
        $_POST['from_date'] = sql2date($myrow["begin"]);
        $_POST['to_date'] = sql2date($myrow["end"]);
        $_POST['closed'] = $myrow["closed"];
        hidden('selected_id', $selected_id);
        hidden('from_date', $_POST['from_date']);
        hidden('to_date', $_POST['to_date']);
        label_row(tr("Fiscal Year Begin:"), $_POST['from_date']);
        label_row(tr("Fiscal Year End:"), $_POST['to_date']);
    } else {
        date_row(tr("Fiscal Year Begin:"), 'from_date', null, 0, 0, 1001);
        date_row(tr("Fiscal Year End:"), 'to_date', null, 0, 0, 1001);
    }
    yesno_list_row(tr("Is Closed:"), 'closed', null, "", "", false);
    end_table(1);
    submit_add_or_update_center(!isset($selected_id));
    end_form();
}
开发者ID:ravenii,项目名称:guardocs,代码行数:24,代码来源:fiscalyears.php

示例14: branch_settings

function branch_settings($selected_id)
{
    global $Mode, $num_branches;
    start_outer_table(TABLESTYLE2);
    table_section(1);
    $_POST['email'] = "";
    if ($selected_id != -1) {
        if ($Mode == 'Edit' || !isset($_POST['br_name'])) {
            //editing an existing branch
            $myrow = get_cust_branch($_POST['customer_id'], $_POST['branch_code']);
            set_focus('br_name');
            $_POST['branch_code'] = $myrow["branch_code"];
            $_POST['br_name'] = $myrow["br_name"];
            $_POST['br_ref'] = $myrow["branch_ref"];
            $_POST['br_address'] = $myrow["br_address"];
            $_POST['br_post_address'] = $myrow["br_post_address"];
            //		    $_POST['contact_name'] = $myrow["contact_name"];
            $_POST['salesman'] = $myrow["salesman"];
            $_POST['area'] = $myrow["area"];
            //		    $_POST['rep_lang'] =$myrow["rep_lang"];
            //		    $_POST['phone'] =$myrow["phone"];
            //		    $_POST['phone2'] =$myrow["phone2"];
            //		    $_POST['fax'] =$myrow["fax"];
            //		    $_POST['email'] =$myrow["email"];
            $_POST['tax_group_id'] = $myrow["tax_group_id"];
            $_POST['disable_trans'] = $myrow['disable_trans'];
            $_POST['default_location'] = $myrow["default_location"];
            $_POST['default_ship_via'] = $myrow['default_ship_via'];
            $_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'];
            $_POST['group_no'] = $myrow["group_no"];
            $_POST['notes'] = $myrow["notes"];
        }
    } elseif ($Mode != 'ADD_ITEM') {
        //end of if $SelectedBranch only do the else when a new record is being entered
        $myrow = get_default_info_for_branch($_POST['customer_id']);
        //		$_POST['rep_lang'] = $myrow['rep_lang'];
        if (!$num_branches) {
            $_POST['br_name'] = $myrow["name"];
            $_POST['br_ref'] = $myrow["debtor_ref"];
            $_POST['contact_name'] = _('Main Branch');
            $_POST['br_address'] = $_POST['br_post_address'] = $myrow["address"];
        }
        $_POST['branch_code'] = "";
        if (!isset($_POST['sales_account']) || !isset($_POST['sales_discount_account'])) {
            $company_record = get_company_prefs();
            // We use the Item Sales Account as default!
            // $_POST['sales_account'] = $company_record["default_sales_act"];
            $_POST['sales_account'] = $_POST['notes'] = '';
            $_POST['sales_discount_account'] = $company_record['default_sales_discount_act'];
            $_POST['receivables_account'] = $company_record['debtors_act'];
            $_POST['payment_discount_account'] = $company_record['default_prompt_payment_act'];
        }
    }
    hidden('popup', @$_REQUEST['popup']);
    table_section_title(_("Name and Contact"));
    text_row(_("Branch Name:"), 'br_name', null, 35, 40);
    text_row(_("Branch Short Name:"), 'br_ref', null, 30, 30);
    table_section_title(_("Sales"));
    sales_persons_list_row(_("Sales Person:"), 'salesman', null);
    sales_areas_list_row(_("Sales Area:"), 'area', null);
    sales_groups_list_row(_("Sales Group:"), 'group_no', null, true);
    locations_list_row(_("Default Inventory Location:"), 'default_location', null);
    shippers_list_row(_("Default Shipping Company:"), 'default_ship_via', null);
    tax_groups_list_row(_("Tax Group:"), 'tax_group_id', null);
    table_section_title(_("GL Accounts"));
    // 2006-06-14. Changed gl_al_accounts_list to have an optional all_option 'Use Item Sales Accounts'
    gl_all_accounts_list_row(_("Sales Account:"), 'sales_account', null, false, false, true);
    gl_all_accounts_list_row(_("Sales Discount Account:"), 'sales_discount_account');
    gl_all_accounts_list_row(_("Accounts Receivable Account:"), 'receivables_account', null, true);
    gl_all_accounts_list_row(_("Prompt Payment Discount Account:"), 'payment_discount_account');
    table_section(2);
    if ($selected_id == -1) {
        table_section_title(_("General contact data"));
        text_row(_("Contact Person:"), 'contact_name', null, 35, 40);
        text_row(_("Phone Number:"), '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);
        languages_list_row(_("Document Language:"), 'rep_lang', null, _("Customer default"));
    }
    table_section_title(_("Addresses"));
    textarea_row(_("Mailing Address:"), 'br_post_address', null, 35, 4);
    textarea_row(_("Billing Address:"), 'br_address', null, 35, 4);
    textarea_row(_("General Notes:"), 'notes', null, 35, 4);
    if ($selected_id != -1) {
        yesno_list_row(_("Disable this Branch:"), 'disable_trans', null);
    }
    end_outer_table(1);
    submit_add_or_update_center($selected_id == -1, '', 'both');
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:93,代码来源:customer_branches.php

示例15: div_end

     }
     div_end();
     break;
 case '2':
     if (!isset($_POST['host'])) {
         foreach ($_SESSION['inst_set'] as $name => $val) {
             $_POST[$name] = $val;
         }
     }
     subpage_title(_('Database Server Settings'));
     start_table(TABLESTYLE);
     text_row_ex(_("Server Host:"), 'host', 30, 60);
     text_row_ex(_("Database User:"), 'dbuser', 30);
     text_row_ex(_("Database Password:"), 'dbpassword', 30);
     text_row_ex(_("Database Name:"), 'dbname', 30);
     yesno_list_row(_("Use '0_' Table Prefix:"), 'tbpref', 1, _('Yes'), _('No'), false);
     check_row(_("Install Additional Language Packs from FA Repository:"), 'sel_langs');
     check_row(_("Install Additional COAs from FA Repository:"), 'sel_coas');
     end_table(1);
     display_note(_('Use table prefix if you share selected database for more than one FA company.'));
     display_note(_("Do not select additional langs nor COAs if you have no working internet connection right now. You can install them later."));
     submit_center_first('back', _('<< Back'));
     submit_center_last('db_test', _('Continue >>'));
     break;
 case '3':
     // select langauges
     subpage_title(_('User Interface Languages Selection'));
     display_langs();
     submit_center_first('back', _('<< Back'));
     submit_center_last('install_langs', _('Continue >>'));
     break;
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:index.php


注:本文中的yesno_list_row函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。