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']))