Changed days layout into table

This commit is contained in:
lars
2019-03-10 23:34:02 +01:00
parent 9667c00639
commit 3ba7cf595e
6 changed files with 127 additions and 80 deletions

View File

@@ -26,15 +26,19 @@
</div>
<div class="row">
<h6><strong>Contre-prestation</strong> <span id="xtot_num_nor"></span></h6><br>
<div class="clear" style="margin-bottom:10px"></div>
<table id="tpresta">
<th>
<td>Jour</td><td>Normal</td><td></td><td>VIP</td><td></td>
</th>
<?php foreach($prices as $day => $onePrice) { ?>
<div class="<?php echo $day; ?>">
<div class="cell"><div class="pdate"><?php echo $onePrice['label']; ?></div><div class="prix prixnor">CHF <?php echo $onePrice['nor']; ?></div></div>
<div class="cell"><?php echo ${$day.'_nor'}; ?></div>
<div class="cell"><div class="pvip">VIP</div><div class="prix prixvip">CHF <?php echo $onePrice['vip']; ?></div></div>
<div class="cell"><?php echo ${$day.'_vip'}; ?></div>
<div class="clear" style="margin-bottom:10px"></div>
</div>
<tr class="<?php echo $day; ?>">
<td><?php echo $onePrice['label']; ?></td><td>CHF <span class="prixnor"><?php echo $onePrice['nor']; ?></span></td><td><?php echo ${$day.'_nor'}; ?></td><td>CHF <span class="prixvip"><?php echo $onePrice['vip']; ?></span></td><td><?php echo ${$day.'_vip'}; ?></td>
</tr>
<?php } ?>
</table>
<div class="clear" style="margin-bottom:10px"></div>
<div class="cell"><?php echo $label_nor_tot ?></div>
<div class="cell"><?php echo $nor_tot ?></div>