Add files via upload

This commit is contained in:
Fernando Méndez
2021-06-02 17:42:58 +02:00
committed by GitHub
parent 85a0ff411d
commit 987fc1a641
8 changed files with 37 additions and 25 deletions

View File

@ -42,11 +42,9 @@ class FormSelectSeat extends Form {
//$seats = $hall->getTotalSeats();
$seats_map = array();
for($x = 0; $x < $hall->getTotalSeats(); $x++){
for($i = 0; $i < $rows; $i++){
for($j = 0; $j < $cols; $j++){
$seats_map[$i][$j] = $seats[$x]->getState();
}
for($i = 1; $i <= $rows; $i++){
for($j = 1; $j <= $cols; $j++){
$seats_map[$i][$j] = $seats[$i]->getState();
}
}
$html ='<h2>Seleccionar un Asiento</h2><hr />
@ -73,7 +71,7 @@ class FormSelectSeat extends Form {
$html .= '<td> <input type="checkbox" class="check_box" name="checkbox'.$i.$j.'" value="'.$seats_map[$i][$j].'" id="checkbox'.$i.$j.'" checked> <label for="checkbox'.$i.$j.'"> </td>
';}
else {
$html .= '<td> <input type="checkbox" class="check_box" name="checkbox'.$i.$j.'" value="'.$seats_map[$i][$j].'" id="checkbox'.$i.$j.'" > <label for="checkbox'.$i.$j.'"> </td>
$html .= '<td> <input type="checkbox" class="check_box" name="checkbox'.$i.$j.'" value="'.$seats_map[$i][$j].'" id="checkbox'.$i.$j.'" disabled> <label for="checkbox'.$i.$j.'"> </td>
';}
}
$html .='</tr>';