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
|
<?session_start();?>
<?php
header("Cache-Control: no-cache");
header("Pragma: no-cache");
if (isset($_POST['i']))
{
$choix = $_POST['i'];
}
else
{
$choix = $_GET['i'];
}
switch ($choix)
{
// PAGE QUI CONCERNE AGENCE ET SERVICE
case "gestion_model";
$a = "code/model/gestion_model.php";
break;
case "ajout_model";
$a = "code/model/ajout_model.php";
break;
case "verif_ajout_model";
$a = "code/model/verif_ajout_model.php";
break;
case "gestion_matos";
$a = "code/materiel/gestion_matos.php";
break;
case "ajout_matos";
$a = "code/materiel/ajout_modification/ajout_matos.php";
break;
case "select_modif_model";
$a = "code/model/modif_model/select_modif_model.php";
break;
case "modif_model";
$a = "code/model/modif_model/modif_model.php";
break;
case "verif_ajout_matos";
$a = "code/materiel/ajout_modification/verif_ajout_matos.php";
break;
case "visualisation";
$a = "code/materiel/ajout_modification/visualisation/visu.php";
break;
case "modification_matos";
$a = "code/materiel/ajout_modification/modification_matos.php";
break;
default:
$a= "informations/bienvenue.php";
break;
}
?>
<!-- Ajout de la feuille de style -->
<link href="design/style.css" rel="stylesheet" type="text/css">
<!-- Ajout du fichier fonction.js qui contient toute les fonctions javascript -->
<script src="code/lib/fonction.js"></script>
<?php
//session_start();
//Gestion du cache des navigateurs
//header("Cache-Control: no-cache");
//header("Pragma: no-cache");
//inclusion du fichier connexion.php qui contient toute les parametres de connexion à la base
include_once (dirname(__file__))."/code/parametre/connexion.php";
//initialisation des parametres des fenetre
$ttotal = 960 ;
$tfenetre = ($ttotal - 157) -20;
//affichage des menu et de la page principal avec valeur par defaut $page = "bienvenue.htm"
?> |
Partager