<tr> <th>Date</th> <th>Matière</th> <th>Destinaire(s)</th> <th>Item</th> <th>Score</th> <th>Statut</th> <th>Messages</th> <th>Fichier</th> <th class="nu"></th> </tr> </thead> <tbody> <?php // Lister les demandes d'évaluation $DB_TAB = DB_STRUCTURE_DEMANDE::DB_lister_demandes_eleve($_SESSION['USER_ID']); if (!empty($DB_TAB)) { foreach ($DB_TAB as $DB_ROW) { $destinataires = $DB_ROW['prof_id'] ? html(afficher_identite_initiale($DB_ROW['user_nom'], FALSE, $DB_ROW['user_prenom'], TRUE, $DB_ROW['user_genre'])) : 'enseignants concernés'; $score = $DB_ROW['demande_score'] !== null ? $DB_ROW['demande_score'] : FALSE; $statut = $DB_ROW['demande_statut'] == 'eleve' ? 'demande non traitée' : 'évaluation en préparation'; $texte_lien_avant = $DB_ROW['item_lien'] ? '<a target="_blank" href="' . html($DB_ROW['item_lien']) . '">' : ''; $texte_lien_apres = $DB_ROW['item_lien'] ? '</a>' : ''; $commentaire = $DB_ROW['demande_messages'] ? 'oui <img alt="" src="./_img/bulle_aide.png" width="16" height="16" title="' . str_replace(array("\r\n", "\r", "\n"), '<br />', html(html($DB_ROW['demande_messages']))) . '" />' : 'non'; // Volontairement 2 html() pour le title sinon <* est pris comme une balise html par l'infobulle. $document = $DB_ROW['demande_doc'] ? '<a href="' . html($DB_ROW['demande_doc']) . '" target="_blank">oui</a>' : 'non'; // Afficher une ligne du tableau echo '<tr id="ids_' . $DB_ROW['demande_id'] . '_' . $DB_ROW['item_id'] . '_' . $DB_ROW['matiere_id'] . '_' . $DB_ROW['prof_id'] . '">'; echo '<td>' . convert_date_mysql_to_french($DB_ROW['demande_date']) . '</td>'; echo '<td>' . html($DB_ROW['matiere_nom']) . '</td>'; echo '<td>' . $destinataires . '</td>';