Show
Ignore:
Timestamp:
04/19/05 00:20:11 (4 years ago)
Author:
asterix
Message:

now it shoulb be ok for having submenus when we want them

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • www-website/Design.php

    r1137 r1139  
    7777  $_SESSION['lang'] = $language; 
    7878 
    79         $menu = array (_("Home") => "index.php?lang=$language", 
    80                 _("Screenshots") => "screenshots.php?lang=$language", 
    81                 _("Download") => "downloads.php?lang=$language", 
    82                 _("Documentation") => "docs.php?lang=$language", 
    83                 _("Development") => "dev.php?lang=$language"); 
     79        $menu = array (_("Home") => "index.php", 
     80                _("Screenshots") => "screenshots.php", 
     81                _("Download") => "downloads.php", 
     82                _("Documentation") => "docs.php", 
     83                _("Development") => "dev.php"); 
    8484 
    8585   switch($_SERVER['SCRIPT_NAME']) { 
     
    139139   while ( list ($libelle, $ancre) = each ($menu)){ 
    140140        echo "     <li>\n     "; 
    141         echo Ancre ($ancre, $libelle); 
     141        echo Ancre ($ancre."?lang=$language", $libelle); 
    142142 
    143143        switch("/".$ancre) { 
    144144        case $_SERVER['SCRIPT_NAME']: 
    145145                if (isset($menu2)) { 
    146                 echo "\n     <ul class=\"submenu\">\n"; 
     146                        echo "\n     <ul class=\"submenu\">\n"; 
    147147                        while ( list ($libelle2, $ancre2) = each ($menu2)){ 
    148148                                echo "      <li class=\"submenu\">\n      ";