1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:39 |
4 |
|
|
include('../gen/sql/pgsql/dossier.form.inc.php'); |
5 |
fraynaud |
12 |
include("../dyn/var.inc"); |
6 |
fmichon |
686 |
// |
7 |
|
|
$tableSelect = DB_PREFIXE."dossier |
8 |
|
|
LEFT JOIN ".DB_PREFIXE."avis_decision |
9 |
|
|
ON avis_decision.avis_decision=dossier.avis_decision |
10 |
softime |
2112 |
LEFT JOIN ".DB_PREFIXE."dossier_autorisation |
11 |
|
|
ON dossier.dossier_autorisation=dossier_autorisation.dossier_autorisation |
12 |
nhaye |
1367 |
"; |
13 |
fmichon |
686 |
// |
14 |
fraynaud |
12 |
$champs=array("dossier", |
15 |
softime |
2112 |
"dossier_libelle", |
16 |
nhaye |
1187 |
"dossier_instruction_type", |
17 |
softime |
2112 |
"dossier_autorisation.dossier_autorisation", |
18 |
|
|
"dossier_autorisation.dossier_autorisation_libelle", |
19 |
fraynaud |
12 |
"annee", |
20 |
fmichon |
686 |
"dossier.instructeur", |
21 |
|
|
"dossier.division", |
22 |
|
|
"autorite_competente", |
23 |
vpihour |
2114 |
"numero_versement_archive", |
24 |
fraynaud |
12 |
"date_demande", |
25 |
softime |
2112 |
"dossier.date_depot", |
26 |
nhaye |
1571 |
"date_dernier_depot", |
27 |
fmichon |
686 |
"enjeu_urba", |
28 |
|
|
"enjeu_erp", |
29 |
nhaye |
1434 |
"erp", |
30 |
|
|
"a_qualifier", |
31 |
nhaye |
1748 |
// Fieldset instruction |
32 |
|
|
// Col 1 |
33 |
fraynaud |
12 |
"date_complet", |
34 |
|
|
"delai", |
35 |
|
|
"date_limite", |
36 |
softime |
2112 |
"dossier.date_decision", |
37 |
nhaye |
1748 |
"accord_tacite", |
38 |
|
|
"date_limite_incompletude", |
39 |
|
|
// Col 2 |
40 |
|
|
"date_rejet", |
41 |
fraynaud |
12 |
"date_notification_delai", |
42 |
mlimic |
910 |
"dossier.avis_decision", |
43 |
softime |
2112 |
"dossier.date_chantier", |
44 |
|
|
"dossier.date_achevement", |
45 |
nhaye |
1748 |
"delai_incompletude", |
46 |
|
|
// Col 3 |
47 |
|
|
"etat", |
48 |
softime |
2112 |
"dossier.date_validite", |
49 |
fraynaud |
12 |
"date_conformite", |
50 |
nhaye |
1748 |
|
51 |
fraynaud |
12 |
"parcelle", |
52 |
|
|
"pos", |
53 |
|
|
"sig", |
54 |
|
|
"batiment_nombre", |
55 |
|
|
"logement_nombre", |
56 |
|
|
"hauteur", |
57 |
|
|
"piece_nombre", |
58 |
|
|
"shon", |
59 |
|
|
"shon_calcul", |
60 |
|
|
"shob", |
61 |
|
|
"lot", |
62 |
|
|
"amenagement", |
63 |
fraynaud |
142 |
"parcelle_lot", |
64 |
|
|
"parcelle_lot_lotissement", |
65 |
fraynaud |
12 |
"temp1", |
66 |
|
|
"temp2", |
67 |
|
|
"temp3", |
68 |
|
|
"temp4", |
69 |
|
|
"temp5", |
70 |
|
|
"parcelle as parcelle_archive", |
71 |
fraynaud |
144 |
"parcelle_lot as parcelle_lot_archive", |
72 |
nhaye |
509 |
"geom1", |
73 |
softime |
2112 |
"dossier.terrain_references_cadastrales", |
74 |
nhaye |
2240 |
"public.ST_AsText(dossier.geom::geometry) as geom", |
75 |
softime |
2112 |
"dossier.terrain_adresse_voie_numero", |
76 |
|
|
"dossier.terrain_adresse_voie", |
77 |
|
|
"dossier.terrain_adresse_lieu_dit", |
78 |
|
|
"dossier.terrain_adresse_localite", |
79 |
|
|
"dossier.terrain_adresse_code_postal", |
80 |
|
|
"dossier.terrain_adresse_bp", |
81 |
|
|
"dossier.terrain_adresse_cedex", |
82 |
|
|
"dossier.terrain_superficie", |
83 |
softime |
2249 |
"dossier.description", |
84 |
|
|
"servitude", |
85 |
nhaye |
1717 |
"version", |
86 |
|
|
"incompletude", |
87 |
|
|
"evenement_suivant_tacite", |
88 |
|
|
"evenement_suivant_tacite_incompletude", |
89 |
softime |
2142 |
"etat_pendant_incompletude", |
90 |
softime |
2249 |
"dossier.duree_validite", |
91 |
|
|
); |
92 |
fraynaud |
12 |
$selection=""; |
93 |
|
|
// |
94 |
vpihour |
2067 |
$sql_avis_decision= "select avis_decision,libelle from ".DB_PREFIXE."avis_decision order by libelle"; |
95 |
|
|
$sql_avis_decision_by_id = "SELECT avis_decision.avis_decision, libelle FROM ".DB_PREFIXE."avis_decision WHERE avis_decision = '<idx>'"; |
96 |
fraynaud |
242 |
$sql_pos= "select pos,(pos||' '||libelle) from ".DB_PREFIXE."pos order by libelle"; |
97 |
nhaye |
427 |
$sql_pos_by_id = "SELECT pos.pos, (pos||' '||libelle) FROM ".DB_PREFIXE."pos WHERE pos = '<idx>'"; |
98 |
|
|
|
99 |
nhaye |
2310 |
$sql_dossier_autorisation="SELECT dossier_autorisation.dossier_autorisation, dossier_autorisation.dossier_autorisation FROM ".DB_PREFIXE."dossier_autorisation ORDER BY dossier_autorisation.dossier_autorisation ASC"; |
100 |
fmichon |
933 |
$sql_dossier_autorisation_by_id = "SELECT dossier_autorisation.dossier_autorisation, dossier_autorisation.dossier_autorisation FROM ".DB_PREFIXE."dossier_autorisation WHERE dossier_autorisation = '<idx>'"; |
101 |
nhaye |
520 |
|
102 |
nhaye |
1023 |
// Requêtes pour la recherche de dossiers existant |
103 |
nhaye |
2310 |
$sql_arrondissement="SELECT arrondissement.arrondissement, arrondissement.libelle FROM ".DB_PREFIXE."arrondissement ORDER BY arrondissement.libelle ASC"; |
104 |
nhaye |
1023 |
$sql_arrondissement_by_id = "SELECT arrondissement.arrondissement, arrondissement.libelle FROM ".DB_PREFIXE."arrondissement WHERE arrondissement = <idx>"; |
105 |
fmichon |
933 |
|
106 |
nhaye |
1023 |
$sql_dossier_autorisation_type_detaille="SELECT dossier_autorisation_type_detaille.dossier_autorisation_type_detaille, dossier_autorisation_type_detaille.libelle FROM ".DB_PREFIXE."dossier_autorisation_type_detaille"; |
107 |
|
|
$sql_dossier_autorisation_type_detaille_by_id = "SELECT dossier_autorisation_type_detaille.dossier_autorisation_type_detaille, dossier_autorisation_type_detaille.libelle FROM ".DB_PREFIXE."dossier_autorisation_type_detaille WHERE dossier_autorisation_type_detaille = <idx>"; |
108 |
fmichon |
933 |
|
109 |
nhaye |
1023 |
|
110 |
nhaye |
520 |
// Requetes a utiliser lorsque l'option "afficher_division" est active |
111 |
|
|
$sql_instructeur_div="SELECT instructeur.instructeur, instructeur.nom||' ('||division.code||')' |
112 |
nhaye |
517 |
FROM ".DB_PREFIXE."instructeur |
113 |
fmichon |
922 |
INNER JOIN ".DB_PREFIXE."division ON division.division=instructeur.division |
114 |
nhaye |
517 |
ORDER BY nom"; |
115 |
nhaye |
520 |
$sql_instructeur_div_by_id = "SELECT instructeur.instructeur, instructeur.nom||' ('||division.code||')' |
116 |
nhaye |
517 |
FROM ".DB_PREFIXE."instructeur |
117 |
fmichon |
922 |
INNER JOIN ".DB_PREFIXE."division ON division.division=instructeur.division |
118 |
nhaye |
517 |
WHERE instructeur = <idx>"; |
119 |
|
|
|
120 |
fmichon |
659 |
// |
121 |
|
|
$portlet_actions['pdfetat'] = |
122 |
|
|
array('lien' => '../pdf/pdfetat.php?idx=', |
123 |
fmichon |
687 |
'id' => '&obj=dossier', |
124 |
fmichon |
1485 |
'lib' => "<span class=\"om-prev-icon om-icon-16 pdf-16\" title=\""._("Edition")."\">"._("Recapitulatif")."</span>", |
125 |
fmichon |
1361 |
'target' => '_blank', |
126 |
fmichon |
659 |
'ordre' => 30,); |
127 |
fmichon |
1485 |
//$portlet_actions['dossier'] = |
128 |
|
|
// array('lien' => '../app/dossier.php?id=', |
129 |
|
|
// 'id' => '&menu=2', |
130 |
|
|
// 'lib' => "<img src='../app/img/ico_exemplaire.png' alt=\""._("Dossier")."\" border='0' align='top' /> "._("Dossier"), |
131 |
|
|
// 'ordre' => 40,); |
132 |
|
|
//$portlet_actions['sig'] = |
133 |
|
|
// array('lien' => '../scr/tab_sig.php?idx=', |
134 |
|
|
// 'id' => '&obj=dossier', |
135 |
|
|
// 'lib' => "<span class=\"om-prev-icon om-icon-16 sig-16\" title=\""._("Sig")."\">"._("Sig")."</span>", |
136 |
|
|
// 'ordre' => 50,); |
137 |
vpihour |
1185 |
|
138 |
fmichon |
1485 |
|
139 |
|
|
// Rapport d'instruction |
140 |
|
|
$portlet_actions['donnees_techniques'] = array( |
141 |
|
|
"lien" => "#\" onclick=\"popupIt('donnees_techniques','../app/redirection_onglet.php?idx=", |
142 |
|
|
'id' => "&obj=donnees_techniques', 'auto','auto','',". |
143 |
|
|
"'donnees_techniques');return false;", |
144 |
|
|
'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix rediger-16\" title=\"". |
145 |
|
|
_("Données techniques")."\">"._("Données techniques")."</span>", |
146 |
|
|
'ordre' => 20, |
147 |
|
|
'rights' => array('list' => array("rapport_instruction", "rapport_instruction_rediger"), 'operator' => 'OR'), |
148 |
|
|
'ajax' => false |
149 |
|
|
); |
150 |
|
|
|
151 |
|
|
// Rapport d'instruction |
152 |
|
|
$portlet_actions['rapport_instruction'] = array( |
153 |
|
|
"lien" => "#\" onclick=\"popupIt('rapport_instruction','../app/redirection_onglet.php?idx=", |
154 |
|
|
'id' => "&obj=rapport_instruction', 'auto','auto','',". |
155 |
|
|
"'rapport_instruction');return false;", |
156 |
|
|
'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix rediger-16\" title=\"". |
157 |
|
|
_("Redaction")."\">"._("Rapport d'instruction")."</span>", |
158 |
|
|
'ordre' => 21, |
159 |
|
|
'rights' => array('list' => array("rapport_instruction", "rapport_instruction_rediger"), 'operator' => 'OR'), |
160 |
|
|
'ajax' => false |
161 |
|
|
); |
162 |
|
|
|
163 |
softime |
2166 |
// Géolocalisation |
164 |
|
|
$portlet_actions['geolocalisation'] = array( |
165 |
|
|
"lien" => "#\" onclick=\"popupIt('sig_elyx','../app/geolocalisation.view.php?idx=", |
166 |
|
|
'id' => "&obj=sig_elyx', 'auto','auto','','');return false;", |
167 |
|
|
'lib' => "<span class=\"om-prev-icon om-icon-16 om-icon-fix rediger-16\" title=\"". |
168 |
|
|
_("Geolocalisation")."\">"._("Geolocalisation")."</span>", |
169 |
|
|
'ordre' => 22, |
170 |
softime |
2171 |
'rights' => array('list' => array("geolocalisation", "geolocalisation_consulter"), 'operator' => 'OR'), |
171 |
softime |
2166 |
'ajax' => false |
172 |
|
|
); |
173 |
fmichon |
1485 |
|
174 |
|
|
|
175 |
fraynaud |
3 |
?> |