2009-03-03 16:09:27 +00:00
|
|
|
<?php
|
2009-07-09 12:21:23 +00:00
|
|
|
if (!$_SESSION['connected']) die();
|
|
|
|
if ($_SESSION['tabInfo']['idClient']==34){ $_SESSION['nowAuthorized']=FALSE; }
|
2009-02-17 13:14:53 +00:00
|
|
|
|
2010-05-04 09:29:15 +00:00
|
|
|
/*
|
|
|
|
* Pour le lien provenant du menu on efface la session
|
|
|
|
*/
|
|
|
|
if (isset($_REQUEST['menu'])){
|
|
|
|
unset($_SESSION['formR']);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Pour les liens affectant les valeurs dse champs du formulaire
|
|
|
|
*/
|
2010-05-04 08:19:45 +00:00
|
|
|
if (isset($_REQUEST['formR'])){
|
|
|
|
$formR = $_REQUEST['formR'];
|
2010-05-04 09:29:15 +00:00
|
|
|
/*
|
|
|
|
* Si la session est rempli alors on affecte les valeurs
|
|
|
|
* pour les champs du formulaire
|
|
|
|
*/
|
2010-05-04 08:19:45 +00:00
|
|
|
} elseif (isset($_SESSION['formR'])) {
|
2010-05-04 09:29:15 +00:00
|
|
|
$formR = $_SESSION['formR'];
|
2010-03-02 15:50:11 +00:00
|
|
|
}
|
2009-07-22 07:12:37 +00:00
|
|
|
|
|
|
|
if(!isset($vueRecherche)){ $vueRecherche = $_REQUEST['vue']; }
|
2009-02-26 17:56:35 +00:00
|
|
|
|
|
|
|
switch ($vueRecherche) {
|
2009-02-17 13:14:53 +00:00
|
|
|
case 'ent':
|
2009-07-22 07:12:37 +00:00
|
|
|
require_once 'recherche/recherche_ent.php';
|
2009-02-17 13:14:53 +00:00
|
|
|
break;
|
|
|
|
case 'enq':
|
2009-07-22 07:12:37 +00:00
|
|
|
require_once 'recherche/recherche_enq.php';
|
2009-02-17 13:14:53 +00:00
|
|
|
break;
|
|
|
|
case 'dir':
|
2009-07-22 13:06:17 +00:00
|
|
|
require_once 'recherche/recherche_dir.php';
|
2009-02-17 13:14:53 +00:00
|
|
|
break;
|
2009-08-27 09:22:17 +00:00
|
|
|
case 'histo':
|
|
|
|
require_once 'recherche/recherche_histo.php';
|
|
|
|
break;
|
2009-10-06 08:31:48 +00:00
|
|
|
case 'annoncelist':
|
|
|
|
require_once 'recherche/recherche_annonceslist.php';
|
|
|
|
break;
|
|
|
|
case 'annonce':
|
|
|
|
require_once 'recherche/recherche_annonces.php';
|
2010-03-02 15:50:11 +00:00
|
|
|
break;
|
2009-02-17 13:14:53 +00:00
|
|
|
case 'list_pre':
|
2010-05-04 09:29:15 +00:00
|
|
|
require_once 'recherche/session.php';
|
|
|
|
$formR = recherche_element(0);
|
2009-02-17 13:14:53 +00:00
|
|
|
case 'list':
|
2009-07-22 13:06:17 +00:00
|
|
|
require_once 'recherche/recherche_list.php';
|
2010-02-10 17:27:03 +00:00
|
|
|
//On efface de la session les éléments suivants $_SESSION['tabInfo']['entrep']
|
2009-03-10 15:07:24 +00:00
|
|
|
unset($_SESSION['tabInfo']['entrep']);
|
2009-02-17 13:14:53 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2009-07-22 07:12:37 +00:00
|
|
|
?>
|