From 06750163ce8787b4e4d19cc7d05f3012af853dd5 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Sat, 18 Jun 2022 11:41:53 +0200 Subject: [PATCH] planning --- admin/planning.php | 2 +- planning.php | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/admin/planning.php b/admin/planning.php index 5a15761..d790a00 100644 --- a/admin/planning.php +++ b/admin/planning.php @@ -43,7 +43,7 @@ if(isset($_POST['send'])) { $color = htmlspecialchars($_POST['color']); $opacity = (float) htmlspecialchars($_POST['opacity']); $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']); if($opacity <= 100 AND $opacity >= 0) { diff --git a/planning.php b/planning.php index 178a07b..eaa6dc6 100755 --- a/planning.php +++ b/planning.php @@ -39,12 +39,20 @@ if(isset($_GET['planning']) AND !empty(['planning'])) 23) { + ?> +
+ +
+ -
+