本文整理汇总了PHP中html_pull_down_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP html_pull_down_menu函数的具体用法?PHP html_pull_down_menu怎么用?PHP html_pull_down_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_pull_down_menu函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: Output
function Output($params)
{
global $db, $currencies;
if (count($params) != $this->size_params) {
//upgrading
$params = $this->Upgrade($params);
}
$list_length = array();
$contents = '';
$control = '';
for ($i = 0; $i <= $this->max_length; $i++) {
$list_length[] = array('id' => $i, 'text' => $i);
}
$list_order = array(array('id' => 'asc', 'text' => TEXT_ASC), array('id' => 'desc', 'text' => TEXT_DESC));
$list_limit = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
// Build control box form data
$control = '<div class="row">';
$control .= ' <div style="white-space:nowrap">';
$control .= TEXT_SHOW . TEXT_SHOW_NO_LIMIT . ' ' . html_pull_down_menu('po_status_field_0', $list_length, $params['num_rows']) . '<br />';
$control .= CP_PO_STATUS_SORT_ORDER . ' ' . html_pull_down_menu('po_status_field_1', $list_order, $params['order']) . '<br />';
$control .= CP_PO_STATUS_HIDE_FUTURE . ' ' . html_pull_down_menu('po_status_field_2', $list_limit, $params['limit']);
$control .= html_submit_field('sub_po_status', TEXT_SAVE);
$control .= ' </div>';
$control .= '</div>';
if (count($params) != $this->size_params) {
$this->update();
}
// Build content box
$sql = "select id, post_date, purchase_invoice_id, bill_primary_name, total_amount, currencies_code, currencies_value \n\t\t from " . TABLE_JOURNAL_MAIN . " where journal_id = 4 and closed = '0'";
if ($params['limit'] == '1') {
$sql .= " and post_date <= '" . date('Y-m-d') . "'";
}
if ($params['order'] == 'desc') {
$sql .= " order by post_date desc";
}
if ($params['num_rows']) {
$sql .= " limit " . $params['num_rows'];
}
$result = $db->Execute($sql);
if ($result->RecordCount() < 1) {
$contents = ACT_NO_RESULTS;
} else {
while (!$result->EOF) {
$contents .= '<div style="float:right">';
$contents .= html_button_field('invoice_' . $result->fields['id'], TEXT_RECEIVE, 'onclick="window.open(\'' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&page=orders&oID=' . $result->fields['id'] . '&jID=6&action=prc_so', 'SSL') . '\',\'_blank\')"') . " ";
$contents .= $currencies->format_full($result->fields['total_amount'], true, $result->fields['currencies_code'], $result->fields['currencies_value']);
$contents .= '</div>';
$contents .= '<div>';
$contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&page=orders&oID=' . $result->fields['id'] . '&jID=4&action=edit', 'SSL') . '">';
$contents .= $result->fields['purchase_invoice_id'] . ' - ';
$contents .= gen_locale_date($result->fields['post_date']);
$contents .= ' ' . htmlspecialchars(gen_trim_string($result->fields['bill_primary_name'], 20, true));
$contents .= '</a>';
$contents .= '</div>' . chr(10);
$result->MoveNext();
}
}
return $this->build_div('', $contents, $control);
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:59,代码来源:po_status.php
示例2: Output
function Output($params)
{
global $db, $currencies;
if (count($params) != $this->size_params) {
//upgrading
$params = $this->Upgrade($params);
}
$list_length = array();
$contents = '';
$control = '';
for ($i = 0; $i <= $this->max_length; $i++) {
$list_length[] = array('id' => $i, 'text' => $i);
}
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">' . TEXT_SHOW . TEXT_SHOW_NO_LIMIT;
$control .= html_pull_down_menu('to_receive_inv_field_0', $list_length, $params['num_rows']);
$control .= html_submit_field('sub_to_receive_inv', TEXT_SAVE);
$control .= '</div></div>';
// Build content box
$total = 0;
$sql = "select id, purchase_invoice_id, total_amount, bill_primary_name, currencies_code, currencies_value, post_date, journal_id \n\t\t from " . TABLE_JOURNAL_MAIN . " \n\t\t where journal_id in (6,7) and waiting = '1' order by post_date DESC, purchase_invoice_id DESC";
if ($params['num_rows']) {
$sql .= " limit " . $params['num_rows'];
}
$result = $db->Execute($sql);
if ($result->RecordCount() < 1) {
$contents = ACT_NO_RESULTS;
} else {
while (!$result->EOF) {
$inv_balance = $result->fields['total_amount'] - fetch_partially_paid($result->fields['id']);
if ($result->fields['journal_id'] == 7) {
$inv_balance = -$inv_balance;
}
$total += $inv_balance;
$contents .= '<div style="float:right">' . $currencies->format_full($inv_balance, true, $result->fields['currencies_code'], $result->fields['currencies_value']) . '</div>';
$contents .= '<div>';
$contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, "module=phreebooks&page=orders&oID={$result->fields['id']}&jID={$result->fields['journal_id']}&action=edit", 'SSL') . '">';
$contents .= gen_locale_date($result->fields['post_date']) . ' - ';
if ($result->fields['purchase_invoice_id'] != '') {
$contents .= $result->fields['purchase_invoice_id'] . ' - ';
}
$contents .= htmlspecialchars($result->fields['bill_primary_name']);
$contents .= '</a></div>' . chr(10);
$result->MoveNext();
}
}
if (!$params['num_rows'] && $result->RecordCount() > 0) {
$contents .= '<div style="float:right">' . $currencies->format_full($total, true, DEFAULT_CURRENCY, 1) . '</div>';
$contents .= '<div><b>' . TEXT_TOTAL . '</b></div>' . chr(10);
}
return $this->build_div('', $contents, $control);
}
开发者ID:TrinityComputers,项目名称:PhreeBooksERP,代码行数:53,代码来源:to_receive_inv.php
示例3: configure
function configure($key)
{
switch ($key) {
case 'MODULE_SHIPPING_TABLE_MODE':
$temp = array(array('id' => 'price', 'text' => TEXT_PRICE), array('id' => 'weight', 'text' => TEXT_WEIGHT));
$html .= html_pull_down_menu(strtolower($key), $temp, constant($key));
break;
default:
$html .= html_input_field(strtolower($key), constant($key), '');
}
return $html;
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:12,代码来源:table.php
示例4: selection
function selection()
{
global $order;
for ($i = 1; $i < 13; $i++) {
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'module' => MODULE_PAYMENT_FIRSTDATA_TEXT_CATALOG_TITLE, 'fields' => array(array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('firstdata_field_0', $order->firstdata_field_0)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('firstdata_field_1', $order->firstdata_field_1)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('firstdata_field_2', $expires_month, $order->firstdata_field_2) . ' ' . html_pull_down_menu('firstdata_field_3', $expires_year, $order->firstdata_field_3)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CVV, 'field' => html_input_field('firstdata_field_4', $order->firstdata_field_4, 'size="4" maxlength="4"'))));
return $selection;
}
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:13,代码来源:firstdata.php
示例5: selection
/**
* Display Credit Card Information Submission Fields on the Checkout Payment Page
*
* @return array
*/
function selection()
{
global $order;
for ($i = 1; $i < 13; $i++) {
$j = $i < 10 ? '0' . $i : $i;
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => $j . '-' . strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'page' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('nova_xml_field_0', $this->field_0)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('nova_xml_field_1', $this->field_1)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('nova_xml_field_2', $expires_month, $this->field_2) . ' ' . html_pull_down_menu('nova_xml_field_3', $expires_year, $this->field_3)), array('title' => MODULE_PAYMENT_CC_TEXT_CVV, 'field' => html_input_field('nova_xml_field_4', $this->field_4, 'size="4" maxlength="4"' . ' id="' . $this->code . '-cc-cvv"') . ' ' . '<a href="javascript:popupWindow(\'' . html_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . TEXT_MORE_INFO . '</a>')));
return $selection;
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:19,代码来源:nova_xml.php
示例6: selection
function selection()
{
global $order;
for ($i = 1; $i < 13; $i++) {
$j = $i < 10 ? '0' . $i : $i;
$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => $j . '-' . strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
}
$today = getdate();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$selection = array('id' => $this->code, 'page' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_NVP_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('paypal_nvp_field_0', $order->paypal_nvp_field_0, 'size="12" maxlength="25"') . ' ' . html_input_field('paypal_nvp_field_5', $order->paypal_nvp_field_5, 'size="12" maxlength="25"')), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('paypal_nvp_field_1', $order->paypal_nvp_field_1)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('paypal_nvp_field_2', $expires_month, $order->paypal_nvp_field_2) . ' ' . html_pull_down_menu('paypal_nvp_field_3', $expires_year, $order->paypal_nvp_field_3)), array('title' => MODULE_PAYMENT_CC_TEXT_CVV, 'field' => html_input_field('paypal_nvp_field_4', $order->paypal_nvp_field_4, 'size="4" maxlength="4"'))));
return $selection;
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:14,代码来源:paypal_nvp.php
示例7: Output
function Output($params)
{
global $db, $currencies;
if (count($params) != $this->size_params) {
//upgrading
$params = $this->Upgrade($params);
}
$list_length = array();
$contents = '';
$control = '';
for ($i = 0; $i <= $this->max_length; $i++) {
$list_length[] = array('id' => $i, 'text' => $i);
}
// Build control box form data1
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">' . CP_AUDIT_LOG_DISPLAY;
$control .= '<select name="today_minus" onchange="">';
for ($i = 0; $i <= 365; $i++) {
$control .= '<option value="' . $i . '"' . ($params['today_minus'] == $i ? ' selected="selected"' : '') . '>' . $i . '</option>';
}
$control .= '</select>' . CP_AUDIT_LOG_DISPLAY2 . ' ';
$control .= '</div></div>';
// Build control box form data2
$control .= '<div class="row">';
$control .= '<div style="white-space:nowrap">' . TEXT_SHOW . TEXT_SHOW_NO_LIMIT;
$control .= html_pull_down_menu('audit_log_num_rows', $list_length, $params['num_rows']);
$control .= html_submit_field('sub_audit_log', TEXT_SAVE);
$control .= '</div></div>';
// Build content box
$sql = "select a.action_date, a.action, a.reference_id, a.amount, u.display_name from " . TABLE_AUDIT_LOG . " as a, " . TABLE_USERS . " as u \n where a.user_id = u.admin_id and a.action_date >= '" . date('Y-m-d', strtotime('-' . $params['today_minus'] . ' day')) . "' \n and a.action_date <= '" . date('Y-m-d', strtotime('-' . $params['today_minus'] + 1 . ' day')) . "' order by a.action_date desc";
if ($params['num_rows']) {
$sql .= " limit " . $params['num_rows'];
}
$result = $db->Execute($sql);
if ($result->RecordCount() < 1) {
$contents = ACT_NO_RESULTS;
} else {
while (!$result->EOF) {
$contents .= '<div style="float:right">' . $currencies->format_full($result->fields['amount'], true, DEFAULT_CURRENCY, 1, 'fpdf') . '</div>';
$contents .= '<div>';
$contents .= $result->fields['display_name'] . '-->';
$contents .= $result->fields['action'] . '-->';
$contents .= $result->fields['reference_id'];
$contents .= '</div>' . chr(10);
$result->MoveNext();
}
}
$this->title = CP_AUDIT_LOG_TITLE . " " . date('Y-m-d', strtotime('-' . $params['today_minus'] . ' day'));
return $this->build_div('', $contents, $control);
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:50,代码来源:audit_log.php
示例8: 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));
}
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:15,代码来源:payment.php
示例9: Output
function Output($params)
{
global $db, $currencies;
if (count($params) != $this->size_params) {
//upgrading
$params = $this->Upgrade($params);
}
$list_length = array();
$contents = '';
$control = '';
for ($i = 0; $i <= $this->max_length; $i++) {
$list_length[] = array('id' => $i, 'text' => $i);
}
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">' . TEXT_SHOW . TEXT_SHOW_NO_LIMIT;
$control .= html_pull_down_menu('todays_s_quotes_field_0', $list_length, $params['num_rows']);
$control .= html_submit_field('sub_todays_s_quotes', TEXT_SAVE);
$control .= '</div></div>';
// Build content box
$total = 0;
$sql = "select id, purchase_invoice_id, total_amount, bill_primary_name, currencies_code, currencies_value \n\t\t from " . TABLE_JOURNAL_MAIN . " \n\t\t where journal_id = 9 and post_date = '" . date('Y-m-d') . "' order by purchase_invoice_id";
if ($params['num_rows']) {
$sql .= " limit " . $params['num_rows'];
}
$result = $db->Execute($sql);
if ($result->RecordCount() < 1) {
$contents = ACT_NO_RESULTS;
} else {
while (!$result->EOF) {
$total += $result->fields['total_amount'];
$contents .= '<div style="float:right">' . $currencies->format_full($result->fields['total_amount'], true, $result->fields['currencies_code'], $result->fields['currencies_value']) . '</div>';
$contents .= '<div>';
// $contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&page=orders&oID=' . $result->fields['id'] . '&jID=10&action=edit', 'SSL') . '">';
$contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&page=orders&oID=' . $result->fields['id'] . '&jID=9&action=edit', 'SSL') . '">';
// $contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'cat=orders&module=orders&oID=' . $result->fields['id'] . '&jID=9&action=edit', 'SSL') . '">';
$contents .= $result->fields['purchase_invoice_id'] . ' - ';
$contents .= htmlspecialchars($result->fields['bill_primary_name']);
$contents .= '</a></div>' . chr(10);
$result->MoveNext();
}
}
if (!$params['num_rows'] && $result->RecordCount() > 0) {
$contents .= '<div style="float:right">' . $currencies->format_full($total, true, $result->fields['currencies_code'], $result->fields['currencies_value']) . '</div>';
$contents .= '<div><b>' . TEXT_TOTAL . '</b></div>' . chr(10);
}
return $this->build_div('', $contents, $control);
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:48,代码来源:todays_s_quotes.php
示例10: Output
function Output($params)
{
global $db;
// load the report security tokens
$rr_security = array();
$result = $db->Execute("select reportid, params from " . TABLE_REPORT_FIELDS . " where entrytype = 'security'");
while (!$result->EOF) {
$rr_security[$result->fields['reportid']] = $result->fields['params'];
$result->MoveNext();
}
// load the report list
$query_raw = "select id, reporttype, description from " . TABLE_REPORTS . " order by description";
$reports = $db->Execute($query_raw);
$data_array = array(array('id' => '', 'text' => GEN_HEADING_PLEASE_SELECT));
$type_array = array();
while (!$reports->EOF) {
$type_array[$reports->fields['id']] = $reports->fields['reporttype'];
if (security_check($rr_security[$reports->fields['id']])) {
$data_array[] = array('id' => $reports->fields['id'], 'text' => $reports->fields['description']);
}
$reports->MoveNext();
}
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">';
$control .= TEXT_REPORT . ' ' . html_pull_down_menu('report_id', $data_array);
$control .= ' ';
$control .= html_submit_field('my_favorite_reports', TEXT_ADD);
$control .= html_hidden_field($this->module_id . '_rId', '');
$control .= '</div></div>';
// Build content box
$contents = '';
if (is_array($params)) {
$index = 1;
foreach ($params as $id => $description) {
$contents .= '<div style="float:right; height:16px;">';
$contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->module_id . '\', ' . $index . ')"');
$contents .= '</div>';
$contents .= '<div style="height:16px;">';
$contents .= ' <a href="index.php?cat=reportwriter&module=' . ($type_array[$id] == 'frm' ? 'form_gen' : 'rpt_gen') . '&ReportID=' . $id . '&todo=open" target="_blank">' . $description . '</a>' . chr(10);
$contents .= '</div>';
$index++;
}
} else {
$contents = CP_FAVORITE_REPORTS_NO_RESULTS;
}
return $this->build_div($this->title, $contents, $control);
}
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:48,代码来源:favorite_reports.php
示例11: Output
function Output($params)
{
global $db;
$contents = '';
$control = '';
// load the report list
$result = $db->Execute("select id, security, doc_title from " . TABLE_PHREEFORM . " \n\t\t where doc_ext in ('rpt','frm') order by doc_title");
$data_array = array(array('id' => '', 'text' => GEN_HEADING_PLEASE_SELECT));
$type_array = array();
while (!$result->EOF) {
if (security_check($result->fields['security'])) {
$data_array[] = array('id' => $result->fields['id'], 'text' => $result->fields['doc_title']);
}
$result->MoveNext();
}
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">';
$control .= TEXT_REPORT . ' ' . html_pull_down_menu('report_id', $data_array);
$control .= ' ';
$control .= html_submit_field('sub_favorite_reports', TEXT_ADD);
$control .= html_hidden_field('favorite_reports_rId', '');
$control .= '</div></div>';
// Build content box
$contents = '';
if (is_array($params)) {
$index = 1;
foreach ($params as $id => $description) {
$contents .= '<div style="float:right; height:16px;">';
$contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
$contents .= '</div>';
$contents .= '<div style="height:16px;">';
$contents .= ' <a href="index.php?module=phreeform&page=popup_gen&rID=' . $id . '" target="_blank">' . $description . '</a>' . chr(10);
$contents .= '</div>';
$index++;
}
} else {
$contents = ACT_NO_RESULTS;
}
return $this->build_div('', $contents, $control);
}
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:41,代码来源:favorite_reports.php
示例12: html_pull_down_menu
<td>
<?php
if ($Type == 'frm') {
if ($FieldListings['defaults']['buttonvalue'] == TEXT_NEW || $FieldListings['defaults']['buttonvalue'] == TEXT_ADD) {
echo html_pull_down_menu('Params', gen_build_pull_down($FormEntries), $Params['index']);
} else {
echo $FormEntries[$Params['index']] . html_hidden_field('Params', $Params['index']);
}
} else {
echo html_pull_down_menu('Params', gen_build_pull_down($TotalLevels), $Params['index']);
}
?>
</td>
<?php
if ($Type != 'frm') {
echo '<td>' . html_pull_down_menu('Align', gen_build_pull_down($FontAlign), $Params['align']) . '</td>';
}
?>
<td align = "center">
<?php
if ($FieldListings['defaults']['buttonvalue'] == TEXT_ADD) {
echo html_icon('actions/list-add.png', TEXT_ADD, 'medium', 'onclick="submitToDo(\'add\')"');
} else {
echo html_icon('actions/view-refresh.png', TEXT_CHANGE, 'medium', 'onclick="submitToDo(\'change\')"');
}
?>
</td>
</tr>
<tr><th id="fieldListHeading" colspan="20"><?php
echo RW_RPT_FLDLIST;
?>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_field_setup.php
示例13: html_checkbox_field
}
?>
<?php
if (SHIPPING_DEFAULT_DRY_ICE_SHOW) {
echo '<tr><td class="dataTableContent">';
echo html_checkbox_field('dry_ice', '1', $pkg->dry_ice);
echo SHIPPING_TEXT_DRY_ICE;
echo '</td></tr>';
}
?>
<?php
if (SHIPPING_DEFAULT_RETURN_SERVICE_SHOW) {
echo '<tr><td class="dataTableContent">';
echo html_checkbox_field('return_service', '1', $pkg->return_service);
echo SHIPPING_TEXT_RETURN_SERVICES;
echo html_pull_down_menu('return_service_value', gen_build_pull_down($shipping_defaults['return_label']), $pkg->return_service_value, $parameters = '', $required = false);
echo '</td></tr>';
}
?>
</table></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<th colspan="2" align="center"><?php
echo SHIPPING_TEXT_METHODS;
?>
</th>
</tr>
<?php
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:shipping_popup_main.php
示例14: html_pull_down_menu
<td class="main" align="right"><?php
echo INV_ENTRY_INVENTORY_TYPE;
?>
</td>
<td class="main"><?php
echo html_pull_down_menu('inventory_type', gen_build_pull_down($inventory_types), isset($inventory_type) ? $inventory_type : 'si', 'onchange="setSkuLength()"');
?>
</td>
</tr>
<tr>
<td class="main" align="right"><?php
echo INV_ENTRY_INVENTORY_COST_METHOD;
?>
</td>
<td class="main"><?php
echo html_pull_down_menu('cost_method', gen_build_pull_down($cost_methods), isset($cost_method) ? $cost_method : 'f');
?>
</td>
<script>
/* por default, marco la opcion LIFO*/
$("#cost_method option[value='l']").attr('selected', 'selected');
/* si al ingresar el sku/codigo de barras, ingresan un enter (a mano o lo hace el lector), se ejecutará un submit del formulario para que vaya al siguiente*/
$("#sku").keydown(function(event) {
if (event.keyCode == '13') {
event.preventDefault();
submitToDo('create')
}
});
</script>
</tr>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_id.php
示例15: html_input_field
<td><?php
echo ACT_PAYMENT_CREDIT_CARD_NUMBER;
?>
</td>
<td><?php
echo html_input_field('payment_cc_number', $cInfo->payment_cc_number, 'size="20" maxlength="19"');
?>
</td>
</tr>
<tr>
<td><?php
echo ACT_PAYMENT_CREDIT_CARD_EXPIRES;
?>
</td>
<td><?php
echo html_pull_down_menu('payment_exp_month', $expires_month, $cInfo->payment_exp_month) . ' ' . html_pull_down_menu('payment_exp_year', $expires_year, $cInfo->payment_exp_year);
?>
</td>
</tr>
<tr>
<td><?php
echo ACT_PAYMENT_CREDIT_CARD_CVV2;
?>
</td>
<td><?php
echo html_input_field('payment_cc_cvv2', $cInfo->payment_cc_cvv2, 'size="5" maxlength="4"');
?>
</td>
</tr>
</table>
</fieldset>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_c_payment.php
示例16: html_input_field
?>
</th>
</tr>
<tr>
<td align="right"><?php
echo TEXT_ASSET_ID;
?>
</td>
<td><?php
echo html_input_field('asset_id', $asset_id, 'size="17" maxlength="16"');
?>
</td>
</tr>
<tr>
<td align="right"><?php
echo ASSETS_ENTRY_ASSET_TYPE;
?>
</td>
<td><?php
echo html_pull_down_menu('asset_type', gen_build_pull_down($assets_types), isset($asset_type) ? $asset_type : 'vh');
?>
</td>
</tr>
<tr>
<td nowrap="nowrap" colspan="2"><?php
echo ' ';
?>
</td>
</tr>
</table>
</form>
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_id.php
示例17: html_input_field
<td><?php
echo CD_01_08_DESC;
?>
</td>
<td><?php
echo html_input_field('company_postal_code', $_POST['company_postal_code'] ? $_POST['company_postal_code'] : COMPANY_POSTAL_CODE, '');
?>
</td>
</tr>
<tr>
<td><?php
echo CD_01_09_DESC;
?>
</td>
<td><?php
echo html_pull_down_menu('company_country', gen_get_countries(), $_POST['company_country'] ? $_POST['company_country'] : COMPANY_COUNTRY, '');
?>
</td>
</tr>
<tr>
<td><?php
echo CD_01_10_DESC;
?>
</td>
<td><?php
echo html_input_field('company_telephone1', $_POST['company_telephone1'] ? $_POST['company_telephone1'] : COMPANY_TELEPHONE1, '');
?>
</td>
</tr>
<tr>
<td><?php
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_tab_company.php
示例18: html_pull_down_menu
<td align="right"><?php
echo BNK_CASH_ACCOUNT . ' ';
?>
</td>
<td align="right"><?php
echo html_pull_down_menu('gl_acct_id', $gl_array_list, $gl_acct_id, 'onchange="loadNewBalance()"');
?>
</td>
</tr>
<tr>
<td align="right"><?php
echo BNK_DISCOUNT_ACCOUNT . ' ';
?>
</td>
<td align="right"><?php
echo html_pull_down_menu('gl_disc_acct_id', $gl_array_list, $gl_disc_acct_id, '');
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3"><hr /></td>
</tr>
<tr>
<td align="right" valign="top">
<?php
echo BNK_INVOICES_DUE_BY . ' ' . html_calendar_field($cal_bills1);
?>
<?php
开发者ID:siwiwit,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_main.php
示例19: html_input_field
<td nowrap class="main" align="center"><?php
echo html_input_field('sku_' . $i, $cInfo->item_rows[$j]['sku'], 'size="' . (MAX_INVENTORY_SKU_LENGTH + 1) . '" maxlength="' . MAX_INVENTORY_SKU_LENGTH . '" onfocus="clearField(\'sku_' . $i . '\', \'' . TEXT_SEARCH . '\')" onBlur="setField(\'sku_' . $i . '\', \'' . TEXT_SEARCH . '\')"');
?>
<?php
echo ' ' . html_icon('status/folder-open.png', TEXT_SEARCH, 'small', 'align="absmiddle" style="cursor:pointer" onclick="ItemList(' . $i . ')"');
?>
<?php
echo html_hidden_field('id_' . $i, $cInfo->item_rows[$j]['id']);
?>
</td>
<td class="main"><?php
echo html_input_field('desc_' . $i, $cInfo->item_rows[$j]['desc'], 'size="64" maxlength="64"');
?>
</td>
<td class="main"><?php
echo html_pull_down_menu('actn_' . $i, gen_build_pull_down($action_codes), $cInfo->item_rows[$j]['actn']);
?>
</td>
</tr>
<?php
}
} else {
echo ' <script language="javascript">addItemRow();</script>' . chr(10);
}
?>
</table>
</td>
</tr>
<tr>
<td align="left"><?php
echo html_icon('actions/list-add.png', TEXT_ADD, 'medium', 'onclick="addItemRow()"');
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_detail.php
示例20: html_button_field
</td>
<td align="right">
<?php
echo html_button_field('estimate', TEXT_ESTIMATE, 'onclick="FreightList()"');
echo ORD_SHIP_CARRIER . ' ' . html_pull_down_menu('ship_carrier', $methods, $default = '', 'onchange="buildFreightDropdown()"');
echo ' ' . ORD_FREIGHT_SERVICE . ' ' . html_pull_down_menu('ship_service', gen_null_pull_down(), '');
echo ' ' . ORD_FREIGHT . ' ';
echo html_input_field('freight', $currencies->format($order->freight ? $order->freight : '0.00', true, $order->currencies_code, $order->currencies_value), 'size="15" maxlength="20" onchange="updateTotalPrices()" style="text-align:right"');
?>
</td>
</tr>
<?php
} else {
echo ' <tr style="display:none"><td colspan="2">' . chr(10);
echo html_pull_down_menu('ship_carrier', gen_null_pull_down(), '', 'style="visibility:hidden"');
echo html_pull_down_menu('ship_service', gen_null_pull_down(), '', 'style="visibility:hidden"');
echo html_hidden_field('ship_gl_acct_id', '');
echo html_hidden_field('freight', '0') . chr(10);
echo ' </td></tr>' . chr(10);
}
?>
<tr>
<td><?php
echo TEXT_SELECT_FILE_TO_ATTACH . ' ' . html_file_field('file_name');
?>
</td>
<td align="right">
<?php
echo $account_type == 'v' ? ORD_PURCHASE_TAX . ' ' : ORD_SALES_TAX . ' ';
echo ' ' . html_input_field('sales_tax', $currencies->format($order->sales_tax ? $order->sales_tax : '0.00', true, $order->currencies_code, $order->currencies_value), 'readonly="readonly" size="15" maxlength="20" onchange="updateTotalPrices()" style="text-align:right"');
?>
开发者ID:billj9000,项目名称:PhreeBooksERP,代码行数:31,代码来源:template_main.php
注:本文中的html_pull_down_menu函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论