[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/modules/ -> column_right.php (source)

   1  <?php
   2  /**

   3   * column_right 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_right.php 4274 2006-08-26 03:16:53Z drbyte $

  10   */
  11  if (!defined('IS_ADMIN_FLAG')) {
  12    die('Illegal Access');
  13  }
  14  $column_box_default='tpl_box_default_right.php';
  15  // Check if there are boxes for the column

  16  $column_right_display= $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where layout_box_location=1 and layout_box_status=1 and layout_template ='" . $template_dir . "'" . ' order by layout_box_sort_order');
  17  
  18  // safety row stop

  19  $box_cnt=0;
  20  while (!$column_right_display->EOF and $box_cnt < 100) {
  21    $box_cnt++;
  22    if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $column_right_display->fields['layout_box_name']) or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_right_display->fields['layout_box_name']) ) {
  23  ?>
  24  <?php
  25  //$column_box_spacer = 'column_box_spacer_right';

  26  $column_width = BOX_WIDTH_RIGHT;
  27  if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_right_display->fields['layout_box_name']) ) {
  28    $box_id = zen_get_box_id($column_right_display->fields['layout_box_name']);
  29    require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_right_display->fields['layout_box_name']);
  30  } else {
  31    $box_id = zen_get_box_id($column_right_display->fields['layout_box_name']);
  32    require(DIR_WS_MODULES . 'sideboxes/' . $column_right_display->fields['layout_box_name']);
  33  }
  34    } // file_exists

  35    $column_right_display->MoveNext();
  36  } // while column_right

  37  $box_id = '';
  38  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics