[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * Side Box Template 4 * 5 * @package templateSystem 6 * @copyright Copyright 2003-2005 Zen Cart Development Team 7 * @copyright Portions Copyright 2003 osCommerce 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: tpl_banner_box_all.php 2982 2006-02-07 07:56:41Z birdbrain $ 10 */ 11 $content = ''; 12 $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">'; 13 // select banners_group to be used 14 $new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET_ALL); 15 16 // secure pages 17 switch ($request_type) { 18 case ('SSL'): 19 $my_banner_filter=" and banners_on_ssl= " . "1 "; 20 break; 21 case ('NONSSL'): 22 $my_banner_filter=''; 23 break; 24 } 25 26 $sql = "select banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search . $my_banner_filter . " order by banners_sort_order"; 27 $banners_all = $db->Execute($sql); 28 29 30 31 // if no active banner in the specified banner group then the box will not show 32 $banner_cnt = 0; 33 while (!$banners_all->EOF) { 34 $banner_cnt++; 35 $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET_ALL); 36 $content .= zen_display_banner('static', $banners_all->fields['banners_id']); 37 // add spacing between banners 38 if ($banner_cnt < $banners_all->RecordCount()) { 39 $content .= '<br /><br />'; 40 } 41 $banners_all->MoveNext(); 42 } 43 $content .= '</div>'; 44 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |