/[openfoncier]/branches/switch_collectivite/gen/sql/pgsql/quartier.inc.php
ViewVC logotype

Annotation of /branches/switch_collectivite/gen/sql/pgsql/quartier.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4142 - (hide annotations)
Thu May 12 16:08:55 2016 UTC (8 years, 8 months ago) by nhaye
File size: 1952 byte(s)
Création de branche pour passer l'agglo de test avec l'id 1

1 mbroquet 3730 <?php
2     //$Id: quartier.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")." -> "._("quartier");
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."quartier
23     LEFT JOIN ".DB_PREFIXE."arrondissement
24     ON quartier.arrondissement=arrondissement.arrondissement ";
25     // SELECT
26     $champAffiche = array(
27     'quartier.quartier as "'._("quartier").'"',
28     'arrondissement.libelle as "'._("arrondissement").'"',
29     'quartier.code_impots as "'._("code_impots").'"',
30     'quartier.libelle as "'._("libelle").'"',
31     );
32     //
33     $champNonAffiche = array(
34     );
35     //
36     $champRecherche = array(
37     'quartier.quartier as "'._("quartier").'"',
38     'arrondissement.libelle as "'._("arrondissement").'"',
39     'quartier.code_impots as "'._("code_impots").'"',
40     'quartier.libelle as "'._("libelle").'"',
41     );
42     $tri="ORDER BY quartier.libelle ASC NULLS LAST";
43     $edition="quartier";
44     /**
45     * Gestion de la clause WHERE => $selection
46     */
47     // Filtre listing standard
48     $selection = "";
49     // Liste des clés étrangères avec leurs éventuelles surcharges
50     $foreign_keys_extended = array(
51     "arrondissement" => array("arrondissement", ),
52     );
53     // Filtre listing sous formulaire - arrondissement
54     if (in_array($retourformulaire, $foreign_keys_extended["arrondissement"])) {
55     $selection = " WHERE (quartier.arrondissement = '".$idx."') ";
56     }
57    
58     /**
59     * Gestion SOUSFORMULAIRE => $sousformulaire
60     */
61     $sousformulaire = array(
62     'affectation_automatique',
63     'dossier',
64     );
65    
66     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26