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

Contents of /trunk/sql/pgsql/demande_avis.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 666 - (show annotations)
Mon Nov 12 13:38:33 2012 UTC (12 years, 2 months ago) by nhaye
File size: 3893 byte(s)
Correction de l'import du script parent.

1 <?php
2 //$Id$
3 //gen openMairie le 18/10/2012 16:21
4 include('../gen/sql/pgsql/consultation.inc.php');
5 $ent = _("Demandes d'avis");
6 // FROM
7 $table = DB_PREFIXE."consultation
8 INNER JOIN ".DB_PREFIXE."dossier
9 ON consultation.dossier=dossier.dossier
10 INNER JOIN ".DB_PREFIXE."service
11 ON service.service=consultation.service
12 INNER JOIN lien_service_om_utilisateur
13 ON lien_service_om_utilisateur.service=service.service
14 INNER JOIN om_utilisateur
15 ON om_utilisateur.om_utilisateur=lien_service_om_utilisateur.om_utilisateur
16 LEFT OUTER JOIN ".DB_PREFIXE."avis_consultation
17 ON consultation.avis_consultation=avis_consultation.avis_consultation
18 LEFT OUTER JOIN ".DB_PREFIXE."travaux
19 ON travaux.travaux=dossier.travaux
20 ";
21 // XXX LEFT OUTER JOIN pieces_complementaire
22 // SELECT
23 $champAffiche = array(
24 'consultation.consultation as "'._("consultation").'"',
25 'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
26 'consultation.dossier as "'._("dossier").'"',
27 // date de depots de piece complementaire
28 'travaux.libelle as "'._("Nature des travaux").'"',
29 'dossier.terrain_numero||dossier.terrain_numero_complement||\' \'||dossier.terrain_adresse
30 ||\' \'||dossier.terrain_adresse_complement||\' \'||terrain_cp||\' \'||terrain_ville as "'._("Adresse du terrain").'"',
31 'dossier.demandeur_nom as "'._("petitionaire").'"',
32 'dossier.shon as "'._("surface").'"',
33 'service.abrege as "'._("service").'"',
34 );
35 //
36 $champRecherche = array(
37 'consultation.consultation as "'._("consultation").'"',
38 'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
39 'consultation.dossier as "'._("dossier").'"',
40 // date de depots de piece complementaire
41 'traveaux.libelle as "'._("Nature des travaux").'"',
42 'dossier.terrain_adresse as "'._("Adresse du terrain").'"',
43 'dossier.terrain_cp as "'._("Adresse du terrain").'"',
44 'dossier.terrain_ville as "'._("Adresse du terrain").'"',
45 'dossier.demandeur_nom as "'._("petitionaire").'"',
46 'dossier.shon as "'._("surface").'"',
47 'service.abrege as "'._("service").'"',
48 );
49 $tri="ORDER BY consultation.date_limite::date ASC";
50 $edition="";
51 $selection=' WHERE om_utilisateur.login=\''.$_SESSION['login'].'\'';
52
53 //Suppression des liens
54 $tab_actions['corner']['ajouter']=NULL;
55 $tab_actions['left']['consulter']=NULL;
56
57 //Recherche avancee
58
59 $champs = array();
60
61 $champs['date_limite'] =
62 array('colonne' => 'consultation.date_limite',
63 'table' => 'consultation',
64 'libelle' => _('Date limite'),
65 'type' => 'date',
66 'where' => 'intervaldate');
67
68 $champs['dossier'] = array(
69 'table' => 'consultation',
70 'colonne' => 'dossier',
71 'type' => 'text',
72 'libelle' => _('dossier'));
73
74 $champs['nature'] = array(
75 'table' => 'travaux',
76 'colonne' => 'libelle',
77 'type' => 'text',
78 'libelle' => _('nature des travaux'));
79
80 $champs['adresse'] = array(
81 'table' => 'dossier',
82 'colonne' => 'terrain_adresse',
83 'type' => 'text',
84 'libelle' => _('terrain'));
85
86 $champs['petitionnaire'] = array(
87 'table' => 'dossier',
88 'colonne' => 'demandeur_nom',
89 'type' => 'text',
90 'libelle' => _('petitionnaire'));
91
92 $champs['service_abrege'] = array(
93 'table' => 'service',
94 'colonne' => 'abrege',
95 'type' => 'text',
96 'libelle' => _('Service (abrege)'));
97
98 $options[] = array('type' => 'search',
99 'display' => true,
100 'advanced' => $champs,
101 'absolute_object' => 'consultation',
102 'export' => array("csv"));
103
104 $sousformulaire=array("dossier_document");
105
106 $sousformulaire_parameters = array(
107
108 "dossier_document" => array(
109 "title" => _("Documents"),
110 "href" => "../app/dossier_document.view.php",
111 ),
112 );
113 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26