extranet/www/pages/recherche.php

43 lines
1.1 KiB
PHP
Raw Normal View History

<?php
if (!$_SESSION['connected']) die();
if ($_SESSION['tabInfo']['idClient']==34){ $_SESSION['nowAuthorized']=FALSE; }
2010-05-04 08:19:45 +00:00
if (isset($_REQUEST['formR'])){
$formR = $_REQUEST['formR'];
} elseif (isset($_SESSION['formR'])) {
$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']; }
switch ($vueRecherche) {
case 'ent':
2009-07-22 07:12:37 +00:00
require_once 'recherche/recherche_ent.php';
break;
case 'enq':
2009-07-22 07:12:37 +00:00
require_once 'recherche/recherche_enq.php';
break;
case 'dir':
2009-07-22 13:06:17 +00:00
require_once 'recherche/recherche_dir.php';
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;
case 'list_pre':
2009-08-12 10:16:34 +00:00
$formR = unserialize( @gzuncompress($_SESSION['list_pre']) );
case 'list':
$firephp->info('Lancement de la recherche...');
2009-07-22 13:06:17 +00:00
require_once 'recherche/recherche_list.php';
//On efface de la session les éléments suivants $_SESSION['tabInfo']['entrep']
unset($_SESSION['tabInfo']['entrep']);
break;
default:
break;
}
2009-07-22 07:12:37 +00:00
?>