/[openfoncier]/trunk/gen/sql/pgsql/consultation.inc.php
ViewVC logotype

Diff of /trunk/gen/sql/pgsql/consultation.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5548 by nmeucci, Mon Apr 18 08:27:22 2016 UTC revision 5549 by nmeucci, Tue Dec 20 14:26:51 2016 UTC
# Line 1  Line 1 
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;
# Line 12  if(!isset($tricolsf)) $tricolsf=''; Line 12  if(!isset($tricolsf)) $tricolsf='';
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 .= "->&nbsp;".$idx."&nbsp;";      $ent .= "->&nbsp;".$idx."&nbsp;";
32  }  }
# Line 72  $foreign_keys_extended = array( Line 87  $foreign_keys_extended = array(
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  ?>  ?>

Legend:
Removed from v.5548  
changed lines
  Added in v.5549

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26