本文整理汇总了PHP中OSC\OM\HTML::inputField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::inputField方法的具体用法?PHP HTML::inputField怎么用?PHP HTML::inputField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSC\OM\HTML
的用法示例。
在下文中一共展示了HTML::inputField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
function execute()
{
global $request_type, $oscTemplate;
$form_output = HTML::form('quick_find', OSCOM::link('advanced_search_result.php', '', $request_type, false), 'get', null, ['session_id' => true]) . '<div class="input-group">' . HTML::inputField('keywords', '', 'required aria-required="true" placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"', 'search') . '<span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="glyphicon glyphicon-search"></i></button></span></div>' . HTML::hiddenField('search_in_description', '0') . '</form>';
ob_start();
include 'includes/modules/boxes/templates/search.php';
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
示例2: execute
function execute()
{
global $oscTemplate;
$content_width = MODULE_CONTENT_HEADER_SEARCH_CONTENT_WIDTH;
$search_box = '<div class="searchbox-margin">';
$search_box .= HTML::form('quick_find', OSCOM::link('advanced_search_result.php', '', false), 'get', 'class="form-horizontal"', ['session_id' => true]);
$search_box .= ' <div class="input-group">' . HTML::inputField('keywords', '', 'required placeholder="' . OSCOM::getDef('text_search_placeholder') . '"', 'search') . '<span class="input-group-btn"><button type="submit" class="btn btn-info"><i class="fa fa-search"></i></button></span>' . ' </div>';
$search_box .= '</form>';
$search_box .= '</div>';
ob_start();
include 'includes/modules/content/' . $this->group . '/templates/search.php';
$template = ob_get_clean();
$oscTemplate->addContent($template, $this->group);
}
示例3:
<div class="col-xs-12 col-sm-push-3 col-sm-9">
<h1>Web Server</h1>
<form name="install" id="installForm" action="install.php?step=3" method="post">
<div class="form-group has-feedback">
<label for="wwwAddress">WWW Address</label>
<?php
echo HTML::inputField('HTTP_WWW_ADDRESS', $www_location, 'required aria-required="true" id="wwwAddress" placeholder="http://"');
?>
<span class="help-block">The web address to the online store.</span>
</div>
<div class="form-group has-feedback">
<label for="webRoot">Webserver Root Directory</label>
<?php
echo HTML::inputField('DIR_FS_DOCUMENT_ROOT', str_replace('\\', '/', FileSystem::displayPath($dir_fs_www_root)), 'required aria-required="true" id="webRoot"');
?>
<span class="help-block">The directory where the online store is installed on the server.</span>
</div>
<p><?php
echo HTML::button('Continue to Step 3', 'triangle-1-e', null, null, 'btn-success');
?>
</p>
<?php
foreach ($_POST as $key => $value) {
if ($key != 'x' && $key != 'y') {
echo HTML::hiddenField($key, $value);
}
}
示例4:
<?php
echo HTML::inputField('telephone', $Qaccount->value('customers_telephone'), 'minlength="' . ENTRY_TELEPHONE_MIN_LENGTH . '" required aria-required="true" id="inputTelephone" placeholder="' . ENTRY_TELEPHONE_NUMBER_TEXT . '"', 'tel');
?>
<?php
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
<div class="form-group">
<label for="inputFax" class="control-label col-sm-3"><?php
echo ENTRY_FAX_NUMBER;
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('fax', $Qaccount->value('customers_fax'), 'id="inputFax" placeholder="' . ENTRY_FAX_NUMBER_TEXT . '"');
?>
</div>
</div>
<br />
<div class="row">
<div class="col-xs-6 text-right pull-right"><?php
echo HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success');
?>
</div>
<div class="col-xs-6"><?php
echo HTML::button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', OSCOM::link('account.php', '', 'SSL'));
?>
示例5:
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('to_name', NULL, 'required aria-required="true" id="inputToName" placeholder="' . ENTRY_FORM_FIELD_FRIEND_NAME_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputToEmail" class="control-label col-sm-3"><?php
echo FORM_FIELD_FRIEND_EMAIL;
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('to_email_address', NULL, 'required aria-required="true" id="inputToEmail" placeholder="' . ENTRY_FORM_FIELD_FRIEND_EMAIL_TEXT . '"', 'email');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>
</div>
<hr>
<div class="contentText">
<div class="form-group has-feedback">
<label for="inputMessage" class="control-label col-sm-3"><?php
echo FORM_TITLE_FRIEND_MESSAGE;
?>
</label>
<div class="col-sm-9">
示例6: array
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_code') . '<br />' . HTML::inputField('code'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_language_image') . '<br />' . HTML::selectField('image', $icons));
$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)));
示例7: array
$contents = array();
switch ($action) {
case 'new':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_new_tax_class') . '</strong>');
$contents = array('form' => HTML::form('classes', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert')));
$contents[] = array('text' => OSCOM::getDef('text_info_insert_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_title') . '<br />' . HTML::inputField('tax_class_title'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_description') . '<br />' . HTML::inputField('tax_class_description'));
$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_TAX_CLASSES, 'page=' . $_GET['page'])));
break;
case 'edit':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_tax_class') . '</strong>');
$contents = array('form' => HTML::form('classes', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save')));
$contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_title') . '<br />' . HTML::inputField('tax_class_title', $tcInfo->tax_class_title));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_class_description') . '<br />' . HTML::inputField('tax_class_description', $tcInfo->tax_class_description));
$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_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_tax_class') . '</strong>');
$contents = array('form' => HTML::form('classes', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<br /><strong>' . $tcInfo->tax_class_title . '</strong>');
$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_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id)));
break;
default:
if (isset($tcInfo) && is_object($tcInfo)) {
$heading[] = array('text' => '<strong>' . $tcInfo->tax_class_title . '</strong>');
$contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete')));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_date_added') . ' ' . DateTime::toShort($tcInfo->date_added));
if (isset($tcInfo->last_modified)) {
示例8:
<div class="form-group">
<label for="expires_date"><?php
echo OSCOM::getDef('text_banners_expires_on');
?>
</label>
<?php
echo HTML::inputField('expires_date', $bInfo->expires_date, 'id="expires_date"', 'date');
?>
<label for="expires_impressions"><?php
echo OSCOM::getDef('text_banners_or_at');
?>
</label>
<?php
echo HTML::inputField('expires_impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"');
?>
<p class="help-block"><?php
echo OSCOM::getDef('text_banners_impressions');
?>
</p>
</div>
<?php
echo HTML::button(OSCOM::getDef('image_save'), 'fa fa-save', null, null, 'btn-success') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page']), null, 'btn-link');
?>
</div>
</div>
</form>
示例9: array
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_value') . '<br />' . HTML::inputField('value'));
$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_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID'])));
break;
case 'edit':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_currency') . '</strong>');
$contents = array('form' => HTML::form('currencies', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=save')));
$contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_title') . '<br />' . HTML::inputField('title', $cInfo->title));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_code') . '<br />' . HTML::inputField('code', $cInfo->code));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_symbol_left') . '<br />' . HTML::inputField('symbol_left', $cInfo->symbol_left));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_symbol_right') . '<br />' . HTML::inputField('symbol_right', $cInfo->symbol_right));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_decimal_point') . '<br />' . HTML::inputField('decimal_point', $cInfo->decimal_point));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_thousands_point') . '<br />' . HTML::inputField('thousands_point', $cInfo->thousands_point));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_decimal_places') . '<br />' . HTML::inputField('decimal_places', $cInfo->decimal_places));
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_currency_value') . '<br />' . HTML::inputField('value', $cInfo->value));
if (DEFAULT_CURRENCY != $cInfo->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_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_currency') . '</strong>');
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<br /><strong>' . $cInfo->title . '</strong>');
$contents[] = array('align' => 'center', 'text' => '<br />' . ($remove_currency ? HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm')) : '') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id)));
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => '<strong>' . $cInfo->title . '</strong>');
$contents[] = array('align' => 'center', 'text' => HTML::button(OSCOM::getDef('image_edit'), 'fa fa-edit', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit')) . HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', OSCOM::link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete')));
示例10: array
if ($process == true) {
if ($entry_state_has_zones == true) {
$zones_array = array();
$Qzones = $OSCOM_Db->get('zones', 'zone_name', ['zone_country_id' => $country], 'zone_name');
while ($Qzones->fetch()) {
$zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
}
echo HTML::selectField('state', $zones_array, 0, 'id="inputState" aria-describedby="atState"');
if (tep_not_null(OSCOM::getDef('entry_state_text'))) {
echo '<span id="atState" class="help-block">' . OSCOM::getDef('entry_state_text') . '</span>';
}
} else {
echo HTML::inputField('state', NULL, 'id="inputState" placeholder="' . OSCOM::getDef('entry_state_text') . '"');
}
} else {
echo HTML::inputField('state', NULL, 'id="inputState" placeholder="' . OSCOM::getDef('entry_state_text') . '"');
}
?>
</div>
</div>
<?php
}
?>
<div class="form-group">
<label for="inputCountry" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_country');
?>
</label>
<div class="col-sm-9">
示例11: 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;
}
示例12: array
$orders_status_inputs_string .= '<br />' . $OSCOM_Language->getImage($languages[$i]['code']) . ' ' . HTML::inputField('orders_status_name[' . $languages[$i]['id'] . ']');
}
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_orders_status_name') . $orders_status_inputs_string);
$contents[] = array('text' => '<br />' . HTML::checkboxField('public_flag', '1') . ' ' . OSCOM::getDef('text_set_public_status'));
$contents[] = array('text' => HTML::checkboxField('downloads_flag', '1') . ' ' . OSCOM::getDef('text_set_downloads_status'));
$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_ORDERS_STATUS, 'page=' . $_GET['page'])));
break;
case 'edit':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_edit_orders_status') . '</strong>');
$contents = array('form' => HTML::form('status', OSCOM::link(FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=save')));
$contents[] = array('text' => OSCOM::getDef('text_info_edit_intro'));
$orders_status_inputs_string = '';
$languages = tep_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$orders_status_inputs_string .= '<br />' . $OSCOM_Language->getImage($languages[$i]['code']) . ' ' . HTML::inputField('orders_status_name[' . $languages[$i]['id'] . ']', tep_get_orders_status_name($oInfo->orders_status_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . OSCOM::getDef('text_info_orders_status_name') . $orders_status_inputs_string);
$contents[] = array('text' => '<br />' . HTML::checkboxField('public_flag', '1', $oInfo->public_flag) . ' ' . OSCOM::getDef('text_set_public_status'));
$contents[] = array('text' => HTML::checkboxField('downloads_flag', '1', $oInfo->downloads_flag) . ' ' . OSCOM::getDef('text_set_downloads_status'));
if (DEFAULT_ORDERS_STATUS_ID != $oInfo->orders_status_id) {
$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_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id)));
break;
case 'delete':
$heading[] = array('text' => '<strong>' . OSCOM::getDef('text_info_heading_delete_orders_status') . '</strong>');
$contents = array('form' => HTML::form('status', OSCOM::link(FILENAME_ORDERS_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=deleteconfirm')));
$contents[] = array('text' => OSCOM::getDef('text_info_delete_intro'));
$contents[] = array('text' => '<br /><strong>' . $oInfo->orders_status_name . '</strong>');
if ($remove_status) {
示例13:
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('name', NULL, 'required autofocus="autofocus" aria-required="true" id="inputFromName" placeholder="' . OSCOM::getDef('entry_name_text') . '"');
echo OSCOM::getDef('form_required_input');
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputFromEmail" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_email');
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('email', NULL, 'required aria-required="true" id="inputFromEmail" placeholder="' . OSCOM::getDef('entry_email_address_text') . '"', 'email');
echo OSCOM::getDef('form_required_input');
?>
</div>
</div>
<div class="form-group has-feedback">
<label for="inputEnquiry" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_enquiry');
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::textareaField('enquiry', 50, 15, NULL, 'required aria-required="true" id="inputEnquiry" placeholder="' . OSCOM::getDef('entry_enquiry_text') . '"');
echo OSCOM::getDef('form_required_input');
?>
</div>
示例14: 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;
}
示例15:
<div class="form-group">
<label for="dfrom" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_date_from');
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('dfrom', '', 'id="dfrom" placeholder="' . OSCOM::getDef('entry_date_from_text') . '"');
?>
</div>
</div>
<div class="form-group">
<label for="dto" class="control-label col-sm-3"><?php
echo OSCOM::getDef('entry_date_to');
?>
</label>
<div class="col-sm-9">
<?php
echo HTML::inputField('dto', '', 'id="dto" placeholder="' . OSCOM::getDef('entry_date_to_text') . '"');
?>
</div>
</div>
</div>
</div>
</form>
<?php
require $oscTemplate->getFile('template_bottom.php');
require 'includes/application_bottom.php';