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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| <html>
<head>
<title>index</title>
</head>
<style type="text/css">
.blue {
border-style:solid;
border-width:1px;
background-color:dodgerblue;
height:700px;
width:150px;
text-align:left;
float:left;
padding:10px;
}
.yellow {
border-style:solid;
border-width:1px;
background-color:yellow;
height:700px;
width:800px;
float:left;
padding:10px;
}
</style>
</head>
<body>
<div class="blue">
<?
include ('menu.htm')
?>
</div>
<div class="yellow">
<?
$pageOK = array('accueil' => 'accueil.php',
'verification' => 'verification.php',
'affichage_email' => 'affichage_email.php'
);
// On teste que le paramètre d'url existe et qu'il est bien autorisé
// -----------------------------------------------------------------
if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])) ) {
include($pageOK[$_GET['page']]); // Nous appelons le contenu central de la page
} else {
include('accueil.php'); // Page par défaut quant elle n'existe pas dans le tableau
}
?>
</div>
</body> |
Partager