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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
<style type="text/css">
body
{
background-color:#F9C65B;
width:800px;
margin:auto;
}
#global
{
background-color: white;
width: 800px;
margin: auto;
}
#header
{
background-image:url(haut.jpg);
width:800px;
height:124px;
}
#menu
{
float:left;
width:150px;
background-color:#FFFFFF;
}
#menu_droite
{
float:left;
background-color:#FFFFFF;
width:100px;
height:100%;
}
#content
{
background-color:#FFFFFF;
width:550px;
margin:auto;
float: left;
}
#footer
{
background-image:url(bas.jpg);
width:800px;
height:125px;
float:left;
}
img
{
border:none;
}
</style>
</head>
<body>
<div id="global">
<div id="header">
</div>
<?php
$menu = $_GET['menu']; // tu récupères ta variable dès le début de la page pour pouvoir l exploiter ensuite
?>
<div id="menu">
<a href="index.php?menu=test"><img src="Pictures/images/Sans-titre-3_01.gif" /></a>
<img src="Pictures/images/Sans-titre-3_02.gif" />
<img src="Pictures/images/Sans-titre-3_03.gif" />
<img src="Pictures/images/Sans-titre-3_04.gif" />
<img src="Pictures/images/Sans-titre-3_05.gif" />
</div>
<div id="content">
<?php
switch ($menu) {
case "test":
include "test.php";
break;
case default:
include "test.php";
break;
// au cas où la variable menu n a pas de valeur donc valeur: par défaut (comme par exemple à l ouverture de la page) on envoie la page test.php quand même.
}
?>
</div>
<div id="menu_droite">
</div>
<div id="footer">
</div>
</div>
</body>
</html> |
Partager