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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 865 - (show annotations)
Wed Nov 28 17:47:39 2012 UTC (12 years, 2 months ago) by fmichon
File size: 1430 byte(s)
Renommage de la table demande_genre en genre + Ajout de relations obligatoires entre dossier_autorisation_type_detaille et dossier_autorisation_type  et entre dossier_autorisation_type_detaille et dossier_instruction_type

1 <?php
2 //$Id$
3 //gen openMairie le 28/11/2012 18:33
4
5 $DEBUG=0;
6 $serie=15;
7 $ico="../img/ico_application.png";
8 $ent = _("application")." -> "._("groupe");
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."groupe
23 LEFT JOIN ".DB_PREFIXE."genre
24 ON groupe.genre=genre.genre ";
25 // SELECT
26 $champAffiche = array(
27 'groupe.groupe as "'._("groupe").'"',
28 'groupe.code as "'._("code").'"',
29 'groupe.libelle as "'._("libelle").'"',
30 'genre.libelle as "'._("genre").'"',
31 );
32 //
33 $champNonAffiche = array(
34 'groupe.description as "'._("description").'"',
35 );
36 //
37 $champRecherche = array(
38 'groupe.groupe as "'._("groupe").'"',
39 'groupe.code as "'._("code").'"',
40 'groupe.libelle as "'._("libelle").'"',
41 'genre.libelle as "'._("genre").'"',
42 );
43 $tri="ORDER BY groupe.libelle ASC NULLS LAST";
44 $edition="groupe";
45 $selection='';
46 if ($retourformulaire== 'genre') {
47 $selection=" WHERE (groupe.genre ='".$idx."')";
48 }
49 $sousformulaire = array(
50 'demande_type',
51 'dossier_autorisation_type',);
52 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26