Check(); $cn=DbConnect(dossier::id()); include_once ("postgres.php"); echo_debug('user_advanced.php',__LINE__,"user is ".$_SESSION['g_user']); // We don't check permissions here in fact, permission are tested in the // functions // Show the top menus include_once ("user_menu.php"); echo '
'; $p_action=""; $p_action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:""; switch ($p_action) { case 'preod': $high=9; break; case 'periode'; $high=2; break; default: $high=0; } echo ShowMenuAdvanced($high); if ($p_action == "periode" ) { if ( $User->admin == 0 && CheckAction($gDossier,$_SESSION['g_user'],GESTION_PERIODE) == 0 ) NoAccess(); $p_action=$_REQUEST['p_action']; include_once("periode.inc.php"); } //-------------------------------------------------- // Predefined operation //-------------------------------------------------- if ($p_action=="preod") { echo '| '.$row['od_name'].' | '; echo ''; echo ''; echo ' | '; echo '