Change colors of tables

This commit is contained in:
Frank Schubert
2021-08-24 23:31:17 +02:00
parent 045e94fe17
commit 5e80c8b662
2 changed files with 12 additions and 4 deletions
+4 -4
View File
@@ -30,8 +30,8 @@
<?php foreach($networks as $networkname => $buildings): ?>
<?php if(!count($buildings)) continue; ?>
<h4><?=$networkname?></h4>
<table class="table table-striped table-hover">
<?php foreach($buildings as $building): ?>
<table class="table table-hover">
<?php $bcount = 0; foreach($buildings as $building): ?>
<?php
$rowspan = 1;
foreach($building->workflowitems as $item) {
@@ -40,7 +40,7 @@
}
}
?>
<tr id="building-<?=$building->id?>">
<tr id="building-<?=$building->id?>" class="table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?>">
<td>
<strong><?=$building->street?></strong><br />
<?=$building->code?><br />
@@ -65,7 +65,7 @@
</table>
</td>
</tr>
<?php endforeach; ?>
<?php $bcount++; endforeach; ?>
</table>
<?php endforeach; ?>
<button type="submit" class="btn btn-primary">Speichern</button>