<div id="zone_perso"> <hr /> <h2>Niveaux spécifiques (établissement)</h2> <table class="form hsort"> <thead> <tr> <th>Référence</th> <th>Nom complet</th> <th class="nu"><q class="ajouter" title="Ajouter un niveau."></q></th> </tr> </thead> <tbody> <?php // Lister les niveaux spécifiques $DB_TAB = DB_STRUCTURE_ADMINISTRATEUR::DB_lister_niveaux(TRUE /*is_specifique*/); if(!empty($DB_TAB)) { foreach($DB_TAB as $DB_ROW) { // Afficher une ligne du tableau echo'<tr id="id_'.$DB_ROW['niveau_id'].'">'; echo '<td>'.html($DB_ROW['niveau_ref']).'</td>'; echo '<td>'.html($DB_ROW['niveau_nom']).'</td>'; echo '<td class="nu">'; echo '<q class="modifier" title="Modifier ce niveau."></q>'; echo '<q class="supprimer" title="Supprimer ce niveau."></q>'; echo '</td>'; echo'</tr>'.NL; } }
<div id="zone_perso"> <hr /> <h2>Niveaux spécifiques (établissement)</h2> <table class="form hsort"> <thead> <tr> <th>Référence</th> <th>Nom complet</th> <th class="nu"><q class="ajouter" title="Ajouter un niveau."></q></th> </tr> </thead> <tbody> <?php // Lister les niveaux spécifiques $DB_TAB = DB_STRUCTURE_ADMINISTRATEUR::DB_lister_niveaux(TRUE); if (!empty($DB_TAB)) { foreach ($DB_TAB as $DB_ROW) { // Afficher une ligne du tableau echo '<tr id="id_' . $DB_ROW['niveau_id'] . '">'; echo '<td>' . html($DB_ROW['niveau_ref']) . '</td>'; echo '<td>' . html($DB_ROW['niveau_nom']) . '</td>'; echo '<td class="nu">'; echo '<q class="modifier" title="Modifier ce niveau."></q>'; echo '<q class="supprimer" title="Supprimer ce niveau."></q>'; echo '</td>'; echo '</tr>' . NL; } } else { echo '<tr class="vide"><td class="nu" colspan="2"></td><td class="nu"></td></tr>' . NL; }