本文整理汇总了PHP中tep_hide_session_id函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_hide_session_id函数的具体用法?PHP tep_hide_session_id怎么用?PHP tep_hide_session_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_hide_session_id函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: execute
function execute()
{
global $PHP_SELF, $currencies, $request_type, $currency, $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();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($_GET);
while (list($key, $value) = each($_GET)) {
if (is_string($value) && $key != 'currency' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
$form_output = tep_draw_form('currencies', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id() . '</form>';
ob_start();
include 'includes/modules/boxes/templates/currencies.php';
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
}
}
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:25,代码来源:bm_currencies.php
示例2: execute
function execute()
{
global $PHP_SELF, $lng, $request_type, $oscTemplate, $language, $request_type, $HTTP_GET_VARS, $current_lang_key;
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
if (!isset($lng) || isset($lng) && !is_object($lng)) {
include DIR_WS_CLASSES . 'language.php';
$lng = new language();
}
if (count($lng->catalog_languages) > 1) {
reset($lng->catalog_languages);
$languages_array = array();
while (list($key, $value) = each($lng->catalog_languages)) {
$languages_array[] = array('id' => $key, 'text' => $value['name']);
}
foreach ($lng->catalog_languages as $key => $value) {
if ($value['directory'] == $language) {
$current_lang_key = $key;
break;
}
}
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
if (is_string($value) && $key != 'language' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
$data = '<div class="headerBox languages">' . ' <span class="headerTitle languages-title">' . MODULE_BOXES_HEADER_LANGUAGES_BOX_TITLE . '</span>' . ' <div class="headerBoxContents">' . ' ' . tep_draw_form('languages', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . ' ' . tep_draw_pull_down_menu('language', $languages_array, $current_lang_key, 'onchange="this.form.submit();"') . $hidden_get_variables . tep_hide_session_id() . '</form>' . ' </div>' . '</div>';
$oscTemplate->addBlock($data, $this->group);
}
}
}
开发者ID:templatemonster,项目名称:oscommerce,代码行数:31,代码来源:h_languages.php
示例3: getData
function getData()
{
global $HTTP_GET_VARS, $request_type, $oscTemplate;
$data = '';
$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {
if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
// Display a list
$manufacturers_list = '<ul class="nav nav-list">';
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
if (isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == $manufacturers['manufacturers_id']) {
$manufacturers_name = '<strong>' . $manufacturers_name . '</strong>';
}
$manufacturers_list .= '<li><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a></li>';
}
$manufacturers_list .= '</ul>';
$content = $manufacturers_list;
} else {
// Display a drop-down
$manufacturers_array = array();
if (MAX_MANUFACTURERS_LIST < 2) {
$manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
}
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
$manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name);
}
$content = tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', $request_type, false), 'get') . tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : '', 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id() . '</form>';
}
$data = '<div class="panel panel-default">' . ' <div class="panel-heading">' . MODULE_BOXES_MANUFACTURERS_BOX_TITLE . '</div>' . ' <div class="panel-body">' . $content . '</div>' . '</div>';
}
return $data;
}
开发者ID:osc2nuke,项目名称:demobts,代码行数:34,代码来源:bm_manufacturers.php
示例4: execute
function execute()
{
global $request_type, $oscTemplate;
$form_output = ' ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . ' <div class="input-group">' . ' ' . tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"', 'search') . ' <span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button></span>' . ' </div>' . tep_draw_hidden_field('search_in_description', '0') . tep_hide_session_id() . ' </form>';
ob_start();
include DIR_WS_MODULES . 'boxes/templates/search.php';
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:9,代码来源:bm_search.php
示例5: execute
function execute()
{
global $request_type, $oscTemplate;
if ($this->group == 'boxes_header') {
$data = '<div class="col-sm-6">' . tep_navbar_search('btn-info', false) . '</div>';
} else {
$data = '<div class="panel panel-default">' . ' <div class="panel-heading">' . MODULE_BOXES_SEARCH_BOX_TITLE . '</div>' . ' <div class="panel-body text-center">' . ' ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . ' <div class="input-group">' . ' ' . tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"') . ' <span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="glyphicon glyphicon-search"></i></button></span>' . ' </div>' . tep_draw_hidden_field('search_in_description', '0') . tep_hide_session_id() . '<br />' . MODULE_BOXES_SEARCH_BOX_TEXT . '<br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><strong>' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</strong></a>' . ' </form>' . ' </div>' . '</div>';
}
$oscTemplate->addBlock($data, $this->group);
}
开发者ID:osc2nuke,项目名称:demobts,代码行数:10,代码来源:bm_search.php
示例6: getData
function getData()
{
global $HTTP_GET_VARS, $request_type, $oscTemplate, $template_id;
$data = '';
$content = tep_draw_form('goto', 'bts_header_builder.php', '', 'get');
$content .= tep_draw_pull_down_menu('template_id', tep_get_templates_tree(), $current_category_id, 'onchange="this.form.submit();"');
$content .= tep_hide_session_id() . '</form>';
$data = '<div class="panel panel-default">' . ' <div class="panel-heading">' . MODULE_BOXES_TEMPLATES_BOX_TITLE . '</div>' . ' <div class="panel-body">' . $content . '</div>' . '</div>';
return $data;
}
开发者ID:osc2nuke,项目名称:demobts,代码行数:10,代码来源:bm_templates.php
示例7: show_manufacturers
/**
* $Id: manufacturers.php 63 2005-12-16 21:41:48Z Michael $
* osCommerce, Open Source E-Commerce Solutions
* http://www.oscommerce.com
* Copyright (c) 2003 osCommerce
* Released under the GNU General Public License
* adapted 2005 for xoops by FlinkUX <http://www.flinkux.de>
* @package xosC
* @author Michael Hammelmann <[email protected]>
*/
function show_manufacturers()
{
global $xoopsDB, $xoopsConfig, $xoopsTpl, $xoopsConfig;
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/configure.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/database_tables.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/filenames.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/database.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/sessions.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/general.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/html_output.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/classes/boxes.php";
if (!defined('XBLOCK_CONFIG')) {
$configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);
while ($configuration = tep_db_fetch_array($configuration_query)) {
define($configuration['cfgKey'], $configuration['cfgValue']);
}
define('XBLOCK_CONFIG', "1");
}
$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURERS);
new infoBoxHeading($info_box_contents, false, false);
if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
// Display a list
$manufacturers_list = '';
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
if (isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == $manufacturers['manufacturers_id']) {
$manufacturers_name = '<b>' . $manufacturers_name . '</b>';
}
$manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a><br>';
}
$manufacturers_list = substr($manufacturers_list, 0, -4);
$info_box_contents = array();
$info_box_contents[] = array('text' => $manufacturers_list);
} else {
// Display a drop-down
$manufacturers_array = array();
if (MAX_MANUFACTURERS_LIST < 2) {
$manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
}
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
$manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name);
}
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : '', 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());
}
$block = new infoBox($info_box_contents);
}
return $block->content;
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:63,代码来源:manufacturers.php
示例8: execute
function execute()
{
global $oscTemplate, $request_type;
$content_width = MODULE_CONTENT_HEADER_SEARCH_CONTENT_WIDTH;
$search_box = '<div class="searchbox-margin">';
$search_box .= tep_draw_form('quick_find', tep_href_link('advanced_search_result.php', '', $request_type, false), 'get', 'class="form-horizontal"');
$search_box .= ' <div class="input-group">' . tep_draw_input_field('keywords', '', 'required placeholder="' . 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 .= tep_hide_session_id() . '</form>';
$search_box .= '</div>';
ob_start();
include 'includes/modules/content/' . $this->group . '/templates/search.php';
$template = ob_get_clean();
$oscTemplate->addContent($template, $this->group);
}
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:14,代码来源:cm_header_search.php
示例9: show_search
/**
* $Id: search.php 57 2005-12-15 14:39:09Z Michael $
* osCommerce, Open Source E-Commerce Solutions
* http://www.oscommerce.com
* Copyright (c) 2003 osCommerce
* Released under the GNU General Public License
* adapted 2005 for xoops by FlinkUX <http://www.flinkux.de>
* @package xosC
* @author Michael Hammelmann <[email protected]>
*/
function show_search()
{
global $xoopsDB, $xoopsConfig, $xoopsTpl, $xoopsConfig;
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/configure.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/database_tables.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/filenames.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/database.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/sessions.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/general.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/html_output.php";
include_once XOOPS_ROOT_PATH . "/modules/osC/includes/classes/boxes.php";
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_SEARCH);
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH - 30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');
$block = new infoBox($info_box_contents);
return $block->content;
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:29,代码来源:search.php
示例10: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
global $PHP_SELF;
if (tep_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// calculate number of pages needing links
$num_pages = ceil($query_numrows / $max_rows_per_page);
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = tep_draw_form('pages', $PHP_SELF, '', 'get');
if ($current_page_number > 1) {
$display_links .= '<a href="' . tep_href_link($PHP_SELF, $parameters . $page_name . '=' . ($current_page_number - 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, tep_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onchange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= ' <a href="' . tep_href_link($PHP_SELF, $parameters . $page_name . '=' . ($current_page_number + 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
} else {
$display_links .= ' ' . PREVNEXT_BUTTON_NEXT;
}
if ($parameters != '') {
if (substr($parameters, -1) == '&') {
$parameters = substr($parameters, 0, -1);
}
$pairs = explode('&', $parameters);
foreach ($pairs as $pair) {
list($key, $value) = explode('=', $pair);
$display_links .= tep_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
$display_links .= tep_hide_session_id() . '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
开发者ID:tiansiyuan,项目名称:oscommerce2,代码行数:41,代码来源:split_page_results.php
示例11: execute
function execute()
{
global $PHP_SELF, $currencies, $HTTP_GET_VARS, $request_type, $currency, $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();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
if (is_string($value) && $key != 'currency' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
$data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_CURRENCIES_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . ' ' . tep_draw_form('currencies', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . ' ' . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id() . '</form>' . ' </div>' . '</div>';
$oscTemplate->addBlock($data, $this->group);
}
}
}
开发者ID:Sibzsolutions,项目名称:Savostore,代码行数:22,代码来源:bm_currencies.php
示例12: execute
function execute()
{
global $request_type, $oscTemplate;
$data = '<div class="headerBoxContainer search">' . ' ' . tep_draw_inline_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . ' ' . tep_draw_input_field('keywords', '', 'size="10" maxlength="30"') . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . tep_image_submit('fa fa-search') . ' </form>' . '</div></div>';
$oscTemplate->addBlock($data, $this->group);
}
开发者ID:templatemonster,项目名称:oscommerce,代码行数:6,代码来源:h_search.php
示例13: tep_href_link
$(document).ready(function() {
$('.box-manufacturers-select').addClass('form-input-width');
});
$('.box-manufacturers-selection').addClass('form-group full-width');
$('.box-manufacturers-select').addClass('form-control');
</script>
<div class="well" style="text-transform:uppercase">
<div class="box-header small-margin-bottom small-margin-left"><?php
echo BOX_HEADING_MANUFACTURERS;
?>
</div>
<form role="form" class="form-inline no-margin-bottom" name="manufacturers" action="<?php
echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false);
?>
" method="get">
<?php
$manufacturers_array = array();
if (MAX_MANUFACTURERS_LIST < 2) {
$manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
}
foreach ($manufacture->rows as $manufacturers) {
$manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
$manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name);
}
echo '<ul class="box-information_pages-ul list-unstyled list-indent-large"><li>' . tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, isset($_GET['manufacturers_id']) ? (int) $_GET['manufacturers_id'] : '', 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '"class="box-manufacturers-select form-control form-input-width" style="width: 100%"') . tep_hide_session_id() . '</select><li></ul>';
?>
</form>
</div>
<!-- manufacturers eof//-->
<?php
}
开发者ID:resultsonlyweb,项目名称:loaded6-template,代码行数:31,代码来源:manufacturers.php
示例14: tep_db_query
$filterlist_query = tep_db_query($filterlist_sql);
if (tep_db_num_rows($filterlist_query) > 1) {
echo ' <td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' ';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);
$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
} else {
echo tep_draw_hidden_field('cPath', $cPath);
$options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
}
echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);
while ($filterlist = tep_db_fetch_array($filterlist_query)) {
$options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);
}
echo tep_draw_pull_down_menu('filter_id', $options, isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : '', 'onchange="this.form.submit()"');
echo tep_hide_session_id() . '</form></td>' . "\n";
}
}
// Get the right image for the top-right
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int) $HTTP_GET_VARS['manufacturers_id'] . "'");
$image = tep_db_fetch_array($image);
$image = $image['manufacturers_image'];
} elseif ($current_category_id) {
$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int) $current_category_id . "'");
$image = tep_db_fetch_array($image);
$image = $image['categories_image'];
}
?>
<td align="right"><?php
开发者ID:laiello,项目名称:myopensources,代码行数:31,代码来源:index.php
示例15: tep_href_link
?>
<!-- search //-->
<?php
$boxHeading = '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_HEADING_SEARCH . '</a>';
$corner_top_left = 'rounded';
$corner_top_right = 'rounded';
$corner_bottom_left = 'rounded';
$corner_bottom_right = 'rounded';
$boxContent_attributes = ' align="center"';
$boxLink = '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . tep_image(bts_select('images', 'infobox/arrow_right.png'), ICON_ARROW_RIGHT) . '</a>';
$box_base_name = 'search';
// for easy unique box template setup (added BTSv1.2)
$box_id = $box_base_name . 'Box';
// for CSS styling paulm (editted BTSv1.2)
$boxContent = tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
$boxContent .= tep_draw_hidden_field('search_in_description', '1') . tep_draw_input_field('keywords', '', 'id="txtSearch" size="10" maxlength="30" style="width: ' . ($box_width - 40) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';
$boxContent .= '</form>' . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '&pfrom=0&pto=10000000', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a><br>';
include bts_select('boxes', $box_base_name);
// BTS 1.5
$boxContent_attributes = '';
if (AJAX_SEARCH_SUGGEST == 'true') {
?>
<script language="JavaScript" type="text/javascript" src="includes/class.OSCFieldSuggest.js"></script>
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
//Attention!!! put always this code above the HTML code of your field!!!
var oscSearchSuggest = new OSCFieldSuggest('txtSearch', 'includes/search_suggest.xsl', 'searchsuggest.php');
//Adds autocomplete off to search fields
var e = document.getElementById('txtSearch');
e.autocomplete = 'off'; // Maybe should be false
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:search.php
示例16: tep_image
"><?php
echo MENU_TEXT_MEMBERS;
?>
</a></td>
<td><?php
echo tep_image(DIR_WS_TEMPLATE_IMAGES . 'menu_div.png');
?>
</td>
</tr>
</table></td>
<td align="right" class="info_bar_td3" width="250"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'style="margin:0;padding:0;"');
echo '<span class="info_bar_search">' . MENU_TEXT_SEARCH . ':</span> ' . tep_draw_input_field('keywords', '', 'class="search_input" size="25" maxlength="30" style="width: 120px"', 'text', false) . ' ' . tep_hide_session_id();
?>
</td>
<td><input type="image" name="search" id="search" src="<?php
echo DIR_WS_TEMPLATE_IMAGES;
?>
button_ok.png"></td></form>
</tr>
</table></td>
<td class="info_bar_td1" width="5"><?php
echo tep_image(DIR_WS_TEMPLATE_IMAGES . 'menu_right.png');
?>
</td>
</tr>
</table>
</td>
开发者ID:resultsonlyweb,项目名称:loaded6-template,代码行数:31,代码来源:back1header.php
示例17: array
*/
if (isset($osC_Currencies) && is_object($osC_Currencies) && sizeof($osC_Currencies->currencies) > 1) {
?>
<!-- currencies //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_CURRENCIES);
new infoBoxHeading($info_box_contents, false, false);
reset($osC_Currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($osC_Currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($_GET);
while (list($key, $value) = each($_GET)) {
if ($key != 'currency' && $key != $osC_Session->name && $key != 'x' && $key != 'y') {
$hidden_get_variables .= osc_draw_hidden_field($key, $value);
}
}
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($_SERVER['PHP_SELF']), '', $request_type, false), 'get'), 'align' => 'center', 'text' => osc_draw_pull_down_menu('currency', $currencies_array, $osC_Session->value('currency'), 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- currencies_eof //-->
<?php
}
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:currencies.php
示例18: tep_draw_form
<?php
require DIR_WS_INCLUDES . 'header.php';
?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0" height="40">
<tr>
<td class="pageHeading"><?php
echo HEADING_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo tep_draw_form('adminlanguage', FILENAME_DEFAULT, '', 'get') . tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"') . tep_hide_session_id() . '</form>';
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td>
<?php
$heading = array();
$contents = array();
if (tep_db_num_rows($admins_check_query) > 0) {
$heading[] = array('text' => '<b>' . HEADING_TITLE . '</b>');
$contents = array('form' => tep_draw_form('login', FILENAME_LOGIN, 'action=process'));
$contents[] = array('text' => TEXT_USERNAME . '<br>' . tep_draw_input_field('username'));
开发者ID:quangbt2005,项目名称:belamdep,代码行数:31,代码来源:login.php
示例19: execute
function execute()
{
global $request_type, $oscTemplate;
$data = '<div class="module search-box">' . ' <h3 class="module-heading">' . MODULE_BOXES_SEARCH_BOX_TITLE . '</h3>' . ' <div class="module-content">' . ' ' . tep_draw_inline_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . ' ' . tep_draw_input_field('keywords', '', 'size="10" maxlength="30"') . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . tep_image_submit('fa fa-search') . ' </form>' . ' </div><p>' . MODULE_BOXES_SEARCH_BOX_TEXT . '</p><a class="btn-link" href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</a></div>' . '</div>';
$oscTemplate->addBlock($data, $this->group);
}
开发者ID:templatemonster,项目名称:oscommerce,代码行数:6,代码来源:bm_search.php
示例20: tep_draw_form
<td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="smallText" align="right">
<?php
echo tep_draw_form('search', 'action_recorder.php', '', 'get');
echo TEXT_FILTER_SEARCH . ' ' . tep_draw_input_field('search');
echo tep_draw_hidden_field('module') . tep_hide_session_id() . '</form>';
?>
</td>
</tr>
<tr>
<td class="smallText" align="right">
<?php
echo tep_draw_form('filter', 'action_recorder.php', '', 'get');
echo tep_draw_pull_down_menu('module', $modules_list_array, null, 'onchange="this.form.submit();"');
echo tep_draw_hidden_field('search') . tep_hide_session_id() . '</form>';
?>
</td>
</tr>
</table></td>
<td class="smallText" align="right"><?php
echo tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link('action_recorder.php', 'action=expire' . (isset($HTTP_GET_VARS['module']) && in_array($HTTP_GET_VARS['module'], $modules_array) ? '&module=' . $HTTP_GET_VARS['module'] : '')), 'primary');
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:31,代码来源:action_recorder.php
注:本文中的tep_hide_session_id函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论