} foreach($tab_demande_supprimer as $key => $key) { list($item_id,$eleve_id) = explode('x',$key); DB_STRUCTURE_PROFESSEUR::DB_supprimer_demande_precise($eleve_id,$item_id); } exit('<ok>'); } // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Imprimer un cartouche d'une évaluation // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if( ($action=='imprimer_cartouche') && $devoir_id && $groupe_id && $date_fr && $cart_contenu && $cart_detail && $orientation && $marge_min && $couleur ) { Formulaire::save_choix('cartouche'); $with_nom = (substr($cart_contenu,0,8)=='AVEC_nom') ? true : false ; $with_result = (substr($cart_contenu,9)=='AVEC_result') ? true : false ; // liste des items $DB_TAB_COMP = DB_STRUCTURE_PROFESSEUR::DB_lister_items_devoir( $devoir_id , FALSE /*with_lien*/ , TRUE /*with_coef*/ ); // liste des élèves $DB_TAB_USER = DB_STRUCTURE_COMMUN::DB_lister_users_actifs_regroupement('eleve',$groupe_type,$groupe_id); // Let's go if(!count($DB_TAB_COMP)) { exit('Aucun item n\'est associé à cette évaluation !'); } if(!count($DB_TAB_USER)) { exit('Aucun élève n\'est associé à cette évaluation !'); }