execRequete($query); $query="select * from organisme_gestion"; $organismeGestion=$db->execRequete($query); $query="select * from mission"; $mission=$db->execRequete($query); $query="select * from valeur_mission"; $valeurMission=$db->execRequete($query); $query="select * from type_service"; $typeService=$db->execRequete($query); $query="select * from public order by label_public"; $public=$db->execRequete($query); $query = "select distinct ID_REGION, NOM_REGION from region order by NOM_REGION"; $region = $db->execRequete($query); $query="select * from type_accompagnement order by label_type_acc"; $typeAcc=$db->execRequete($query); switch ($page) { case 'recherche': include "php/recherche.php"; break; case 'resultat': include "php/resultat.php"; break; case 'resultatPrint': include "php/resultat.php"; break; case 'detail': include "php/detail_fiche.php"; break; case 'detailPrint': include "php/detail_fiche.php"; break; case 'inscription': include "php/inscription.php"; break; case 'inscriptionEnvoi': include "php/inscription_envoi.php"; break; case 'modification': include "php/modification.php"; break; case 'modificationEnvoi': include "php/modification_envoi.php"; break; case 'detailValeurMission': include "php/detail_valeur_mission.php"; break; default : include "php/recherche.php"; } function dateAffichage($_date) { /*--- Transforme un timeStamp en date standard ---*/ return date("d/m/Y",$_date); } /*--- Fonction de recherche et remplacement des balises [#PRINCIPAL] -----------*/ function remplaceBaliseMain($buffer) { global $mainContenu; return (ereg_replace('#CORPS', $mainContenu , $buffer)); } /*--- Gestion CACHE ---*/ ob_start("remplaceBaliseMain"); switch ($page) { case 'detailPrint': include "print.htm"; break; case 'resultatPrint': include "print.htm"; break; case 'detailValeurMission': include "print.htm"; break; default : include "modele.htm"; } ob_end_flush(); ?>