Add details_vue.php, update statistiques_controleur.php, update modele.php, update tables_vue.php files and delete notes.txt file
This commit is contained in:
@@ -62,52 +62,52 @@
|
||||
<input type="submit" name="boutonAfficher" value="Afficher" />
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<?php if (isset ($resultats)) {
|
||||
|
||||
if (is_array($resultats)) {
|
||||
?>
|
||||
<table class="table_resultat">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php
|
||||
//var_dump($resultats);
|
||||
foreach ($resultats['schema'] as $att) { // pour parcourir les attributs
|
||||
|
||||
echo '<th>';
|
||||
echo $att['nom'];
|
||||
echo '</th>';
|
||||
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (isset($resultats)) {
|
||||
|
||||
if (is_array($resultats)) {
|
||||
?>
|
||||
<table class="table_resultat">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php
|
||||
foreach ($resultats['instances'] as $row) { // pour parcourir les n-uplets
|
||||
//var_dump($resultats);
|
||||
foreach ($resultats['schema'] as $att) { // pour parcourir les attributs
|
||||
|
||||
echo '<tr>';
|
||||
foreach ($row as $valeur) { // pour parcourir chaque valeur de n-uplets
|
||||
|
||||
echo '<td>' . $valeur . '</td>';
|
||||
}
|
||||
echo '</tr>';
|
||||
echo '<th>';
|
||||
echo $att['nom'];
|
||||
echo '</th>';
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php } else { ?>
|
||||
<?php
|
||||
foreach ($resultats['instances'] as $row) { // pour parcourir les n-uplets
|
||||
|
||||
echo '<tr>';
|
||||
foreach ($row as $valeur) { // pour parcourir chaque valeur de n-uplets
|
||||
|
||||
echo '<td>' . $valeur . '</td>';
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p class="notification">
|
||||
<?= $message_details . 'TOOT' ?>
|
||||
</p>
|
||||
<?php } else { ?>
|
||||
|
||||
<?php }
|
||||
<p class="notification">
|
||||
<?= $message_details . 'TOOT' ?>
|
||||
</p>
|
||||
|
||||
<?php }
|
||||
|
||||
} ?>
|
||||
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user