diff options
Diffstat (limited to 'final/app/include/ludo/html_elements.inc.php')
-rw-r--r-- | final/app/include/ludo/html_elements.inc.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/final/app/include/ludo/html_elements.inc.php b/final/app/include/ludo/html_elements.inc.php index 35eaa68..a252662 100644 --- a/final/app/include/ludo/html_elements.inc.php +++ b/final/app/include/ludo/html_elements.inc.php @@ -16,9 +16,9 @@ echo '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n" <script type="text/javascript" src="script.js"></script> <?php //print_r($_COOKIE['aworcustom_css']); - if ( /*isset($_COOKIE['aworcustom_css'])*/ false ) + if ( isset($_COOKIE['aworchoose_css']) ) { - $cssfilemain = $_COOKIE['aworcustom_css']; + $cssfilemain = $_COOKIE['aworchoose_css']; } else { @@ -27,7 +27,7 @@ echo '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n" } echo ' <link href="css/' . $cssfilemain . '.css" rel="stylesheet" type="text/css" />' . "\n"; echo ' <link href="css/' . $cssfilemain . '_nohelp.css" rel="stylesheet" type="text/css" title="nohelp" />' . "\n"; - +/* if ( isset($CONFIG['CSS']['CHOOSER_LIST']) ) { foreach ( $CONFIG['CSS']['CHOOSER_LIST'] as $cssname => $cssfile ) @@ -39,6 +39,7 @@ echo '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n" } } } +*/ ?> <link href="css/print.css" rel="alternate stylesheet" type="text/css" title="print"/> </head> @@ -101,15 +102,15 @@ function generate_html_div_css_chooser() if ( ! is_array($CONFIG['CSS']['CHOOSER_LIST']) ) { return false; } - if ( isset($_COOKIE['aworcustom_css'] ) ) { $css_selected=$_COOKIE['aworcustom_css']; }else{$css_selected='';}; + if ( isset($_COOKIE['aworchoose_css'] ) ) { $css_selected=$_COOKIE['aworchoose_css']; }else{$css_selected='';}; echo '<div class="css_chooser">' . "\n"; //print_r($_COOKIE); echo ' <select id="switcherCSS" onchange="switchCSS();">' . "\n"; foreach ( $CONFIG['CSS']['CHOOSER_LIST'] as $file => $name ) { - echo ' <option value="' . $file . '"'; - if ( $file == $css_selected ) { echo ' selected="selected"'; } - echo '>' . htmlentities($name, ENT_QUOTES) . '</option>' /*. "$DEBUG:file=$file, css_selected=$css_selected"*/ . "\n"; + echo ' <option value="' . $name . '"'; + if ( $name == $css_selected ) { echo ' selected="selected"'; } + echo '>' . htmlentities($file, ENT_QUOTES) . '</option>' /*. "$DEBUG:file=$file, css_selected=$css_selected"*/ . "\n"; } echo ' </select>'. "\n"; echo '</div>'. "\n"; @@ -120,10 +121,10 @@ function generate_html_div_footer() ?> <div id="footer"> <ul> - <li class="left"> + <li class="csschooser"> <?php generate_html_div_css_chooser(); ?> </li> - <li class="center"> + <li class="wwwc"> <a href="http://validator.w3.org/check/referer"> <img src="./images/vxhtml.gif" alt="Validate" height="31" width="88" /> </a> @@ -134,8 +135,8 @@ function generate_html_div_footer() <img src="./images/wai.gif" alt="W3C-WAI level A conformance icon" height="31" width="88" /> </a> </li> - <li class="right"> - <span class="discret">Application réalisée par Jérémie Dénoyer,<br /> Ludovic Pouzenc, Julien Séré et Andriana Semouchtchak</span> + <li class="author"> + Application réalisée par :<ul><li>Jérémie Dénoyer</li><li>Ludovic Pouzenc</li><li>Julien Séré</li><li>Andriana Semouchtchak</li></ul> </li> </ul> </div> |