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

Contents of /trunk/gen/sql/pgsql/bible.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 402 - (show annotations)
Thu Sep 20 14:36:44 2012 UTC (12 years, 4 months ago) by nhaye
File size: 1742 byte(s)
Ajout de champs obligatoire sur la table bible,
régénération et suppression de surcharge

1 <?php
2 //$Id$
3 //gen openMairie le 20/09/2012 16:07
4
5 $DEBUG=0;
6 $serie=15;
7 $ico="../img/ico_application.png";
8 $ent = _("application")." -> "._("bible");
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."bible
23 LEFT JOIN ".DB_PREFIXE."evenement
24 ON bible.evenement=evenement.evenement
25 LEFT JOIN ".DB_PREFIXE."nature
26 ON bible.nature=nature.nature ";
27 // SELECT
28 $champAffiche = array(
29 'bible.bible as "'._("bible").'"',
30 'bible.libelle as "'._("libelle").'"',
31 'evenement.libelle as "'._("evenement").'"',
32 'bible.complement as "'._("complement").'"',
33 'bible.automatique as "'._("automatique").'"',
34 'nature.libelle as "'._("nature").'"',
35 );
36 //
37 $champNonAffiche = array(
38 'bible.contenu as "'._("contenu").'"',
39 );
40 //
41 $champRecherche = array(
42 'bible.bible as "'._("bible").'"',
43 'bible.libelle as "'._("libelle").'"',
44 'evenement.libelle as "'._("evenement").'"',
45 'bible.complement as "'._("complement").'"',
46 'bible.automatique as "'._("automatique").'"',
47 'nature.libelle as "'._("nature").'"',
48 );
49 $tri="ORDER BY bible.libelle ASC NULLS LAST";
50 $edition="bible";
51 $selection='';
52 if ($retourformulaire== 'evenement') {
53 $selection=" WHERE (bible.evenement ='".$idx."')";
54 }
55 if ($retourformulaire== 'nature') {
56 $selection=" WHERE (bible.nature ='".$idx."')";
57 }
58 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26