本文整理汇总了PHP中zen_hide_session_id函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_hide_session_id函数的具体用法?PHP zen_hide_session_id怎么用?PHP zen_hide_session_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_hide_session_id函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: zen_draw_form
<?php
/**
* displays add to wishlist sidebox
*/
$content = '';
if ($_SESSION['customer_id']) {
$content .= zen_draw_form('wishlist_sidebox', zen_href_link(UN_FILENAME_WISHLIST, '', 'NONSSL'), 'get');
$content .= zen_draw_hidden_field('main_page', UN_FILENAME_WISHLIST);
$content .= zen_hide_session_id();
$content .= zen_draw_hidden_field('action', 'un_add_wishlist');
$content .= zen_draw_hidden_field('products_id', (int) $_GET['products_id']);
$content .= '<div align="center">';
$content .= zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
//$content .= '<input type="submit" value="' . UN_BUTTON_WISHLIST_ADD_ALT . '" />';
$content .= '<br />';
$content .= UN_BOX_WISHLIST_ADD_TEXT;
$content .= '</div>';
$content .= '</form>';
} else {
$content .= '<div>';
$content .= UN_BOX_WISHLIST_LOGIN_TEXT;
$content .= '</div>';
}
开发者ID:quangn92,项目名称:visualyou,代码行数:24,代码来源:tpl_wishlist.php
示例2: zen_draw_separator
?>
<td class="pageHeading"><?php
echo HEADING_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo zen_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT);
?>
</td>
<td class="smallText" align="right">
<?php
// show reset search
if (isset($_GET['search']) && zen_not_null($_GET['search'])) {
echo '<a href="' . zen_href_link(FILENAME_DOWNLOADS_MANAGER) . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a> ';
}
echo HEADING_TITLE_SEARCH_DETAIL . ' ' . zen_draw_input_field('search') . zen_hide_session_id();
if (isset($_GET['search']) && zen_not_null($_GET['search'])) {
$keywords = zen_db_input(zen_db_prepare_input($_GET['search']));
echo '<br/ >' . TEXT_INFO_SEARCH_DETAIL_FILTER . $keywords;
}
?>
</td>
</form></tr>
</table></td>
</tr>
<tr>
<td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="smallText" align="center">
<?php
开发者ID:ygeneration666,项目名称:ec,代码行数:31,代码来源:downloads_manager.php
示例3: zen_draw_form
} else {
echo TEXT_SPEC_PRICE_INFO2;
}
?>
</form>
<?php
}
?>
<!-- eof spec_price form -->
</td>
<td class="smallText" align="center" valign="top"></td>
<td class="smallText"></td>
<td class="smallText" align="center" valign="top">
<?php
// bof toggle switch for editor
echo TEXT_EDITOR_INFO . zen_draw_form('set_editor_form', FILENAME_QUICK_UPDATES, zen_get_all_get_params(array('action', 'reset_editor')), 'get') . ' ' . zen_draw_pull_down_menu('reset_editor', $editors_pulldown, $current_editor_key, 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('action', 'set_editor') . '</form>';
// eof toggle switch for editor
?>
</td>
</tr>
</table>
<table class="quTop">
<tr>
<td class="smallText"><?php
echo zen_draw_form('row_by_page', FILENAME_QUICK_UPDATES, zen_get_all_get_params(array('row_by_page')), 'get') . TEXT_MAXI_ROW_BY_PAGE . ' ' . zen_draw_pull_down_menu('row_by_page', $row_bypage_array, $row_by_page, 'onChange="this.form.submit();"');
?>
</form></td>
<td class="smallText" align="center" valign="top"><?php
echo zen_draw_form('manufacturers', FILENAME_QUICK_UPDATES, zen_get_all_get_params(array('manufacturer')), 'get') . DISPLAY_MANUFACTURERS . '  ' . zen_draw_pull_down_menu("manufacturer", $manufacturers_array, $manufacturer, 'onChange="this.form.submit();"');
?>
</form></td>
开发者ID:happyxlq,项目名称:zencart_svn,代码行数:31,代码来源:quick_updates.php
示例4: zen_draw_form
</tr>
</td></table>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr><?php
echo zen_draw_form('search', FILENAME_STATS_CUSTOMERS_REFERRALS, '', 'get');
echo zen_draw_hidden_field('referral_code', $_GET['referral_code']);
?>
<td class="main" align="right"><?php
echo TEXT_INFO_START_DATE . ' ' . zen_draw_input_field('start_date', $_GET['start_date']);
?>
</td>
<td class="main" align="right"><?php
echo TEXT_INFO_END_DATE . ' ' . zen_draw_input_field('end_date', $_GET['end_date']) . zen_hide_session_id();
?>
</td>
<td class="main" align="right"><?php
echo zen_image_submit('button_display.gif', IMAGE_DISPLAY);
?>
</td>
</tr>
</td></table></form>
</tr>
<?php
// reverse date from m-d-y to y-m-d
$date1 = explode("-", $_GET['start_date']);
$m1 = $date1[0];
$d1 = $date1[1];
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:stats_customers_referrals.php
示例5: zen_draw_form
</td>
<?php
}
?>
</tr></table></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr class="headerBar" height="20" width="100%">
<td class="headerBarContent" align="left">
<?php
if (!$hide_languages) {
echo zen_draw_form('languages', basename($PHP_SELF), '', 'get');
echo DEFINE_LANGUAGE . ' ' . (sizeof($languages) > 1 ? zen_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"') : '');
echo zen_hide_session_id();
echo '</form>';
} else {
echo ' ';
}
?>
</td>
<td class="headerBarContent" align="center"><b><?php
echo date("r", time()) . 'GMT' . ' [' . $_SERVER['REMOTE_ADDR'] . ' ] ';
?>
</b></td>
<td class="headerBarContent" align="right"><?php
echo '<a href="' . zen_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a> | <a href="' . zen_catalog_href_link() . '" class="headerLink" target="_blank">' . HEADER_TITLE_ONLINE_CATALOG . '</a> | <a href="http://www.zen-cart.com/" class="headerLink" target="_blank">' . HEADER_TITLE_SUPPORT_SITE . '</a> | <a href="' . zen_href_link(FILENAME_LOGOFF) . '" class="headerLink">' . HEADER_TITLE_LOGOFF . '</a> ';
?>
</td>
</tr>
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:header.php
示例6: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_manufacturers_select.php 15882 2010-04-11 16:37:54Z wilt $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('manufacturers_form', zen_href_link(FILENAME_DEFAULT, '', $request_type, false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT);
$content .= zen_draw_pull_down_menu('manufacturers_id', $manufacturer_sidebox_array, isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : '', 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();
$content .= '</form>';
$content .= '</div>';
开发者ID:zenmagick,项目名称:zencart,代码行数:18,代码来源:tpl_manufacturers_select.php
示例7: addHideSessionID
/**
* if submit to this zencart, add hidden zenid after <form>
*
* @param array $matches <form> tag matches
* @return string <form> tag
*/
function addHideSessionID($matches)
{
if (!empty($matches[0])) {
$tag = $matches[0];
preg_match('/action="(.*?)"/', $tag, $action_matches);
$action = $action_matches[1];
if (isInternalURL($action)) {
$tag .= zen_hide_session_id();
}
return $tag;
}
}
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:18,代码来源:Mobile.php
示例8: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_currencies.php 4566 2006-09-20 01:47:25Z birdbrain $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('currencies_form', zen_href_link(basename(ereg_replace('.php', '', $PHP_SELF)), '', $request_type, false), 'get');
$content .= zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id();
$content .= '</form>';
$content .= '</div>';
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:17,代码来源:tpl_currencies.php
示例9: zen_draw_form
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: tpl_tell_a_friend.php 290 2004-09-15 19:48:26Z wilt $
//
$content = "";
$content .= zen_draw_form('tell_a_friend', zen_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_TELL_A_FRIEND);
$content .= '<div align="center">' . zen_draw_input_field('to_email_address', '', 'size="10"') . ' ' . zen_image_submit(BUTTON_IMAGE_TELL_A_FRIEND, BUTTON_TELL_A_FRIEND_ALT) . zen_draw_hidden_field('products_id', $_GET['products_id']) . zen_hide_session_id() . '<br />' . BOX_TELL_A_FRIEND_TEXT;
$content .= "</div></form>";
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:27,代码来源:tpl_tell_a_friend.php
示例10: zen_draw_separator
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php
echo HEADING_ADMIN_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
<td class="smallText" align="right">
<?php
echo zen_draw_form('payment_status', FILENAME_PAYPAL, '', 'get') . HEADING_PAYMENT_STATUS . ' ' . zen_draw_pull_down_menu('payment_status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_IPNS)), $payment_statuses), $selected_status, 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('paypal_ipn_sort_order', $_GET['paypal_ipn_sort_order']) . '</form>';
echo ' ' . TEXT_PAYPAL_IPN_SORT_ORDER_INFO . zen_draw_form('paypal_ipn_sort_order', FILENAME_PAYPAL, '', 'get') . ' ' . zen_draw_pull_down_menu('paypal_ipn_sort_order', $paypal_ipn_sort_order_array, $reset_paypal_ipn_sort_order, 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('payment_status', $_GET['payment_status']) . '</form>';
?>
</td>
<td class="pageHeading" align="right"><?php
echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</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">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><?php
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:paypal.php
示例11: zen_draw_form
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: tpl_record_company_select.php 290 2004-09-15 19:48:26Z wilt $
//
$content = "";
$content .= zen_draw_form('record_company', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_pull_down_menu('record_company_id', $record_company_array, isset($_GET['record_company_id']) ? $_GET['record_company_id'] : '', 'onchange="this.form.submit();" size="' . MAX_RECORD_COMPANY_LIST . '" style="width: 100%"') . zen_hide_session_id() . zen_draw_hidden_field('typefilter', 'record_company');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT) . '</form>';
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:26,代码来源:tpl_record_company_select.php
示例12: zen_draw_form
<?php
echo zen_draw_form('status', FILENAME_ORDERS, '', 'get', '', true);
// show reset search status
if (isset($_GET['status']) && zen_not_null($_GET['status']) or $_GET['cID'] != '') {
echo '<a href="' . zen_href_link(FILENAME_ORDERS, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a><br />';
}
echo HEADING_TITLE_STATUS . ' ' . zen_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), $_GET['status'], 'onChange="this.form.submit();"');
echo zen_hide_session_id();
?>
</form>
</div>
<div id="searchOrderID">
<?php
echo zen_draw_form('ordersID', FILENAME_ORDERS, '', 'get', '', true);
echo HEADING_TITLE_SEARCH . ' ' . zen_draw_input_field('oID', '', 'size="12"') . zen_draw_hidden_field('action', 'edit') . zen_hide_session_id();
?>
</form>
</div>
<!-- search -->
<?php
}
?>
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<!-- body_text //-->
<?php
/*
开发者ID:retched,项目名称:zen_SuperOrders,代码行数:31,代码来源:orders.php
示例13: nav_search
public static function nav_search()
{
global $request_type;
$content = "";
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_ADVANCED_SEARCH_RESULT);
$content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
$content .= "<div class='input-group'>";
$content .= zen_draw_input_field('keyword', '', 'class="form-control"') . '<span class="input-group-btn"><button class="btn btn-default" type="submit">Search</button></span>';
$content .= "</div>";
$content .= "</form>";
return $content;
}
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:13,代码来源:tpl_header.php
示例14: switch
<?php
switch ($type) {
case 'yearly':
break;
case 'monthly':
echo TITLE_YEAR . ' ' . zen_draw_pull_down_menu('year', $years_array, isset($_GET['year']) ? $_GET['year'] : date('Y'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
break;
default:
case 'daily':
echo TITLE_MONTH . ' ' . zen_draw_pull_down_menu('month', $months_array, isset($_GET['month']) ? $_GET['month'] : date('n'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript><br>' . TITLE_YEAR . ' ' . zen_draw_pull_down_menu('year', $years_array, isset($_GET['year']) ? $_GET['year'] : date('Y'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
break;
}
?>
</td>
<?php
echo zen_hide_session_id() . zen_draw_hidden_field('page', $_GET['page']) . zen_draw_hidden_field('bID', $_GET['bID']);
?>
</form>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" align="right"><?php
echo '<a href="' . zen_href_link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']) . '">' . zen_image_button('button_back.gif', IMAGE_BACK) . '</a>';
?>
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:banner_statistics.php
示例15: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_music_genres_select.php 15882 2010-04-11 16:37:54Z wilt $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('music_genres_form', zen_href_link(FILENAME_DEFAULT, '', $request_type, false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT) . zen_hide_session_id() . zen_draw_hidden_field('typefilter', 'music_genre');
$content .= zen_draw_pull_down_menu('music_genre_id', $music_genres_array, isset($_GET['music_genre_id']) ? $_GET['music_genre_id'] : '', 'onchange="this.form.submit();" size="' . MAX_MUSIC_GENRES_LIST . '" style="width: 90%; margin: auto;"');
$content .= '</form>';
$content .= '</div>';
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:18,代码来源:tpl_music_genres_select.php
示例16: zen_draw_form
</h1></td>
</tr>
<tr>
<td class="main">
<?php
if ($messageStack->size('quick_order') > 0) {
?>
<?php
echo $messageStack->output('quick_order');
?>
<br />
<?php
}
?>
<?php
echo zen_draw_form('quick_order', zen_href_link(FILENAME_QUICK_ORDER, '', 'NONSSL', false), 'get') . zen_hide_session_id();
echo zen_draw_hidden_field('main_page', FILENAME_QUICK_ORDER);
echo zen_draw_hidden_field('action', 'add_products');
?>
<table id="quick-order" class='table table-condensed table-striped'>
<tr class="table-header"><th><?php
echo TEXT_QO_NAME_MODEL;
?>
</th><th><?php
echo TEXT_QO_QTY;
?>
</th></tr>
<?php
// display rows for all the pre-selected model numbers and the set number of extra rows
for ($i = 1, $array_index = 0, $c = $qo_products_count + (int) QO_INPUT_ROWS; $i <= $c; $i++, $array_index++) {
if ($alt_table_row === 1) {
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:31,代码来源:tpl_quick_order_default.php
示例17: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_music_genres_select.php 2982 2006-02-07 07:56:41Z birdbrain $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('music_genres', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_pull_down_menu('music_genre_id', $music_genres_array, isset($_GET['music_genre_id']) ? $_GET['music_genre_id'] : '', 'onchange="this.form.submit();" size="' . MAX_MUSIC_GENRES_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id() . zen_draw_hidden_field('typefilter', 'music_genre');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT) . '</form>';
$content .= '</div>';
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:17,代码来源:tpl_music_genres_select.php
示例18: array
$contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_yes', true) . ' ' . TEXT_COPY_ATTRIBUTES_YES . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_no') . ' ' . TEXT_COPY_ATTRIBUTES_NO);
// future $contents[] = array('align' => 'center', 'text' => '<br />' . ATTRIBUTES_NAMES_HELPER . '<br />' . zen_draw_separator('pixel_trans.gif', '1', '10'));
$contents[] = array('text' => '<br />' . zen_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '3'));
}
// only ask if product has discounts
if (zen_has_product_discounts($pInfo->products_id) == 'true') {
$contents[] = array('text' => '<br />' . TEXT_COPY_DISCOUNTS_ONLY);
$contents[] = array('text' => '<br />' . TEXT_COPY_DISCOUNTS . '<br />' . zen_draw_radio_field('copy_discounts', 'copy_discounts_yes', true) . ' ' . TEXT_COPY_DISCOUNTS_YES . '<br />' . zen_draw_radio_field('copy_discounts', 'copy_discounts_no') . ' ' . TEXT_COPY_DISCOUNTS_NO);
$contents[] = array('text' => '<br />' . zen_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '3'));
} else {
$contents[] = array('text' => '<br />' . 'NO DISCOUNTS');
}
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_copy.gif', IMAGE_COPY) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
$contents[] = array('text' => '</form>');
$contents[] = array('text' => '<br />' . zen_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '3'));
$contents[] = array('text' => '<form action="' . FILENAME_PRODUCTS_TO_CATEGORIES . '.php' . '?products_filter=' . $pInfo->products_id . '¤t_category_id=' . $current_category_id . '" method="post">' . zen_hide_session_id());
$contents[] = array('align' => 'center', 'text' => '<input type="submit" value="' . BUTTON_PRODUCTS_TO_CATEGORIES . '"></form>');
break;
// attribute features
// attribute features
case 'attribute_features':
$copy_attributes_delete_first = '0';
$copy_attributes_duplicates_skipped = '0';
$copy_attributes_duplicates_overwrite = '0';
$copy_attributes_include_downloads = '1';
$copy_attributes_include_filename = '1';
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br />' . '<strong>' . TEXT_PRODUCTS_ATTRIBUTES_INFO . '</strong>' . '<br />');
$contents[] = array('align' => 'center', 'text' => '<br />' . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><br />' . '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, '&action=attributes_preview' . '&products_filter=' . $pInfo->products_id . '¤t_category_id=' . $current_category_id) . '">' . zen_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a>' . ' ' . '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, 'products_filter=' . $pInfo->products_id . '¤t_category_id=' . $current_category_id) . '">' . zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES) . '</a>' . '<br /><br />');
$contents[] = array('align' => 'left', 'text' => '<br />' . '<strong>' . TEXT_PRODUCT_ATTRIBUTES_DOWNLOADS . '</strong>' . zen_has_product_attributes_downloads($pInfo->products_id) . zen_has_product_attributes_downloads($pInfo->products_id, true));
$contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_DELETE . '<strong>' . zen_get_products_name($pInfo->products_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=delete_attributes' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
开发者ID:dalinhuang,项目名称:cameras,代码行数:31,代码来源:product.php
示例19: array
case 'delete':
$heading[] = array('text' => '<strong>' . TEXT_HEADING_DELETE_MEDIA_COLLECTION . '</strong>');
$contents = array('form' => zen_draw_form('collections', FILENAME_MEDIA_MANAGER, 'page=' . $_GET['page'] . '&mID=' . $mInfo->media_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br><strong>' . $mInfo->media_name . '</strong>');
if ($mInfo->products_count > 0) {
$contents[] = array('text' => '<br>' . zen_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
$contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
}
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_MEDIA_MANAGER, 'page=' . $_GET['page'] . '&mID=' . $mInfo->media_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'products':
$new_product_query = $db->Execute("select ptc.*, pd.products_name from " . TABLE_PRODUCTS_TO_CATEGORIES . " ptc left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on ptc.products_id = pd.products_id and pd.language_id = '" . (int) $_SESSION['languages_id'] . "' where ptc.categories_id='" . $current_category_id . "' order by pd.products_name");
$heading[] = array('text' => '<strong>' . TEXT_HEADING_ASSIGN_MEDIA_COLLECTION . '</strong>');
$contents[] = array('text' => TEXT_PRODUCTS_INTRO . '<br /><br />');
$contents[] = array('text' => zen_draw_form('new_category', FILENAME_MEDIA_MANAGER, '', 'get') . ' ' . zen_draw_pull_down_menu('current_category_id', zen_get_category_tree('', '', '0'), '', 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('products_filter', $_GET['products_filter']) . zen_draw_hidden_field('action', 'new_cat') . zen_draw_hidden_field('mID', $mInfo->media_id) . zen_draw_hidden_field('page', $_GET['page']) . ' </form>');
$product_array = $zc_products->get_products_in_category($current_category_id, false);
if ($product_array) {
$contents[] = array('text' => zen_draw_form('new_product', FILENAME_MEDIA_MANAGER, '', 'get') . ' ' . zen_draw_pull_down_menu('current_product_id', $product_array) . ' ' . '<input type="submit" name="add_product" value="Add">' . zen_draw_hidden_field('current_category_id', $current_category_id) . zen_draw_hidden_field('action', 'add_product') . zen_draw_hidden_field('page', $_GET['page']) . zen_draw_hidden_field('mID', $mInfo->media_id) . ' </form>');
} else {
$contents[] = array('text' => ' ' . TEXT_NO_PRODUCTS);
}
$products_linked_query = "select * from " . TABLE_MEDIA_TO_PRODUCTS . "\n where media_id = '" . $mInfo->media_id . "'";
$products_linked = $db->Execute($products_linked_query);
while (!$products_linked->EOF) {
$contents[] = array('text' => '<a href="' . zen_href_link(FILENAME_MEDIA_MANAGER, 'action=remove_product&mID=' . $mInfo->media_id . '&page=' . $_GET['page'] . '&product_id=' . $products_linked->fields['product_id']) . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> ' . $zc_products->products_name($products_linked->fields['product_id']) . '<br />');
$products_linked->MoveNext();
}
$contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_MEDIA_MANAGER, 'page=' . $_GET['page'] . '&mID=' . $mInfo->media_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:media_manager.php
示例20: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_record_company_select.php 4773 2006-10-17 06:10:58Z drbyte $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_draw_form('record_company_form', zen_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page', FILENAME_DEFAULT) . zen_hide_session_id() . zen_draw_hidden_field('typefilter', 'record_company');
$content .= zen_draw_pull_down_menu('record_company_id', $record_company_array, isset($_GET['record_company_id']) ? $_GET['record_company_id'] : '', 'onchange="this.form.submit();" size="' . MAX_RECORD_COMPANY_LIST . '" style="width: 90%; margin: auto;"');
$content .= '</form>';
$content .= '</div>';
开发者ID:dalinhuang,项目名称:kakayaga,代码行数:18,代码来源:tpl_record_company_select.php
注:本文中的zen_hide_session_id函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论