| 12
 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
 
 |  
<?session_start();?>
<?php
header("Cache-Control: no-cache");
header("Pragma: no-cache");
if (isset($_POST['i']))
{
$choix = $_POST['i'];
}
else
{
	if (isset($_GET['i']))
	{
	$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"
?>
<html>
<head><title>SALF PARC</title></head>
<body>
<table width="<?php echo $ttotal ; ?>" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="160"><?php include_once (dirname(__file__))."/menu/menu1.php"; ?></td>
    <td width="<?php echo $tfenetre ?>" valign="top" align="center" rowspan="4"><?php include_once (dirname(__file__))."/".$a ; ?>
    </td>
  </tr>
  <tr>
    <td><?php include_once (dirname(__file__))."/menu/menu2.php"; ?></td>
  </tr>
  <tr>
    <td><?php include_once (dirname(__file__))."/menu/menu3.php"; ?></td>
  </tr>
<tr>
<td><?php include_once (dirname(__file__))."/menu/menu4.php"; ?></td>
</tr>
</table>
<table width="960" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="42" valign="bottom" background="<?php echo (dirname(__file__))."/images/footer.jpg"; ?>"><div align="right" class="blanc_pieddepage">© SALF 2006 </div></td>
  </tr>
</table>
</body>
 
</html> | 
Partager