1 |
<?php |
<?php |
2 |
//$Id$ |
//$Id$ |
3 |
//gen openMairie le 18/04/2016 10:24 |
//gen openMairie le 19/12/2016 15:25 |
4 |
|
|
5 |
$DEBUG=0; |
$DEBUG=0; |
6 |
$serie=15; |
$serie=15; |
12 |
if(!isset($premiersf)) $premiersf=''; |
if(!isset($premiersf)) $premiersf=''; |
13 |
if(!isset($selection)) $selection=''; |
if(!isset($selection)) $selection=''; |
14 |
if(!isset($retourformulaire)) $retourformulaire=''; |
if(!isset($retourformulaire)) $retourformulaire=''; |
15 |
|
if (!isset($idxformulaire)) { |
16 |
|
$idxformulaire = ''; |
17 |
|
} |
18 |
|
if (!isset($selectioncol)) { |
19 |
|
$selectioncol = ''; |
20 |
|
} |
21 |
|
if (!isset($tricol)) { |
22 |
|
$tricol = ''; |
23 |
|
} |
24 |
|
if (!isset($valide)) { |
25 |
|
$valide = ''; |
26 |
|
} |
27 |
|
if (!isset($recherche)) { |
28 |
|
$recherche = ''; |
29 |
|
} |
30 |
if (isset($idx) && $idx != ']' && trim($idx) != '') { |
if (isset($idx) && $idx != ']' && trim($idx) != '') { |
31 |
$ent .= "-> ".$idx." "; |
$ent .= "-> ".$idx." "; |
32 |
} |
} |
87 |
); |
); |
88 |
// Filtre listing sous formulaire - avis_consultation |
// Filtre listing sous formulaire - avis_consultation |
89 |
if (in_array($retourformulaire, $foreign_keys_extended["avis_consultation"])) { |
if (in_array($retourformulaire, $foreign_keys_extended["avis_consultation"])) { |
90 |
$selection = " WHERE (consultation.avis_consultation = '".$idx."') "; |
$selection = " WHERE (consultation.avis_consultation = ".intval($idxformulaire).") "; |
91 |
} |
} |
92 |
// Filtre listing sous formulaire - dossier |
// Filtre listing sous formulaire - dossier |
93 |
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) { |
if (in_array($retourformulaire, $foreign_keys_extended["dossier"])) { |
94 |
$selection = " WHERE (consultation.dossier = '".$idx."') "; |
$selection = " WHERE (consultation.dossier = '".$f->db->escapeSimple($idxformulaire)."') "; |
95 |
} |
} |
96 |
// Filtre listing sous formulaire - service |
// Filtre listing sous formulaire - service |
97 |
if (in_array($retourformulaire, $foreign_keys_extended["service"])) { |
if (in_array($retourformulaire, $foreign_keys_extended["service"])) { |
98 |
$selection = " WHERE (consultation.service = '".$idx."') "; |
$selection = " WHERE (consultation.service = ".intval($idxformulaire).") "; |
99 |
} |
} |
100 |
|
|
101 |
?> |
?> |