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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 335 - (hide annotations)
Wed Jun 27 11:02:03 2012 UTC (12 years, 7 months ago) by fraynaud
File size: 2731 byte(s)
om_sig_map


1 fraynaud 335 <?php
2     //$Id$
3     //gen openMairie le 27/06/2012 11:36
4     include('../gen/sql/pgsql/om_sig_map.inc.php');
5     $table=DB_PREFIXE."om_sig_map inner join ".DB_PREFIXE.
6     "om_collectivite on om_collectivite.om_collectivite = om_sig_map.om_collectivite";
7     $champAffiche=array(
8     'om_sig_map as "'._("om_sig_map").'"',
9     'id as "'._("id").'"',
10     'om_sig_map.libelle as "'._("libelle").'"',
11     'om_collectivite.libelle ||\' (\'||om_collectivite.niveau||\')\' as "'._("om_collectivite").'"',
12     'zoom as "'._("zoom").'"',
13     'fond_osm as "'._("osm").'"',
14     'fond_bing as "'._("bing").'"',
15     'fond_sat as "'._("sat").'"',
16     'layer_info as "'._("info").'"',
17     // 'etendue as "'._("etendue").'"',
18     // 'projection_externe as "'._("projection_externe").'"',
19     'maj as "'._("maj").'"',
20     // 'lib_geometrie as "'._("lib_geometrie").'"',
21     // 'table_update as "'._("table_update").'"',
22     // 'champ as "'._("champ").'"',
23     'actif as "'._("actif").'"',
24     );
25     $champRecherche=array(
26     'id as "'._("id").'"',
27     'om_sig_map.libelle as "'._("libelle").'"',
28     'zoom as "'._("zoom").'"',
29     'fond_osm as "'._("fond_osm").'"',
30     'fond_bing as "'._("fond_bing").'"',
31     'fond_sat as "'._("fond_sat").'"',
32     'etendue as "'._("etendue").'"',
33     'projection_externe as "'._("projection_externe").'"',
34     'maj as "'._("maj").'"',
35     'table_update as "'._("table_update").'"',
36     'actif as "'._("actif").'"',
37     );
38    
39     $tri=' order by om_sig_map.id';//.libelle';
40     $href[3] = array(
41     "lien" => "../scr/valid_copie.php?obj=".$obj."&amp;idx=",
42     "id" => "",
43     "lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>",
44     );
45     if ($_SESSION['niveau']== '2')
46     $selection='';
47     else{
48     $selection=" where om_sig_map.om_collectivite = '".$_SESSION['collectivite']."' or om_collectivite.niveau ='2'";
49     $options = array();
50     $option = array(
51     "type" => "condition",
52     "field" => "niveau",
53     "case" => array(
54     "0" => array(
55     "values" => array('2', ),
56     "style" => "tab_desactive",
57     "href" => array(
58     0 => array("lien" => "", "id" => "", "lib" => ""),
59     1 => array("lien" => "", "id" => "", "lib" => ""),
60     2 => array("lien" => "", "id" => "", "lib" => ""),
61     //3 => array("lien" => "", "id" => "", "lib" => ""),
62     3 => array("lien" => "../scr/valid_copie.php?obj=".$obj."&amp;idx=","id" => "",
63     "lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>"),
64     ),
65     ),
66     ),
67     );
68     array_push($options, $option);
69     }
70     ?>

Properties

Name Value
svn:executable *

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26