[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 源代码 column_single.php

Zen Cart 源代码 column_single.php




下载文件

文件名: column_single.php
文件类型: PHP文件
文件大小: 1.87 KiB
MD5: ac28e8a2a43edc17bf666aa057f739f1

column_single.php - 关闭高亮
  1. <?php
  2. /**
  3.  * column_single module
  4.  *
  5.  * @package templateStructure
  6.  * @copyright Copyright 2003-2006 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: column_single.php 4274 2006-08-26 03:16:53Z drbyte $
  10.  */
  11. if (!defined('IS_ADMIN_FLAG')) {
  12.   die('Illegal Access');
  13. }
  14. // Check if there are boxes for the column
  15. $column_box_default='tpl_box_default_single.php';
  16. $column_single_display= $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where (layout_box_location=0 or layout_box_location=1) and layout_box_status_single=1 and layout_template ='" . $template_dir . "'" . ' order by LPAD(layout_box_sort_order_single,11,"0")');
  17. // safety row stop
  18. $box_cnt=0;
  19. while (!$column_single_display->EOF and $box_cnt < 100) {
  20.   $box_cnt++;
  21.   if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $column_single_display->fields['layout_box_name']) or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_single_display->fields['layout_box_name']) ) {
  22. ?>
  23. <?php
  24. //$column_box_spacer = 'column_box_spacer_single';
  25. if (defined('BOX_WIDTH_SINGLE')) {
  26.   $column_width = BOX_WIDTH_SINGLE;
  27. } else {
  28.   $column_width = BOX_WIDTH_LEFT;
  29. }
  30. if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_single_display->fields['layout_box_name']) ) {
  31.   $box_id = zen_get_box_id($column_single_display->fields['layout_box_name']);
  32.   require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_single_display->fields['layout_box_name']);
  33. } else {
  34.   $box_id = zen_get_box_id($column_single_display->fields['layout_box_name']);
  35.   require(DIR_WS_MODULES . 'sideboxes/' . $column_single_display->fields['layout_box_name']);
  36. }
  37.   } // file_exists
  38.   $column_single_display->MoveNext();
  39. } // while column_single
  40. $box_id = '';
  41. ?>