14 |
$menu=$_GET['menu']; |
$menu=$_GET['menu']; |
15 |
else |
else |
16 |
$menu=0; |
$menu=0; |
17 |
|
if(isset($_GET['modificatif'])) |
18 |
|
$modificatif=$_GET['modificatif']; |
19 |
|
else |
20 |
|
$modificatif=0; |
21 |
// utils |
// utils |
22 |
require_once "../obj/utils.class.php"; |
require_once "../obj/utils.class.php"; |
23 |
if($menu==1) |
if($menu==1) |
27 |
$f->setFlag("htmlonly"); |
$f->setFlag("htmlonly"); |
28 |
} |
} |
29 |
$f->display(); |
$f->display(); |
30 |
|
if($menu==0) // html only |
31 |
|
$f->displayStartContent(); |
32 |
// db |
// db |
33 |
if(file_exists ("../sql/".$f->db->phptype."/dossier.scr.inc")) |
if(file_exists ("../sql/".$f->db->phptype."/dossier.scr.inc")) |
34 |
include ("../sql/".$f->db->phptype."/dossier.scr.inc"); |
include ("../sql/".$f->db->phptype."/dossier.scr.inc"); |
35 |
$res=$f->db->query($sql_dossier); |
$res=$f->db->query($sql_dossier); |
36 |
$f->isDatabaseError($res); |
$f->isDatabaseError($res); |
37 |
|
if(isset($f->collectivite["departement"])) |
38 |
|
$departement =$f->collectivite["departement"]; |
39 |
|
else |
40 |
|
$departement=""; |
41 |
|
|
42 |
|
if(isset($f->collectivite["commune"])) |
43 |
|
$commune = $f->collectivite["commune"]; |
44 |
|
else |
45 |
|
$commune=""; |
46 |
|
|
47 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ |
48 |
$existe=1; |
$existe=1; |
49 |
// dossier |
// dossier |
51 |
echo "\t<legend class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
echo "\t<legend class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
52 |
echo _("Dossier ")."</legend>"; |
echo _("Dossier ")."</legend>"; |
53 |
echo "<table width='95%'>"; |
echo "<table width='95%'>"; |
54 |
echo "<tr><td><b>"._("tableau_bord")." "._("dossier")." ".$row['nature']."</b></td>"; |
echo "<tr><td colspan='5'><b>"._("tableau_bord")." "._("dossier")." ".$row['nature']."</b></td></tr>"; |
55 |
if($menu==1){ |
echo "<tr><td colspan='5'> No ".$departement." ".$commune." ".$row['dossier']." "._("date_depot")." ".$row['date_depot']."</td></tr>"; |
56 |
echo "<td align='right'>"; |
echo "<tr><td colspan='5'> "._("demandeur_nom")." : ".$row['demandeur_civilite']." ". $row['demandeur_nom']."<br>"; |
57 |
echo "</center></a></span></td><tr></table>"; |
echo ""._("demandeur_adresse")." : ".$row['demandeur_adresse']." ". |
58 |
}else{ |
$row['demandeur_cp']." - ".$row['demandeur_ville']."</td></tr>"; |
59 |
echo "<td align='right'><a href='#' onclick='window.close();'><img src='../img/fermer_fenetre.gif' align='middle' alt='"._("fermer")."' title='"._("fermer")."' hspace='5' border='0'>"; |
echo "<tr><td colspan='5'> "._("demandeur_societe")." : ".$row['demandeur_societe']."</td></tr>"; |
60 |
echo "</center></a></span></td><tr></table>"; |
//echo "<br>"; |
61 |
} |
echo "<tr><td colspan='5'><a class='liendossier' href='".$lien_sig1.$row['rivoli'].$row['terrain_numero']. |
62 |
echo "<table width='95%'><tr><td> No ".$departement." ".$commune." ". |
"' target=_blank><img src='img/sig.png'> adresse du terrain : ". |
63 |
$row['dossier']." "._("date_depot")." ".$row['date_depot']."</td><tr>"; |
$row['terrain_numero']." ". |
64 |
echo "<tr ><td> "._("demandeur_nom")." : ".$row['demandeur_civilite']." ". |
$row['terrain_adresse']." ".$row['terrain_cp']." - ". |
65 |
$row['demandeur_nom']."</td><tr>"; |
$row['terrain_ville']."</a><br>"; |
66 |
echo "<tr><td>"._("demandeur_adresse")." : ".$row['demandeur_adresse']." ". |
echo "<a class='liendossier' href='".$lien_sig.$row['parcelle']."' target=_blank><img src='img/sig.png'> parcelle : ". |
67 |
$row['demandeur_cp']." - ".$row['demandeur_ville']."</td><tr>"; |
$row['parcelle']."</a><br>"; |
68 |
echo "<tr><td> "._("demandeur_societe")." : ".$row['demandeur_societe']."</td><tr>"; |
echo "<a class='liendossier' href='".$lien_sig2.$row['dossier']."' target=_blank><img src='img/sig.png'> dossier : ". |
69 |
echo "<tr><td><img src='../img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='". |
$row['dossier']."</a></td></tr>"; |
70 |
$lien_sig1.$row['rivoli'].$row['terrain_numero']. |
echo "<tr><td colspan='5'><b>Amenagement : </b><a class='liendossier' href='dossier.php?id=".$row['amenagement']."&menu=1'>". |
71 |
"' target=_blank><img src='../trs/".$image_sig."'> adresse du terrain : ". |
$row['amenagement']."</a> - ".$row['parcelle_lot_lotissement']."</td></tr>"; |
72 |
$row['terrain_numero']." ". |
// dossier caracteristique |
73 |
$row['terrain_adresse']." ".$row['terrain_cp']." - ". |
echo "<tr><td colspan='5'><b>"._("servitude")." : </b>".$row['servitude']."<br>"; |
74 |
$row['terrain_ville']. |
echo ""; |
|
"<br></td><tr>"; |
|
|
echo "<tr><td><img src='../img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='". |
|
|
$lien_sig.$row['parcelle']."' target=_blank><img src='../trs/".$image_sig."'> parcelle : ". |
|
|
$row['parcelle']."<br></td>"; |
|
|
echo "<tr><td><img src='../img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='". |
|
|
$lien_sig2.$row['dossier']."' target=_blank><img src='../trs/".$image_sig."'> dossier : ". |
|
|
$row['dossier']."<br></td><tr>"; |
|
|
echo "</table>"; |
|
|
echo "<table width='95%'>"; |
|
75 |
echo "<tr ><td colspan='5'><b>"._("caracteristique")." : </b></td><tr>"; |
echo "<tr ><td colspan='5'><b>"._("caracteristique")." : </b></td><tr>"; |
76 |
echo "<tr><td>"._("shob")." : ".$row['shob']. |
echo "<tr><td>"._("shob")." : ".$row['shob']. |
77 |
" m2 </td><td>"._("shon")." : ".$row['shon']." m2 "; |
" m2 </td><td>"._("shon")." : ".$row['shon']." m2 "; |
78 |
echo "</td><td> "._("hauteur")." :".$row['hauteur']." m </td><td> "._("logement_nombre")." :". |
echo "</td><td> "._("hauteur")." :".$row['hauteur']." m </td><td> "._("logement_nombre")." :". |
79 |
$row['logement_nombre']."</td><td> "._("batiment_nombre")." : ".$row['batiment_nombre']."</td><tr>"; |
$row['logement_nombre']."</td><td> "._("batiment_nombre")." : ".$row['batiment_nombre']."</td><tr>"; |
80 |
echo "<tr><td colspan='5'>"._("travaux")." : ".$row['travaux']."</td><tr>"; |
echo "<tr><td colspan='5'>"._("travaux")." : ".$row['travaux']."</td><tr>"; |
81 |
|
echo "<tr ><td colspan='5'><b>"._("Etat")." "._("instruction")." : </b></td><tr>"; |
82 |
echo "<tr><td>"._("date_depot")." : ".$row['date_depot']." "; |
echo "<tr><td>"._("date_depot")." : ".$row['date_depot']." "; |
83 |
echo "</td><td>"._("date_notification_delai")." : ". |
echo "</td><td>"._("date_notification_delai")." : ". |
84 |
$row['date_notification_delai']." - "; |
$row['date_notification_delai']." - "; |
91 |
"</td><td>"._("date_conformite").": ".$row['date_conformite']."</td><td></td></tr>"; |
"</td><td>"._("date_conformite").": ".$row['date_conformite']."</td><td></td></tr>"; |
92 |
echo "\t\t\t</table>\n"; |
echo "\t\t\t</table>\n"; |
93 |
echo "</fieldset>"; |
echo "</fieldset>"; |
|
|
|
94 |
// instruction |
// instruction |
95 |
$res1=$f->db->query($sql_instruction); |
$res1=$f->db->query($sql_instruction); |
96 |
$f->isDatabaseError($res1); |
$f->isDatabaseError($res1); |
98 |
echo "\t<legend class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
echo "\t<legend class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
99 |
echo _("Instruction ")."</legend>"; |
echo _("Instruction ")."</legend>"; |
100 |
echo "<table width='95%'>"; |
echo "<table width='95%'>"; |
|
echo "<tr ><td colspan='4'><b>"._("instruction")."</b></td><tr>"; |
|
101 |
echo "<tr><td></td><td>"._("evenement")."</td><td>"._("lettretype")."</td><td>"._("datecourrier")."</td><tr>"; |
echo "<tr><td></td><td>"._("evenement")."</td><td>"._("lettretype")."</td><td>"._("datecourrier")."</td><tr>"; |
102 |
while ($row1=& $res1->fetchRow(DB_FETCHMODE_ASSOC)){ |
while ($row1=& $res1->fetchRow(DB_FETCHMODE_ASSOC)){ |
103 |
echo "<tr><td><img src='../img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='../spc/pdflettretype_instruction.php?idx=". |
echo "<tr><td><img src='img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='../app/pdflettretype_instruction.php?idx=". |
104 |
$row1['instruction']."' ><img src='../img/ico_pdf.png' border=0 ></a></td>"; |
$row1['instruction']."' ><img src='../app/img/ico_pdf.png' border=0 ></a></td>"; |
105 |
echo "<td>".$row1['evenement']."</td><td>". |
echo "<td>".$row1['evenement']."</td><td>". |
106 |
$row1['lettretype']."</td><td>".$row1['datecourrier']."</td><tr>"; |
$row1['lettretype']."</td><td>".$row1['datecourrier']."</td><tr>"; |
107 |
} |
} |
115 |
$res2=$f->db->query($sql_consultation); |
$res2=$f->db->query($sql_consultation); |
116 |
$f->isDatabaseError($res2); |
$f->isDatabaseError($res2); |
117 |
echo "<table width='95%'>"; |
echo "<table width='95%'>"; |
|
echo "<tr ><td colspan='4'><b>"._("consultation")." : </b></td><tr>"; |
|
118 |
echo "<tr><td></td><td>"._("date_envoi")."</td><td>"._("avis"). |
echo "<tr><td></td><td>"._("date_envoi")."</td><td>"._("avis"). |
119 |
"</td><td>"._("date_limite")."</td><tr>"; |
"</td><td>"._("date_limite")."</td><tr>"; |
120 |
while ($row2=& $res2->fetchRow(DB_FETCHMODE_ASSOC)){ |
while ($row2=& $res2->fetchRow(DB_FETCHMODE_ASSOC)){ |
121 |
echo "<tr><td><img src='../img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='../pdf/pdfetat.php?obj=consultation&idx=". |
echo "<tr><td><img src='img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='../pdf/pdfetat.php?obj=consultation&idx=". |
122 |
$row2['consultation']."' ><img src='../img/ico_pdf.png' border=0 ></a></td>"; |
$row2['consultation']."' ><img src='../app/img/ico_pdf.png' border=0 ></a></td>"; |
123 |
echo "<td>".$row2['envoi']."</td><td>". |
echo "<td>".$row2['envoi']."</td><td>". |
124 |
$row2['retour']."</td><td>".$row2['limite']."</td><tr>"; |
$row2['retour']."</td><td>".$row2['limite']."</td><tr>"; |
125 |
} |
} |
133 |
$res3=$f->db->query($sql_terrain); |
$res3=$f->db->query($sql_terrain); |
134 |
$f->isDatabaseError($res3); |
$f->isDatabaseError($res3); |
135 |
echo "<table width='95%'>"; |
echo "<table width='95%'>"; |
|
echo "<tr ><td colspan='3'><b>"._("terrain")." : </b></td><tr>"; |
|
136 |
echo "<tr><td>"._("parcelle")."</td><td>"._("proprietaire"). |
echo "<tr><td>"._("parcelle")."</td><td>"._("proprietaire"). |
137 |
"</td><td>"._("surface")."</td><tr>"; |
"</td><td>"._("surface")."</td><tr>"; |
138 |
while ($row3=& $res3->fetchRow(DB_FETCHMODE_ASSOC)){ |
while ($row3=& $res3->fetchRow(DB_FETCHMODE_ASSOC)){ |
139 |
echo "<tr><td><img src='../img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='".$lien_sig.$row3['parcelle']. |
echo "<tr><td><img src='img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='".$lien_sig.$row3['parcelle']. |
140 |
"' target=_blank><img src='../trs/".$image_sig."'> ".$row3['parcelle']."</td><td>". |
"' target=_blank><img src='img/sig.png'> ".$row3['parcelle']."</td><td>". |
141 |
$row3['proprietaire']."</td><td>".$row3['surface']." m2</td><tr>"; |
$row3['proprietaire']."</td><td>".$row3['surface']." m2</td><tr>"; |
142 |
} |
} |
143 |
echo "</table>"; |
echo "</table>"; |
150 |
$res4=$f->db->query($sql_destination_shon); |
$res4=$f->db->query($sql_destination_shon); |
151 |
$f->isDatabaseError($res4); |
$f->isDatabaseError($res4); |
152 |
echo "<table width='95%'>"; |
echo "<table width='95%'>"; |
|
echo "<tr ><td colspan='3'><b>"._("destination_shon")." : </b></td><tr>"; |
|
153 |
echo "<tr><td>No</td><td>"._("destination")."</td><td>". |
echo "<tr><td>No</td><td>"._("destination")."</td><td>". |
154 |
_("shon")."</td><tr>"; |
_("shon")."</td><tr>"; |
155 |
while ($row4=& $res4->fetchRow(DB_FETCHMODE_ASSOC)){ |
while ($row4=& $res4->fetchRow(DB_FETCHMODE_ASSOC)){ |
162 |
// modificatif |
// modificatif |
163 |
echo "<fieldset class=\"cadre ui-corner-all ui-widget-content startClosed\">\n"; |
echo "<fieldset class=\"cadre ui-corner-all ui-widget-content startClosed\">\n"; |
164 |
echo "\t<legend class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
echo "\t<legend class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
165 |
echo _("Modificatif")."</legend>"; |
echo _("Modificatif")." "._("transfert")."</legend>"; |
166 |
$res5=$f->db->query($sql_modificatif); |
$res5=$f->db->query($sql_modificatif); |
167 |
$f->isDatabaseError($res5); |
$f->isDatabaseError($res5); |
168 |
echo "<table width='95%'>"; |
echo "<table width='95%'>"; |
|
echo "<tr ><td colspan='3'><b>"._("modificatif")." / ". |
|
|
_("transfert")." : </b></td><tr>"; |
|
169 |
echo "<tr><td>"._("date_demande")."</td><td>"._("demandeur_nom")."</td><td>Etat</td><tr>"; |
echo "<tr><td>"._("date_demande")."</td><td>"._("demandeur_nom")."</td><td>Etat</td><tr>"; |
170 |
while ($row5=& $res5->fetchRow(DB_FETCHMODE_ASSOC)){ |
while ($row5=& $res5->fetchRow(DB_FETCHMODE_ASSOC)){ |
171 |
echo "<tr><td><img src='../img/tb_fleche.png' alt='' title='' style='vertical-align:middle'/><a class='liendossier' href='dossier.php?id=". |
echo "<tr><td>"; |
172 |
$row5['dossier']."&menu=".$menu."' ><img src='../img/ico_exemplaire.png' border=0 > ".$row5['demande']."</a></td>"; |
echo "<img src='img/ico_exemplaire.png'><a class='liendossier' href='dossier.php?id=". |
173 |
|
$row5['dossier']."&menu=".$menu."' > ".$row5['demande']."</a></td>"; |
174 |
echo "<td>".$row5['demandeur_nom']."</td><td>".$row5['etat']."</td><tr>"; |
echo "<td>".$row5['demandeur_nom']."</td><td>".$row5['etat']."</td><tr>"; |
175 |
} |
} |
176 |
echo "</table>"; |
echo "</table>"; |
177 |
echo "</fieldset>"; |
echo "</fieldset>"; |
178 |
} // while dossier |
} // while dossier |
179 |
|
if($menu==0){ |
180 |
|
if($modificatif==0){ |
181 |
|
echo "<center>"; |
182 |
|
$f->displayLinkJsCloseWindow(); // **** |
183 |
|
echo "</center>"; |
184 |
|
$f->displayEndContent(); |
185 |
|
}else{ |
186 |
|
echo "\n<a class=\"retour\" "; |
187 |
|
echo "href='../soustab.php?obj=modificatif&idxformulaire=".$id; |
188 |
|
echo ">"; |
189 |
|
// |
190 |
|
echo _("Retour"); |
191 |
|
// |
192 |
|
echo "</a>\n"; |
193 |
|
} |
194 |
|
} |
195 |
if($existe==0){ |
if($existe==0){ |
196 |
$msg=$idx." inexistant en base odp"; |
$msg=$idx._(" inexistant en base openFoncier"); |
197 |
$f->displayMessage($class, $message); |
$f->displayMessage($class, $message); |
198 |
} |
} |
199 |
?> |
?> |