Ejemplo n.º 1
0
        //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') {
                $id_groupe = "Toutes_matieres";
                echo make_matiere_select_html('see_all.php', $id_classe, $id_groupe, $year, $month, $day, "Toutes_matieres");
            } else {
                echo make_matiere_select_html('see_all.php', $id_classe, $id_groupe, $year, $month, $day, "avec_choix_Toutes_matieres");
            }
        }
    }
}
echo "</div>\n";
// Titre du CDT
echo "<div class='ct_col_centre'>\n";
echo "<p>\n";
echo "<span class='grand'>\n";
echo "Cahier de textes";
if ($id_groupe == 'Toutes_matieres') {
    echo " - Toutes les matières";
} else {
    if ($current_group) {
        echo " - {$matiere_nom}";
Ejemplo n.º 2
0
   $today = getSettingValue("begin_bookings");
} else if ($today > getSettingValue("end_bookings")) {
   $today = getSettingValue("end_bookings");
}
echo "<script type=\"text/javascript\" SRC=\"../lib/clock_fr.js\"></SCRIPT>";
//-----------------------------------------------------------------------------------
echo "<table width=\"98%\" cellspacing=0 align=\"center\"><tr>";
echo "<td valign='top'>";
echo "<p>Nous sommes le :&nbsp;<br />\n";
echo "<script type=\"text/javascript\">\n";
echo "<!--\n";
echo "new LiveClock();\n";
echo "//-->";
echo "</SCRIPT></p>\n";
echo make_classes_select_html('index.php', $id_classe, $year, $month, $day);
if ($id_classe!=-1) echo make_matiere_select_html('index.php', $id_classe, $id_groupe, $year, $month, $day);
$test_login = old_mysql_result(mysqli_query($GLOBALS["mysqli"], "SELECT count(login) FROM utilisateurs WHERE ((statut = 'responsable' OR statut = 'eleve') AND etat = 'actif')"), 0);
if ($test_login > 0) {
	echo "<p>Si vous disposez d'un identifiant et d'un mot de passe, <a href='../login.php'>connectez-vous !</a></p>";
}
echo "</td>\n";
echo "<td style=\"text-align:center;\">\n";
echo "<p><span class='grand'>Cahier de textes";
if ($id_classe != -1) echo "<br />$classe_nom";
if ($id_matiere != -1) echo "- $matiere_nom ($matiere_nom_court)";
echo "</span>\n";
// Test si le cahier de texte est partagé
if ($current_group) {
  echo "<br />\n<b>(";
  $i=0;
  foreach ($current_group["profs"]["users"] as $prof) {
Ejemplo n.º 3
0
// 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";
echo "<p>\n";
echo "<span class='grand'>\n";
echo "Cahier de textes";
if ($current_group) {
    echo " - {$matiere_nom}";
    echo " - classe de " . $current_group['classlist_string'];
}
if ($id_classe != -1) {
Ejemplo n.º 4
0
echo "</a>\n";
echo "</p>\n";
echo "<p>Nous sommes le :&nbsp;<br />\n";
echo "<script type=\"text/javascript\">\n";
echo "<!--\n";
echo "new LiveClock();\n";
echo "//-->";
echo "\n</script>\n</p>\n";
echo "<noscript>\n<p>" . strftime("%A %d %B %Y", $today) . "</p>\n</noscript>";
//<p class='menu_retour'>".get_date_php()."</p>\n</noscript>";
// On gère la sélection de l'élève
if ($_SESSION['statut'] == 'responsable') {
    echo make_eleve_select_html('consultation.php', $_SESSION['login'], $selected_eleve, $year, $month, $day);
}
if ($selected_eleve_login != "") {
    echo make_matiere_select_html('consultation.php', $selected_eleve_login, $id_groupe, $year, $month, $day);
    echo "<a href='see_all.php?&year={$year}&amp;month={$month}&amp;day={$day}&amp;login_eleve={$selected_eleve_login}&amp;id_groupe=Toutes_matieres'>Voir l'ensemble du cahier de textes</a>";
}
echo "</div>\n";
//echo "<td align=\"right\">\n";
// Modification Régis : la colonne de droite doit être avant la colonne centrale
echo "<div class=\"ct_col_droit\">\n";
echo "<h2 class='invisible'>Calendrier</h2>";
echo "<form action=\"./consultation.php\" method=\"post\" style=\"width: 100%;\">\n";
echo "<p>";
genDateSelector("", $day, $month, $year, '');
echo "<input type=\"hidden\" name=\"id_groupe\" value=\"{$id_groupe}\" />\n";
echo "<input type=\"hidden\" name=\"id_classe\" value=\"{$id_classe}\" />\n";
echo "<input type=\"hidden\" name=\"login_eleve\" value=\"{$login_eleve}\" />\n";
echo "<input type=\"submit\" value=\"OK\" />\n";
echo "</p>\n";