} echo "<b>" . LibelleChampAid("perso1") . " : </b>" . htmlspecialchars($perso1) . "<br />"; } // perso2 if (VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'perso2', '', $annee) and $annee == '') { if ($perso2 == "") { $perso2 = "-"; } echo "<b>" . LibelleChampAid("perso2") . " : </b>" . htmlspecialchars($perso2) . "<br />"; } // perso3 if (VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'perso3', '', $annee) and $annee == '') { if ($perso3 == "") { $perso3 = "-"; } echo "<b>" . LibelleChampAid("perso3") . " : </b>" . htmlspecialchars($perso3) . "<br />"; } //Contacts if (VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'contacts', '', $annee)) { if ($contacts == "") { $contacts = "-"; } echo "<b>Contacts extérieurs, ressources, ... : </b>" . htmlspecialchars($contacts) . "<br />"; } // Autres infos if ($annee == '') { if (VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'eleve_peut_modifier', '', $annee) or VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'prof_peut_modifier', '', $annee) or VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'cpe_peut_modifier', '', $annee) or VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'fiche_publique', '', $annee)) { echo "<hr /><b>Autres informations : </b><ul>"; if (VerifAccesFicheProjet($_login, $aid_id, $indice_aid, 'eleve_peut_modifier', '', $annee)) { if ($eleve_peut_modifier == "y") { echo "<li>Les élèves responsables peuvent modifier cette fiche.</li>";
$classe_eleve = @old_mysql_result($call_classe, '0', "classe"); $liste_eleves .= "<b>" . $nom_eleve . " " . $prenom_eleve . "</b> (" . $classe_eleve . ")"; if ($j < $nombre_eleves - 1) { $liste_eleves .= ", "; } $j++; } echo "<p class='grand'>" . $nom_projet . " : " . $aid_nom . "</p>\n"; if (VerifAccesFicheProjet($_SESSION['login'], $aid_id, $indice_aid, 'perso1', 'W')) { echo LibelleChampAid("perso1") . " : " . $perso1 . "<br />"; } if (VerifAccesFicheProjet($_SESSION['login'], $aid_id, $indice_aid, 'perso2', 'W')) { echo LibelleChampAid("perso2") . " : " . $perso2 . "<br />"; } if (VerifAccesFicheProjet($_SESSION['login'], $aid_id, $indice_aid, 'perso3', 'W')) { echo LibelleChampAid("perso3") . " : " . $perso1 . "<br />"; } echo $liste_profs . "<br />"; echo $liste_eleves; echo "<p><span class = 'bold'>Séance " . $nom_projet . " du .....................................................................</span>\n"; // appel de la liste des élèves de l'AID : $call_liste_data = mysqli_query($GLOBALS["mysqli"], "SELECT e.login, e.nom, e.prenom\n FROM eleves e, j_aid_eleves j\n WHERE (j.id_aid='" . $aid_id . "' and e.login=j.login and j.indice_aid='{$indice_aid}') ORDER BY nom, prenom"); echo "<table style=\"width:95%\" border=\"1\" cellpadding=\"8\">\n"; echo "<tr><td style=\"width:50%\"><b>Nom Prénom</b></td><td><b>Absences / Retard (début de séance)</b></td><td><b>Absences / Retard (fin de séance)</b></td></tr>"; $nombre = mysqli_num_rows($call_liste_data); $j = "0"; while ($j < $nombre) { $vide = 0; $login_eleve = old_mysql_result($call_liste_data, $j, "login"); $nom_eleve = old_mysql_result($call_liste_data, $j, "nom"); $prenom_eleve = @old_mysql_result($call_liste_data, $j, "prenom");
} } else { if (VerifAccesFicheProjet($_SESSION['login'], $aid_id, $indice_aid, 'perso2', 'R', $annee)) { echo "<br /><span class = 'bold'>" . LibelleChampAid("perso2") . " : </span>\n"; echo htmlspecialchars($reg_perso2) . "\n"; } } // perso3 if ($action != "visu") { if (VerifAccesFicheProjet($_SESSION['login'], $aid_id, $indice_aid, 'perso3', 'W', $annee)) { echo "<br /><span class = 'bold'>" . LibelleChampAid("perso3") . " : </span>\n"; echo "<input type=\"text\" name=\"reg_perso3\" value=\"" . htmlspecialchars($reg_perso3) . "\" size=\"40\" />"; } } else { if (VerifAccesFicheProjet($_SESSION['login'], $aid_id, $indice_aid, 'perso3', 'R', $annee)) { echo "<br /><span class = 'bold'>" . LibelleChampAid("perso3") . " : </span>\n"; echo htmlspecialchars($reg_perso3) . "\n"; } } } echo "</div>\n"; // Partie réservée à l'admin if ($_SESSION["statut"] == "administrateur") { echo "<div class='bloc'>\n"; if ($action != "visu") { //nom echo "<p>Nom : <input type=\"text\" name=\"reg_nom\" size=\"50\" value=\"" . htmlspecialchars($aid_nom) . "\" /></p>\n"; if ($annee == '') { //numero echo "<p>Numéro (fac.) : <input type=\"text\" name=\"reg_num\" size=\"4\" value=\"" . $reg_num . "\" /></p>\n"; //eleve_peut_modifier