本文整理汇总了PHP中OSC\OM\HTML::checkboxField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::checkboxField方法的具体用法?PHP HTML::checkboxField怎么用?PHP HTML::checkboxField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSC\OM\HTML
的用法示例。
在下文中一共展示了HTML::checkboxField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
function execute()
{
global $oscTemplate, $order_id;
$OSCOM_Db = Registry::get('Db');
if (isset($_SESSION['customer_id'])) {
$Qglobal = $OSCOM_Db->get('customers_info', 'global_product_notifications', ['customers_info_id' => $_SESSION['customer_id']]);
if ($Qglobal->valueInt('global_product_notifications') !== 1) {
if (isset($_GET['action']) && $_GET['action'] == 'update') {
if (isset($_POST['notify']) && is_array($_POST['notify']) && !empty($_POST['notify'])) {
$notify = array_unique($_POST['notify']);
foreach ($notify as $n) {
if (is_numeric($n) && $n > 0) {
$Qcheck = $OSCOM_Db->get('products_notifications', 'products_id', ['products_id' => $n, 'customers_id' => $_SESSION['customer_id']], null, 1);
if ($Qcheck->fetch() === false) {
$OSCOM_Db->save('products_notifications', ['products_id' => $n, 'customers_id' => $_SESSION['customer_id'], 'date_added' => 'now()']);
}
}
}
}
}
$products_displayed = array();
$Qproducts = $OSCOM_Db->get('orders_products', ['products_id', 'products_name'], ['orders_id' => $order_id], 'products_name');
while ($Qproducts->fetch()) {
if (!isset($products_displayed[$Qproducts->valueInt('products_id')])) {
$products_displayed[$Qproducts->valueInt('products_id')] = '<div class="form-group">' . ' <label class="control-label col-xs-3">' . $Qproducts->value('products_name') . '</label>' . ' <div class="col-xs-9">' . ' <div class="checkbox">' . ' <label>' . HTML::checkboxField('notify[]', $Qproducts->valueInt('products_id')) . ' </label>' . ' </div>' . ' </div>' . '</div>';
}
}
$products_notifications = implode('<br />', $products_displayed);
ob_start();
include DIR_WS_MODULES . 'content/' . $this->group . '/templates/product_notifications.php';
$template = ob_get_clean();
$oscTemplate->addContent($template, $this->group);
}
}
}
示例2: array
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_directory') . '<br />' . HTML::selectField('directory', $directories));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_sort_order') . '<br />' . HTML::inputField('sort_order'));
$contents[] = array('text' => '<br />' . HTML::checkboxField('default') . ' ' . OSCOM::getDef('text_set_default'));
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $_GET['lID'])));
break;
case 'edit':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_language') . '</strong>');
$contents = array('form' => HTML::form('languages', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save')));
$contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_name') . '<br />' . HTML::inputField('name', $lInfo->name));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_code') . '<br />' . HTML::inputField('code', $lInfo->code));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_image') . '<br />' . HTML::selectField('image', $icons, $lInfo->image));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_directory') . '<br />' . HTML::selectField('directory', $directories, $lInfo->directory));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_sort_order') . '<br />' . HTML::inputField('sort_order', $lInfo->sort_order));
if (DEFAULT_LANGUAGE != $lInfo->code) {
$contents[] = array('text' => '<br />' . HTML::checkboxField('default') . ' ' . OSCOM::getDef('text_set_default'));
}
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_language') . '</strong>');
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<br /><strong>' . $lInfo->name . '</strong>');
$contents[] = array('align' => 'center', 'text' => '<br />' . ($remove_language ? HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm')) : '') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id)));
break;
default:
if (is_object($lInfo)) {
$heading[] = array('text' => '<strong>' . $lInfo->name . '</strong>');
$contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=delete')) . HTML::button(OSCOM::getDef('image_details'), 'fa fa-info', OSCOM::link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $lInfo->directory)));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_name') . ' ' . $lInfo->name);
$contents[] = array('text' => OSCOM::getDef('text_info_language_code') . ' ' . $lInfo->code);
示例3: ht_datepicker_jquery_edit_pages
function ht_datepicker_jquery_edit_pages($values, $key)
{
global $PHP_SELF;
$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$files_array = array();
if ($dir = @dir(OSCOM::getConfig('dir_root', 'Shop'))) {
while ($file = $dir->read()) {
if (!is_dir(OSCOM::getConfig('dir_root', 'Shop') . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
$files_array[] = $file;
}
}
}
sort($files_array);
$dir->close();
}
$values_array = explode(';', $values);
$output = '';
foreach ($files_array as $file) {
$output .= HTML::checkboxField('ht_datepicker_jquery_file[]', $file, in_array($file, $values_array)) . ' ' . HTML::output($file) . '<br />';
}
if (!empty($output)) {
$output = '<br />' . substr($output, 0, -6);
}
$output .= HTML::hiddenField('configuration[' . $key . ']', '', 'id="htrn_files"');
$output .= '<script>
function htrn_update_cfg_value() {
var htrn_selected_files = \'\';
if ($(\'input[name="ht_datepicker_jquery_file[]"]\').length > 0) {
$(\'input[name="ht_datepicker_jquery_file[]"]:checked\').each(function() {
htrn_selected_files += $(this).attr(\'value\') + \';\';
});
if (htrn_selected_files.length > 0) {
htrn_selected_files = htrn_selected_files.substring(0, htrn_selected_files.length - 1);
}
}
$(\'#htrn_files\').val(htrn_selected_files);
}
$(function() {
htrn_update_cfg_value();
if ($(\'input[name="ht_datepicker_jquery_file[]"]\').length > 0) {
$(\'input[name="ht_datepicker_jquery_file[]"]\').change(function() {
htrn_update_cfg_value();
});
}
});
</script>';
return $output;
}
示例4: objectInfo
</p>
<?php
} else {
$heading = $contents = [];
if (isset($_GET['bID'])) {
$Qbanner = $OSCOM_Db->get('banners', '*', ['banners_id' => (int) $_GET['bID']]);
if ($Qbanner->fetch() !== false) {
$bInfo = new objectInfo($Qbanner->toArray());
if ($action == 'delete') {
$heading[] = array('text' => $bInfo->banners_title);
$contents = array('form' => HTML::form('banners', OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<strong>' . $bInfo->banners_title . '</strong>');
if ($bInfo->banners_image) {
$contents[] = array('text' => HTML::checkboxField('delete_image', 'on', true) . ' ' . OSCOM::getDef('text_info_delete_image'));
}
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', null, null, 'btn-danger') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']), null, 'btn-link'));
}
}
}
if (tep_not_null($heading) && tep_not_null($contents)) {
$show_listing = false;
echo HTML::panel($heading, $contents, ['type' => 'info']);
}
}
}
if ($show_listing === true) {
?>
<table class="oscom-table table table-hover">
示例5:
echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
</div>
</div>
<?php
if (isset($_GET['edit']) && $_SESSION['customer_default_address_id'] != $_GET['edit'] || isset($_GET['edit']) == false) {
?>
<div class="form-group">
<label class="control-label col-sm-3"><?php
echo SET_AS_PRIMARY;
?>
</label>
<div class="col-sm-9">
<div class="checkbox">
<label>
<?php
echo HTML::checkboxField('primary', 'on', false, 'id="primary"') . ' ';
?>
</label>
</div>
</div>
</div>
<?php
}
?>
</div>
示例6: switch
}
} else {
switch ($action) {
case 'backup':
$heading[] = array('text' => OSCOM::getDef('text_info_heading_new_backup'));
$contents = array('form' => HTML::form('backup', OSCOM::link(FILENAME_BACKUP, 'action=backupnow')));
$contents[] = array('text' => OSCOM::getDef('text_info_new_backup'));
$contents[] = array('text' => HTML::radioField('compress', 'no', true) . ' ' . OSCOM::getDef('text_info_use_no_compression'));
if (is_file(LOCAL_EXE_GZIP)) {
$contents[] = array('text' => HTML::radioField('compress', 'gzip') . ' ' . OSCOM::getDef('text_info_use_gzip'));
}
if (is_file(LOCAL_EXE_ZIP)) {
$contents[] = array('text' => HTML::radioField('compress', 'zip') . ' ' . OSCOM::getDef('text_info_use_zip'));
}
if ($dir_ok == true) {
$contents[] = array('text' => HTML::checkboxField('download', 'yes') . ' ' . OSCOM::getDef('text_info_download_only') . '*<br /><br />*' . OSCOM::getDef('text_info_best_through_https'));
} else {
$contents[] = array('text' => HTML::radioField('download', 'yes', true) . ' ' . OSCOM::getDef('text_info_download_only') . '*<br /><br />*' . OSCOM::getDef('text_info_best_through_https'));
}
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_backup'), 'fa fa-copy', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BACKUP), null, 'btn-link'));
break;
case 'restorelocal':
$heading[] = array('text' => OSCOM::getDef('text_info_heading_restore_local'));
$contents = array('form' => HTML::form('restore', OSCOM::link(FILENAME_BACKUP, 'action=restorelocalnow'), 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => OSCOM::getDef('text_info_restore_local') . '<br /><br />' . OSCOM::getDef('text_info_best_through_https'));
$contents[] = array('text' => HTML::fileField('sql_file'));
$contents[] = array('text' => OSCOM::getDef('text_info_restore_local_raw_file'));
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_restore'), 'fa fa-repeat', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BACKUP), null, 'btn-link'));
break;
}
}
示例7: array
break;
case 'delete_product':
if (isset($pInfo)) {
$heading[] = array('text' => OSCOM::getDef('text_info_heading_delete_product'));
$contents = array('form' => HTML::form('products', OSCOM::link(FILENAME_CATEGORIES, 'action=delete_product_confirm&cPath=' . $cPath)) . HTML::hiddenField('products_id', $pInfo->products_id));
$contents[] = array('text' => OSCOM::getDef('text_delete_product_intro'));
$contents[] = array('text' => '<strong>' . $pInfo->products_name . '</strong>');
$product_categories_string = '';
$product_categories = tep_generate_category_path($pInfo->products_id, 'product');
for ($i = 0, $n = sizeof($product_categories); $i < $n; $i++) {
$category_path = '';
for ($j = 0, $k = sizeof($product_categories[$i]); $j < $k; $j++) {
$category_path .= $product_categories[$i][$j]['text'] . ' > ';
}
$category_path = substr($category_path, 0, -16);
$product_categories_string .= HTML::checkboxField('product_categories[]', $product_categories[$i][sizeof($product_categories[$i]) - 1]['id'], true) . ' ' . $category_path . '<br />';
}
$product_categories_string = substr($product_categories_string, 0, -4);
$contents[] = array('text' => $product_categories_string);
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', null, null, 'btn-danger') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id), null, 'btn-link'));
}
break;
case 'move_product':
$heading[] = array('text' => OSCOM::getDef('text_info_heading_move_product'));
$contents = array('form' => HTML::form('products', OSCOM::link(FILENAME_CATEGORIES, 'action=move_product_confirm&cPath=' . $cPath)) . HTML::hiddenField('products_id', $pInfo->products_id));
$contents[] = array('text' => OSCOM::getDef('text_move_products_intro', ['products_name' => $pInfo->products_name]));
$contents[] = array('text' => OSCOM::getDef('text_info_current_categories') . '<br /><strong>' . tep_output_generated_category_path($pInfo->products_id, 'product') . '</strong>');
$contents[] = array('text' => OSCOM::getDef('text_move', ['item_name' => $pInfo->products_name]) . '<br />' . HTML::selectField('move_to_category_id', tep_get_category_tree(), $current_category_id));
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_move'), 'fa fa-share', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id), null, 'btn-link'));
break;
case 'copy_to':
示例8: confirmation
function confirmation()
{
global $order;
$OSCOM_Db = Registry::get('Db');
$card_types = array();
foreach ($this->getCardTypes() as $key => $value) {
$card_types[] = array('id' => $key, 'text' => $value);
}
$today = getdate();
$months_array = array();
for ($i = 1; $i < 13; $i++) {
$months_array[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));
}
$year_valid_to_array = array();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$year_valid_to_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$year_valid_from_array = array();
for ($i = $today['year'] - 4; $i < $today['year'] + 1; $i++) {
$year_valid_from_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
}
$content = '';
if (MODULE_PAYMENT_SAGE_PAY_DIRECT_TOKENS == 'True') {
$Qtokens = $OSCOM_Db->get('customers_sagepay_tokens', ['id', 'card_type', 'number_filtered', 'expiry_date'], ['customers_id' => $_SESSION['customer_id']], 'date_added');
if ($Qtokens->fetch() !== false) {
$content .= '<table id="sagepay_table" border="0" width="100%" cellspacing="0" cellpadding="2">';
do {
$content .= '<tr class="moduleRow" id="sagepay_card_' . $Qtokens->valueInt('id') . '">' . ' <td width="40" valign="top"><input type="radio" name="sagepay_card" value="' . $Qtokens->valueInt('id') . '" /></td>' . ' <td valign="top">' . $Qtokens->valueProtected('number_filtered') . ' ' . tep_output_string_protected(substr($Qtokens->value('expiry_date'), 0, 2)) . '/' . strftime('%Y', mktime(0, 0, 0, 1, 1, 2000 + substr($Qtokens->value('expiry_date'), 2))) . ' ' . $Qtokens->valueProtected('card_type') . '</td>' . '</tr>';
if (MODULE_PAYMENT_SAGE_PAY_DIRECT_VERIFY_WITH_CVC == 'True') {
$content .= '<tr class="moduleRowExtra" id="sagepay_card_cvc_' . $Qtokens->valueInt('id') . '">' . ' <td width="40" valign="top"> </td>' . ' <td valign="top">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_CVC . ' ' . HTML::inputField('cc_cvc_tokens_nh-dns[' . $Qtokens->valueInt('id') . ']', '', 'size="5" maxlength="4"') . '</td>' . '</tr>';
}
} while ($Qtokens->fetch());
$content .= '<tr class="moduleRow" id="sagepay_card_0">' . ' <td width="40" valign="top"><input type="radio" name="sagepay_card" value="0" /></td>' . ' <td valign="top">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_NEW . '</td>' . '</tr>' . '</table>';
}
}
$content .= '<table id="sagepay_table_new_card" border="0" width="100%" cellspacing="0" cellpadding="2">' . '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_TYPE . '</td>' . ' <td>' . HTML::selectField('cc_type', $card_types, '', 'id="sagepay_card_type"') . '</td>' . '</tr>' . '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_OWNER . '</td>' . ' <td>' . HTML::inputField('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'], 'maxlength="50"') . '</td>' . '</tr>' . '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_NUMBER . '</td>' . ' <td>' . HTML::inputField('cc_number_nh-dns', '', 'maxlength="20"') . '</td>' . '</tr>';
if (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_MAESTRO == 'True' || MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_AMEX == 'True') {
$content .= '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_STARTS . '</td>' . ' <td>' . HTML::selectField('cc_starts_month', $months_array, '', 'id="sagepay_card_date_start"') . ' ' . HTML::selectField('cc_starts_year', $year_valid_from_array) . ' ' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_STARTS_INFO . '</td>' . '</tr>';
}
$content .= '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_EXPIRES . '</td>' . ' <td>' . HTML::selectField('cc_expires_month', $months_array) . ' ' . HTML::selectField('cc_expires_year', $year_valid_to_array) . '</td>' . '</tr>';
if (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_MAESTRO == 'True') {
$content .= '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_ISSUE_NUMBER . '</td>' . ' <td>' . HTML::inputField('cc_issue_nh-dns', '', 'id="sagepay_card_issue" size="3" maxlength="2"') . ' ' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_ISSUE_NUMBER_INFO . '</td>' . '</tr>';
}
if (MODULE_PAYMENT_SAGE_PAY_DIRECT_VERIFY_WITH_CVC == 'True') {
$content .= '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_CVC . '</td>' . ' <td>' . HTML::inputField('cc_cvc_nh-dns', '', 'size="5" maxlength="4"') . '</td>' . '</tr>';
}
if (MODULE_PAYMENT_SAGE_PAY_DIRECT_TOKENS == 'True') {
$content .= '<tr>' . ' <td width="30%"> </td>' . ' <td>' . HTML::checkboxField('cc_save', 'true') . ' ' . MODULE_PAYMENT_SAGE_PAY_DIRECT_CREDIT_CARD_SAVE . '</td>' . '</tr>';
}
$content .= '</table>';
$content .= !$this->templateClassExists() ? $this->getSubmitCardDetailsJavascript() : '';
$confirmation = array('title' => $content);
return $confirmation;
}
示例9: confirmation
function confirmation()
{
global $order, $currencies;
$OSCOM_Db = Registry::get('Db');
$months_array = array();
for ($i = 1; $i < 13; $i++) {
$months_array[] = array('id' => tep_output_string(sprintf('%02d', $i)), 'text' => tep_output_string_protected(sprintf('%02d', $i)));
}
$today = getdate();
$years_array = array();
for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
$years_array[] = array('id' => tep_output_string(strftime('%Y', mktime(0, 0, 0, 1, 1, $i))), 'text' => tep_output_string_protected(strftime('%Y', mktime(0, 0, 0, 1, 1, $i))));
}
$content = '';
if (!$this->isValidCurrency($_SESSION['currency'])) {
$content .= sprintf(MODULE_PAYMENT_BRAINTREE_CC_CURRENCY_CHARGE, $currencies->format($order->info['total'], true, DEFAULT_CURRENCY), DEFAULT_CURRENCY, $_SESSION['currency']);
}
if (MODULE_PAYMENT_BRAINTREE_CC_TOKENS == 'True') {
$Qtokens = $OSCOM_Db->get('customers_braintree_tokens', ['id', 'card_type', 'number_filtered', 'expiry_date'], ['customers_id' => $_SESSION['customer_id']], 'date_added');
if ($Qtokens->fetch() !== false) {
$content .= '<table id="braintree_table" border="0" width="100%" cellspacing="0" cellpadding="2">';
do {
$content .= '<tr class="moduleRow" id="braintree_card_' . $Qtokens->valueInt('id') . '">' . ' <td width="40" valign="top"><input type="radio" name="braintree_card" value="' . $Qtokens->valueInt('id') . '" /></td>' . ' <td valign="top">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_LAST_4 . ' ' . $Qtokens->valueProtected('number_filtered') . ' ' . tep_output_string_protected(substr($Qtokens->value('expiry_date'), 0, 2) . '/' . substr($Qtokens->value('expiry_date'), 2)) . ' ' . $Qtokens->valueProtected('card_type') . '</td>' . '</tr>';
if (MODULE_PAYMENT_BRAINTREE_CC_VERIFY_WITH_CVV == 'True') {
$content .= '<tr class="moduleRowExtra" id="braintree_card_cvv_' . $Qtokens->valueInt('id') . '">' . ' <td width="40" valign="top"> </td>' . ' <td valign="top">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_CVV . ' <input type="text" size="5" maxlength="4" autocomplete="off" data-encrypted-name="token_cvv[' . $Qtokens->valueInt('id') . ']" /></td>' . '</tr>';
}
} while ($Qtokens->fetch());
$content .= '<tr class="moduleRow" id="braintree_card_0">' . ' <td width="40" valign="top"><input type="radio" name="braintree_card" value="0" /></td>' . ' <td valign="top">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_NEW . '</td>' . '</tr>' . '</table>';
}
}
$content .= '<table id="braintree_table_new_card" border="0" width="100%" cellspacing="0" cellpadding="2">' . '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_OWNER . '</td>' . ' <td>' . HTML::inputField('name', $order->billing['firstname'] . ' ' . $order->billing['lastname']) . '</td>' . '</tr>' . '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_NUMBER . '</td>' . ' <td><input type="text" maxlength="20" autocomplete="off" data-encrypted-name="number" /></td>' . '</tr>' . '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_EXPIRY . '</td>' . ' <td>' . HTML::selectField('month', $months_array) . ' / ' . HTML::selectField('year', $years_array) . '</td>' . '</tr>';
if (MODULE_PAYMENT_BRAINTREE_CC_VERIFY_WITH_CVV == 'True') {
$content .= '<tr>' . ' <td width="30%">' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_CVV . '</td>' . ' <td><input type="text" size="5" maxlength="4" autocomplete="off" data-encrypted-name="cvv" /></td>' . '</tr>';
}
if (MODULE_PAYMENT_BRAINTREE_CC_TOKENS == 'True') {
$content .= '<tr>' . ' <td width="30%"> </td>' . ' <td>' . HTML::checkboxField('cc_save', 'true') . ' ' . MODULE_PAYMENT_BRAINTREE_CC_CREDITCARD_SAVE . '</td>' . '</tr>';
}
$content .= '</table>';
if (!$this->templateClassExists()) {
$content .= $this->getSubmitCardDetailsJavascript();
}
$confirmation = array('title' => $content);
return $confirmation;
}
示例10: switch
</div>
<?php
echo $OSCOM_Hooks->output('Orders', 'Page', null, 'display');
?>
<?php
} else {
$heading = $contents = [];
switch ($action) {
case 'delete':
if (isset($order)) {
$heading[] = array('text' => OSCOM::getDef('text_info_heading_delete_order'));
$contents = array('form' => HTML::form('orders', OSCOM::link('orders.php', tep_get_all_get_params(array('action')) . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro') . '<br /><br /><strong>#' . $order->info['id'] . '</strong> ' . HTML::outputProtected($order->customer['name']) . ' (' . strip_tags($order->info['total']) . ')');
$contents[] = array('text' => HTML::checkboxField('restock') . ' ' . OSCOM::getDef('text_info_restock_product_quantity'));
$contents[] = array('text' => HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', null, null, 'btn-danger') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link('orders.php', tep_get_all_get_params(array('action'))), null, 'btn-link'));
}
break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
$show_listing = false;
echo HTML::panel($heading, $contents, ['type' => 'info']);
}
}
}
if ($show_listing === true) {
echo HTML::form('orders', OSCOM::link('orders.php'), 'get', 'class="form-inline"', ['session_id' => true]) . HTML::inputField('oID', null, 'placeholder="' . OSCOM::getDef('heading_title_search') . '"') . HTML::hiddenField('action', 'edit') . '</form>' . HTML::form('status', OSCOM::link('orders.php'), 'get', 'class="form-inline"', ['session_id' => true]) . HTML::selectField('status', array_merge(array(array('id' => '', 'text' => OSCOM::getDef('text_all_orders'))), $orders_statuses), '', 'onchange="this.form.submit();"') . '</form>';
?>
<table class="oscom-table table table-hover">
示例11:
<div class="col-sm-9">
<?php
echo HTML::selectField('categories_id', tep_get_categories(array(array('id' => '', 'text' => OSCOM::getDef('text_all_categories')))), null, 'id="entryCategories"');
?>
</div>
</div>
<div class="form-group">
<label for="entryIncludeSubs" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_include_subcategories');
?>
</label>
<div class="col-sm-9">
<div class="checkbox">
<label>
<?php
echo HTML::checkboxField('inc_subcat', '1', true, 'id="entryIncludeSubs"');
?>
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="entryManufacturers" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_manufacturers');
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::selectField('manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => OSCOM::getDef('text_all_manufacturers')))), null, 'id="entryManufacturers"');
?>
</div>
示例12:
<div class="col-sm-9">
<?php
echo HTML::inputField('fax', '', 'id="inputFax" placeholder="' . OSCOM::getDef('entry_fax_number_text') . '"', 'tel');
?>
</div>
</div>
<div class="form-group">
<label for="inputNewsletter" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_newsletter');
?>
</label>
<div class="col-sm-9">
<div class="checkbox">
<label>
<?php
echo HTML::checkboxField('newsletter', '1', NULL, 'id="inputNewsletter"');
?>
<?php
if (tep_not_null(OSCOM::getDef('entry_newsletter_text'))) {
echo OSCOM::getDef('entry_newsletter_text');
}
?>
</label>
</div>
</div>
</div>
</div>
<h2><?php
echo OSCOM::getDef('category_password');
示例13: array
<?php
}
?>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'confirm':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_customer') . '</strong>');
$contents = array('form' => HTML::form('customers', OSCOM::link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_delete_intro') . '<br /><br /><strong>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</strong>');
if (isset($cInfo->number_of_reviews) && $cInfo->number_of_reviews > 0) {
$contents[] = array('text' => '<br />' . HTML::checkboxField('delete_reviews', 'on', true) . ' ' . OSCOM::getDef('text_delete_reviews', ['number_of_reviews' => $cInfo->number_of_reviews]));
}
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id)));
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<strong>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</strong>');
$contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm')) . HTML::button(OSCOM::getDef('image_orders'), 'fa fa-shopping-cart', OSCOM::link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id)) . HTML::button(OSCOM::getDef('image_email'), 'fa fa-envelope', OSCOM::link(FILENAME_MAIL, 'customer=' . $cInfo->customers_email_address)));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_date_account_created') . ' ' . DateTime::toShort($cInfo->date_account_created));
if (isset($cInfo->date_account_last_modified)) {
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_date_account_last_modified') . ' ' . DateTime::toShort($cInfo->date_account_last_modified));
}
if (isset($cInfo->date_last_logon)) {
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_date_last_logon') . ' ' . DateTime::toShort($cInfo->date_last_logon));
}
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_number_of_logons') . ' ' . $cInfo->number_of_logons);
示例14: array
$manufacturer_inputs_string = '';
$languages = tep_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$manufacturer_inputs_string .= '<br />' . $OSCOM_Language->getImage($languages[$i]['code']) . ' ' . HTML::inputField('manufacturers_url[' . $languages[$i]['id'] . ']', tep_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_manufacturers_url') . $manufacturer_inputs_string);
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_heading_delete_manufacturer') . '</strong>');
$contents = array('form' => HTML::form('manufacturers', OSCOM::link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_delete_intro'));
$contents[] = array('text' => '<br /><strong>' . $mInfo->manufacturers_name . '</strong>');
$contents[] = array('text' => '<br />' . HTML::checkboxField('delete_image', '', true) . ' ' . OSCOM::getDef('text_delete_image'));
if ($mInfo->products_count > 0) {
$contents[] = array('text' => '<br />' . HTML::checkboxField('delete_products') . ' ' . OSCOM::getDef('text_delete_products'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_delete_warning_products', ['products_count' => $mInfo->products_count]));
}
$contents[] = array('align' => 'center', 'text' => '<br />' . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id)));
break;
default:
if (isset($mInfo) && is_object($mInfo)) {
$heading[] = array('text' => '<strong>' . $mInfo->manufacturers_name . '</strong>');
$contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete')));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_date_added') . ' ' . DateTime::toShort($mInfo->date_added));
if (tep_not_null($mInfo->last_modified)) {
$contents[] = array('text' => OSCOM::getDef('text_last_modified') . ' ' . DateTime::toShort($mInfo->last_modified));
}
$contents[] = array('text' => '<br />' . tep_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_products') . ' ' . $mInfo->products_count);
}
示例15:
<div class="col-sm-9">
<?php
echo HTML::inputField('fax', '', 'id="inputFax" placeholder="' . ENTRY_FAX_NUMBER_TEXT . '"');
?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3"><?php
echo ENTRY_NEWSLETTER;
?>
</label>
<div class="col-sm-9">
<div class="checkbox">
<label>
<?php
echo HTML::checkboxField('newsletter', '1') . ' ';
?>
<?php
if (tep_not_null(ENTRY_NEWSLETTER_TEXT)) {
echo ENTRY_NEWSLETTER_TEXT;
}
?>
</label>
</div>
</div>
</div>
</div>
<div class="page-header">
<h4><?php
echo CATEGORY_PASSWORD;