This commit is contained in:
Baptiste 2022-06-18 11:41:53 +02:00
parent a77f6aac64
commit 06750163ce
2 changed files with 11 additions and 3 deletions

View file

@ -43,7 +43,7 @@ if(isset($_POST['send'])) {
$color = htmlspecialchars($_POST['color']); $color = htmlspecialchars($_POST['color']);
$opacity = (float) htmlspecialchars($_POST['opacity']); $opacity = (float) htmlspecialchars($_POST['opacity']);
$order_start = (int) htmlspecialchars($_POST['order_start']); $order_start = (int) htmlspecialchars($_POST['order_start']);
$len = (float) 6.25*htmlspecialchars($_POST['length']); $len = (float) (100/20)*htmlspecialchars($_POST['length']);
$num_planning = (int) htmlspecialchars($_POST['num_planning']); $num_planning = (int) htmlspecialchars($_POST['num_planning']);
if($opacity <= 100 AND $opacity >= 0) { if($opacity <= 100 AND $opacity >= 0) {

View file

@ -39,12 +39,20 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<tr class="tr-td"> <tr class="tr-td">
<td> <td>
<?php <?php
for($i=8;$i<=23;$i++) { for($i=7;$i<=26;$i++) {
if($i > 23) {
?>
<div style="height: <?= 100/20 ?>%;" class="hours">
<?= $i-24 ?>
</div>
<?php
} else {
?> ?>
<div style="height: <?= 100/16 ?>%;" class="hours"> <div style="height: <?= 100/20 ?>%;" class="hours">
<?= $i ?> <?= $i ?>
</div> </div>
<?php <?php
}
} }
?> ?>
</td> </td>