[ Index ]
 

Code source de osCommerce 2.2ms2-060817

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

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

   1  <?php
   2  /*
   3    $Id: currencies.php,v 1.16 2003/02/12 20:27:31 hpdl Exp $
   4  
   5    osCommerce, Open Source E-Commerce Solutions
   6    http://www.oscommerce.com
   7  
   8    Copyright (c) 2003 osCommerce
   9  
  10    Released under the GNU General Public License
  11  */
  12  
  13    if (isset($currencies) && is_object($currencies)) {
  14  ?>
  15  <!-- currencies //-->
  16            <tr>
  17              <td>
  18  <?php
  19      $info_box_contents = array();
  20      $info_box_contents[] = array('text' => BOX_HEADING_CURRENCIES);
  21  
  22      new infoBoxHeading($info_box_contents, false, false);
  23  
  24      reset($currencies->currencies);
  25      $currencies_array = array();
  26      while (list($key, $value) = each($currencies->currencies)) {
  27        $currencies_array[] = array('id' => $key, 'text' => $value['title']);
  28      }
  29  
  30      $hidden_get_variables = '';
  31      reset($HTTP_GET_VARS);
  32      while (list($key, $value) = each($HTTP_GET_VARS)) {
  33        if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
  34          $hidden_get_variables .= tep_draw_hidden_field($key, $value);
  35        }
  36      }
  37  
  38      $info_box_contents = array();
  39      $info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'),
  40                                   'align' => 'center',
  41                                   'text' => tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());
  42  
  43      new infoBox($info_box_contents);
  44  ?>
  45              </td>
  46            </tr>
  47  <!-- currencies_eof //-->
  48  <?php
  49    }
  50  ?>


Généré le : Mon Nov 26 19:48:25 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics