exit('Date devoir trop éloignée !'); } if( ($date_visible_stamp<$mini_stamp) || ($date_visible_stamp>$maxi_stamp) ) { exit('Date visible trop éloignée !'); } if( ($date_autoeval!='00/00/0000') && ( ($date_autoeval_stamp<$mini_stamp) || ($date_autoeval_stamp>$maxi_stamp) ) ) { exit('Date fin auto-éval. trop éloignée !'); } if( ($date_autoeval!='00/00/0000') && ($date_autoeval_mysql<$date_visible_mysql) ) { exit('Date fin auto-éval. avant date visible !'); } // Récupérer l'effectif de la classe ou du groupe $effectif_eleve = ($type=='groupe') ? DB_STRUCTURE_PROFESSEUR::DB_lister_effectifs_groupes($groupe_id) : $nb_eleves ; // Dans le cas d'une évaluation sur un regroupement, on vérifie qu'il n'est pas vide if(!$effectif_eleve) { exit('Regroupement sans élève !'); } // Tester les droits $proprio_id = DB_STRUCTURE_PROFESSEUR::DB_recuperer_devoir_prorietaire_id( $devoir_id ); if($proprio_id==$_SESSION['USER_ID']) { $niveau_droit = 4; // propriétaire $proprietaire_genre = $_SESSION['USER_GENRE']; $proprietaire_nom = $_SESSION['USER_NOM']; $proprietaire_prenom = $_SESSION['USER_PRENOM']; } elseif($profs_liste) // forcément