Retour à la version précédente

This commit is contained in:
Michael RICOIS 2010-11-03 13:24:58 +00:00
parent 41be2f256e
commit 759025e018
3 changed files with 21 additions and 17 deletions

View File

@ -23,10 +23,17 @@ function activeMenu($page){
//Pieces officielles
$activeMenu[] = array('pieces', 'kbis2', 'greffes', 'privileges');
//Options
$activeMenu[] = array('moncompte', 'surveillance', 'portefeuille',
'greffescmd', 'international_commandes',
'giant_commandes',
'administration', 'stats', 'survliste');
if ($_SESSION['tabInfo']['international_giant'] == 1) {
$activeMenu[] = array('moncompte', 'surveillance', 'portefeuille',
'greffescmd', 'international_commandes',
'giant_commandes',
'administration', 'stats', 'survliste');
} else {
$activeMenu[] = array('moncompte', 'surveillance', 'portefeuille',
'greffescmd', 'international_commandes',
'administration', 'stats', 'survliste');
}
$menuIndex = 0;
foreach ($activeMenu as $key => $pages)
{
@ -265,10 +272,12 @@ function defineMenu(){
'href' => 'menu_href_internationalcmd',
'perm' => array('list' => array( 'INTERNATIONAL' ),
'hidden' => true));
$children[] = array('data' => 'Commandes Giant',
'href' => 'menu_href_giantcmd',
'perm' => array('list' => array( 'INTERNATIONAL_GIANT' ),
'hidden' => true));
if ($_SESSION['tabInfo']['international_giant'] == 1) {
$children[] = array('data' => 'Commandes Giant',
'href' => 'menu_href_giantcmd',
'perm' => array('list' => array( 'INTERNATIONAL' ),
'hidden' => true));
}
$children[] = array('data' => 'Statistiques',
'href' => 'menu_href_stats');
$children[] = array('data' => 'Surveillances',

View File

@ -460,12 +460,7 @@ function menu_href_internationalcmd()
function menu_href_giantcmd()
{
$href = false;
if(hasModeEdition())
{
$href = './?page=giant_commandes';
}
return $href;
return './?page=giant_commandes';
}
function menu_href_stats()

View File

@ -319,13 +319,13 @@ FB::log($login, 'login');
<?=formElementPerm($login)?>
<?php
if (checkModeEdition($loginVu)) {
if ($_SESSION['tabInfo']['droits']['international_giant'] == 1) {
if ($_SESSION['tabInfo']['international_giant'] == 1) {
$strMode = 'checked';
} else {
$strMode = '';
}
print '<input type="checkbox" name="frmOptions[droits][]"'.
' value="international_giant" disabled '.$strMode.
print '<input type="checkbox" name="frmOptions[international_giant]"'.
' value="1" disabled '.$strMode.
' class="noborder"/>Recherche internationale V2';
}
?>