1 |
mbroquet |
3730 |
<?php |
2 |
|
|
/** |
3 |
|
|
* |
4 |
|
|
* |
5 |
|
|
* @package openmairie_exemple |
6 |
|
|
* @version SVN : $Id: om_logo.inc.php 4651 2015-04-26 09:15:48Z tbenita $ |
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
// |
10 |
|
|
include "../core/sql/pgsql/om_logo.inc.php"; |
11 |
|
|
$ent = _("parametrage dossiers")." -> "._("editions")." -> "._("om_logo"); |
12 |
|
|
|
13 |
|
|
|
14 |
|
|
// |
15 |
|
|
if (isset($f) && $f->isAccredited(array($obj, $obj."_copier"), "OR")) { |
16 |
|
|
// |
17 |
|
|
$href_copie = array( |
18 |
|
|
"lien" => "../app/valid_copie.php?obj=".$obj."&idx=", |
19 |
|
|
"id" => "", |
20 |
|
|
"lib" => "<span class=\"om-icon om-icon-16 om-icon-fix copy-16\" title=\""._("Copier")."\">"._("Copier")."</span>", |
21 |
|
|
); |
22 |
|
|
// |
23 |
|
|
$href[3] = $href_copie; |
24 |
|
|
} else { |
25 |
|
|
// |
26 |
|
|
$href_copie = array("lien" => "", "id" => "", "lib" => ""); |
27 |
|
|
} |
28 |
|
|
|
29 |
|
|
/** |
30 |
|
|
* Options |
31 |
|
|
*/ |
32 |
|
|
if ($_SESSION['niveau'] == '2') { |
33 |
|
|
$selection = ""; |
34 |
|
|
} else { |
35 |
|
|
$selection = " where (".$obj.".om_collectivite='".$_SESSION['collectivite']."' or niveau='2')"; |
36 |
|
|
$options = array(); |
37 |
|
|
$option = array( |
38 |
|
|
"type" => "condition", |
39 |
|
|
"field" => "om_collectivite.niveau", |
40 |
|
|
"case" => array( |
41 |
|
|
"0" => array( |
42 |
|
|
"values" => array('2', ), |
43 |
|
|
"style" => "tab_desactive", |
44 |
|
|
"href" => array( |
45 |
|
|
0 => array("lien" => "", "id" => "", "lib" => ""), |
46 |
|
|
1 => array("lien" => "", "id" => "", "lib" => ""), |
47 |
|
|
2 => array("lien" => "", "id" => "", "lib" => ""), |
48 |
|
|
3 => $href_copie, |
49 |
|
|
), |
50 |
|
|
), |
51 |
|
|
), |
52 |
|
|
); |
53 |
|
|
array_push($options, $option); |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
?> |