Example #1
0
}
echo "</i>)";
echo "</h3>\n";
//$temp["profs"]["users"][$p_login] = array("login" => $p_login, "nom" => $p_nom, "prenom" => $p_prenom, "civilite" => $civilite);
if (count($current_group["profs"]["users"]) > 0) {
    echo "<p>Cours dispensé par ";
    $cpt_prof = 0;
    foreach ($current_group["profs"]["users"] as $tab_prof) {
        if ($cpt_prof > 0) {
            echo ", ";
        }
        echo casse_mot($tab_prof['prenom'], 'majf2') . " " . my_strtoupper($tab_prof['nom']);
        echo affiche_lien_edt_prof($tab_prof["login"], $tab_prof["prenom"] . " " . $tab_prof["nom"]);
        $mail_prof = get_mail_user($tab_prof["login"]);
        if (check_mail($mail_prof)) {
            echo affiche_lien_mailto_prof($mail_prof, $tab_prof["prenom"] . " " . $tab_prof["nom"]);
        }
        $cpt_prof++;
    }
    echo ".</p>\n";
}
// Effectifs des classes associées au groupe:
$tab_eff_clas_grp = array();
for ($loop = 0; $loop < count($current_group["classes"]["list"]); $loop++) {
    $tab_eff_clas_grp[$current_group["classes"]["list"][$loop]] = array();
    for ($loop_per = 1; $loop_per < $current_group["nb_periode"]; $loop_per++) {
        $sql = "SELECT DISTINCT login FROM j_eleves_classes WHERE id_classe='" . $current_group["classes"]["list"][$loop] . "' AND periode='" . $loop_per . "';";
        //echo "$sql<br />";
        $res_compte = mysqli_query($GLOBALS["mysqli"], $sql);
        $tab_eff_clas_grp[$current_group["classes"]["list"][$loop]][$loop_per] = mysqli_num_rows($res_compte);
    }
 // +++++++++++++++++++++++
 // A FAIRE : Tester aussi si le prof a déjà accepté un remplacement
 // +++++++++++++++++++++++
 if (!in_array($lig_prof->login, $tab_profs_exclus_des_propositions_de_remplacement)) {
     $tab_cours_prof_courant = get_cours_prof2($lig_prof->login, strftime("%A", $timestamp_courant), $timestamp_courant);
     // Il faudrait affiner avec les longueurs de cours...
     //if(!isset($tab_cours_prof_courant[$tab_creneau[$loop]['id_definie_periode']][$key])) {
     if (!isset($tab_cours_prof_courant[$tab_creneau[$loop]['id_definie_periode']][0]) && !isset($tab_cours_prof_courant[$tab_creneau[$loop]['id_definie_periode']][1])) {
         $denomination_prof_courant = civ_nom_prenom($lig_prof->login);
         if (!preg_match("/'{$lig_prof->login}'/", $chaine_js_var_user)) {
             $chaine_js_var_user .= "nom_user['{$lig_prof->login}']=\"{$denomination_prof_courant}\";\n";
         }
         $lien_mailto_courant = "";
         $mail_prof_courant = get_mail_user($lig_prof->login);
         if (check_mail($mail_prof_courant)) {
             $lien_mailto_courant = " " . affiche_lien_mailto_prof($mail_prof_courant, $denomination_prof_courant);
         }
         if ($temoin_num_proposition == 0) {
             $tab_num_proposition[$date_aaaammjj][$tab_creneau[$loop]['id_definie_periode']] = $cpt;
             $temoin_num_proposition++;
         }
         $chaine = $id_groupe_courant . "|" . $current_id_classe . "|" . $date_aaaammjj . "|" . $id_creneau_courant . "|" . $lig_prof->login;
         $checked = "";
         if (isset($tab_propositions_deja_enregistrees['chaine']) && in_array($chaine, $tab_propositions_deja_enregistrees['chaine'])) {
             $checked = " checked";
         }
         $td_bg = "";
         $reponse = "<img src=\"../images/case_blanche.png\" alt='Pas de réponse' title=\"Le professeur n'a pas répondu à la proposition.\" />";
         if (isset($tab_propositions_deja_enregistrees['indice_chaine'][$chaine])) {
             $indice_prop = $tab_propositions_deja_enregistrees['indice_chaine'][$chaine];
             if ($tab_propositions_deja_enregistrees['reponse'][$indice_prop] == 'oui') {
Example #3
0
     echo "<a href='../utilisateurs/modify_user.php?user_login="******"profs"]["users"][$prof]["login"] . "' onclick=\"return confirm_abandon (this, change, '{$themessage}')\" title=\"Modification de l'utilisateur\" style='color:black; font-size:small;'>";
     echo casse_mot($current_group["profs"]["users"][$prof]["prenom"], 'majf2');
     echo " ";
     echo $current_group["profs"]["users"][$prof]["nom"];
     echo "</a>";
     if (in_array($current_group["profs"]["users"][$prof]["login"], $tab_prof_suivi)) {
         echo " <img src='../images/bulle_verte.png' width='9' height='9' title=\"" . ucfirst($gepi_prof_suivi) . " d'au moins un élève de la classe sur une des périodes.";
         if ($nb_prof_suivi > 1) {
             echo " La liste des " . $gepi_prof_suivi . " est " . $liste_prof_suivi . ".";
         }
         echo "\" />\n";
     }
     echo affiche_lien_edt_prof($current_group["profs"]["users"][$prof]["login"], $current_group["profs"]["users"][$prof]["prenom"] . " " . $current_group["profs"]["users"][$prof]["nom"]);
     $mail_prof = get_mail_user($current_group["profs"]["users"][$prof]["login"]);
     if (check_mail($mail_prof)) {
         echo affiche_lien_mailto_prof($mail_prof, $current_group["profs"]["users"][$prof]["prenom"] . " " . $current_group["profs"]["users"][$prof]["nom"]);
     }
     $first = false;
 }
 echo "</td>\n";
 // Inscription des élèves sur les différentes périodes
 foreach ($current_group["periodes"] as $period) {
     if ($period["num_periode"] != "") {
         $inscrits = count($current_group["eleves"][$period["num_periode"]]["list"]);
         echo "<td>";
         echo "<a href='edit_eleves.php?id_groupe=" . $group["id"] . "&amp;id_classe=" . $id_classe . "' onclick=\"return confirm_abandon (this, change, '{$themessage}')\" title=\"Modifier la liste des élèves inscrits dans cet enseignement\">" . $inscrits . "</a>";
         echo "</td>\n";
     }
 }
 // Priorité d'affichage
 echo "<td>";