<!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" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
<!--
body {
margin: 0;
padding:0;
position: absolute;
width: 100%;
height: 100%;
font-family: verdana, arial, sans-serif;
}
.haut {
width: auto;
height: 126px;
background-color: #06C;
color: #fff;
padding: 10px;
}
.haut h1{
font-size: 2em;
}
.haut h1 a{
color: #fff;
text-decoration: none;
}
.conteneur {
height: 338px;
width: 100%;
}
#menu {
position: absolute;
left: 0;
width: 180px;
height: 338px;
background-image: url(gauche.gif);
}
#frame {
margin-left: 180px; /* on place ce bloc à droite du bloc menu de 180px de large */
width: auto;
height: 338px;
overflow: auto; /* cette propriété va permettre le scroll de ce bloc */
font-size: 14px;
}
.bas {
width: auto;
height: 30px;
background-color: #06C;
color: #fff;
font-size: 12px;
padding: 10px;
}
-->
</style>
<?php
/*Titres des pages*/
$pages=array(
'accueil'=>'Accueil',
'descriptif'=>'Descriptif',
'presse'=>'Presse',
'video'=>'Vidéo'
);
?>
<title>[B]<?php
if(isset($_GET['page']) && array_key_exists($_GET['page'],$pages))
echo $pages[$_GET['page']];
else
echo $pages['accueil'];
?>[/B]</title>
</head>
<body>
<div class="haut">
<h1><a href="index.php">Mon site .com</a></h1>
</div>
<div id="conteneur">
<div id="menu">
<ul>
<li><a href="index.php?page=accueil">Accueil du site</a></li>
<li><a href="index.php?page=descriptif">Descriptif</a></li>
<li><a href="index.php?page=presse">Presse</a></li>
<li><a href="index.php?page=video">Vidéo</a></li>
</ul>
</div>
<div id="frame">
<?php
$pages=array(
'accueil'=>'accueil',
'descriptif'=>'descriptif',
'presse'=>'presse',
'video'=>'video'
);
if(isset($_GET['page']) && array_key_exists($_GET['page'],$pages))
include $pages[$_GET['page']].'.php';
else
include 'accueil.php';
?>
</div>
</div>
<div class="bas">Cette partie basse reste fixe</div>
</body>
</html>