Check(); include_once("form_inc.php"); include_once ("user_menu.php"); echo '
'; echo ShowMenuCompta($_SESSION['g_dossier'],"user_advanced.php"); echo '
'; include ("check_priv.php"); $cn=DbConnect($_SESSION['g_dossier']); if ( $User->CheckAction($cn,FORM)==0){ /* Cannot Access */ NoAccess(); } echo ShowMenuAdvanced("form.php"); if ( isset ($_POST["record"] )) { // echo '
'; AddForm($cn,$_POST); //echo "
"; } if ( isset ($_POST["del_form"]) ) { // echo '
'; DeleteForm($cn,$_POST['fr_id']); // echo "
"; } ShowMenuComptaForm($_SESSION['g_dossier']); if ( isset($_GET["PHPSESSID"] )) { $sessid=$_GET["PHPSESSID"]; } if ( isset($_POST["PHPSESSID"] )) { $sessid=$_POST["PHPSESSID"]; } if ( isset( $_REQUEST['PHPSESSID'])) { $sessid = $_REQUEST['PHPSESSID']; } if ( isset ($_GET["action"]) ) { $action=$_GET["action"]; if ($action == "add" ) { echo '
'; EncodeForm(10,$sessid); echo "
"; } if ($action=="view" ) { echo '
'; if ( ! $_GET["fr_id"] ) { echo_error("fr_id n'est pas donné"); return; } ViewForm($cn,$sessid,$_GET["fr_id"]); echo "
"; } } // if $_GET if ( isset ($_POST["add_line"]) ) { echo '
'; $line=$_POST["line"]; EncodeForm($line+1,$sessid,$_POST); echo "
"; } if ( isset ($_POST["update"]) ) { echo '
'; UpdateForm($cn,$_POST); ViewForm($cn,$sessid,$_POST["fr_id"]); echo "
"; } //echo ""; html_page_stop(); ?>