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