/[openfoncier]/trunk/sql/pgsql/evenement.form.inc.php
ViewVC logotype

Contents of /trunk/sql/pgsql/evenement.form.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1143 - (show annotations)
Fri Jan 4 09:31:47 2013 UTC (12 years, 1 month ago) by vpihour
File size: 2738 byte(s)
Ajout des libellés des dossier_autorisation_type_detaille pour la saisie des dossier_instruction_type dans les evenements

1 <?php
2 //$Id$
3 //gen openMairie le 10/02/2011 20:33
4 include('../gen/sql/pgsql/evenement.form.inc.php');
5 $sql_om_lettretype="select id,(id||' '||libelle) as libelle from ".
6 DB_PREFIXE."om_lettretype";
7
8 $sep = (isset($_GET['action']) &&
9 ($_GET['action'] == 1 || $_GET['action'] == 0 )) ? ';' : ',' ;
10
11 $champs=array(
12 "evenement.evenement",
13 "libelle",
14 "nature",
15 "action",
16 "etat",
17 "delai",
18 "accord_tacite",
19 "delai_notification",
20 "lettretype",
21 "consultation",
22 "avis_decision",
23 "restriction",
24 "type",
25 "evenement_retour_ar",
26 "evenement_suivant_tacite",
27 "array_to_string(array_agg(dossier_instruction_type ORDER BY dossier_instruction_type), '$sep') as dossier_instruction_type");
28
29 $tableSelect = DB_PREFIXE."evenement
30 LEFT JOIN
31 ".DB_PREFIXE."lien_dossier_instruction_type_evenement
32 ON
33 lien_dossier_instruction_type_evenement.evenement=evenement.evenement";
34
35 $selection = " GROUP BY evenement.evenement,libelle";
36
37 $sql_dossier_instruction_type="SELECT
38 dossier_instruction_type.dossier_instruction_type,
39 CONCAT( dossier_instruction_type.code ,' - ',dossier_instruction_type.libelle
40 , ' - ', dossier_autorisation_type_detaille.libelle)
41 FROM
42 ".DB_PREFIXE."dossier_instruction_type
43 LEFT JOIN
44 ".DB_PREFIXE."dossier_autorisation_type_detaille
45 ON
46 dossier_instruction_type.dossier_autorisation_type_detaille=
47 dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
48 ORDER BY
49 dossier_autorisation_type_detaille.libelle";
50 $sql_dossier_instruction_type_by_id = "SELECT
51 dossier_instruction_type.dossier_instruction_type,
52 CONCAT( dossier_instruction_type.code ,' - ',dossier_instruction_type.libelle)
53 FROM
54 ".DB_PREFIXE."dossier_instruction_type
55 LEFT JOIN
56 ".DB_PREFIXE."dossier_autorisation_type_detaille
57 ON
58 dossier_instruction_type.dossier_autorisation_type_detaille=
59 dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
60 WHERE
61 dossier_instruction_type IN (<idx>)
62 ORDER BY
63 dossier_autorisation_type_detaille.libelle";
64 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26