本文整理汇总了PHP中html_button_field函数的典型用法代码示例。如果您正苦于以下问题:PHP html_button_field函数的具体用法?PHP html_button_field怎么用?PHP html_button_field使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_button_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: html_button_field
// | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) |
// +-----------------------------------------------------------------+
// | This program is free software: you can redistribute it and/or |
// | modify it under the terms of the GNU General Public License as |
// | published by the Free Software Foundation, either version 3 of |
// | the License, or any later version. |
// | |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// +-----------------------------------------------------------------+
// Path: /modules/phreeform/pages/admin/template_tab_tools.php
//
?>
<div id="tab_tools">
<fieldset>
<legend><?php
echo PHREEFORM_TOOLS_REBUILD_TITLE;
?>
</legend>
<p><?php
echo PHREEFORM_TOOLS_REBUILD_DESC;
?>
</p>
<p align="center"><?php
echo PHREEFORM_TOOLS_REBUILD_SUBMIT . ' ' . html_button_field('fix', TEXT_SUBMIT, 'onclick="submitToDo(\'fix\')"');
?>
</fieldset>
</div>
示例3: foreach
foreach ($extra_toolbar_buttons as $key => $value) {
$toolbar->icon_list[$key] = $value;
}
}
// add the help file index and build the toolbar
$toolbar->add_help('03.04.02');
echo $toolbar->build_toolbar();
// Build the page
?>
<div class="pageHeading"><?php
echo GL_HEADING_BEGINNING_BALANCES;
?>
</div>
<?php
if ($security_level > 1) {
echo '<div align="center">' . html_button_field('bb_inv', GL_BTN_IMP_BEG_BALANCES, 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, 'cat=gen_ledger&module=beg_bal_imp', 'SSL') . '\'"') . '</div>' . chr(10);
}
?>
<table id="item_table" align="center" border="1" cellspacing="1" cellpadding="1">
<tr>
<th><?php
echo TEXT_GL_ACCOUNT;
?>
</th>
<th><?php
echo TEXT_DESCRIPTION;
?>
</th>
<th><?php
echo TEXT_ACCOUNT_TYPE;
?>
示例4: html_icon
<th><?php
echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small');
?>
</th>
<th><?php
echo TEXT_FILENAME;
?>
</th>
<th><?php
echo TEXT_ACTION;
?>
</th>
</tr>
<?php
if (sizeof($cInfo->attachments) > 0) {
foreach ($cInfo->attachments as $key => $value) {
echo '<tr>';
echo ' <td>' . html_checkbox_field('rm_attach_' . $key, '1', false) . '</td>' . chr(10);
echo ' <td>' . $value . '</td>' . chr(10);
echo ' <td>' . html_button_field('dn_attach_' . $key, TEXT_DOWNLOAD, 'onclick="submitSeq(' . $key . ', \'download\', true)"') . '</td>';
echo '</tr>' . chr(10);
}
} else {
echo '<tr><td colspan="3">' . TEXT_NO_DOCUMENTS . '</td></tr>';
}
?>
</tbody>
</table>
</fieldset>
</div>
</div>
示例5: html_pull_down_menu
<div id="tab_chart_of_accounts">
<?php
echo $chart_of_accounts_toolbar->build_toolbar();
?>
<h1><?php
echo $chart_of_accounts->title;
?>
</h1>
<div align="center">
<?php
echo GL_SELECT_STD_CHART . html_pull_down_menu('std_chart', $sel_chart);
?>
<?php
echo GL_CHART_IMPORT_DESC . html_file_field('file_name') . '<br />';
?>
<?php
echo html_checkbox_field('delete_chart', '1', false) . GL_CHART_REPLACE;
?>
<?php
echo html_button_field('import', TEXT_IMPORT, 'onclick="submitToDo(\'import\')"');
?>
<?php
echo '<br />' . GL_CHART_DELETE_WARNING;
?>
</div>
<div id="chart_of_accounts_content"><?php
echo $chart_of_accounts->build_main_html();
?>
</div>
</div>
示例6: html_button_field
<td><?php
echo SHIPPING_FEDEX_MULTIWGHT_REPORTS;
?>
</td>
<td align="right"><?php
echo html_button_field('multiweight_fedex', TEXT_VIEW, 'onclick="window.open(\'index.php?cat=services&module=popup_label_mgr&subject=fedex&action=multiweight&date=' . $date . '\',\'ship_mgr\',\'width=800,height=700,resizable=1,scrollbars=1,top=50,left=50\')"');
?>
</td>
</tr>
<tr>
<td><?php
echo SHIPPING_FEDEX_HAZMAT_REPORTS;
?>
</td>
<td align="right"><?php
echo html_button_field('hazmat_fedex', TEXT_VIEW, 'onclick="window.open(\'index.php?cat=services&module=popup_label_mgr&subject=fedex&action=hazmat&date=' . $date . '\',\'ship_mgr\',\'width=800,height=700,resizable=1,scrollbars=1,top=50,left=50\')"');
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="95%" border="1" cellspacing="1" cellpadding="1">
<tr>
<th colspan="8"><?php
echo SHIPPING_FEDEX_SHIPMENTS_ON . gen_spiffycal_db_date_short($date);
?>
</th>
</tr>
<tr>
示例7: html_button_field
?>
</td>
<td><?php
echo html_button_field('ship_log_' . $method_id, SHIPPING_CREATE_ENTRY, 'onclick="window.open(\'index.php?module=shipping&page=popup_tracking&method=' . $method_id . '&action=new\',\'popup_tracking\',\'width=550,height=350,resizable=1,scrollbars=1,top=150,left=200\')"');
?>
</td>
<td><?php
echo html_button_field('close_' . $method_id, SRV_TRACK_FEDEX_V7, 'onclick="submitAction(\'' . $method_id . '\', \'track\')"');
?>
</td>
<td>
<?php
echo html_file_field('file_name') . ' ';
?>
<?php
echo html_button_field('recon_' . $method_id, SHIPPING_RECON_BILL, 'onclick="submitAction(\'' . $method_id . '\', \'reconcile\')"');
?>
</td>
</tr>
</table>
<table class="ui-widget" style="border-collapse:collapse;width:100%">
<thead class="ui-widget-header">
<tr>
<th colspan="8"><?php
echo SHIPPING_FEDEX_V7_SHIPMENTS_ON . gen_locale_date($date);
?>
</th>
</tr>
<tr>
<th><?php
echo SHIPPING_TEXT_SHIPMENT_ID;
示例8: html_button_field
?>
<tr>
<td colspan="2" align="right"><?php
echo html_button_field('ordr_nums', GEN_ADM_TOOLS_BTN_SAVE, 'onclick="submitToDo(\'ordr_nums\')"');
?>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php
echo GEN_ADM_TOOLS_SECURITY_HEADING;
?>
</legend>
<p><?php
echo GEN_ADM_TOOLS_SECURITY_DESC;
?>
</p>
<p align="center">
<?php
echo TEXT_CLEAN_BEFORE . ' ' . html_calendar_field($cal_clean);
?>
<?php
echo html_button_field('clean_security', GEN_ADM_TOOLS_BTN_CLEAN, 'onclick="submitToDo(\'clean_security\')"');
?>
</p>
</fieldset>
</div>
示例9: html_checkbox_field
// Build the page
?>
<h1><?php
echo PAGE_TITLE;
?>
</h1>
<div id="filter_bar">
<table class="ui-widget" style="border-style:none;">
<tbody class="ui-widget-content">
<tr>
<td><?php
echo TEXT_FILTERS . ' ' . TEXT_SHOW_INACTIVE . ' ' . html_checkbox_field('f0', '1', $_SESSION['f0']);
?>
</td>
<td><?php
echo ' ' . html_button_field('apply', TEXT_APPLY, 'onclick="document.forms[0].submit();"');
?>
</td>
</tr>
</tbody>
</table>
</div>
<div style="height:19px"><?php
echo $query_split->display_count(TEXT_DISPLAY_NUMBER . constant('ACT_' . strtoupper($type) . '_TYPE_NAME'));
?>
<div style="float:right"><?php
echo $query_split->display_links();
?>
</div>
</div>
<table class="ui-widget" style="border-collapse:collapse;width:100%">
示例10: html_file_field
<td align="center"><?php
echo 'Select order file to import from Amazon: ' . html_file_field('file_name');
?>
</td>
<td align="right"><?php
echo 'Maximum results per page ' . html_pull_down_menu('pull_down_max', $display_length, $max_list, 'onchange="changePageResults();"');
?>
</td>
</tr>
<tr>
<td align="center">
<?php
echo 'Select the date to build the Amazon ship confirmation on: ' . html_calendar_field($cal_pps) . ' ';
?>
<?php
echo html_button_field('confirm', 'Build Confirmation File', 'onclick="submitToDo(\'ship_confirm\', true)"');
?>
</td>
<td> </td>
</tr>
</table>
<?php
if ($so_query_result->RecordCount() > 0) {
// only show if there are open sales orders
?>
<!-- Display open Sales orders -->
<h1><?php
echo "Amazon Open Sales Orders";
?>
</h1>
示例11: html_icon
echo html_icon('actions/document-print.png', TEXT_PRINT, 'small', 'onclick="printOrder(' . $oID . ')"') . chr(10);
break;
case 6:
break;
case 7:
echo html_icon('actions/document-print.png', TEXT_PRINT, 'small', 'onclick="printOrder(' . $oID . ')"') . chr(10);
break;
case 9:
echo html_icon('actions/system-shutdown.png', TEXT_TOGGLE, 'small', 'onclick="submitSeq(' . $oID . ', \'toggle\')"') . chr(10);
echo html_icon('actions/document-print.png', TEXT_PRINT, 'small', 'onclick="printOrder(' . $oID . ')"') . chr(10);
break;
case 10:
if (!$query_result->fields['closed']) {
echo html_button_field('invoice_' . $oID, TEXT_INVOICE, 'onclick="window.open(\'' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&page=orders&oID=' . $oID . '&jID=12&action=prc_so', 'SSL') . '\',\'_blank\')"') . chr(10);
}
echo html_button_field('delivery_' . $oID, ORD_DELIVERY_DATES, 'onclick="deliveryList(' . $oID . ')"') . chr(10);
echo html_icon('actions/system-shutdown.png', TEXT_TOGGLE, 'small', 'onclick="submitSeq(' . $oID . ', \'toggle\')"') . chr(10);
echo html_icon('actions/document-print.png', TEXT_PRINT, 'small', 'onclick="printOrder(' . $oID . ')"') . chr(10);
break;
case 12:
if (defined('MODULE_SHIPPING_STATUS') && $shipper_code) {
if ($sID) {
if ($date_shipped == $date_today) {
echo html_icon('phreebooks/void-truck-icon.png', ORD_VOID_SHIP, 'small', 'onclick="if (confirm(\'Are you sure you want to delete this shipment?\')) voidShipment(' . $shipped . ', \'' . $shipper_code . '\')"') . chr(10);
}
echo html_icon('phreebooks/stock_id.png', TEXT_VIEW_SHIP_LOG, 'small', 'onclick="loadPopUp(\'' . $shipper_code . '\', \'edit\', ' . $sID . ')"') . chr(10);
} elseif (!$shipped) {
echo html_icon('phreebooks/truck-icon.png', TEXT_SHIP, 'small', 'onclick="shipList(' . $oID . ', \'' . $shipper_code . '\')"') . chr(10);
}
}
if (!$closed) {
示例12: html_button_field
<tr><th colspan="2"><?php
echo OSCOMMERCE_SHIP_CONFIRM_TITLE;
?>
</th></tr>
<tr><td colspan="2"><?php
echo OSCOMMERCE_SHIP_CONFIRM_INFO;
?>
</td></tr>
<tr>
<td align="right"><?php
echo OSCOMMERCE_TEXT_CONFIRM_ON;
?>
</td>
<td><script language="javascript">shipDate.writeControl(); shipDate.displayLeft=true; shipDate.dateFormat="<?php
echo DATE_FORMAT_SPIFFYCAL;
?>
";</script></td>
</tr>
<tr>
<td align="right"><?php
echo OSCOMMERCE_SHIP_CONFIRM_TEXT;
?>
</td>
<td><?php
echo html_button_field('confirm', OSCOMMERCE_SHIP_CONFIRM_BTN, 'onclick="submitToDo(\'confirm\')"');
?>
</td>
</tr>
</table>
</form>
示例13: html_button_field
<?php
if ($auto_print) {
?>
<applet id="qz" name="QZ Print Plugin" code="qz.PrintApplet.class" archive="<?php
echo DIR_WS_ADMIN . 'modules/phreedom/includes/jzebra/qz-print.jar';
?>
" width="16px" height="16px">
<param name="permissions" value="all-permissions" />
<param name="printer" value="<?php
echo MODULE_SHIPPING_FEDEX_V7_PRINTER_NAME;
?>
">
</applet>
<?php
echo html_button_field('print_label', TEXT_PRINT, 'onclick="labelPrint()"');
} else {
?>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td width="50%" valign="top">
<div>
<fieldset>
<legend><?php
echo SHIPPING_RECP_INFO;
?>
</legend>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="dataTableContent"><?php
echo GEN_PRIMARY_NAME;
?>
示例14: html_input_field
</th>
<th class="dataTableHeadingContent"></th>
</tr>
</tfoot>
</table>
<div id="search_customer" >
<?php
echo ORD_ACCT_ID . ' ' . html_input_field('copy_search', isset($order->short_name) ? $order->short_name : TEXT_SEARCH, 'size="21" maxlength="30" title="' . TEXT_SEARCH . '" onchange="accountGuess(true)"');
echo ' ' . html_icon('actions/system-search.png', TEXT_SEARCH, 'small', 'align="top" style="cursor:pointer" onclick="accountGuess(true)"') . '<br>' . chr(10);
echo html_input_field('copy_bill_primary_name', $order->bill_primary_name, 'size="33" maxlength="32" onfocus="clearField(\'bill_primary_name\', \'' . GEN_PRIMARY_NAME . '\')" onblur="setField(\'bill_primary_name\', \'' . GEN_PRIMARY_NAME . '\')"', true) . '<br>' . chr(10);
echo html_button_field('customer_popup_buttom', TEXT_SELECT_CUSTOMER, 'onclick="popupContact()"') . '<br>' . chr(10);
?>
</div>
<table id="item_table" class="ui-widget" style="border-collapse:collapse;">
<thead class="ui-widget-header">
<tr>
<th class="dataTableHeadingContent"></th>
<th class="dataTableHeadingContent"><?php
echo TEXT_QUANTITY;
?>
</th>
<th class="dataTableHeadingContent"><?php
echo TEXT_SKU;
?>
示例15: html_button_field
?>
</legend>
<p><?php
echo INV_TOOLS_VALIDATE_SO_PO_DESC;
?>
</p>
<table align="center" border="0" cellspacing="2" cellpadding="1">
<tr>
<th><?php
echo INV_TOOLS_REPAIR_SO_PO;
?>
</th>
</tr>
<tr>
<td align="center"><?php
echo html_button_field('inv_on_order_fix', INV_TOOLS_BTN_SO_PO_FIX, 'onclick="submitToDo(\'inv_on_order_fix\')"');
?>
</td>
</tr>
</table>
</fieldset>
</form>
<hr/>
<h3> Etiquetas para imprimir </h3>
<div>
<label for="nueva_etiqueta">Agregar</label><input type="text" name="nueva_etiqueta" id="nueva_etiqueta" onkeypress> <br/>
<a href="#" onclick="imprimir_listado(); return false;"> Imprimir listado </a>
</div>
<br/>
<table id="etiquetas_pendientes">