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

View File

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

View File

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