/[openfoncier]/branches/cleanup-old-openfoncier/gen/sql/pgsql/parcelle.inc.php
ViewVC logotype

Contents of /branches/cleanup-old-openfoncier/gen/sql/pgsql/parcelle.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4675 - (show annotations)
Thu Jun 30 11:04:21 2016 UTC (8 years, 7 months ago) by fmichon
File size: 2851 byte(s)
* Branche : Suppression d'anciens fichiers d'openfoncier inutilisés.

1 <?php
2 //$Id: parcelle.inc.php 4418 2015-02-24 17:30:28Z tbenita $
3 //gen openMairie le 16/10/2014 15:11
4
5 $DEBUG=0;
6 $serie=15;
7 $ico="../img/ico_application.png";
8 $ent = _("application")." -> "._("parcelle");
9 if(!isset($premier)) $premier='';
10 if(!isset($recherche1)) $recherche1='';
11 if(!isset($tricolsf)) $tricolsf='';
12 if(!isset($premiersf)) $premiersf='';
13 if(!isset($selection)) $selection='';
14 if(!isset($retourformulaire)) $retourformulaire='';
15 if (isset($idx) && $idx != ']' && trim($idx) != '') {
16 $ent .= "->&nbsp;".$idx."&nbsp;";
17 }
18 if (isset($idz) && trim($idz) != '') {
19 $ent .= "&nbsp;".strtoupper($idz)."&nbsp;";
20 }
21 // FROM
22 $table = DB_PREFIXE."parcelle
23 LEFT JOIN ".DB_PREFIXE."pos
24 ON parcelle.pos=pos.pos
25 LEFT JOIN ".DB_PREFIXE."proprietaire
26 ON parcelle.proprietaire=proprietaire.proprietaire
27 LEFT JOIN ".DB_PREFIXE."rivoli
28 ON parcelle.rivoli=rivoli.rivoli ";
29 // SELECT
30 $champAffiche = array(
31 'parcelle.parcelle as "'._("parcelle").'"',
32 'parcelle.debut as "'._("debut").'"',
33 'rivoli.libelle as "'._("rivoli").'"',
34 'proprietaire.nom as "'._("proprietaire").'"',
35 'pos.libelle as "'._("pos").'"',
36 'parcelle.surface as "'._("surface").'"',
37 'parcelle.section as "'._("section").'"',
38 'parcelle.commune as "'._("commune").'"',
39 'parcelle.geom as "'._("geom").'"',
40 );
41 //
42 $champNonAffiche = array(
43 );
44 //
45 $champRecherche = array(
46 'parcelle.parcelle as "'._("parcelle").'"',
47 'parcelle.debut as "'._("debut").'"',
48 'rivoli.libelle as "'._("rivoli").'"',
49 'proprietaire.nom as "'._("proprietaire").'"',
50 'pos.libelle as "'._("pos").'"',
51 'parcelle.surface as "'._("surface").'"',
52 'parcelle.section as "'._("section").'"',
53 'parcelle.commune as "'._("commune").'"',
54 );
55 $tri="ORDER BY parcelle.debut ASC NULLS LAST";
56 $edition="parcelle";
57 /**
58 * Gestion de la clause WHERE => $selection
59 */
60 // Filtre listing standard
61 $selection = "";
62 // Liste des clés étrangères avec leurs éventuelles surcharges
63 $foreign_keys_extended = array(
64 "pos" => array("pos", ),
65 "proprietaire" => array("proprietaire", ),
66 "rivoli" => array("rivoli", ),
67 );
68 // Filtre listing sous formulaire - pos
69 if (in_array($retourformulaire, $foreign_keys_extended["pos"])) {
70 $selection = " WHERE (parcelle.pos = '".$idx."') ";
71 }
72 // Filtre listing sous formulaire - proprietaire
73 if (in_array($retourformulaire, $foreign_keys_extended["proprietaire"])) {
74 $selection = " WHERE (parcelle.proprietaire = '".$idx."') ";
75 }
76 // Filtre listing sous formulaire - rivoli
77 if (in_array($retourformulaire, $foreign_keys_extended["rivoli"])) {
78 $selection = " WHERE (parcelle.rivoli = '".$idx."') ";
79 }
80
81 /**
82 * Gestion SOUSFORMULAIRE => $sousformulaire
83 */
84 $sousformulaire = array(
85 'dossier',
86 'dossier_autorisation_parcelle',
87 'dossier_parcelle',
88 );
89
90 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26