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>"; |
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; |
124 |
global $condition; |
global $condition; |
125 |
$req= ""; |
$req= ""; |
126 |
if($_POST[$zone."_debut"]!=""){ |
if($_POST[$zone."_debut"]!=""){ |
127 |
$req=" ".$condition." "." ".$zone." >= '".$_POST[$zone."_debut"]."'"; |
// substr($_POST['date_envoi_debut'],6,4).'-'.substr($_POST['date_envoi_debut'],3,2).'-'.substr($_POST['date_envoi_debut'],0,2); |
128 |
$condition = "and"; |
$req=" ".$condition." "." ".$zone." >= '".substr($_POST[$zone."_debut"],6,4)."-" |
129 |
|
.substr($_POST[$zone."_debut"],3,2)."-" |
130 |
|
.substr($_POST[$zone."_debut"],0,2).""."'"; |
131 |
|
$condition = "and"; |
132 |
} |
} |
133 |
if($_POST[$zone."_fin"]!=""){ |
if($_POST[$zone."_fin"]!=""){ |
134 |
$req.=" ".$condition." "." ".$zone." <= '".$_POST[$zone."_fin"]."'"; |
$req.=" ".$condition." "." ".$zone." <= '".substr($_POST[$zone."_fin"],6,4)."-" |
135 |
|
.substr($_POST[$zone."_fin"],3,2)."-" |
136 |
|
.substr($_POST[$zone."_fin"],0,2).""."'"; |
137 |
$condition = "and"; |
$condition = "and"; |
138 |
} |
} |
139 |
return $req; |
return $req; |
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' >  "; |
|
|
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"); |
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"); |
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%' >  "; |
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 |
|
|
197 |
echo "<i><b>"._("Utilisation de % pour zones de saisie")." : </b>"; |
echo "<i><b>"._("Utilisation de % pour zones de saisie")." : </b>"; |
198 |
//echo "</legend>"; |
//echo "</legend>"; |
199 |
echo" <img src='../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'>"; |
200 |
echo " %BAS "._("finit par 'BAS'").""; |
echo " %BAS "._("finit par 'BAS'").""; |
201 |
echo" <img src='../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'>"; |
202 |
echo " BAS% "._("commence par 'BAS'").""; |
echo " BAS% "._("commence par 'BAS'").""; |
203 |
echo" <img src='../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); |
246 |
echo "<div class='choice ui-corner-all ui-widget-content'>"; |
echo "<div class='choice ui-corner-all ui-widget-content'>"; |
247 |
echo "<fieldset class=\"cadre ui-corner-all ui-widget-content\">\n"; |
echo "<fieldset class=\"cadre ui-corner-all ui-widget-content\">\n"; |
248 |
echo "<legend align='center' class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
echo "<legend align='center' class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
249 |
echo "<a href=\"../app/dossier.php?menu=1&id=".$row['dossier']."\">".$row['dossier']."</a><br>"; |
echo "<a href=\"../app/dossier.php?menu=2&id=".$row['dossier']."\">".$row['dossier']."</a><br>"; |
250 |
echo "</legend>"; |
echo "</legend>"; |
251 |
echo "\t<div class=\"list\">\n"; |
echo "\t<div class=\"list\">\n"; |
252 |
echo $row['demandeur_nom']."<br>"; |
echo $row['demandeur_nom']."<br>"; |
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 |
} |
} |