From 0494c611b6c2c42125a675a78eccd8044e9c3ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Wed, 2 Jun 2021 23:32:13 +0200 Subject: [PATCH] Add files via upload --- assets/css/seat.css | 4 ++-- purchase/includes/formPurchase.php | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/assets/css/seat.css b/assets/css/seat.css index 3e51af1..4015bdb 100644 --- a/assets/css/seat.css +++ b/assets/css/seat.css @@ -6,9 +6,9 @@ } .check_box:checked+label{ - background:url('../../img/seat_red.png') no-repeat; + background:url('../../img/seat_grey.png') no-repeat; } .check_box:disabled+label{ - background:url('../../img/seat_grey.png') no-repeat; + background:url('../../img/seat_red.png') no-repeat; } \ No newline at end of file diff --git a/purchase/includes/formPurchase.php b/purchase/includes/formPurchase.php index 9930826..5e69109 100644 --- a/purchase/includes/formPurchase.php +++ b/purchase/includes/formPurchase.php @@ -15,11 +15,13 @@ include_once($prefix.'assets/php/includes/user.php'); class FormPurchase extends Form { //Atributes: + private $film; // Film to be purchased. private $session; // Session of the film to be purchased. private $cinema; // Cinema of the film to be purchased. private $hall; // Hall of the film to be purchased. private $seat; // Seat of the film to be purchased. private $row; // Row of the seat. + private $col; // Column of the seat. private $years; // Actual year. private $months; // Months of the year. private $_TODAY; // Actual date. @@ -45,7 +47,7 @@ class FormPurchase extends Form { for($i = 0; $i <= $rows; $i++){ for($j = 0; $j <= $cols; $j++){ $seat = $i.$j; - if(isset($_POST["checkbox".$seat])){ $this->seat = "(Fila) ".$i." - (Columna) ".$j; } + if(isset($_POST["checkbox".$seat])){ $this->seat = "(Fila) ".$i." - (Columna) ".$j; $this->row = $i; $this->col = $j; } } } @@ -122,6 +124,8 @@ class FormPurchase extends Form {