[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 tpl_banner_box_all.php

Zen Cart 源代码 tpl_banner_box_all.php




下载文件

文件名: tpl_banner_box_all.php
文件类型: PHP文件
文件大小: 1.46 KiB
MD5: 7e58e9d90dbdcdbc0b61fbe5805b5851

tpl_banner_box_all.php - 关闭高亮
  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. ?>


cron