本文整理汇总了PHP中gen_coa_pull_down函数的典型用法代码示例。如果您正苦于以下问题:PHP gen_coa_pull_down函数的具体用法?PHP gen_coa_pull_down怎么用?PHP gen_coa_pull_down使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了gen_coa_pull_down函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configure
function configure($key)
{
switch ($key) {
case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_OPEN_POS_DRAWER':
$temp = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
return html_pull_down_menu(strtolower($key), $temp, constant($key));
case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_SHOW_IN_POS':
$temp = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
return html_pull_down_menu(strtolower($key), $temp, constant($key));
case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_POS_GL_ACCT':
return html_pull_down_menu(strtolower($key), gen_coa_pull_down(), constant($key));
default:
return html_input_field(strtolower($key), constant($key));
}
}
示例2: html_input_field
<td align="right"><?php
echo GEN_LAST_NAME;
?>
</td>
<td><?php
echo html_input_field('contact_last', $cInfo->contact_last, 'size="33" maxlength="32"', false);
?>
</td>
</tr>
<tr>
<td align="right"><?php
echo constant('ACT_' . strtoupper($type) . '_GL_ACCOUNT_TYPE');
?>
</td>
<td><?php
echo html_pull_down_menu('gl_type_account', gen_coa_pull_down(), $_REQUEST['action'] == 'new' ? AR_DEF_GL_SALES_ACCT : $cInfo->gl_type_account);
?>
</td>
<td align="right"><?php
echo constant('ACT_' . strtoupper($type) . '_ACCOUNT_NUMBER');
?>
</td>
<td><?php
echo html_input_field('account_number', $cInfo->account_number, 'size="17" maxlength="16"');
?>
</td>
<td align="right"><?php
echo TEXT_DEFAULT_PRICE_SHEET;
?>
</td>
<td><?php
示例3: build_form_html
function build_form_html($action, $id = '')
{
global $db;
$sql = "select description_short, description_long, account_id, vendor_id, tax_rate \r\n\t from " . $this->db_table . " where tax_auth_id = " . $id;
$result = $db->Execute($sql);
if ($action == 'new') {
$cInfo = '';
} else {
$cInfo = new objectInfo($result->fields);
}
$output = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . chr(10);
$output .= ' <tr class="dataTableHeadingRow">' . chr(10);
$output .= ' <th colspan="2">' . ($action == 'new' ? SETUP_INFO_HEADING_NEW_TAX_AUTH : SETUP_INFO_HEADING_EDIT_TAX_AUTH) . '</th>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td colspan="2">' . ($action == 'new' ? SETUP_TAX_AUTH_INSERT_INTRO : SETUP_TAX_AUTH_EDIT_INTRO) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_DESC_SHORT . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description_short', $cInfo->description_short, 'size="16" maxlength="15"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_DESC_LONG . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description_long', $cInfo->description_long, 'size="33" maxlength="64"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_GL_ACCOUNT . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('account_id', gen_coa_pull_down(), $cInfo->account_id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_VENDOR_ID . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('vendor_id', gen_get_account_array_by_type('v'), $cInfo->vendor_id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . SETUP_INFO_TAX_RATE . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('tax_rate', $cInfo->tax_rate) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= '</table>' . chr(10);
return $output;
}
示例4: foreach
}
}
}
foreach ($install->keys as $key => $default) {
$field = strtolower($key);
if (isset($_POST[$field])) {
write_configure($key, $_POST[$field]);
}
}
gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'SSL'));
$messageStack->add(IMPORT_BANK_CONFIG_SAVED, 'success');
break;
case 'delete':
validate_security($security_level, 4);
// security check
$subject = $_POST['subject'];
$id = $_POST['rowSeq'];
if (!$subject || !$id) {
break;
}
${$subject}->btn_delete($id);
break;
default:
}
/***************** prepare to display templates *************************/
// build some general pull down arrays
$all_chart = gen_coa_pull_down(2, false, true, false);
$include_header = true;
$include_footer = true;
$include_template = 'template_main.php';
define('PAGE_TITLE', BOX_BANK_IMPORT_ADMIN);
示例5: html_input_field
?>
</td>
<td class="main"><?php
echo html_input_field('contact_last', $cInfo->contact_last, 'size="33" maxlength="32"', false);
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo constant('ACT_' . strtoupper($type) . '_GL_ACCOUNT_TYPE');
?>
</td>
<td class="main">
<?php
$default_selection = $action == 'new' ? AP_DEFAULT_INVENTORY_ACCOUNT : $cInfo->gl_type_account;
$selection_array = gen_coa_pull_down();
echo html_pull_down_menu('gl_type_account', $selection_array, $default_selection);
?>
</td>
<td align="right" class="main"><?php
echo constant('ACT_' . strtoupper($type) . '_ACCOUNT_NUMBER');
?>
</td>
<td class="main"><?php
echo html_input_field('account_number', $cInfo->account_number, 'size="17" maxlength="16"');
?>
</td>
<td class="main"> </td>
<td class="main"> </td>
</tr>
<tr>
示例6: switch
if (file_exists($custom_path)) {
include $custom_path;
}
/*************** Act on the action request *************************/
switch ($_REQUEST['action']) {
case 'import_csv':
if (!validate_upload('file_name', 'text', 'csv')) {
break;
}
$result = bank_import_csv($page_list[$subject]['structure'], 'file_name', $bank_acct);
break;
case 'sample_csv':
$output = build_sample_csv($page_list[$subject]['structure'], 'bank_import');
header("Content-type: application/csv");
header("Content-disposition: attachment; filename=sample_bank_import; size=" . strlen($output));
header('Pragma: cache');
header('Cache-Control: public, must-revalidate, max-age=0');
header('Connection: close');
header('Expires: ' . date('r', time() + 3600));
header('Last-Modified: ' . date('r'));
print $output;
exit;
default:
}
/***************** prepare to display templates *************************/
$cash_chart = gen_coa_pull_down(2, false, true, false, $restrict_types = array(0));
// cash types only
$include_header = true;
$include_footer = true;
$include_template = 'template_main.php';
define('PAGE_TITLE', HEADING_MODULE_IMPORT_BANK);
示例7: build_form_html
function build_form_html($action, $id = '')
{
global $db;
$sql = "select id, description, heading_only, primary_acct_id, account_type, account_inactive \r\n\t from " . $this->db_table . " where id = '" . $id . "'";
$result = $db->Execute($sql);
if ($result->RecordCount() == 0) {
$cInfo = new objectInfo($_POST);
} else {
$cInfo = new objectInfo($result->fields);
}
$output = '<table border="0" width="100%" cellspacing="2" cellpadding="1">' . chr(10);
$output .= ' <tr class="dataTableHeadingRow">' . chr(10);
$output .= ' <th colspan="2">' . (!$result->fields['id'] ? GL_INFO_NEW_ACCOUNT : GL_INFO_EDIT_ACCOUNT) . '</th>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td colspan="2">' . (!$result->fields['id'] ? GL_INFO_INSERT_INTRO : GL_EDIT_INTRO) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . TEXT_GL_ACCOUNT . '</td>' . chr(10);
$output .= ' <td>' . (!$result->fields['id'] ? html_input_field('id', $cInfo->id) : $cInfo->id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . TEXT_ACCT_DESCRIPTION . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description', $cInfo->description, 'size="48" maxlength="64"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . GL_INFO_HEADING_ONLY . '</td>' . chr(10);
$output .= ' <td>' . html_checkbox_field('heading_only', '1', $cInfo->heading_only) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . GL_INFO_PRIMARY_ACCT_ID . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('primary_acct_id', gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, true, true), $cInfo->primary_acct_id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . GL_INFO_ACCOUNT_TYPE . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('account_type', gen_get_pull_down(TABLE_CHART_OF_ACCOUNTS_TYPES, true, '1'), $cInfo->account_type) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr class="dataTableRow">' . chr(10);
$output .= ' <td>' . GL_INFO_ACCOUNT_INACTIVE . '</td>' . chr(10);
$output .= ' <td>' . html_checkbox_field('account_inactive', '', $cInfo->account_inactive) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= '</table>' . chr(10);
return $output;
}
示例8: scandir
$charts = scandir($dir);
} else {
$charts = scandir(DIR_FS_WORKING . 'language/en_us/charts');
}
$sel_chart = array(array('id' => '0', 'text' => TEXT_SELECT));
foreach ($charts as $chart) {
if (strpos($chart, 'xml')) {
$temp = xml_to_object(file_get_contents(DIR_FS_WORKING . 'language/' . $_SESSION['language'] . '/charts/' . $chart));
if ($temp->ChartofAccounts) {
$temp = $temp->ChartofAccounts;
}
$sel_chart[] = array('id' => $chart, 'text' => $temp->description);
}
}
// some pre-defined gl accounts
$cash_chart = gen_coa_pull_down(2, false, true, false, $restrict_types = array(0));
// cash types only
$ar_chart = gen_coa_pull_down(2, false, true, false, $restrict_types = array(2));
// ar types only
$ap_chart = gen_coa_pull_down(2, false, true, false, $restrict_types = array(20));
// ap types only
$ocl_chart = gen_coa_pull_down(2, false, true, false, $restrict_types = array(22));
// other current liability types only
$inc_chart = gen_coa_pull_down(2, false, true, false, $restrict_types = array(30));
// income types only
$inv_chart = gen_coa_pull_down(2, false, true, false, $restrict_types = array(4, 34));
// inv, expenses types only
$include_header = true;
$include_footer = true;
$include_template = 'template_main.php';
define('PAGE_TITLE', BOX_PHREEBOOKS_MODULE_ADM);
示例9: html_pull_down_menu
</div>
<table width="80%" align="center" border="0" cellspacing="0" cellpadding="2">
<tr>
<td colspan="4">
<?php
echo '<p>' . GL_BUDGET_INTRO_TEXT . '</p>';
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
echo TEXT_GL_ACCOUNT;
?>
<?php
echo html_pull_down_menu('gl_acct', gen_coa_pull_down(), $gl_acct, 'onchange="submit()"');
?>
<?php
echo html_icon('actions/view-refresh.png', TEXT_LOAD_ACCT_PRIOR, 'small', 'onclick="fetchAcct();"');
?>
<?php
echo html_icon('actions/window-new.png', TEXT_CLEAR, 'small', 'onclick="copyBudget(\'clear\');"');
?>
</td>
<td align="center" colspan="2">
<?php
echo GL_FISCAL_YEAR;
?>
<?php
echo html_pull_down_menu('fy', get_fiscal_year_pulldown(), $fy, 'onchange="submit()"');
?>
示例10: build_form_html
function build_form_html($action, $id = '')
{
global $db, $currencies;
require_once DIR_FS_MODULES . 'phreepos/classes/tills.php';
require_once DIR_FS_MODULES . 'phreepos/defaults.php';
if ($action != 'new' && $this->error == false) {
$sql = "select * from " . $this->db_table . " where ot_id = " . $id;
$result = $db->Execute($sql);
foreach ($result->fields as $key => $value) {
$this->{$key} = $value;
}
}
$tills = new tills();
$output = "<script type='text/javascript'>\n\t\t\t\t\t\t\$(document).ready(function(){\n\t\t\t\t\t\t\tchangeOfType();\n\t\t\t\t\t\t});\n\t\t\n\t\t\t\t\t\tfunction changeOfType(){\n\t\t\t\t\t\t\tvar elt = document.getElementById('type');\n\t\t\t\t\t\t\tif(elt.options[elt.selectedIndex].value == 'expenses'){\n\t\t\t\t\t\t\t\t\$('#use_tax_row').show();\n\t\t\t\t\t\t\t\t\$('#tax_row').show();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\$('#use_tax_row').hide();\n\t\t\t\t\t\t\t\t\$('#tax_row').hide();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</script>";
$output .= '<table style="border-collapse:collapse;margin-left:auto; margin-right:auto;">' . chr(10);
$output .= ' <thead class="ui-widget-header">' . "\n";
$output .= ' <tr>' . chr(10);
$output .= ' <th colspan="2">' . ($action == 'new' ? TEXT_ENTER_NEW_OTHER_TRANSACTION : TEXT_EDIT_OTHER_TRANSACTION) . '</th>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' </thead>' . "\n";
$output .= ' <tbody class="ui-widget-content">' . "\n";
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . TEXT_DESCRIPTION . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description', $this->description, 'size="16" maxlength="15"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
if ($tills->showDropDown()) {
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . TEXT_TILLS . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('till_id', $tills->till_array(), $this->till_id ? $this->till_id : $tills->default_till()) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
} else {
$output .= html_hidden_field('till_id', $tills->default_till());
}
//type change cash or expences.
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . TEXT_PHREEPOS_TRANSACTION_TYPE . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('type', gen_build_pull_down($ot_options), $this->type, 'onchange="changeOfType();"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
//gl account
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . TEXT_GL_ACCOUNT . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('gl_acct_id', gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, true, false, false), $this->gl_acct_id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
//Only show this when it are expenses
//use show tax
$output .= ' <tr id="use_tax_row">' . chr(10);
$output .= ' <td>' . TEXT_USE_TAX . '</td>' . chr(10);
$output .= ' <td>' . html_checkbox_field('use_tax', '0', $this->use_tax) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
//default tax
$output .= ' <tr id="tax_row">' . chr(10);
$output .= ' <td>' . TEXT_TAX . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('taxable', inv_calculate_tax_drop_down('v', false), $this->taxable) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' </tbody>' . chr(10);
$output .= '</table>' . chr(10);
return $output;
}
示例11: cfg_pull_down_gl_acct_list
function cfg_pull_down_gl_acct_list($acct_id, $key = '')
{
$name = $key ? 'configuration[' . $key . ']' : 'configuration_value';
return html_pull_down_menu($name, gen_coa_pull_down(), $acct_id);
}
示例12: build_form_html
function build_form_html($action, $id = '')
{
global $db, $coa_types_list;
if ($action != 'new' && $this->error == false) {
$sql = "select * from " . $this->db_table . " where id = '" . $this->id . "'";
$result = $db->Execute($sql);
foreach ($result->fields as $key => $value) {
$this->{$key} = $value;
}
}
$output = ($action == 'new' ? html_hidden_field('new', 1) : '') . chr(10);
$output .= '<table style="border-collapse:collapse;margin-left:auto; margin-right:auto;">' . "\n";
$output .= ' <thead class="ui-widget-header">' . "\n";
$output .= ' <tr>' . "\n";
$output .= ' <th colspan="2">' . ($action == 'new' ? GL_INFO_NEW_ACCOUNT : GL_INFO_EDIT_ACCOUNT) . '</th>' . "\n";
$output .= ' </tr>' . "\n";
$output .= ' </thead>' . "\n";
$output .= ' <tbody class="ui-widget-content">' . "\n";
$output .= ' <tr>' . "\n";
$output .= ' <td colspan="2">' . ($action == 'new' ? GL_INFO_INSERT_INTRO : GL_EDIT_INTRO) . '</td>' . "\n";
$output .= ' </tr>' . "\n";
$output .= ' <tr>' . "\n";
$output .= ' <td>' . TEXT_GL_ACCOUNT . '</td>' . "\n";
$output .= ' <td>' . ($action == 'new' ? html_input_field('id', $this->id) : $this->id) . '</td>' . "\n";
$output .= ' </tr>' . "\n";
$output .= ' <tr>' . "\n";
$output .= ' <td>' . TEXT_ACCT_DESCRIPTION . '</td>' . "\n";
$output .= ' <td>' . html_input_field('description', $this->description, 'size="48" maxlength="64"') . '</td>' . "\n";
$output .= ' </tr>' . "\n";
$output .= ' <tr>' . "\n";
$output .= ' <td>' . GL_INFO_HEADING_ONLY . '</td>' . "\n";
$output .= ' <td>' . html_checkbox_field('heading_only', '1', $this->heading_only) . '</td>' . "\n";
$output .= ' </tr>' . "\n";
$output .= ' <tr>' . "\n";
$output .= ' <td>' . GL_INFO_PRIMARY_ACCT_ID . '</td>' . "\n";
$output .= ' <td>' . html_pull_down_menu('primary_acct_id', gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, true, true), $this->primary_acct_id) . '</td>' . "\n";
$output .= ' </tr>' . "\n";
if ($this->primary_acct_id == '' || $this->error == true) {
$output .= ' <tr>' . "\n";
$output .= ' <td>' . GL_INFO_ACCOUNT_TYPE . '</td>' . "\n";
$output .= ' <td>' . html_pull_down_menu('account_type', $coa_types_list, $this->account_type) . '</td>' . "\n";
$output .= ' </tr>' . "\n";
} else {
$sql = "select account_type from " . $this->db_table . " where id = '" . $this->primary_acct_id . "'";
$result = $db->Execute($sql);
$output .= html_hidden_field('account_type', $result->fields['account_type']) . chr(10);
}
$output .= ' <tr>' . "\n";
$output .= ' <td>' . GL_INFO_ACCOUNT_INACTIVE . '</td>' . "\n";
$output .= ' <td>' . html_checkbox_field('account_inactive', '1', $this->account_inactive == 1 ? true : false) . '</td>' . "\n";
$output .= ' </tr>' . "\n";
$output .= ' </tbody>' . "\n";
$output .= '</table>' . "\n";
return $output;
}
示例13: unset
$_GET['main_id_to'] = '';
$_GET['search_text'] = '';
$_GET['page'] = 1;
unset($_GET['list_order']);
break;
case 'search':
case 'go_page':
default:
}
/***************** prepare to display templates *************************/
$include_header = true;
$include_footer = true;
$include_tabs = false;
$include_calendar = true;
// load gl accounts
$gl_array_list = gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, false, true);
// build the list header
$heading_array = array('m.id' => TEXT_JOURNAL_RECORD_ID, 'm.description' => TEXT_DESCRIPTION, 'm.bill_primary_name' => GEN_PRIMARY_NAME, 'm.post_date' => TEXT_POST_DATE, 'm.purchase_invoice_id' => TEXT_REFERENCE, 'm.total_amount' => TEXT_TOTAL);
$result = html_heading_bar($heading_array, $_GET['list_order']);
$list_header = $result['html_code'];
$disp_order = $result['disp_order'];
// build the list for the page selected
$criteria = array();
if ($_GET['journal_id']) {
$criteria[] = 'm.journal_id = ' . $_GET['journal_id'];
}
$ref_fields = array('m.purchase_invoice_id', 'm.purch_order_id');
$result = build_search_sql($ref_fields, $_GET['ref_id'], $_GET['ref_id_from'], $_GET['ref_id_to']);
if ($result) {
$criteria[] = $result;
}
示例14: build_form_html
function build_form_html($action, $id = '')
{
global $db;
if ($action != 'new' && $this->error == false) {
$sql = "select description_short, description_long, account_id, vendor_id, tax_rate \n\t from " . $this->db_table . " where tax_auth_id = " . $id;
$result = $db->Execute($sql);
foreach ($result->fields as $key => $value) {
$this->{$key} = $value;
}
}
$output = '<table style="border-collapse:collapse;margin-left:auto; margin-right:auto;">' . chr(10);
$output .= ' <thead class="ui-widget-header">' . "\n";
$output .= ' <tr>' . chr(10);
$output .= ' <th colspan="2">' . ($action == 'new' ? SETUP_INFO_HEADING_NEW_TAX_AUTH : SETUP_INFO_HEADING_EDIT_TAX_AUTH) . '</th>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' </thead>' . "\n";
$output .= ' <tbody class="ui-widget-content">' . "\n";
$output .= ' <tr>' . chr(10);
$output .= ' <td colspan="2">' . ($action == 'new' ? SETUP_TAX_AUTH_INSERT_INTRO : SETUP_TAX_AUTH_EDIT_INTRO) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . SETUP_INFO_DESC_SHORT . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description_short', $this->description_short, 'size="16" maxlength="15"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . SETUP_INFO_DESC_LONG . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('description_long', $this->description_long, 'size="33" maxlength="64"') . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . SETUP_INFO_GL_ACCOUNT . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('account_id', gen_coa_pull_down(), $this->account_id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . SETUP_INFO_VENDOR_ID . '</td>' . chr(10);
$output .= ' <td>' . html_pull_down_menu('vendor_id', gen_get_contact_array_by_type('v'), $this->vendor_id) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' <tr>' . chr(10);
$output .= ' <td>' . SETUP_INFO_TAX_RATE . '</td>' . chr(10);
$output .= ' <td>' . html_input_field('tax_rate', $this->tax_rate) . '</td>' . chr(10);
$output .= ' </tr>' . chr(10);
$output .= ' </tbody>' . "\n";
$output .= '</table>' . chr(10);
return $output;
}
示例15: html_pull_down_menu
<td><?php
echo GEN_DEF_AR_ACCT . ' ' . html_pull_down_menu('def_ar_acct', gen_coa_pull_down(), $error ? $_POST['def_ar_acct'] : $uInfo->def_ar_acct, '');
?>
</td>
<td><?php
echo ' ';
?>
</td>
</tr>
<tr>
<td><?php
echo GEN_RESTRICT_PERIOD . ' ' . html_checkbox_field('restrict_period', '1', $error && $_POST['restrict_period'] || $uInfo->restrict_period ? true : false);
?>
</td>
<td><?php
echo GEN_DEF_AP_ACCT . ' ' . html_pull_down_menu('def_ap_acct', gen_coa_pull_down(), $error ? $_POST['def_ap_acct'] : $uInfo->def_ap_acct, '');
?>
</td>
<td><?php
echo ' ';
?>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php
echo TEXT_SECURITY_SETTINGS;
?>
</legend>