Esta comentado las opciones de sesion

Hay un fallo con film.php que esperamos arreglarlo mañana con el join en sesion y el template
This commit is contained in:
Markines16
2021-05-06 23:25:38 +02:00
committed by GitHub
parent 8bb34474d6
commit d00c212e07
6 changed files with 125 additions and 26 deletions

View File

@ -12,24 +12,66 @@ class FormHall extends Form {
public static function generaCampoFormulario($data, $errores = array()){
$number = $data['number'] ?? '';
$rows = $data['rows'] ?? '';
$cols = $data['cols'] ?? '';
$rows = $data['rows'] ?? '14';
$cols = $data['cols'] ?? '8';
$seats = $data['seats'] ?? '';
$htmlform .= '<form method="post" id="'.$data['option'].'" action="./includes/processForm.php"\>
$htmlform .= '<div class="column left">
<form method="post" id="seat_filter" action="./?state='.$data['option'].'"\>
<fieldset>
<legend> Configuracion </legend>
<input type="number" name="rows" value="'.$rows.'" min="1" placeholder="Numero de filas" required/> <br>
<input type="number" name="cols" value="'.$cols.'" min="1" placeholder="Numero de cols" required/> <br>
<button type="submit" name="seat_filter" class="button large">Actualizar</button><br>
</fieldset>
</form>
<br>
<br>
<form method="post" id="'.$data['option'].'" action="./includes/processForm.php"\>
<fieldset>
<input type="number" name="number" value="'.$number.'" min="1" placeholder="Numero de la sala" required/> <br>
<input type="number" name="rows" value= "'.$rows.'" min="1" placeholder="Filas" required/><br>
<input type="number" name="cols" value= "'.$cols.'" min="1" placeholder="Columnas" required/><br>
<input type="number" name="seats" value= "'.$seats.'" min="1" placeholder="Total de butacas?" /><br>
<input type="hidden" name="rows" value="'.$rows.'" min="1"/>
<input type="hidden" name="cols" value="'.$cols.'" min="1"/>
';
if($data['option'] == "new_hall")
$htmlform .= '<button type="submit" name="new_hall" class="button large">Crear</button></div><br>';
$htmlform .= '<button type="submit" name="new_hall" class="button large">Crear</button><br>';
$htmlform .= '
</fieldset>
</form>';
return $htmlform;
</div>
<div class="column right">
<h3 class="table_title"> Pantalla </h3>
<table class="seat">
<thead>
<tr>
<th></th>';
for($j = 1; $j<=$cols; $j++){
$htmlform .= '<th>'.$j.'</th>';
}
$htmlform .= '</tr>
</thead>
<tbody>';
for($i = 1;$i<=$rows;$i++){
$htmlform .= '
<tr>
<td>'.$i.'</td>
';
for($j=1; $j<=$cols; $j++){
$htmlform .= '<td> <input type="checkbox" class="check_box" name="checkbox'.$i.$j.'" id="checkbox'.$i.$j.'" value="1" checked> <label for="checkbox'.$i.$j.'"> </td>'
;
}
$htmlform .='
</tr>';
}
$htmlform .= '
</tbody>
</table>
</form>
</div>
';
return $htmlform;
}
//Methods: