?> </form> <form action="#" method="post" id="zone_elaboration_referentiel" onsubmit="return false;" class="arbre_dynamique"> </form> <div id="zone_socle_item" class="arbre_dynamique hide"> <h2>Relation au socle commun</h2> <form action="#" method="post"> <p> <label class="tab">Item disciplinaire :</label><span class="f_nom i"></span><br /> <label class="tab">Socle commun :</label>Cocher ci-dessous (<span class="astuce">cliquer sur un intitulé pour déployer son contenu</span>).<br /> <span class="tab"></span><button id="choisir_socle_valider" type="button" class="valider">Valider le choix effectué.</button> <button id="choisir_socle_annuler" type="button" class="annuler">Annuler.</button> </p> <ul class="ul_n1 p"><li class="li_n3"><label for="socle_0"><input id="socle_0" name="f_socle" type="radio" value="0" /> Hors-socle.</label></li></ul> <?php // Affichage de la liste des items du socle pour chaque palier $DB_TAB = DB_STRUCTURE_COMMUN::DB_recuperer_arborescence_palier(); if(!empty($DB_TAB)) { echo HtmlArborescence::afficher_socle_from_SQL( $DB_TAB , TRUE /*dynamique*/ , FALSE /*reference*/ , TRUE /*aff_input*/ , FALSE /*ids*/ ); } else { echo'<span class="danger"> Aucun palier du socle n\'est associé à l\'établissement ! L\'administrateur doit préalablement choisir les paliers évalués...</span>'.NL; } ?> </form> </div>
// readonly ne fonctionne que sur les input de type "text". $txt_obligatoire = $DB_ROW['user_profil_obligatoire'] ? 'oui' : 'non'; echo '<tr>'; echo '<td class="nu"><input type="checkbox" name="f_tab_id" value="' . $DB_ROW['user_profil_sigle'] . '"' . $checked . $disabled . ' /></td>'; echo '<td class="label">' . html($DB_ROW['user_profil_sigle']) . '</td>'; echo '<td class="label">' . html($DB_ROW['user_profil_nom_long_singulier']) . '</td>'; echo '<td class="label">' . $txt_obligatoire . '</td>'; echo '<td class="label">' . $tab_txt_groupes[$DB_ROW['user_profil_join_groupes']] . '</td>'; echo '<td class="label">' . $tab_txt_matieres[$DB_ROW['user_profil_join_matieres']] . '</td>'; echo '</tr>' . NL; } ?> </tbody> </table> <p> <span class="tab"></span><button id="bouton_valider" type="button" class="parametre">Valider ce choix de profils.</button><label id="ajax_msg"> </label> </p> </form> <hr /> <div id="zone_paliers" class="arbre_dynamique"> <?php // Affichage de la liste des items du socle pour chaque palier $DB_TAB = DB_STRUCTURE_ADMINISTRATEUR::DB_recuperer_arborescence_paliers(); echo str_replace('<li class="li_m1"', '<li class="li_m1 hide"', HtmlArborescence::afficher_socle_from_SQL($DB_TAB, TRUE, FALSE, FALSE, FALSE)); ?> </div>
$phrase_debut = $_SESSION['USER_PROFIL_TYPE'] == 'professeur' ? 'Vous êtes rattaché à' : 'L\'établissement a mis en place'; echo strpos($arborescence, '<input') ? $arborescence : '<p class="danger">' . $phrase_debut . ' des matières dont les référentiels ne comportent aucun item !</p>'; } ?> <p><span class="tab"></span><button id="valider_matieres_items" type="button" class="valider">Valider la sélection</button> <button id="annuler_matieres_items" type="button" class="annuler">Annuler / Retour</button></p> <hr /> <p> <label class="tab" for="f_selection_items"><img alt="" src="./_img/bulle_aide.png" width="16" height="16" title="Pour choisir un regroupement d'items mémorisé." /> Initialisation</label><?php echo $select_selection_items; ?> <br /> <label class="tab" for="f_liste_items_nom"><img alt="" src="./_img/bulle_aide.png" width="16" height="16" title="Pour enregistrer le groupe d'items cochés." /> Mémorisation</label><input id="f_liste_items_nom" name="f_liste_items_nom" size="30" type="text" value="" maxlength="60" /> <button id="f_enregistrer_items" type="button" class="fichier_export">Enregistrer</button><label id="ajax_msg_memo"> </label> </p> </form> <form action="#" method="post" id="zone_socle_item" class="arbre_dynamique hide"> <p>Cocher ci-dessous (<span class="astuce">cliquer sur un intitulé pour déployer son contenu</span>) :</p> <?php // Affichage de la liste des items du socle pour chaque palier $DB_TAB = DB_STRUCTURE_COMMUN::DB_recuperer_arborescence_palier(); if (!empty($DB_TAB)) { echo HtmlArborescence::afficher_socle_from_SQL($DB_TAB, TRUE, FALSE, TRUE, FALSE); } else { echo '<span class="danger"> Aucun palier du socle n\'est associé à l\'établissement ! L\'administrateur doit préalablement choisir les paliers évalués...</span>' . NL; } ?> <p><span class="tab"></span><button id="valider_socle_item" type="button" class="valider">Valider le choix effectué</button> <button id="annuler_socle_item" type="button" class="annuler">Annuler / Retour</button></p> </form> <div id="bilan"></div>
$DB_TAB = DB_STRUCTURE_ADMINISTRATEUR::DB_lister_paliers_SACoche(); foreach($DB_TAB as $DB_ROW) { // Afficher une ligne du tableau $checked = ($DB_ROW['palier_actif']) ? ' checked' : '' ; echo'<tr>'; echo '<td class="nu"><input type="checkbox" name="f_tab_id" value="'.$DB_ROW['palier_id'].'"'.$checked.' /></td>'; echo '<td class="label">'.html($DB_ROW['palier_nom']).'</td>'; echo '<td class="nu"><q class="voir" id="id_'.$DB_ROW['palier_id'].'" title="Voir le détail de ce palier du socle."></q></td>'; echo'</tr>'.NL; } ?> </tbody> </table> <p> <span class="tab"></span><button id="bouton_valider" type="button" class="parametre">Valider ce choix de paliers.</button><label id="ajax_msg"> </label> </p> </form> <hr /> <div id="zone_paliers" class="arbre_dynamique"> <?php // Affichage de la liste des items du socle pour chaque palier $DB_TAB = DB_STRUCTURE_ADMINISTRATEUR::DB_recuperer_arborescence_paliers(); echo str_replace( '<li class="li_m1"' , '<li class="li_m1 hide"' , HtmlArborescence::afficher_socle_from_SQL( $DB_TAB , TRUE /*dynamique*/ , FALSE /*reference*/ , FALSE /*aff_input*/ , FALSE /*ids*/ ) ); ?> </div>