/[openfoncier]/trunk/app/sitadel.php
ViewVC logotype

Diff of /trunk/app/sitadel.php

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

revision 246 by fraynaud, Mon Oct 17 07:31:00 2011 UTC revision 247 by fraynaud, Wed Nov 23 22:29:05 2011 UTC
# Line 67  if($validation==0){ Line 67  if($validation==0){
67                      substr($_POST["datefin"],0,2);                      substr($_POST["datefin"],0,2);
68      if ($correct==true){ // ***      if ($correct==true){ // ***
69          // dossiers concern�s          // dossiers concern�s
70          $sql= "select * from dossier";          $sql= "select * from ".DB_PREFIXE."dossier";
71          $sql.= " where (nature='PC' or nature = 'PD' or nature = 'PA' or nature = 'DP')";          $sql.= " where (nature='PC' or nature = 'PD' or nature = 'PA' or nature = 'DP')";
72          $sql.= " AND ((date_depot >='".$datedebut."' AND date_depot<='".$datefin."')";          $sql.= " AND ((date_depot >='".$datedebut."' AND date_depot<='".$datefin."')";
73          $sql.= " OR (date_decision>='".$datedebut."' AND date_decision<='".$datefin."')";          $sql.= " OR (date_decision>='".$datedebut."' AND date_decision<='".$datefin."')";
# Line 83  if($validation==0){ Line 83  if($validation==0){
83              // sitadel              // sitadel
84              $g->val=$val;              $g->val=$val;
85              // parametre              // parametre
86              $sql = "select parametre, valeur from statistique where dossier ='".$row['dossier']."'";              $sql = "select parametre, valeur from ".DB_PREFIXE."statistique where dossier ='".$row['dossier']."'";
87              $res1 = $f->db -> query ($sql);              $res1 = $f->db -> query ($sql);
88              $f->isDatabaseError($res1);              $f->isDatabaseError($res1);
89              while ($row1=& $res1->fetchRow(DB_FETCHMODE_ASSOC)){              while ($row1=& $res1->fetchRow(DB_FETCHMODE_ASSOC)){
# Line 193  if($validation==0){ Line 193  if($validation==0){
193                              }                              }
194                              $decision.= $g->travaux($travaux,$lascot, $row['types']);                              $decision.= $g->travaux($travaux,$lascot, $row['types']);
195                          }                          }
196                          $sql3="select * from destination_shon where dossier = '".                          $sql3="select * from ".DB_PREFIXE."destination_shon where dossier = '".
197                                  $row['dossier']."' order by destination";                                  $row['dossier']."' order by destination";
198                          $res3 = $f->db -> query ($sql3);                          $res3 = $f->db -> query ($sql3);
199                          $f->isDatabaseError($res3);                          $f->isDatabaseError($res3);
# Line 230  if($validation==0){ Line 230  if($validation==0){
230                      if($row['avis']!=''){                      if($row['avis']!=''){
231                          $avis_sitadel = 0;                          $avis_sitadel = 0;
232                          $avis_sitadel_motif=0 ;                          $avis_sitadel_motif=0 ;
233                          $sql="select sitadel, sitadel_motif from avis where avis ='".                          $sql="select sitadel, sitadel_motif from ".DB_PREFIXE."avis where avis ='".
234                                  $row['avis']."'";                                  $row['avis']."'";
235                          $res1 = $f->db -> query ($sql);                          $res1 = $f->db -> query ($sql);
236                          $f->isDatabaseError($res1);                          $f->isDatabaseError($res1);
# Line 249  if($validation==0){ Line 249  if($validation==0){
249                          $modificatif.=$g->terrain();    //***                          $modificatif.=$g->terrain();    //***
250                          if($row['travaux']!=''){                          if($row['travaux']!=''){
251                              $sql= "select codelascot,libelle                              $sql= "select codelascot,libelle
252                                  from travaux where travaux=".$row['travaux'];                                  from travaux where ".DB_PREFIXE."travaux=".$row['travaux'];
253                              $res2 = $f->db -> query ($sql);                              $res2 = $f->db -> query ($sql);
254                              $f->isDatabaseError($res2);                              $f->isDatabaseError($res2);
255                              while ($row2=& $res2->fetchRow(DB_FETCHMODE_ASSOC)){                              while ($row2=& $res2->fetchRow(DB_FETCHMODE_ASSOC)){

Legend:
Removed from v.246  
changed lines
  Added in v.247

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26