1 |
<?php |
2 |
/** |
3 |
* @package openads |
4 |
* @version SVN : $Id: dossier_instruction_tous_clotures.inc.php 5220 2015-09-24 17:50:06Z fmichon $ |
5 |
*/ |
6 |
|
7 |
//Parametre de déclenchement de l'optimisation SQL du lien lien_dossier_demandeur |
8 |
$optimisation_demandeurs = true; |
9 |
|
10 |
// |
11 |
include "../sql/pgsql/dossier_instruction.inc.php"; |
12 |
|
13 |
// |
14 |
$champAffiche = array_merge($champAffiche_debut_commun, array( |
15 |
'avis_decision.libelle as "'._("avis_decision").'"', |
16 |
$instructeur_nom, |
17 |
), $champAffiche_fin_commun); |
18 |
|
19 |
// |
20 |
$selection .= " |
21 |
AND dossier.division = ".$_SESSION['division']." |
22 |
AND etat.statut='cloture' |
23 |
"; |
24 |
|
25 |
/** |
26 |
* Gestion de la clause WHERE => $selection |
27 |
*/ |
28 |
// Filtre listing standard |
29 |
if ($_SESSION["niveau"] == "2") { |
30 |
// Filtre MULTI |
31 |
$selection .= ""; |
32 |
} else { |
33 |
// Filtre MONO |
34 |
$selection .= " AND (dossier.om_collectivite = '".$_SESSION["collectivite"]."') "; |
35 |
} |
36 |
|
37 |
|
38 |
?> |