<?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>'; }
?> <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
} 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>
</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];
</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>
<?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>';
/** * 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; } }
<?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>';
<?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 | // | license@zen-cart.com 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>";
<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
<?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 | // | license@zen-cart.com 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>';
<?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 /*
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; }
<?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>'; ?>
<?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>';
</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) {
<?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>';
$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>');
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:
<?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>';
<?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_search_header.php 4142 2006-08-15 04:32:54Z drbyte $ */ $content = ""; $content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', 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(); if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') { $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' ' . zen_image_submit(BUTTON_IMAGE_SEARCH, HEADER_SEARCH_BUTTON); } else { $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . ' <input type="submit" value="' . HEADER_SEARCH_BUTTON . '" style="width: 45px" />'; } $content .= "</form>";
* Page Template * * Loaded automatically by index.php?main_page=advanced_search.<br /> * Displays options fields upon which a product search will be run * * @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_advanced_search_default.php 4673 2006-10-03 01:37:07Z drbyte $ */ ?> <div class="right_big_con allborder margin_t" style="padding: 5px;"> <?php echo zen_draw_form('advanced_search', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'onsubmit="return check_form(this);"') . zen_hide_session_id(); echo zen_draw_hidden_field('main_page', FILENAME_ADVANCED_SEARCH_RESULT); ?> <h1 id="advSearchDefaultHeading"><?php echo HEADING_TITLE_1; ?> </h1> <?php if ($messageStack->size('search') > 0) { echo $messageStack->output('search'); } ?> <fieldset>
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?> </td> <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> </td> <?php if (!in_array($action, array('send', 'confirm', 'confirm_send', ''))) { // toggle switch for editor echo TEXT_EDITOR_INFO . zen_draw_form('set_editor_form', FILENAME_NEWSLETTERS, '', '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>'; } ?> </tr> </table></td> </tr> <?php if ($action == 'new') { $form_action = 'insert'; $parameters = array('title' => '', 'content' => '', 'content_html' => '', 'module' => ''); $nInfo = new objectInfo($parameters); if (isset($_GET['nID'])) { $form_action = 'update'; $nID = zen_db_prepare_input($_GET['nID']); $newsletter = $db->Execute("select title, content, content_html, module\n from " . TABLE_NEWSLETTERS . "\n where newsletters_id = '" . (int) $nID . "'"); $nInfo->objectInfo($newsletter->fields);
<div id="gvFaqDefaultContent"><?php echo SUB_HEADING_TEXT; ?> </div> </div> <!--<div class="buttonRow back"><?php //echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?> </div>--> <br class="clearBoth" /> <form action="<?php echo zen_href_link(FILENAME_GV_REDEEM, '', 'NONSSL', false); ?> " method="get"> <?php echo zen_draw_hidden_field('main_page', FILENAME_GV_REDEEM) . zen_draw_hidden_field('goback', 'true') . zen_hide_session_id(); ?> <div class="content"> <h4><?php echo TEXT_GV_REDEEM_INFO; ?> </h4> <label class="inputLabel" for="lookup-gv-redeem"><?php echo TEXT_GV_REDEEM_ID; ?> </label> <?php echo zen_draw_input_field('gv_no', $_GET['gv_no'], 'size="18" id="lookup-gv-redeem"'); ?> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_REDEEM, BUTTON_REDEEM_ALT);
echo zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES); ?> </a> <a href="<?php echo zen_href_link(FILENAME_OPTIONS_VALUES_MANAGER, '', 'NONSSL'); ?> "><?php echo zen_image_button('button_option_values.gif', IMAGE_OPTION_VALUES); ?> </a> </td> <td class="main" height="40" valign="bottom"> <?php // toggle switch for show copier features $option_names_values_copier_array = array(array('id' => '0', 'text' => TEXT_SHOW_OPTION_NAMES_VALUES_COPIER_OFF), array('id' => '1', 'text' => TEXT_SHOW_OPTION_NAMES_VALUES_COPIER_ON)); echo zen_draw_form('set_option_names_values_copier_form', FILENAME_OPTIONS_NAME_MANAGER, '', 'get') . ' ' . zen_draw_pull_down_menu('reset_option_names_values_copier', $option_names_values_copier_array, $reset_option_names_values_copier, 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('action', 'set_option_names_values_copier') . '</form>'; ?> </td> <td class="main" align="right" valign="bottom"><?php echo TEXT_PRODUCT_OPTIONS_INFO; ?> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="50%"> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <!-- options //--> <?php
<?php // show reset search echo zen_draw_form('search', FILENAME_STATS_PRODUCTS_PURCHASED, '', 'get', '', true); echo HEADING_TITLE_SEARCH_DETAIL_REPORTS . ' ' . zen_draw_input_field('products_filter') . zen_hide_session_id(); if (isset($products_filter) && zen_not_null($products_filter)) { $products_filter = preg_replace('/[^0-9,]/', '', $products_filter); $products_filter = zen_db_input(zen_db_prepare_input($products_filter)); echo '<br/ >' . TEXT_INFO_SEARCH_DETAIL_FILTER . $products_filter; } if (isset($products_filter) && zen_not_null($products_filter)) { echo '<br/ >' . '<a href="' . zen_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a> '; } echo '</form>'; // show reset search echo zen_draw_form('search', FILENAME_STATS_PRODUCTS_PURCHASED, '', 'get', '', true); echo '<br/ >' . HEADING_TITLE_SEARCH_DETAIL_REPORTS_NAME_MODEL . ' ' . zen_draw_input_field('products_filter_name_model') . zen_hide_session_id(); if (isset($products_filter_name_model) && zen_not_null($products_filter_name_model)) { $products_filter_name_model = zen_db_input(zen_db_prepare_input($products_filter_name_model)); echo '<br/ >' . TEXT_INFO_SEARCH_DETAIL_FILTER . zen_db_prepare_input($products_filter_name_model); } if (isset($products_filter_name_model) && zen_not_null($products_filter_name_model)) { echo '<br/ >' . '<a href="' . zen_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a> '; } echo '</form>'; ?> </td> </tr> </table></td> </tr> <?php if ($products_filter > 0 or $products_filter_name_model != '') {
if ($check_categories == true) { $zc_skip_products = true; $zc_skip_categories = false; } if ($check_products > 0) { $zc_skip_products = false; $zc_skip_categories = true; } if ($zc_skip_products == true) { // toggle switch for display sort order $categories_products_sort_order_array = array(array('id' => '0', 'text' => TEXT_SORT_CATEGORIES_SORT_ORDER_PRODUCTS_NAME), array('id' => '1', 'text' => TEXT_SORT_CATEGORIES_NAME)); } else { // toggle switch for display sort order $categories_products_sort_order_array = array(array('id' => '0', 'text' => TEXT_SORT_PRODUCTS_SORT_ORDER_PRODUCTS_NAME), array('id' => '1', 'text' => TEXT_SORT_PRODUCTS_NAME), array('id' => '2', 'text' => TEXT_SORT_PRODUCTS_MODEL), array('id' => '3', 'text' => TEXT_SORT_PRODUCTS_QUANTITY), array('id' => '4', 'text' => TEXT_SORT_PRODUCTS_QUANTITY_DESC), array('id' => '5', 'text' => TEXT_SORT_PRODUCTS_PRICE), array('id' => '6', 'text' => TEXT_SORT_PRODUCTS_PRICE_DESC)); } echo TEXT_CATEGORIES_PRODUCTS_SORT_ORDER_INFO . zen_draw_form('set_categories_products_sort_order_form', FILENAME_CATEGORIES, '', 'get') . ' ' . zen_draw_pull_down_menu('reset_categories_products_sort_order', $categories_products_sort_order_array, $reset_categories_products_sort_order, 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('cID', $cPath) . zen_draw_hidden_field('cPath', $cPath) . zen_draw_hidden_field('pID', $_GET['pID']) . zen_draw_hidden_field('page', $_GET['page']) . zen_draw_hidden_field('action', 'set_categories_products_sort_order') . '</form>'; ?> </td> </tr> <?php } ?> <tr> <!-- body_text //--> <td width="100%" valign="top"> <?php require DIR_WS_MODULES . 'category_product_listing.php'; $heading = array(); $contents = array(); // Make an array of product types
<td width="100%" valign="top"><table border="0" width="95%" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?> </td> <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> </td> <?php // toggle switch for editor $editor_array = array(array('id' => '0', 'text' => TEXT_NONE), array('id' => '1', 'text' => TEXT_HTML_AREA)); echo TEXT_EDITOR_INFO . zen_draw_form('set_editor_form', FILENAME_NEWSLETTERS, '', 'get') . ' ' . zen_draw_pull_down_menu('reset_editor', $editor_array, $_SESSION['html_editor_preference_status'] == 'HTMLAREA' ? '1' : '0', 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('action', 'set_editor') . '</form>'; ?> </tr> </table></td> </tr> <?php if ($action == 'new') { $form_action = 'insert'; $parameters = array('title' => '', 'content' => '', 'content_html' => '', 'module' => ''); $nInfo = new objectInfo($parameters); if (isset($_GET['nID'])) { $form_action = 'update'; $nID = zen_db_prepare_input($_GET['nID']); $newsletter = $db->Execute("select title, content, content_html, module\r\n from " . TABLE_NEWSLETTERS . "\r\n where newsletters_id = '" . (int) $nID . "'"); $nInfo->objectInfo($newsletter->fields); } elseif ($_POST) {
$outputCapt .= MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_TRANS_ID . zen_draw_input_field('captauthid', MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_DEFAULT_TEXT, 'length="32"') . '<br />'; // confirm checkbox $outputCapt .= MODULE_PAYMENT_LINKPOINT_API_TEXT_CAPTURE_CONFIRM_CHECK . zen_draw_checkbox_field('captconfirm', '', false) . '<br />'; // comment field $outputCapt .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_TEXT_COMMENTS . '<br />' . zen_draw_textarea_field('captnote', 'soft', '50', '2', MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_DEFAULT_MESSAGE); // message text $outputCapt .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_SUFFIX; $outputCapt .= '<br /><input type="submit" name="btndocapture" value="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_CAPTURE_BUTTON_TEXT . '" />'; $outputCapt .= '</form>'; $outputCapt .= '</td></tr></table></td>' . "\n"; } if (method_exists($this, '_doVoid')) { $outputVoid .= '<td valign="top"><table class="noprint">' . "\n"; $outputVoid .= '<tr style="background-color : #dddddd; border-style : dotted;">' . "\n"; $outputVoid .= '<td class="main">' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_TITLE . '<br />' . "\n"; $outputVoid .= zen_draw_form('lpapivoid', FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=doVoid', 'post', '', true) . zen_hide_session_id(); $outputVoid .= MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID . zen_draw_input_field('voidauthid', MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_DEFAULT_TEXT, 'length="32"'); $outputVoid .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_TEXT_VOID_CONFIRM_CHECK . zen_draw_checkbox_field('voidconfirm', '', false); // comment field $outputVoid .= '<br /><br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_TEXT_COMMENTS . '<br />' . zen_draw_textarea_field('voidnote', 'soft', '50', '3', MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_DEFAULT_MESSAGE); // message text $outputVoid .= '<br />' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_SUFFIX; // confirm checkbox $outputVoid .= '<br /><input type="submit" name="ordervoid" value="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_LINKPOINT_API_ENTRY_VOID_BUTTON_TEXT . '" />'; $outputVoid .= '</form>'; $outputVoid .= '</td></tr></table></td>' . "\n"; } // prepare output based on suitable content components if (defined('MODULE_PAYMENT_LINKPOINT_API_STATUS') && MODULE_PAYMENT_LINKPOINT_API_STATUS != '') { $output = '<!-- BOF: lpapi admin transaction processing tools -->'; $output .= $outputStartBlock;
if (defined('NEWSONLY_SUBSCRIPTION_ENABLED')) { ?> <tr style="padding-top:10px;vertical-align:bottom;"> <td><?php echo TABLE_HEADING_SUBSCRIPTION_STATUS . ': ' . substr(TEXT_SUBSCRIPTION_STATUS_CUSTOMER, 0, 1) . '=' . TEXT_SUBSCRIPTION_STATUS_CUSTOMER . ' ' . substr(TEXT_SUBSCRIPTION_STATUS_CONFIRMED, 0, 1) . '=' . TEXT_SUBSCRIPTION_STATUS_CONFIRMED . ' ' . substr(TEXT_SUBSCRIPTION_STATUS_UNCONFIRMED, 0, 1) . '=' . TEXT_SUBSCRIPTION_STATUS_UNCONFIRMED; ?> </td> <td id="searchbox" class="smallText" style="vertical-align:middle;text-align:right;"> <?php echo zen_draw_form('search', FILENAME_SUBSCRIPTION_MANAGER, '', 'get', '', true); // show reset search if (isset($_GET['filter']) && zen_not_null($_GET['filter'])) { echo '<a href="' . zen_href_link(FILENAME_SUBSCRIPTION_MANAGER, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a> '; } echo HEADING_TITLE_SEARCH_DETAIL . '<span style="cursor:pointer;" onclick="dpop();">[?]</span> ' . zen_draw_input_field('filter') . zen_hide_session_id() . ' ' . zen_image_submit('button_search.gif', IMAGE_SEARCH); if (isset($_GET['filter']) && zen_not_null($_GET['filter'])) { $keywords = zen_db_input(zen_db_prepare_input($_GET['filter'])); echo '<br/ >' . TEXT_INFO_SEARCH_DETAIL_FILTER . $keywords; } ?> </form> </td> </tr> </table></td> </tr> <?php // Sort Listing $list_order = empty($_GET['list_order']) ? 'id-desc' : $_GET['list_order']; switch ($list_order) { case 'id-asc':