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 |
vpihour |
3138 |
include "../core/sql/pgsql/om_sig_map.inc.php"; |
11 |
fmichon |
2265 |
|
12 |
fraynaud |
335 |
$champAffiche=array( |
13 |
|
|
'om_sig_map as "'._("om_sig_map").'"', |
14 |
|
|
'id as "'._("id").'"', |
15 |
|
|
'om_sig_map.libelle as "'._("libelle").'"', |
16 |
|
|
'om_collectivite.libelle ||\' (\'||om_collectivite.niveau||\')\' as "'._("om_collectivite").'"', |
17 |
|
|
'zoom as "'._("zoom").'"', |
18 |
|
|
'fond_osm as "'._("osm").'"', |
19 |
|
|
'fond_bing as "'._("bing").'"', |
20 |
|
|
'fond_sat as "'._("sat").'"', |
21 |
|
|
'layer_info as "'._("info").'"', |
22 |
|
|
// 'etendue as "'._("etendue").'"', |
23 |
|
|
// 'projection_externe as "'._("projection_externe").'"', |
24 |
|
|
'maj as "'._("maj").'"', |
25 |
|
|
// 'lib_geometrie as "'._("lib_geometrie").'"', |
26 |
|
|
// 'table_update as "'._("table_update").'"', |
27 |
|
|
// 'champ as "'._("champ").'"', |
28 |
|
|
'actif as "'._("actif").'"', |
29 |
|
|
); |
30 |
|
|
$href[3] = array( |
31 |
|
|
"lien" => "../scr/valid_copie.php?obj=".$obj."&idx=", |
32 |
|
|
"id" => "", |
33 |
|
|
"lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>", |
34 |
|
|
); |
35 |
|
|
if ($_SESSION['niveau']== '2') |
36 |
|
|
$selection=''; |
37 |
|
|
else{ |
38 |
|
|
$selection=" where om_sig_map.om_collectivite = '".$_SESSION['collectivite']."' or om_collectivite.niveau ='2'"; |
39 |
|
|
$options = array(); |
40 |
|
|
$option = array( |
41 |
|
|
"type" => "condition", |
42 |
|
|
"field" => "niveau", |
43 |
|
|
"case" => array( |
44 |
|
|
"0" => array( |
45 |
|
|
"values" => array('2', ), |
46 |
|
|
"style" => "tab_desactive", |
47 |
|
|
"href" => array( |
48 |
|
|
0 => array("lien" => "", "id" => "", "lib" => ""), |
49 |
|
|
1 => array("lien" => "", "id" => "", "lib" => ""), |
50 |
|
|
2 => array("lien" => "", "id" => "", "lib" => ""), |
51 |
|
|
//3 => array("lien" => "", "id" => "", "lib" => ""), |
52 |
|
|
3 => array("lien" => "../scr/valid_copie.php?obj=".$obj."&idx=","id" => "", |
53 |
|
|
"lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>"), |
54 |
|
|
), |
55 |
|
|
), |
56 |
|
|
), |
57 |
|
|
); |
58 |
|
|
array_push($options, $option); |
59 |
|
|
} |
60 |
fmichon |
2265 |
|
61 |
|
|
?> |