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

   1  <?php
   2  /*
   3    $Id: languages.php,v 1.15 2003/06/09 22:10:48 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  <!-- languages //-->
  14            <tr>
  15              <td>
  16  <?php
  17    $info_box_contents = array();
  18    $info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES);
  19  
  20    new infoBoxHeading($info_box_contents, false, false);
  21  
  22    if (!isset($lng) || (isset($lng) && !is_object($lng))) {
  23      include(DIR_WS_CLASSES . 'language.php');
  24      $lng = new language;
  25    }
  26  
  27    $languages_string = '';
  28    reset($lng->catalog_languages);
  29    while (list($key, $value) = each($lng->catalog_languages)) {
  30      $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
  31    }
  32  
  33    $info_box_contents = array();
  34    $info_box_contents[] = array('align' => 'center',
  35                                 'text' => $languages_string);
  36  
  37    new infoBox($info_box_contents);
  38  ?>
  39              </td>
  40            </tr>
  41  <!-- languages_eof //-->


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