1 |
<?php |
2 |
//$Id$ |
3 |
//gen openMairie le 28/11/2012 18:33 |
4 |
|
5 |
$DEBUG=0; |
6 |
$serie=15; |
7 |
$ico="../img/ico_application.png"; |
8 |
$ent = _("application")." -> "._("groupe"); |
9 |
if(!isset($premier)) $premier=''; |
10 |
if(!isset($recherche1)) $recherche1=''; |
11 |
if(!isset($tricolsf)) $tricolsf=''; |
12 |
if(!isset($premiersf)) $premiersf=''; |
13 |
if(!isset($selection)) $selection=''; |
14 |
if(!isset($retourformulaire)) $retourformulaire=''; |
15 |
if (isset($idx) && $idx != ']' && trim($idx) != '') { |
16 |
$ent .= "-> ".$idx." "; |
17 |
} |
18 |
if (isset($idz) && trim($idz) != '') { |
19 |
$ent .= " ".strtoupper($idz)." "; |
20 |
} |
21 |
// FROM |
22 |
$table = DB_PREFIXE."groupe |
23 |
LEFT JOIN ".DB_PREFIXE."genre |
24 |
ON groupe.genre=genre.genre "; |
25 |
// SELECT |
26 |
$champAffiche = array( |
27 |
'groupe.groupe as "'._("groupe").'"', |
28 |
'groupe.code as "'._("code").'"', |
29 |
'groupe.libelle as "'._("libelle").'"', |
30 |
'genre.libelle as "'._("genre").'"', |
31 |
); |
32 |
// |
33 |
$champNonAffiche = array( |
34 |
'groupe.description as "'._("description").'"', |
35 |
); |
36 |
// |
37 |
$champRecherche = array( |
38 |
'groupe.groupe as "'._("groupe").'"', |
39 |
'groupe.code as "'._("code").'"', |
40 |
'groupe.libelle as "'._("libelle").'"', |
41 |
'genre.libelle as "'._("genre").'"', |
42 |
); |
43 |
$tri="ORDER BY groupe.libelle ASC NULLS LAST"; |
44 |
$edition="groupe"; |
45 |
$selection=''; |
46 |
if ($retourformulaire== 'genre') { |
47 |
$selection=" WHERE (groupe.genre ='".$idx."')"; |
48 |
} |
49 |
$sousformulaire = array( |
50 |
'demande_type', |
51 |
'dossier_autorisation_type',); |
52 |
?> |