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

Diff of /trunk/app/dossier_autorisation.php

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

revision 2421 by vpihour, Fri Oct 18 10:46:08 2013 UTC revision 2751 by softime, Tue Feb 18 19:04:57 2014 UTC
# Line 20  $recherche = (isset($_GET['recherche'])) Line 20  $recherche = (isset($_GET['recherche']))
20  $tricol = (isset($_GET['tricol'])) ? $_GET['tricol'] : "";  $tricol = (isset($_GET['tricol'])) ? $_GET['tricol'] : "";
21  $selectioncol = (isset($_GET['selectioncol'])) ? $_GET['selectioncol'] : "";  $selectioncol = (isset($_GET['selectioncol'])) ? $_GET['selectioncol'] : "";
22  $valide = (isset($_GET['valide'])) ? $_GET['valide'] : "";  $valide = (isset($_GET['valide'])) ? $_GET['valide'] : "";
23    $retourformulaire = (isset($_GET['retourformulaire'])) ? $_GET['retourformulaire'] : "";
24  // Permet de composer le bouton retour avec le tableau depuis lequel la page a été ouverte  // Permet de composer le bouton retour avec le tableau depuis lequel la page a été ouverte
25  $retourtab = (isset($_GET['retourtab'])) ? $_GET['retourtab'] : "dossier_autorisation";  $retourtab = (isset($_GET['retourtab'])) ? $_GET['retourtab'] : "dossier_autorisation";
26  //Si l'identifiant du dossier d'autorisation a été fourni  //Si l'identifiant du dossier d'autorisation a été fourni
# Line 28  if ( !is_null($idx)){ Line 29  if ( !is_null($idx)){
29    
30      // Configuration du bouton retour      // Configuration du bouton retour
31      if($retour != "" AND $retour != "tab") {      if($retour != "" AND $retour != "tab") {
32          $bouton_retour = "<a class=\"retour\"          $bouton_retour = "<a class=\"retour\"".
33              href=\"../scr/form.php?obj=dossier_instruction&idx=".$retour."&action=3              "href=\"../scr/form.php?obj=dossier_instruction&idx=".$retour."&action=3".
34              &premier=30&tricol=&recherche=&selectioncol=&advs_id=&valide=#ui-tabs-0\">".              "&premier=".$premier."&tricol=".$tricol."&recherche=".$recherche.
35                "&selectioncol=".$selectioncol."&retourformulaire=".$retourformulaire."\">".
36              _("Retour")."</a>";              _("Retour")."</a>";
37      } else {      } else {
38          $bouton_retour = "<a class=\"retour\"          $bouton_retour = "<a class=\"retour\"
39              href=\"../scr/tab.php?obj=".$retourtab."&premier=".$premier."&tricol=".$tricol.              href=\"../scr/tab.php?obj=".$retourtab."&premier=".$premier."&tricol=".$tricol.
40              "&recherche=".$recherche."&selectioncol=".$selectioncol.              "&recherche=".$recherche."&selectioncol=".$selectioncol."&retourformulaire=".$retourformulaire.
41              "&advs_id=".$advs_id."\">"._("Retour")."</a>";              "&advs_id=".$advs_id."\">"._("Retour")."</a>";
42      }      }
43            
# Line 146  if ( !is_null($idx)){ Line 148  if ( !is_null($idx)){
148          ) as \"description_projet\",          ) as \"description_projet\",
149          REGEXP_REPLACE(CONCAT(          REGEXP_REPLACE(CONCAT(
150              CASE              CASE
151                  WHEN donnees_techniques.su_trsf_shon1 IS NULL                  WHEN donnees_techniques.su_cstr_shon1 IS NULL
152                  THEN ''                  THEN ''
153                  ELSE CONCAT('Habitation - ', donnees_techniques.su_trsf_shon1, ' m² <br/>')                  ELSE CONCAT('Habitation - ', donnees_techniques.su_cstr_shon1, ' m² <br/>')
154              END,              END,
155              CASE              CASE
156                  WHEN donnees_techniques.su_trsf_shon2 IS NULL                  WHEN donnees_techniques.su_cstr_shon2 IS NULL
157                  THEN ''                  THEN ''
158                  ELSE CONCAT('Hébergement hôtelier - ', donnees_techniques.su_trsf_shon2, ' m² <br/>')                  ELSE CONCAT('Hébergement hôtelier - ', donnees_techniques.su_cstr_shon2, ' m² <br/>')
159              END,              END,
160              CASE              CASE
161                  WHEN donnees_techniques.su_trsf_shon3 IS NULL                  WHEN donnees_techniques.su_cstr_shon3 IS NULL
162                  THEN ''                  THEN ''
163                  ELSE CONCAT('Bureaux - ', donnees_techniques.su_trsf_shon3, ' m² <br/>')                  ELSE CONCAT('Bureaux - ', donnees_techniques.su_cstr_shon3, ' m² <br/>')
164              END,              END,
165              CASE              CASE
166                  WHEN donnees_techniques.su_trsf_shon4 IS NULL                  WHEN donnees_techniques.su_cstr_shon4 IS NULL
167                  THEN ''                  THEN ''
168                  ELSE CONCAT('Commerce - ', donnees_techniques.su_trsf_shon4, ' m² <br/>')                  ELSE CONCAT('Commerce - ', donnees_techniques.su_cstr_shon4, ' m² <br/>')
169              END,              END,
170              CASE              CASE
171                  WHEN donnees_techniques.su_trsf_shon5 IS NULL                  WHEN donnees_techniques.su_cstr_shon5 IS NULL
172                  THEN ''                  THEN ''
173                  ELSE CONCAT('Artisanat - ', donnees_techniques.su_trsf_shon5, ' m² <br/>')                  ELSE CONCAT('Artisanat - ', donnees_techniques.su_cstr_shon5, ' m² <br/>')
174              END,              END,
175              CASE              CASE
176                  WHEN donnees_techniques.su_trsf_shon6 IS NULL                  WHEN donnees_techniques.su_cstr_shon6 IS NULL
177                  THEN ''                  THEN ''
178                  ELSE CONCAT('Industrie - ', donnees_techniques.su_trsf_shon6, ' m² <br/>')                  ELSE CONCAT('Industrie - ', donnees_techniques.su_cstr_shon6, ' m² <br/>')
179              END,              END,
180              CASE              CASE
181                  WHEN donnees_techniques.su_trsf_shon7 IS NULL                  WHEN donnees_techniques.su_cstr_shon7 IS NULL
182                  THEN ''                  THEN ''
183                  ELSE CONCAT('Exploitation agricole ou forestière - ', donnees_techniques.su_trsf_shon7, ' m² <br/>')                  ELSE CONCAT('Exploitation agricole ou forestière - ', donnees_techniques.su_cstr_shon7, ' m² <br/>')
184              END,              END,
185              CASE              CASE
186                  WHEN donnees_techniques.su_trsf_shon8 IS NULL                  WHEN donnees_techniques.su_cstr_shon8 IS NULL
187                  THEN ''                  THEN ''
188                  ELSE CONCAT('Entrepôt - ', donnees_techniques.su_trsf_shon8, ' m² <br/>')                  ELSE CONCAT('Entrepôt - ', donnees_techniques.su_cstr_shon8, ' m² <br/>')
189              END,              END,
190              CASE              CASE
191                  WHEN donnees_techniques.su_trsf_shon9 IS NULL                  WHEN donnees_techniques.su_cstr_shon9 IS NULL
192                  THEN ''                  THEN ''
193                  ELSE CONCAT('Service public ou d''intérêt collectif - ', donnees_techniques.su_trsf_shon9, ' m²')                  ELSE CONCAT('Service public ou d''intérêt collectif - ', donnees_techniques.su_cstr_shon9, ' m²')
194              END              END
195          ), ' <br/>$', '') as \"surface\",          ), ' <br/>$', '') as \"surface\",
196          co_tot_ind_nb as \"nombre_logement_crees_individuel\",          co_tot_ind_nb as \"nombre_logement_crees_individuel\",
# Line 349  if ( !is_null($idx)){ Line 351  if ( !is_null($idx)){
351              ) as \"description_projet\",              ) as \"description_projet\",
352              REGEXP_REPLACE(CONCAT(              REGEXP_REPLACE(CONCAT(
353                  CASE                  CASE
354                      WHEN donnees_techniques.su_trsf_shon1 IS NULL                      WHEN donnees_techniques.su_cstr_shon1 IS NULL
355                      THEN ''                      THEN ''
356                      ELSE CONCAT('Habitation - ', donnees_techniques.su_trsf_shon1, ' m² <br/>')                      ELSE CONCAT('Habitation - ', donnees_techniques.su_cstr_shon1, ' m² <br/>')
357                  END,                  END,
358                  CASE                  CASE
359                      WHEN donnees_techniques.su_trsf_shon2 IS NULL                      WHEN donnees_techniques.su_cstr_shon2 IS NULL
360                      THEN ''                      THEN ''
361                      ELSE CONCAT('Hébergement hôtelier - ', donnees_techniques.su_trsf_shon2, ' m² <br/>')                      ELSE CONCAT('Hébergement hôtelier - ', donnees_techniques.su_cstr_shon2, ' m² <br/>')
362                  END,                  END,
363                  CASE                  CASE
364                      WHEN donnees_techniques.su_trsf_shon3 IS NULL                      WHEN donnees_techniques.su_cstr_shon3 IS NULL
365                      THEN ''                      THEN ''
366                      ELSE CONCAT('Bureaux - ', donnees_techniques.su_trsf_shon3, ' m² <br/>')                      ELSE CONCAT('Bureaux - ', donnees_techniques.su_cstr_shon3, ' m² <br/>')
367                  END,                  END,
368                  CASE                  CASE
369                      WHEN donnees_techniques.su_trsf_shon4 IS NULL                      WHEN donnees_techniques.su_cstr_shon4 IS NULL
370                      THEN ''                      THEN ''
371                      ELSE CONCAT('Commerce - ', donnees_techniques.su_trsf_shon4, ' m² <br/>')                      ELSE CONCAT('Commerce - ', donnees_techniques.su_cstr_shon4, ' m² <br/>')
372                  END,                  END,
373                  CASE                  CASE
374                      WHEN donnees_techniques.su_trsf_shon5 IS NULL                      WHEN donnees_techniques.su_cstr_shon5 IS NULL
375                      THEN ''                      THEN ''
376                      ELSE CONCAT('Artisanat - ', donnees_techniques.su_trsf_shon5, ' m² <br/>')                      ELSE CONCAT('Artisanat - ', donnees_techniques.su_cstr_shon5, ' m² <br/>')
377                  END,                  END,
378                  CASE                  CASE
379                      WHEN donnees_techniques.su_trsf_shon6 IS NULL                      WHEN donnees_techniques.su_cstr_shon6 IS NULL
380                      THEN ''                      THEN ''
381                      ELSE CONCAT('Industrie - ', donnees_techniques.su_trsf_shon6, ' m² <br/>')                      ELSE CONCAT('Industrie - ', donnees_techniques.su_cstr_shon6, ' m² <br/>')
382                  END,                  END,
383                  CASE                  CASE
384                      WHEN donnees_techniques.su_trsf_shon7 IS NULL                      WHEN donnees_techniques.su_cstr_shon7 IS NULL
385                      THEN ''                      THEN ''
386                      ELSE CONCAT('Exploitation agricole ou forestière - ', donnees_techniques.su_trsf_shon7, ' m² <br/>')                      ELSE CONCAT('Exploitation agricole ou forestière - ', donnees_techniques.su_cstr_shon7, ' m² <br/>')
387                  END,                  END,
388                  CASE                  CASE
389                      WHEN donnees_techniques.su_trsf_shon8 IS NULL                      WHEN donnees_techniques.su_cstr_shon8 IS NULL
390                      THEN ''                      THEN ''
391                      ELSE CONCAT('Entrepôt - ', donnees_techniques.su_trsf_shon8, ' m² <br/>')                      ELSE CONCAT('Entrepôt - ', donnees_techniques.su_cstr_shon8, ' m² <br/>')
392                  END,                  END,
393                  CASE                  CASE
394                      WHEN donnees_techniques.su_trsf_shon9 IS NULL                      WHEN donnees_techniques.su_cstr_shon9 IS NULL
395                      THEN ''                      THEN ''
396                      ELSE CONCAT('Service public ou d''intérêt collectif - ', donnees_techniques.su_trsf_shon9, ' m²')                      ELSE CONCAT('Service public ou d''intérêt collectif - ', donnees_techniques.su_cstr_shon9, ' m²')
397                  END                  END
398              ), ' <br/>$', '') as \"surface\",              ), ' <br/>$', '') as \"surface\",
399              co_tot_ind_nb as \"nombre_logement_crees_individuel\",              co_tot_ind_nb as \"nombre_logement_crees_individuel\",
# Line 513  if ( !is_null($idx)){ Line 515  if ( !is_null($idx)){
515      $form->setLib("demandeur", _("Demandeur principal"));      $form->setLib("demandeur", _("Demandeur principal"));
516      $form->setLib("infos_localisation_terrain", _("infos_localisation_terrain"));      $form->setLib("infos_localisation_terrain", _("infos_localisation_terrain"));
517      $form->setLib("depot_initial", _("Depot initial"));      $form->setLib("depot_initial", _("Depot initial"));
518      $form->setLib("date_decision", _("Date de decision"));      $form->setLib("date_decision", _("Decision initiale"));
519      $form->setLib("date_validite", _("Date de validite"));      $form->setLib("date_validite", _("Date de validite"));
520      $form->setLib("date_depot_DAACT", _("Date de depot de la DAACT"));      $form->setLib("date_depot_DAACT", _("Date de depot de la DAACT"));
521      $form->setLib("date_depot_DOC", _("Date de depot de la DOC"));      $form->setLib("date_depot_DOC", _("Date de depot de la DOC"));

Legend:
Removed from v.2421  
changed lines
  Added in v.2751

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26