$class_form_individuel = Form::$tab_choix['type_individuel'] ? 'show' : 'hide'; $class_form_synthese = Form::$tab_choix['type_synthese'] ? 'show' : 'hide'; $bouton_modifier_matieres = ''; if ($_SESSION['USER_PROFIL_TYPE'] == 'directeur') { $tab_matieres = DB_STRUCTURE_COMMUN::DB_OPT_matieres_etabl(); $tab_groupes = DB_STRUCTURE_COMMUN::DB_OPT_classes_groupes_etabl(); $of_g = ''; $sel_g = FALSE; $class_form_type = 'show'; $class_form_eleve = $class_form_generique; $select_eleves = '<span id="f_eleve" class="select_multiple"></span><span class="check_multiple"><q class="cocher_tout" title="Tout cocher."></q><br /><q class="cocher_rien" title="Tout décocher."></q></span>'; // maj en ajax suivant le choix du groupe $is_select_multiple = 1; } if ($_SESSION['USER_PROFIL_TYPE'] == 'professeur') { $tab_matieres = DB_STRUCTURE_COMMUN::DB_OPT_matieres_professeur($_SESSION['USER_ID']); $tab_groupes = $_SESSION['USER_JOIN_GROUPES'] == 'config' ? DB_STRUCTURE_COMMUN::DB_OPT_groupes_professeur($_SESSION['USER_ID']) : DB_STRUCTURE_COMMUN::DB_OPT_classes_groupes_etabl(); $of_g = ''; $sel_g = FALSE; $class_form_type = 'show'; $class_form_eleve = $class_form_generique; $select_eleves = '<span id="f_eleve" class="select_multiple"></span><span class="check_multiple"><q class="cocher_tout" title="Tout cocher."></q><br /><q class="cocher_rien" title="Tout décocher."></q></span>'; // maj en ajax suivant le choix du groupe $is_select_multiple = 1; $bouton_modifier_matieres = '<button id="modifier_matiere" type="button" class="form_ajouter">±</button>'; } if ($_SESSION['USER_PROFIL_TYPE'] == 'parent' && $_SESSION['NB_ENFANTS'] != 1) { $tab_matieres = DB_STRUCTURE_COMMUN::DB_OPT_matieres_etabl(); $tab_groupes = $_SESSION['OPT_PARENT_CLASSES']; $of_g = ''; $sel_g = FALSE;
{ $tab_bulletin_input[] = $eleve_id.'_'.($tab_moyenne_scores_eleve[$matiere_id][$eleve_id]/5); } } } if($bulletin_periode) { if(count($tab_bulletin_input)) { if($releve_modele=='matiere') { $bulletin_matiere = '['.html($matiere_nom).']<input type="hidden" id="f_rubrique" name="f_rubrique" value="'.$matiere_id.'" />'; } else { $bulletin_matiere = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_matieres_professeur($_SESSION['USER_ID']) , 'f_rubrique' /*select_nom*/ , FALSE /*option_first*/ , FALSE /*selection*/ , '' /*optgroup*/); } $bulletin_form = '<li><form id="form_report_bulletin"><fieldset><button id="bouton_report" type="button" class="eclair">Report forcé</button> vers le bulletin <em>SACoche</em> '.$bulletin_periode.'<input type="hidden" id="f_eleves_moyennes" name="f_eleves_moyennes" value="'.implode('x',$tab_bulletin_input).'" /> '.$bulletin_matiere.'</fieldset></form><label id="ajax_msg_report"></label></li>'; $bulletin_alerte = '<div class="danger">Un report forcé interrompt le report automatique des moyennes pour le bulletin et la matière concernée.</div>' ; } else { $bulletin_form = '<li>Report forcé vers un bulletin sans objet : aucune moyenne chiffrée n\'a pu être produite.</li>'; } } $moyenne_affichee = sprintf("%04.1f",$moyenne_moyenne_scores/5); $bulletin_PDF->derniere_ligne( $info_ponderation_complete , $moyenne_affichee , $moyenne_pourcentage_acquis ); $bulletin_head = '<thead><tr><th>Élève</th><th>Moyenne '.$info_ponderation_complete.' sur 20<br />(des scores d\'acquisitions)</th><th>Élément d\'appréciation<br />(pourcentage d\'items acquis)</th></tr></thead>'.NL; $bulletin_body = '<tbody>'.NL.$bulletin_body.'</tbody>'.NL; $bulletin_foot = '<tfoot><tr><th>Moyenne '.$info_ponderation_complete.' sur 20</th><th>'.$moyenne_affichee.'</th><th>'.$moyenne_pourcentage_acquis.'% d\'items acquis</th></tr></tfoot>'.NL; $bulletin_html = '<h1>Bilan '.$tab_titre[$releve_modele].'</h1>';
* * SACoche est distribué dans l’espoir qu’il vous sera utile, mais SANS AUCUNE GARANTIE : * sans même la garantie implicite de COMMERCIALISABILITÉ ni d’ADÉQUATION À UN OBJECTIF PARTICULIER. * Consultez la Licence Publique Générale GNU Affero pour plus de détails. * * Vous devriez avoir reçu une copie de la Licence Publique Générale GNU Affero avec SACoche ; * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>. * */ // Mettre à jour l'élément de formulaire "f_eleve" et le renvoyer en HTML if(!defined('SACoche')) {exit('Ce fichier ne peut être appelé directement !');} if($_SESSION['SESAMATH_ID']==ID_DEMO) {} $action = (isset($_POST['f_action'])) ? Clean::texte($_POST['f_action']) : ''; // ajouter | retirer $matiere = (isset($_POST['f_matiere'])) ? Clean::entier($_POST['f_matiere']) : 0; $multiple = (empty($_POST['f_multiple'])) ? FALSE : TRUE ; // Autres valeurs à récupérer. $select_nom = ($multiple) ? 'f_matieres' : FALSE ; $option_first = ($multiple) ? FALSE : '' ; $selection = ($multiple) ? TRUE : $matiere ; $tab_matieres = ($action=='ajouter') ? DB_STRUCTURE_COMMUN::DB_OPT_matieres_etabl() : DB_STRUCTURE_COMMUN::DB_OPT_matieres_professeur($_SESSION['USER_ID']) ; exit( HtmlForm::afficher_select( $tab_matieres , $select_nom , $option_first , $selection , '' /*optgroup*/ , $multiple ) ); ?>
// Pour GEPI je remplace le point décimal par une virgule sinon le tableur convertit en date... $tab_bulletin_csv_gepi['note_appreciation'] .= $eleve_id_gepi . ';' . $note . ';' . $appreciation_PA . "\r\n"; $tab_bulletin_csv_gepi['note'] .= $eleve_id_gepi . ';' . $note . "\r\n"; $tab_bulletin_csv_gepi['appreciation_PA'] .= $eleve_id_gepi . ';' . '' . ';' . $appreciation_PA . "\r\n"; $tab_bulletin_csv_gepi['appreciation_MS'] .= $eleve_id_gepi . ';' . '' . ';' . $appreciation_MS . "\r\n"; if ($bulletin_periode && $tab_moyenne_scores_eleve[$matiere_id][$eleve_id] !== FALSE) { $tab_bulletin_input[] = $eleve_id . '_' . $tab_moyenne_scores_eleve[$matiere_id][$eleve_id] / 5; } } } if ($bulletin_periode) { if (count($tab_bulletin_input)) { if ($releve_modele == 'matiere') { $bulletin_matiere = '[' . html($matiere_nom) . ']<input type="hidden" id="f_rubrique" name="f_rubrique" value="' . $matiere_id . '" />'; } else { $bulletin_matiere = HtmlForm::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_matieres_professeur($_SESSION['USER_ID']), 'f_rubrique', FALSE, FALSE, ''); } $bulletin_form = '<li><form id="form_report_bulletin"><fieldset><button id="bouton_report" type="button" class="eclair">Report forcé</button> vers le bulletin <em>SACoche</em> ' . $bulletin_periode . '<input type="hidden" id="f_eleves_moyennes" name="f_eleves_moyennes" value="' . implode('x', $tab_bulletin_input) . '" /> ' . $bulletin_matiere . '</fieldset></form><label id="ajax_msg_report"></label></li>'; $bulletin_alerte = '<div class="danger">Un report forcé interrompt le report automatique des moyennes pour le bulletin et la matière concernée.</div>'; } else { $bulletin_form = '<li>Report forcé vers un bulletin sans objet : aucune moyenne chiffrée n\'a pu être produite.</li>'; } } $moyenne_affichee = sprintf("%04.1f", $moyenne_moyenne_scores / 5); $bulletin_PDF->derniere_ligne($info_ponderation_complete, $moyenne_affichee, $moyenne_pourcentage_acquis); $bulletin_head = '<thead><tr><th>Élève</th><th>Moyenne ' . $info_ponderation_complete . ' sur 20<br />(des scores d\'acquisitions)</th><th>Élément d\'appréciation<br />(pourcentage d\'items acquis)</th></tr></thead>' . NL; $bulletin_body = '<tbody>' . NL . $bulletin_body . '</tbody>' . NL; $bulletin_foot = '<tfoot><tr><th>Moyenne ' . $info_ponderation_complete . ' sur 20</th><th>' . $moyenne_affichee . '</th><th>' . $moyenne_pourcentage_acquis . '% d\'items acquis</th></tr></tfoot>' . NL; $bulletin_html = '<h1>Bilan ' . $tab_titre[$releve_modele] . '</h1>'; $bulletin_html .= '<h2>' . html($matiere_et_groupe) . '</h2>'; $bulletin_html .= '<h2>' . $texte_periode . '</h2>';
<script type="text/javascript"> var input_autoeval="<?php echo $date_autoeval ?>"; </script> <ul class="puce"> <li><span class="manuel"><a class="pop_up" href="<?php echo SERVEUR_DOCUMENTAIRE ?>?fichier=environnement_generalites__demandes_evaluations">DOC : Demandes d'évaluations.</a></span></li> <li><span class="astuce">Tenez-vous au courant des demandes grace à <a class="lien_ext" href="<?php echo adresse_RSS($_SESSION['USER_ID']); ?>"><span class="rss">un flux RSS dédié</span></a> !</span></li> <li><span class="astuce"><a title="<?php echo $infobulle ?>" href="#">Nombre de demandes autorisées par matière.</a></span></li> </ul> <hr /> <?php // Fabrication des éléments select du formulaire $select_matiere = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_matieres_professeur($_SESSION['USER_ID']) , $select_nom='f_matiere' , $option_first='non' , $selection=false , $optgroup='non'); $select_groupe = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_groupes_professeur($_SESSION['USER_ID']) , $select_nom='f_groupe' , $option_first='oui' , $selection=false , $optgroup='oui'); ?> <form action="#" method="post" id="form0"><fieldset> <label class="tab" for="f_matiere">Matière :</label><?php echo $select_matiere ?><input type="hidden" id="f_matiere_nom" name="f_matiere_nom" value="" /><br /> <label class="tab" for="f_groupe">Classe / groupe :</label><?php echo $select_groupe ?><input type="hidden" id="f_groupe_id" name="f_groupe_id" value="" /><input type="hidden" id="f_groupe_type" name="f_groupe_type" value="" /><input type="hidden" id="f_groupe_nom" name="f_groupe_nom" value="" /><br /> <span class="tab"></span><input type="hidden" name="f_action" value="Afficher_demandes" /><button id="actualiser" type="submit" class="actualiser">Actualiser l'affichage.</button><label id="ajax_msg0"> </label> </fieldset></form> <form action="#" method="post" id="form1" class="hide"> <hr /> <table class="bilan_synthese" style="float:right;margin-left:1em;margin-right:1ex"> <thead><tr><th>élève(s) sans demande</th></tr></thead> <tbody><tr id="tr_sans"><td class="nu"></td></tr></tbody> </table>