Ejemplo n.º 1
0
     $actions->show_consultation_form();
     break;
 case 'suppr_action':
     $actions->delete();
     $demandes->show_consult_form();
     break;
 case 'save_note':
     $notes->save();
     $actions->show_consultation_form();
     break;
 case 'suppr_note':
     $notes->delete();
     $actions->show_consultation_form();
     break;
 case 'add_docnum':
     $actions->show_docnum_form();
     break;
 case 'save_docnum':
     if ($f_url) {
         $explnum_doc->explnum_doc_url = stripslashes($f_url);
         $explnum_doc->explnum_doc_mime = 'URL';
         $explnum_doc->explnum_doc_nomfichier = stripslashes($f_nom ? $f_nom : $f_url);
         $explnum_doc->save();
     } else {
         if (!$_FILES['f_fichier']['error']) {
             $explnum_doc->load_file($_FILES['f_fichier']);
             $explnum_doc->analyse_file();
         }
         if ($f_nom) {
             $explnum_doc->setName($f_nom);
         }