Exemplo n.º 1
0
}
//**************** FIN EN-TETE *************
// Création d'un espace entre le bandeau et le reste ainsi que le retour pour l'admin
echo "<p></p>\n" . $retour_admin;
//On vérifie si le module est activé
if (getSettingValue("active_cahiers_texte") != 'y') {
    die("<p class='grand centre_texte'>Le cahier de textes n'est pas accessible pour le moment.</p>");
}
// echo "<table border='0' width=\"98%\" cellspacing=0 align=\"center\">\n";
echo "<div class='centre_table'>\n";
// echo "<tr>";
// echo "<td valign='top' width=".$largeur.">";
echo "<div class='ct_col_gauche'>";
if ($current_imprime == 'n') {
    if ($_SESSION['statut'] == 'responsable') {
        echo make_eleve_select_html('see_all.php', $_SESSION['login'], $selected_eleve, $year, $month, $day);
    }
    if ($selected_eleve_login != "") {
        echo make_matiere_select_html('see_all.php', $selected_eleve_login, $id_groupe, $year, $month, $day);
    }
    if ($_SESSION['statut'] != "responsable" and $_SESSION['statut'] != "eleve") {
        echo make_classes_select_html('see_all.php', $id_classe, $year, $month, $day);
        if ($id_classe != -1) {
            echo make_matiere_select_html('see_all.php', $id_classe, $id_groupe, $year, $month, $day);
        }
    }
}
echo "</div>\n";
// echo "</td>\n";
// echo "<td style=\"text-align:center;\">\n";
echo "<div class='ct_col_centre'>\n";
Exemplo n.º 2
0
                $texte_infobulle .= "</div>\n";
                $tabdiv_infobulle[] = creer_div_infobulle("div_informations_generales", $titre_infobulle, "", $texte_infobulle, "pink", 30, 0, 'y', 'y', 'n', 'n');
                echo "<div class='color_fond_notices_i' style='float:right; width:10em; text-align:center;'><a href='#informations_generales' onclick=\"afficher_div('div_informations_generales','y',10,10);return false;\">Informations générales</a></div>";
            }
        }
    }
}
// Choix classe et matière
echo "<div class='ct_col_gauche'>\n";
if ($current_imprime == 'n') {
    if ($_SESSION['statut'] == 'responsable') {
        //echo make_eleve_select_html('see_all.php', $_SESSION['login'], $selected_eleve, $year, $month, $day);
        if (isset($id_groupe) && $id_groupe == 'Toutes_matieres') {
            echo make_eleve_select_html('see_all.php', $_SESSION['login'], $selected_eleve, $year, $month, $day, "Toutes_matieres");
        } else {
            echo make_eleve_select_html('see_all.php', $_SESSION['login'], $selected_eleve, $year, $month, $day, "avec_choix_Toutes_matieres");
        }
    }
    if ($selected_eleve_login != "") {
        //echo make_matiere_select_html('see_all.php', $selected_eleve_login, $id_groupe, $year, $month, $day);
        if (isset($id_groupe) && $id_groupe == 'Toutes_matieres') {
            echo make_matiere_select_html('see_all.php', $selected_eleve_login, $id_groupe, $year, $month, $day, "Toutes_matieres");
        } else {
            echo make_matiere_select_html('see_all.php', $selected_eleve_login, $id_groupe, $year, $month, $day, "avec_choix_Toutes_matieres");
        }
    }
    if ($_SESSION['statut'] != "responsable" and $_SESSION['statut'] != "eleve") {
        echo make_classes_select_html('see_all.php', $id_classe, $year, $month, $day);
        if ($id_classe != -1) {
            //if((isset($id_groupe))&&($id_groupe=='Toutes_matieres')) {
            if (!isset($id_groupe) || $id_groupe == 'Toutes_matieres') {
Exemplo n.º 3
0
    echo "</pre>";
    */
    for ($i = 0; $i < count($tab_eleve); $i += 2) {
        $tab_eleve_login[] = $tab_eleve[$i];
    }
    // On contrôle que l'élève choisi est bien associé au responsable:
    if (isset($login_eleve) && isset($tab_eleve_login) && !in_array($login_eleve, $tab_eleve_login)) {
        $login_eleve = "";
        // AJOUTER UN APPEL A tentative_intrusion()
    }
    // Initialisation:
    if (!isset($login_eleve)) {
        $login_eleve = "";
    }
    // On propose le choix de l'élève s'il y a plusieurs élèves associés au responsable
    echo make_eleve_select_html('consultation2.php', $_SESSION['login'], $login_eleve, $year, $month, $day);
    if (!isset($login_eleve) || $login_eleve == '') {
        // On sélectionne le premier élève de la liste
        if (!isset($tab_eleve[0])) {
            echo "<p>Vous n'avez aucun élève en responsabilité&nbsp;???</p>\n";
            require "../lib/footer.inc.php";
            die;
        }
        $login_eleve = $tab_eleve[0];
    }
    //echo "\$login_eleve=$login_eleve<br />";
} else {
    // Proposer le formulaire de choix de mode:
    // Récupération de la liste des profs de l'établissement
    $tab_profs = array();
    $tab_profs2 = array();