[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
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 ?>
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 |
![]() |