Check(); $cn=new Database($gDossier); $rap=new Acc_Report($cn); if ( isset ($_POST["del_form"]) ) { $rap->id=$_POST['fr_id']; $rap->delete(); } if ( isset ($_POST["record"] )) { $rap->from_array($_POST); $rap->save(); } if ( isset($_POST['update'])) { $rap->from_array($_POST); $rap->save($_POST); } if ( isset($_POST['upload'])) { $rap->upload(); } $lis=$rap->get_list(); $ac="&ac=".$_REQUEST['ac']; $p_action='p_action=defreport'; echo '
'; if ( isset($_POST['upload'])) { exit(); } if ( isset ($_REQUEST["action"]) ) { $action=$_REQUEST ["action"]; $rap->id=(isset($_REQUEST ['fr_id']))?$_REQUEST['fr_id']:0; if ($action == "add" && ! isset($_REQUEST['fr_id'])) { echo '