[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/includes/boxes/ -> currencies.php (source)

   1  <?php
   2  /*

   3  $Id: currencies.php 3 2006-05-27 04:59:07Z user $

   4  

   5    osCMax Power E-Commerce

   6    http://oscdox.com

   7  

   8    Copyright 2006 osCMax

   9  

  10    Released under the GNU General Public License

  11  */
  12  
  13  // Most of this file is changed or moved to BTS - Basic Template System - format.

  14  
  15    if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
  16        if (isset($currencies) && is_object($currencies)) {
  17  ?>
  18  <!-- currencies //-->
  19  <?php
  20      $boxHeading = BOX_HEADING_CURRENCIES;
  21      $corner_left = 'square';
  22      $corner_right = 'square';
  23      $box_base_name = 'currencies'; // for easy unique box template setup (added BTSv1.2)

  24      $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)

  25      $boxContent_attributes = ' align="center"';
  26  
  27      reset($currencies->currencies);
  28      $currencies_array = array();
  29      while (list($key, $value) = each($currencies->currencies)) {
  30        $currencies_array[] = array('id' => $key, 'text' => $value['title']);
  31      }
  32  
  33      $hidden_get_variables = '';
  34      reset($HTTP_GET_VARS);
  35      while (list($key, $value) = each($HTTP_GET_VARS)) {
  36        if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
  37          $hidden_get_variables .= tep_draw_hidden_field($key, $value);
  38        }
  39      }
  40  
  41      $boxContent = tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');
  42  /*  deleted style for CSS layout paulm

  43      $boxContent .= tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" style="width: 100%"');

  44  */
  45      $boxContent .= tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();"');
  46      $boxContent .= $hidden_get_variables;
  47      $boxContent .= tep_hide_session_id();
  48      $boxContent .= '</form>';
  49  
  50  
  51  include (bts_select('boxes', $box_base_name)); // BTS 1.5

  52  
  53  }
  54    $boxContent_attributes = '';
  55   }
  56  ?>
  57  <!-- currencies eof//-->


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7