/[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 2265 - (hide annotations)
Mon Sep 9 08:16:29 2013 UTC (11 years, 4 months ago) by fmichon
File size: 2817 byte(s)
Mise à niveau openmairie_exemple 4.4.0

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

Properties

Name Value
svn:executable *

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26