1 |
<?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."&idx=", |
12 |
"id" => "", |
13 |
"lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>", |
14 |
); |
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."&idx=", |
35 |
"id" => "", |
36 |
"lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>"), |
37 |
), |
38 |
), |
39 |
), |
40 |
); |
41 |
array_push($options, $option); |
42 |
} |
43 |
?> |