Skip to content

Commit

Permalink
Fix mart1ver#405 style for ultimate garbage or not
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Kara <adrien@iglou.eu>
  • Loading branch information
IGLOU-EU committed Dec 4, 2020
1 parent 81b90fe commit 446b204
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
15 changes: 15 additions & 0 deletions css/oressource.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,18 @@ pre {
.list-group-item {
padding: 5px 10px;
}

/* poubelles type */
.garbage.ultime-0::before,
.garbage.ultime-1::before {
font-weight: bold;
padding-left: 1px;
}
.garbage.ultime-0::before {
content: "✕ Non";
color: #005A9E;
}
.garbage.ultime-1::before {
content: "✓ Oui";
color: #9E0000;
}
16 changes: 7 additions & 9 deletions ifaces/edition_types_poubelles.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
require_once '../core/composants.php';

if (isset($_SESSION['id']) && $_SESSION['systeme'] === 'oressource' && (strpos($_SESSION['niveau'], 'g') !== false)) {
require_once 'tete.php';
?>
require_once 'tete.php'; ?>
<div class="container">
<h1>Gestion de la typologie et de la masse des différentes poubelles mises à disposition de la structure par la ville</h1>
<div class="panel-heading">Gérez ici la liste de vos bacs à déchets.</div>
Expand Down Expand Up @@ -60,15 +59,15 @@
<tbody>
<?php
$reponse = $bdd->query('SELECT * FROM types_poubelles');
while ($donnees = $reponse->fetch()) {
?>
while ($donnees = $reponse->fetch()) {
?>
<tr>
<td><?= $donnees['id']; ?></td>
<td><?= $donnees['timestamp']; ?></td>
<td><?= $donnees['nom']; ?></td>
<td><?= $donnees['description']; ?></td>
<td><?= $donnees['masse_bac']; ?></td>
<td><?= $donnees['ultime']; ?></td>
<td class="garbage ultime-<?= $donnees['ultime']; ?>"></td>
<td><span class="badge" style="background-color:<?= $donnees['couleur']; ?>"><?= $donnees['couleur']; ?></span></td>
<td><?= configBtnVisible(['url' => 'types_poubelles', 'id' => $donnees['id'], 'visible' => $donnees['visible']]) ?></td>
<td>
Expand All @@ -79,16 +78,15 @@
</td>
</tr>
<?php
}
$reponse->closeCursor();
?>
}
$reponse->closeCursor(); ?>
</tbody>
</table>
</div><!-- /.container -->

<?php
require_once 'pied.php';
} else {
header('Location: ../moteur/destroy.php');
header('Location: ../moteur/destroy.php');
}
?>

0 comments on commit 446b204

Please sign in to comment.