1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Choix d'une feuille de styles</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<?php $sitestyle = isset($_COOKIE['sitestyle']) ? $_COOKIE['sitestyle'] : 'ecran'; ?>
<link rel="stylesheet" type="text/css" href="css/<?php echo $sitestyle; ?>.css" media="screen" title="Présentation mémorisée par session" />
<link rel="alternate stylesheet" type="text/css" href="css/ecran.css" media="screen" title="Normale" />
<link rel="alternate stylesheet" type="text/css" href="css/em.css" media="screen" title="Gros caractères" />
<link rel="alternate stylesheet" type="text/css" href="css/fondnoir.css" media="screen" title="Fond noir" />
<link rel="alternate stylesheet" type="text/css" href="css/fondnoir_em.css" media="screen" title="Fond noir Gros caractères" />
<link rel="alternate stylesheet" type="text/css" href="css/minimale.css" media="screen" title="Minimale" />
</head>
<body>
<form id="switcher" method="post" action="switcher.php">
<label for="set" id="presentation">Présentation :</label>
<select id="set" name="set">
<option value="ecran" selected="selected">Normale</option>
<option value="em">Gros caractères</option>
<option value="fondnoir">Fond noir</option>
<option value="fondnoir_em">Fond noir Gros caractères</option>
<option value="minimale">Minimale</option>
</select>
<input type="submit" value="Envoi" alt="Envoi" />
<input name="url" type="hidden" value="<?php echo $_SERVER['PHP_SELF']; ?>" />
</form>
</body>
</html> |