Debug
This commit is contained in:
parent
9d1869023a
commit
d7cbedc524
@ -9,11 +9,56 @@
|
||||
|
||||
|
||||
// View functions
|
||||
/*function drawCinema(){
|
||||
$cine = new Cinema_DAO("complucine");
|
||||
$cinemas = $cine->allCinemaData();
|
||||
echo "<div class='column left'>
|
||||
<table class='alt'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Nombre</th>
|
||||
<th>Direccion</th>
|
||||
<th>Telefono</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>";
|
||||
foreach($cinemas as $f){
|
||||
echo '
|
||||
<tr>
|
||||
<td>'. $f->getId() .'</td>
|
||||
<td>'. $f->getName() .'</td>
|
||||
<td>'. $f->getDirection() .'</td>
|
||||
<td>'. $f->getPhone() .'</td>
|
||||
<td>
|
||||
<form method="post" action="index.php?state=mc">
|
||||
<input name="id" type="hidden" value="'.$f->getId().'">
|
||||
<input name="name" type="hidden" value="'.$f->getName().'">
|
||||
<input name="direction" type="hidden" value="'.$f->getDirection().'">
|
||||
<input name="phone" type="hidden" value="'.$f->getPhone().'">
|
||||
<input type="submit" id="submit" value="Editar" name="edit_cinema" class="primary" />
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
<form method="post" action="index.php?state=mc">
|
||||
<input name="id" type="hidden" value="'.$f->getId().'">
|
||||
<input name="name" type="hidden" value="'.$f->getName().'">
|
||||
<input name="direction" type="hidden" value="'.$f->getDirection().'">
|
||||
<input name="phone" type="hidden" value="'.$f->getPhone().'">
|
||||
<input type="submit" id="submit" value="Eliminar" name="delete_cinema" class="primary" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
echo'<tbody>
|
||||
</table>
|
||||
</div>';
|
||||
}*/
|
||||
function addCinema(){
|
||||
echo' <div class="column side"></div>
|
||||
<div class="column middle">
|
||||
echo'<div class="column">
|
||||
<h2>Añadir cine</h2>
|
||||
<form method="post" action="index.php?state=mc">
|
||||
<div class="row">
|
||||
<fieldset id="cinema_form">
|
||||
<legend>Datos del Cine</legend>
|
||||
<div>
|
||||
@ -30,16 +75,13 @@
|
||||
<input type="submit" id="submit" value="Añadir cine" name="add_cinema" class="primary" />
|
||||
<input type="reset" id="reset" value="Borrar" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="column side"></div>
|
||||
</div>
|
||||
';
|
||||
</div>';
|
||||
}
|
||||
function deleteCinema() {
|
||||
echo'<div class="column side"></div>
|
||||
<div class="column middle">
|
||||
<h2>Eliminar cine</h2>
|
||||
echo'<div class="column">
|
||||
<h2>Editar cine</h2>
|
||||
<form method="post" action="index.php?state=mc">
|
||||
<div class="row">
|
||||
<fieldset id="cinema_form">
|
||||
@ -51,18 +93,15 @@
|
||||
<p>Teléfono: '.$_POST['phone'].' </p>
|
||||
</fieldset>
|
||||
<div class="actions">
|
||||
<input type="submit" id="submit" value="Eliminar" name="confirm_delete_film" class="primary" />
|
||||
<input type="submit" id="submit" value="Cancelar" name="cancel_delete_film" class="primary" />
|
||||
<input type="submit" id="submit" value="Eliminar" name="confirm_delete_cinema" class="primary" />
|
||||
<input type="submit" id="submit" value="Cancelar" name="cancel_delete_cinema" class="primary" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="column side"></div>
|
||||
';
|
||||
</div>';
|
||||
}
|
||||
function editCinema() {
|
||||
echo'<div class="column side"></div>
|
||||
<div class="column middle">
|
||||
echo'<div class="column">
|
||||
<h2>Editar cine</h2>
|
||||
<form method="post" action="index.php?state=mc">
|
||||
<div class="row">
|
||||
@ -85,9 +124,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="column side"></div>
|
||||
';
|
||||
</div>';
|
||||
}
|
||||
|
||||
// Logic Functions
|
||||
|
Loading…
Reference in New Issue
Block a user