Editar/Eliminar sesiones
This commit is contained in:
parent
db298d1ea6
commit
343a37d602
@ -141,7 +141,16 @@
|
|||||||
<td> '. str_replace('_', ' ', Session::getFilmTitle($session->getIdfilm())) .' </td>
|
<td> '. str_replace('_', ' ', Session::getFilmTitle($session->getIdfilm())) .' </td>
|
||||||
<td> '.$session->getFormat().' </td>
|
<td> '.$session->getFormat().' </td>
|
||||||
<td> '.$session->getSeatPrice().' </td>
|
<td> '.$session->getSeatPrice().' </td>
|
||||||
|
<td> <input type="date" name="date" value="'.$date.'">
|
||||||
|
<form method="post" action="./?state=edit_session">
|
||||||
|
<input name="film" type="hidden" value="'.$session->getIdfilm().'">
|
||||||
|
<input name="hall" type="hidden" value="'.$session->getIdhall().'">
|
||||||
|
<input name="date" type="hidden" value="'.$session->getDate().'">
|
||||||
|
<input name="start" type="hidden" value="'.$session->getStartTime().'">
|
||||||
|
<input name="price" type="hidden" value="'.$session->getSeatPrice().'">
|
||||||
|
<input name="format" type="hidden" value="'.$session->getFormat().'">
|
||||||
<td> <input type="submit" name="edit" value="Editar" class="button" ></td>
|
<td> <input type="submit" name="edit" value="Editar" class="button" ></td>
|
||||||
|
</form>
|
||||||
</tr>';
|
</tr>';
|
||||||
}
|
}
|
||||||
$panel.='
|
$panel.='
|
||||||
@ -169,12 +178,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function edit_session(){
|
static function edit_session(){
|
||||||
$panel = '<div class="column side"></div>
|
$data = array("option" => "edit_session","hall" => $_POST["hall"],"cinema" => $_SESSION["cinema"],"date" => $_POST['date'],"film" => $_POST['film'],"start" => $_POST['start'],"price" => $_POST['price'],"format" => $_POST['format']);
|
||||||
<div class="column middle">
|
$panel = '<h1>Editar una sesión.</h1><hr /></br>
|
||||||
<h1>Editar una session.</h1><hr /></br>
|
'.FormSession::generaCampoFormulario($data, null);
|
||||||
<p> En desarrollo... </p>
|
|
||||||
</div>
|
|
||||||
<div class="column side"></div>'."\n";
|
|
||||||
|
|
||||||
return $panel;
|
return $panel;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user