Improve : selected cell in advanced menu

This commit is contained in:
sparkyx 2005-04-01 21:46:12 +00:00
parent 17b617f3dc
commit db55b4b7d4
5 changed files with 6 additions and 6 deletions

View file

@ -49,7 +49,7 @@ if ( $User->CheckAction($cn,CENTRALIZE)==0 ) {
include_once("central_inc.php");
echo '<div class="u_subtmenu">';
echo ShowMenuAdvanced();
echo ShowMenuAdvanced("central.php");
echo '</div>';

View file

@ -43,7 +43,7 @@ if ( $User->CheckAction($cn,GJRN) == 0 ) {
}
echo '<div class="u_subtmenu">';
echo ShowMenuAdvanced();
echo ShowMenuAdvanced("jrn_update.php");
MenuJrn($_SESSION['g_dossier']);
echo '</div>';
html_page_stop();

View file

@ -59,7 +59,7 @@ if ( isset ($_GET['p_start'])) {
}
echo '<div class="u_subtmenu">';
echo ShowMenuAdvanced();
echo ShowMenuAdvanced("pcmn_update.php?p_start=1");
ShowMenuPcmn($_SESSION['g_start']);
echo '</div>';
echo '<DIV CLASS="u_redcontent">';

View file

@ -60,7 +60,7 @@ include_once ("user_menu.php");
ShowMenuCompta($_SESSION['g_dossier']);
// Show Menu Left
$left_menu=ShowMenuAdvanced();
$left_menu=ShowMenuAdvanced("stock.php");
//echo '<div class="lmenu">';
echo $left_menu;
//echo '</DIV>';

View file

@ -457,7 +457,7 @@ function u_ShowMenuRecherche($p_cn,$p_jrn,$p_sessid,$p_array=null)
* - none
* return: the menu
*/
function ShowMenuAdvanced() {
function ShowMenuAdvanced($default="") {
// Show the left menu
$left_menu=ShowItem(array(
//('rapprt.php','Rapprochement'),
@ -466,7 +466,7 @@ $left_menu=ShowItem(array(
array('pcmn_update.php?p_start=1','Plan Comptable'),
array('stock.php','stock')
),
'H',"cell","mtitle");
'H',"cell","mtitle",$default);
return $left_menu;
}
/* function ShowJrn