本文整理汇总了PHP中OSC\OM\HTML::hiddenField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::hiddenField方法的具体用法?PHP HTML::hiddenField怎么用?PHP HTML::hiddenField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSC\OM\HTML
的用法示例。
在下文中一共展示了HTML::hiddenField方法的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 $PHP_SELF, $currencies, $oscTemplate;
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
if (isset($currencies) && is_object($currencies) && count($currencies->currencies) > 1) {
reset($currencies->currencies);
$currencies_array = array();
foreach ($currencies->currencies as $key => $value) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
foreach ($_GET as $key => $value) {
if (is_string($value) && $key != 'currency' && $key != session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= HTML::hiddenField($key, $value);
}
}
$form_output = HTML::form('currencies', OSCOM::link($PHP_SELF, '', false), 'get', null, ['session_id' => true]) . HTML::selectField('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . '</form>';
ob_start();
include 'includes/modules/boxes/templates/currencies.php';
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
}
}
示例3:
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php
echo OSCOM::getDef('entry_newsletter');
?>
</td>
<td class="main">
<?php
if ($processed == true) {
if ($cInfo->customers_newsletter == '1') {
echo OSCOM::getDef('entry_newsletter_yes');
} else {
echo OSCOM::getDef('entry_newsletter_no');
}
echo HTML::hiddenField('customers_newsletter');
} else {
echo HTML::selectField('customers_newsletter', $newsletter_array, $cInfo->customers_newsletter == '1' ? '1' : '0');
}
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" class="smallText"><?php
echo HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('action'))));
?>
</td>
</tr></form>
<?php
示例4: 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;
}
示例5:
echo TEXT_CREATE_NEW_PAYMENT_ADDRESS;
?>
</div>
</div>
<?php
require 'includes/modules/checkout_new_address.php';
?>
<?php
}
?>
<div class="contentText">
<div><?php
echo HTML::hiddenField('action', 'submit') . HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, 'primary', null, 'btn-success btn-block');
?>
</div>
</div>
<?php
if ($process == true) {
?>
<div>
<?php
echo HTML::button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', OSCOM::link('checkout_payment_address.php', '', 'SSL'));
?>
</div>
<?php
示例6:
<td class="main"><strong><?php
echo OSCOM::getDef('entry_rating');
?>
</strong> <?php
echo HTML::image(OSCOM::linkImage('Shop/stars_' . $rInfo->reviews_rating . '.gif'), OSCOM::getDef('text_of_5_stars', ['reviews_rating' => $rInfo->reviews_rating]));
?>
<small>[<?php
echo OSCOM::getDef('text_of_5_stars', ['reviews_rating' => $rInfo->reviews_rating]);
?>
]</small></td>
</tr>
<?php
if (tep_not_null($_POST)) {
echo HTML::hiddenField('reviews_rating', $rInfo->reviews_rating);
echo HTML::hiddenField('reviews_text', $rInfo->reviews_text);
echo HTML::hiddenField('reviews_status', $rInfo->reviews_status);
?>
<tr>
<td align="right" class="smallText"><?php
echo HTML::button(OSCOM::getDef('image_save'), 'fa fa-save') . HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id));
?>
</td>
</form></tr>
<?php
} else {
if (isset($_GET['origin'])) {
$back_url = $_GET['origin'];
$back_url_params = '';
} else {
$back_url = FILENAME_REVIEWS;
$back_url_params = 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id;
示例7: array
$Qfilter->execute();
} else {
$Qfilter = $OSCOM_Db->prepare('select SQL_CALC_FOUND_ROWS distinct m.manufacturers_id as id, m.manufacturers_name as name from :table_products p, :table_products_to_categories p2c, :table_manufacturers m where p.products_status = 1 and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = :categories_id order by m.manufacturers_name');
$Qfilter->bindInt(':categories_id', $current_category_id);
$Qfilter->execute();
}
if ($Qfilter->getPageSetTotalRows() > 1) {
echo '<div>' . HTML::form('filter', OSCOM::link('index.php', '', false), 'get', null, ['session_id' => true]) . '<p align="right">' . OSCOM::getDef('text_show') . ' ';
if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
echo HTML::hiddenField('manufacturers_id', $_GET['manufacturers_id']);
$options = array(array('id' => '', 'text' => OSCOM::getDef('text_all_categories')));
} else {
echo HTML::hiddenField('cPath', $cPath);
$options = array(array('id' => '', 'text' => OSCOM::getDef('text_all_manufacturers')));
}
echo HTML::hiddenField('sort', $_GET['sort']);
while ($Qfilter->fetch()) {
$options[] = array('id' => $Qfilter->valueInt('id'), 'text' => $Qfilter->value('name'));
}
echo HTML::selectField('filter_id', $options, isset($_GET['filter_id']) ? $_GET['filter_id'] : '', 'onchange="this.form.submit()"');
echo '</p></form></div>' . "\n";
}
}
include 'includes/content/product_listing.php';
?>
</div>
<?php
} else {
// default page
示例8: elseif
$form_action = 'update';
$bID = HTML::sanitize($_GET['bID']);
$Qbanner = $OSCOM_Db->get('banners', ['banners_title', 'banners_url', 'banners_image', 'banners_group', 'banners_html_text', 'status', 'date_format(date_scheduled, "%Y-%m-%d") as date_scheduled', 'date_format(expires_date, "%Y-%m-%d") as expires_date', 'expires_impressions', 'date_status_change'], ['banners_id' => (int) $bID]);
$bInfo->objectInfo($Qbanner->toArray());
} elseif (tep_not_null($_POST)) {
$bInfo->objectInfo($_POST);
}
$groups_array = [];
$Qgroups = $OSCOM_Db->get('banners', 'distinct banners_group', null, 'banners_group');
while ($Qgroups->fetch()) {
$groups_array[] = ['id' => $Qgroups->value('banners_group'), 'text' => $Qgroups->value('banners_group')];
}
?>
<?php
echo HTML::form('new_banner', OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&action=' . $form_action), 'post', 'enctype="multipart/form-data"') . ($form_action == 'update' ? HTML::hiddenField('banners_id', $bID) : '');
?>
<div class="panel panel-info">
<div class="panel-body">
<div class="form-group">
<label for="banners_title"><?php
echo OSCOM::getDef('text_banners_title') . OSCOM::getDef('text_field_required');
?>
</label>
<?php
echo HTML::inputField('banners_title', $bInfo->banners_title);
?>
</div>
<div class="form-group">
示例9: array
?>
</div>
</div>
<?php
} else {
if (sizeof($_SESSION['navigation']->snapshot) > 0) {
$back_link = OSCOM::link($_SESSION['navigation']->snapshot['page'], tep_array_to_string($_SESSION['navigation']->snapshot['get'], array(session_name())), $_SESSION['navigation']->snapshot['mode']);
} else {
$back_link = OSCOM::link('address_book.php', '', 'SSL');
}
?>
<div class="row">
<div class="col-sm-6 text-right pull-right"><?php
echo HTML::hiddenField('action', 'process') . HTML::button(IMAGE_BUTTON_CONTINUE, 'glyphicon glyphicon-chevron-right', null, null, null, 'btn-success');
?>
</div>
<div class="col-sm-6"><?php
echo HTML::button(IMAGE_BUTTON_BACK, 'glyphicon glyphicon-chevron-left', $back_link);
?>
</div>
</div>
<?php
}
?>
</div>
</form>
示例10: foreach
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
$products_name .= '<tr>';
$products_name .= ' <td valign="top" align="center"><a href="' . OSCOM::link('product_info.php', 'products_id=' . $products[$i]['id']) . '">' . HTML::image(OSCOM::linkImage($products[$i]['image']), $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . ' <td valign="top"><a href="' . OSCOM::link('product_info.php', 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong></a>';
if (STOCK_CHECK == 'true') {
$stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);
if (tep_not_null($stock_check)) {
$any_out_of_stock = 1;
$products_name .= $stock_check;
}
}
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
foreach ($products[$i]['attributes'] as $option => $value) {
$products_name .= '<br /><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
}
}
$products_name .= '<br>' . HTML::inputField('cart_quantity[]', $products[$i]['quantity'], 'style="width: 65px;" min="0"', 'number') . HTML::hiddenField('products_id[]', $products[$i]['id']) . ' ' . HTML::button(OSCOM::getDef('text_cart_button_update'), 'fa fa-refresh', null, null, 'btn-info btn-xs') . ' ' . HTML::button(OSCOM::getDef('text_cart_button_remove'), 'fa fa-remove', OSCOM::link('shopping_cart.php', 'products_id=' . $products[$i]['id'] . '&action=remove_product'), null, 'btn-danger btn-xs');
$products_name .= '</td>';
$products_name .= ' <td align="right" valign="top"><strong>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</strong></td>' . '</tr>';
}
echo $products_name;
?>
</tbody>
</table>
<p class="text-right"><strong><?php
echo OSCOM::getDef('sub_title_sub_total');
?>
<?php
echo $currencies->format($_SESSION['cart']->show_total());
?>
示例11: array
$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">
<thead>
<tr class="info">
<th><?php
echo OSCOM::getDef('table_heading_customers');
?>
</th>
<th class="text-right"><?php
echo OSCOM::getDef('table_heading_order_total');
?>
</th>
<th></th>
<th class="text-right"><?php
示例12: array
<?php
}
}
if (tep_not_null($order->info['comments'])) {
?>
<hr>
<h2><?php
echo '<strong>' . OSCOM::getDef('heading_order_comments') . '</strong> ' . HTML::button(OSCOM::getDef('text_edit'), 'fa fa-edit', OSCOM::link('checkout_payment.php'), null, 'pull-right btn-info btn-xs');
?>
</h2>
<blockquote>
<?php
echo nl2br(HTML::outputProtected($order->info['comments'])) . HTML::hiddenField('comments', $order->info['comments']);
?>
</blockquote>
<?php
}
?>
<div class="buttonSet">
<div class="text-right">
<?php
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
echo HTML::button(OSCOM::getDef('image_button_pay_total_now', ['total' => $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value'])]), 'fa fa-ok', null, array('params' => 'data-button="payNow"'), 'btn-success');
?>
示例13: isset
<?php
$radio_buttons = 0;
for ($i = 0, $n = sizeof($selection); $i < $n; $i++) {
?>
<tr>
<td><strong><?php
echo $selection[$i]['module'];
?>
</strong></td>
<td align="right">
<?php
if (sizeof($selection) > 1) {
echo HTML::radioField('payment', $selection[$i]['id'], isset($_SESSION['payment']) && $selection[$i]['id'] == $_SESSION['payment'], 'required aria-required="true"');
} else {
echo HTML::hiddenField('payment', $selection[$i]['id']);
}
?>
</td>
</tr>
<?php
if (isset($selection[$i]['error'])) {
?>
<tr>
<td colspan="2"><?php
echo $selection[$i]['error'];
?>
</td>
示例14: confirm
function confirm()
{
$OSCOM_Db = Registry::get('Db');
$audience = array();
if (isset($_GET['global']) && $_GET['global'] == 'true') {
$Qproducts = $OSCOM_Db->get('products_notifications', 'distinct customers_id');
while ($Qproducts->fetch()) {
$audience[$Qproducts->valueInt('customers_id')] = '1';
}
$Qcustomers = $OSCOM_Db->get('customers_info', 'customers_info_id', ['global_product_notifications' => '1']);
while ($Qcustomers->fetch()) {
$audience[$Qcustomers->valueInt('customers_info_id')] = '1';
}
} else {
$chosen = [];
foreach ($_POST['chosen'] as $id) {
if (is_numeric($id) && !in_array($id, $chosen)) {
$chosen[] = $id;
}
}
$ids = array_map(function ($k) {
return ':products_id_' . $k;
}, array_keys($chosen));
$Qproducts = $OSCOM_Db->prepare('select distinct customers_id from :table_products_notifications where products_id in (' . implode(', ', $ids) . ')');
foreach ($chosen as $k => $v) {
$Qproducts->bindInt(':products_id_' . $k, $v);
}
$Qproducts->execute();
while ($Qproducts->fetch()) {
$audience[$Qproducts->valueInt('customers_id')] = '1';
}
$Qcustomers = $OSCOM_Db->get('customers_info', 'customers_info_id', ['global_product_notifications' => '1']);
while ($Qcustomers->fetch()) {
$audience[$Qcustomers->valueInt('customers_info_id')] = '1';
}
}
$confirm_string = HTML::form('confirm', OSCOM::link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send')) . "\n" . '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td class="main"><font color="#ff0000"><strong>' . OSCOM::getDef('text_count_customers', ['audience' => sizeof($audience)]) . '</strong></font></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td> </td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><strong>' . $this->title . '</strong></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td> </td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main">' . "\n" . ' <ul class="nav nav-tabs" role="tablist">' . "\n" . ' <li role="presentation" class="active"><a href="#html_preview" aria-controls="html_preview" role="tab" data-toggle="tab">' . OSCOM::getDef('email_type_html') . '</a></li>' . "\n" . ' <li role="presentation"><a href="#plain_preview" aria-controls="plain_preview" role="tab" data-toggle="tab">' . OSCOM::getDef('email_type_plain') . '</a></li>' . "\n" . ' </ul>' . "\n" . ' <div class="tab-content">' . "\n" . ' <div role="tabpanel" class="tab-pane active" id="html_preview">' . "\n" . ' <iframe id="emailHtmlPreviewContent" style="width: 100%; height: 400px; border: 0;"></iframe>' . "\n" . ' <script id="emailHtmlPreview" type="x-tmpl-mustache">' . "\n" . ' ' . HTML::outputProtected($this->content_html) . "\n" . ' </script>' . "\n" . ' <script>' . "\n" . ' $(function() {' . "\n" . ' var content = $(\'<div />\').html($(\'#emailHtmlPreview\').html()).text();' . "\n" . ' $(\'#emailHtmlPreviewContent\').contents().find(\'html\').html(content);' . "\n" . ' });' . "\n" . ' </script>' . "\n" . ' </div>' . "\n" . ' <div role="tabpanel" class="tab-pane" id="plain_preview">' . "\n" . ' ' . nl2br(HTML::outputProtected($this->content)) . "\n" . ' </div>' . "\n" . ' </div>' . "\n" . ' </td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td> </td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="smallText" align="right">';
if (sizeof($audience) > 0) {
if (isset($_GET['global']) && $_GET['global'] == 'true') {
$confirm_string .= HTML::hiddenField('global', 'true');
} else {
for ($i = 0, $n = sizeof($chosen); $i < $n; $i++) {
$confirm_string .= HTML::hiddenField('chosen[]', $chosen[$i]);
}
}
$confirm_string .= HTML::button(OSCOM::getDef('image_send'), 'fa fa-envelope');
}
$confirm_string .= HTML::button(OSCOM::getDef('image_cancel'), 'fa fa-close', OSCOM::link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=send')) . '</td>' . "\n" . ' </tr>' . "\n" . '</table>' . "\n" . '</form>';
return $confirm_string;
}
示例15: isset
echo OSCOM::link(FILENAME_SPECIALS, tep_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action);
?>
" method="post"><?php
if ($form_action == 'update') {
echo HTML::hiddenField('specials_id', $_GET['sID']);
}
?>
<td><br /><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php
echo OSCOM::getDef('text_specials_product');
?>
</td>
<td class="main"><?php
echo isset($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . $currencies->format($sInfo->products_price) . ')</small>' : tep_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array);
echo HTML::hiddenField('products_price', isset($sInfo->products_price) ? $sInfo->products_price : '');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo OSCOM::getDef('text_specials_special_price');
?>
</td>
<td class="main"><?php
echo HTML::inputField('specials_price', isset($sInfo->specials_new_products_price) ? $sInfo->specials_new_products_price : '');
?>
</td>
</tr>
<tr>
<td class="main"><?php