[ 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/sideboxes/ -> currencies.php (source)

   1  <?php
   2  /**

   3   * currencies sidebox - allows customer to select from available currencies

   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: currencies.php 2834 2006-01-11 22:16:37Z birdbrain $

  10   */
  11  
  12  // test if box should display

  13    $show_currencies= false;
  14  
  15    // don't display on checkout page:

  16    if (substr($current_page, 0, 8) != 'checkout') {
  17      $show_currencies= true;
  18    }
  19  
  20    if ($show_currencies == true) {
  21      if (isset($currencies) && is_object($currencies)) {
  22  
  23        reset($currencies->currencies);
  24        $currencies_array = array();
  25        while (list($key, $value) = each($currencies->currencies)) {
  26          $currencies_array[] = array('id' => $key, 'text' => $value['title']);
  27        }
  28  
  29        $hidden_get_variables = '';
  30        reset($_GET);
  31        while (list($key, $value) = each($_GET)) {
  32          if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
  33            $hidden_get_variables .= zen_draw_hidden_field($key, $value);
  34          }
  35        }
  36  
  37        require($template->get_template_dir('tpl_currencies.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_currencies.php');
  38        $title =  '<label>' . BOX_HEADING_CURRENCIES . '</label>';
  39        $title_link = false;
  40        require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  41      }
  42    }
  43  ?>


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