Check(); $User->check_dossier(dossier::id()); $cn=DbConnect(dossier::id()); $User->db=$cn; 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; case 'verif'; $high=10; break; case 'central'; $high=3; break; case 'defreport': $high=6; break; case 'ouv': $high=8; break; default: $high=0; } echo ShowMenuAdvanced($high); if ($p_action == "periode" ) { if ( $User->check_action(PARPER) == 0 && $User->check_action(PARCLO) == 0 ) NoAccess(); $p_action=$_REQUEST['p_action']; include_once("periode.inc.php"); } //-------------------------------------------------- // Predefined operation //-------------------------------------------------- if ($p_action=="preod") { require_once('preod.inc.php'); exit(); } //---------------------------------------------------------------------- // Verification solde //---------------------------------------------------------------------- if ( $p_action=='verif' ) { require_once ('verif_bilan.inc.php'); exit(); } if ( $p_action=='central') require_once ('central.inc.php'); if ($p_action=='defreport') { require_once('report.inc.php'); } /* -------------------------------------------------- Import writing (opening exercice) -------------------------------------------------- */ if ( $p_action == 'ouv') { require_once('opening.inc.php'); } html_page_stop(); ?>