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

Diff of /trunk/app/recherchedossier.php

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

revision 160 by fraynaud, Fri Sep 30 17:15:17 2011 UTC revision 248 by fraynaud, Wed Nov 23 22:36:17 2011 UTC
# Line 18  function entre2dates($zone){ Line 18  function entre2dates($zone){
18          echo "<b>"._($zone)."</b>";          echo "<b>"._($zone)."</b>";
19          echo "</legend>";          echo "</legend>";
20          echo "\t<div class=\"list\">\n";          echo "\t<div class=\"list\">\n";
21          echo ""._("Debut").":";          echo ""._("Debut")." : ";
22          echo "<input type='text' name='".$zone."_debut' id=\"".$zone."_debut\" value=\"";          echo "<input type='text' name='".$zone."_debut' id=\"".$zone."_debut\" value=\"";
23          echo "\" size=\"10\" class=\"champFormulaire datepicker\" onchange='fdate(this)'  onkeyup=\"\" onclick=\"\" />\n";          echo "\" size=\"10\" class=\"champFormulaire datepicker\" onchange='fdate(this)'  onkeyup=\"\" onclick=\"\" />\n";
24          echo "<br>"._("Fin")."__:";          echo "<br>"._("Fin")."..... : ";
25          echo "<input type='text' name='".$zone."_fin' id=\"".$zone."_fin\" value=\"";          echo "<input type='text' name='".$zone."_fin' id=\"".$zone."_fin\" value=\"";
26          echo "\" size=\"10\" class=\"champFormulaire datepicker\" onchange='fdate(this)'  onkeyup=\"\" onclick=\"\" />\n";          echo "\" size=\"10\" class=\"champFormulaire datepicker\" onchange='fdate(this)'  onkeyup=\"\" onclick=\"\" />\n";
27          echo "</div>";          echo "</div>";
# Line 104  function rtext1($zone,$condition){ Line 104  function rtext1($zone,$condition){
104      $req= "";      $req= "";
105      if($_POST[$zone]!=""){      if($_POST[$zone]!=""){
106          //$req=" ".$condition." "." ".$zone." like '%".$_POST[$zone]."%'";          //$req=" ".$condition." "." ".$zone." like '%".$_POST[$zone]."%'";
107          $req=" ".$condition." "." ".$zone." like '".$_POST[$zone]."'";          $req=" ".$condition." "." upper(".$zone.") like upper('".$_POST[$zone]."')";
108          $condition = "and";            $condition = "and";  
109      }      }
110      return $req;      return $req;
# Line 152  if (isset ($_GET['validation'])){ Line 152  if (isset ($_GET['validation'])){
152  if($validation==0){  if($validation==0){
153      $validation=1;      $validation=1;
154      // requete sur table      // requete sur table
155      $sql_instructeur=" SELECT om_utilisateur,nom from om_utilisateur where instructeur='Oui' order by nom";      $sql_instructeur=" SELECT om_utilisateur,nom from ".DB_PREFIXE."om_utilisateur where instructeur='Oui' order by nom";
156      $sql_nature=" SELECT nature,libelle FROM nature order by libelle";      $sql_nature=" SELECT nature,libelle FROM ".DB_PREFIXE."nature order by libelle";
157      $sql_destination=" SELECT destination,libelle FROM destination order by libelle";      $sql_destination=" SELECT destination,libelle FROM ".DB_PREFIXE."destination order by libelle";
158      $sql_architecte=" SELECT architecte,nom,prenom FROM architecte order by nom,prenom";      $sql_architecte=" SELECT architecte,nom,prenom FROM ".DB_PREFIXE."architecte order by nom,prenom";
159      $sql_travaux=" SELECT travaux,substring(libelle,0,30) FROM travaux order by libelle";      $sql_travaux=" SELECT travaux,substring(libelle,0,30) FROM ".DB_PREFIXE."travaux order by libelle";
160      $sql_avis=" SELECT avis,libelle FROM avis order by libelle";      $sql_avis=" SELECT avis,libelle FROM ".DB_PREFIXE."avis order by libelle";
161      $sql_etat=" SELECT etat,libelle FROM etat order by libelle";      $sql_etat=" SELECT etat,libelle FROM ".DB_PREFIXE."etat order by libelle";
162      echo "<form  method='post' name='f1' action='recherchedossier.php?validation=".$validation."'>";      echo "<form  method='post' name='f1' action='recherchedossier.php?validation=".$validation."'>";
163            echo "<table  class='ui-corner-all' style='border:0px solid #000000' WIDTH='100%' cellspacing='0px' cellpadding='0px'>";
164      echo "<table  class='ui-corner-all' style='border:1px solid #000000' WIDTH='100%' cellspacing='0' cellpadding='0px'>";      echo "<td class='fd_rechdossier' valign='top' align='center'>";
     echo "<tr><td valign='middle' align='middle'class='fd_haut_rechdossier' colspan='3'>";  
         echo "<input type='submit' name='boutonrecherche' value=' OK ' width='20px' >&nbsp;&nbsp";  
     echo "</tr><tr><td class='fd_rechdossier' valign='top' align='right'>";  
165      rtext("dossier");      rtext("dossier");
166      rtext("delegataire_nom");      rtext("delegataire_nom");
167      rtext("demandeur_nom");      rtext("demandeur_nom");
# Line 173  if($validation==0){ Line 170  if($validation==0){
170      rtext("rivoli");      rtext("rivoli");
171      rtext("terrain_adresse");      rtext("terrain_adresse");
172      rtext("terrain_adresse_complement");      rtext("terrain_adresse_complement");
173  echo "</td><td class='fd_rechdossier' valign='top' align='center'>";      echo "</td><td class='fd_rechdossier' valign='top' align='center'>";
174      rselect("nature",$sql_nature,$f->db);      rselect("nature",$sql_nature,$f->db);
175      rselect("etat",$sql_etat,$f->db);      rselect("etat",$sql_etat,$f->db);
176      ouinon("accord_tacite");      ouinon("accord_tacite");
# Line 181  echo "</td><td class='fd_rechdossier' va Line 178  echo "</td><td class='fd_rechdossier' va
178      entre2dates('date_depot');      entre2dates('date_depot');
179      entre2dates('date_validite');      entre2dates('date_validite');
180      entre2dates('date_complet');      entre2dates('date_complet');
181  echo "</td><td valign='top' align='right' class='fd_rechdossier'>";      echo "<input type='submit' name='boutonrecherche' value='  OK  ' style='width:50%' >&nbsp;&nbsp";
182        echo "</td><td valign='top' align='right' class='fd_rechdossier'>";
183      entre2dates('date_rejet');      entre2dates('date_rejet');
184     entre2dates('date_decision');      entre2dates('date_decision');
185      entre2dates('date_limite');      entre2dates('date_limite');
186      entre2dates('date_chantier');      entre2dates('date_chantier');
187      entre2dates('date_achevement');      entre2dates('date_achevement');
188      entre2dates('date_conformite');      entre2dates('date_conformite');
189      rselect("instructeur",$sql_instructeur,$f->db);      rselect("instructeur",$sql_instructeur,$f->db);
190      rselect("architecte",$sql_architecte,$f->db);      rselect("architecte",$sql_architecte,$f->db);
191      echo "</td></tr><tr><td class='fd_bas_rechdossier'colspan='3' valign='top' align='center'>";      echo "</td>";
192      
193        echo "</tr><tr><td class='fd_bas_rechdossier'colspan='3' valign='top' align='center'>";
194      // commentaires      // commentaires
195      echo "<div class='both'></div>"; // pas de float a gauche et a droite      echo "<div class='both'></div>"; // pas de float a gauche et a droite
196        
# Line 203  echo "</td><td valign='top' align='right Line 203  echo "</td><td valign='top' align='right
203      echo" <img src='../app/img/punaise.png' valign='top' vspace='0' hspace='5' border='0' alt='aide'>";      echo" <img src='../app/img/punaise.png' valign='top' vspace='0' hspace='5' border='0' alt='aide'>";
204      echo " %BAS% "._("contient 'BAS'")."";      echo " %BAS% "._("contient 'BAS'")."";
205      echo "</i></div>";      echo "</i></div>";
206       echo "</td></tr></table>";      echo "</td>";
207        echo "</tr></table>";
208      echo "</form>";      echo "</form>";
209    
210  }else {  }else {
211      $sql = "select * from dossier ";      $sql = "select * from ".DB_PREFIXE."dossier ";
212      $sql.=rtext1("dossier", $condition);      $sql.=rtext1("dossier", $condition);
213      $sql.=rselect1("etat", $condition);      $sql.=rselect1("etat", $condition);
214      $sql.=rtext1("parcelle", $condition);      $sql.=rtext1("parcelle", $condition);
# Line 257  echo "</td><td valign='top' align='right Line 258  echo "</td><td valign='top' align='right
258              echo "</div>";              echo "</div>";
259          }          }
260      }else      }else
261          echo _("Precisez votre question, affichage supérieur à 100 dossiers");          echo _("Precisez votre question, resltat superieur a 100 dossiers");
262      echo "<div class='both'></div>"; // pas de float a gauche et a droite      echo "<div class='both'></div>"; // pas de float a gauche et a droite
263    
264  }  }

Legend:
Removed from v.160  
changed lines
  Added in v.248

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26