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

Annotation of /trunk/sql/pgsql/om_sousetat.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 119 - (hide annotations)
Wed Sep 7 10:46:09 2011 UTC (13 years, 5 months ago) by fraynaud
Original Path: trunk/sql/pgsql/om_sousetat.inc
File size: 1734 byte(s)


1 fraynaud 3 <?php
2     //$Id$
3     //gen openMairie le 04/11/2010 17:45
4     include('../gen/sql/pgsql/om_sousetat.inc.php');
5     $table=DB_PREFIXE."om_sousetat inner join ".DB_PREFIXE."om_collectivite on
6     om_collectivite.om_collectivite=om_sousetat.om_collectivite";
7     $champAffiche=array('om_sousetat','om_collectivite.libelle as collectivite',
8     'id','om_sousetat.libelle as libelle','actif');
9     $champRecherche=array('id','om_collectivite.libelle','om_sousetat.libelle','actif','niveau');
10     $href[3] = array(
11     "lien" => "../scr/valid_copie.php?obj=".$obj."&amp;idx=",
12     "id" => "",
13 fraynaud 119 "lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>",
14 fraynaud 3 );
15     /**
16     * Options
17     */
18     if ($_SESSION['niveau']== '2')
19     $selection='';
20     else{
21     $selection=" where om_sousetat.om_collectivite = '".$_SESSION['collectivite']."' or niveau ='2'";
22     $options = array();
23     $option = array(
24     "type" => "condition",
25     "field" => "niveau",
26     "case" => array(
27     "0" => array(
28     "values" => array('2', ),
29     "style" => "tab_desactive",
30     "href" => array(
31     0 => array("lien" => "", "id" => "", "lib" => ""),
32     1 => array("lien" => "", "id" => "", "lib" => ""),
33     2 => array("lien" => "", "id" => "", "lib" => ""),
34     3 => array("lien" => "../scr/valid_copie.php?obj=".$obj."&amp;idx=",
35     "id" => "",
36 fraynaud 119 "lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>"),
37 fraynaud 3 ),
38     ),
39     ),
40     );
41     array_push($options, $option);
42     }
43     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26