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=""; if ( isset($_REQUEST['p_action'] )) { $p_action="?p_action=".$_REQUEST['p_action']."&".dossier::get(); } echo ShowMenuAdvanced("user_advanced.php".$p_action); $p_action=(isset($_REQUEST['p_action']))?$_REQUEST['p_action']:""; 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 ''; // if $_REQUEST[sa] == del delete the predefined operation if ( $sa == 'del') { $op=new Pre_operation($cn); $op->od_id=$_REQUEST['od_id']; $op->delete(); $sa='jrn'; } // if $_REQUEST[sa] == jrn show the predefined operation for this // ledger if ( $sa == 'jrn' ) { $op=new Pre_operation($cn); $op->set_jrn($_GET['jrn']); $array=$op->get_list_ledger(); if ( empty($array) == true ) { echo "Aucun enregistrement"; exit(); } echo '| '.$row['od_name'].' | '; echo ''; echo ''; echo ' | '; echo '