Update show cinemas admin

This commit is contained in:
Daniel Muñoz Garcia 2021-06-01 17:44:19 +02:00 committed by GitHub
parent b171b76ce5
commit b412c47c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,48 +529,50 @@
break; break;
case "Panel de Administrador": case "Panel de Administrador":
$reply .= "<div class='row'> $reply .= "<div class='row'>
<div class='column side'></div> <div class='column side'></div>
<div class='column middle'> <div class='column middle'>
<ul class='tablelist col6'> <ul class='tablelist col6'>
<li>Id</li> <li class='title'>Id</li>
<li>Nombre</li> <li class='title'>Nombre</li>
<li>Dirección</li> <li class='title'>Dirección</li>
<li>Teléfono</li> <li class='title'>Teléfono</li>
<li>Editar</li> <li class='title'>Editar</li>
<li>Eliminar</li> <li class='title'>Eliminar</li>
"; ";
$parity = "odd";
for($i = 0; $i < count($cinemas); $i++){ for($i = 0; $i < count($cinemas); $i++){
$reply .= ' $reply .= '
<li>'. $ids[$i] .'</li> <div class="'.$parity.'">
<li>'. $names[$i] .'</li> <a class="h2long" href="index.php?state=mc&cinema='.$ids[$i].'">
<li>'. $directions[$i] .'</li> <li>'. $ids[$i] .'</li>
<li>'. $phones[$i] .'</li> <li>'. $names[$i] .'</li>
<li> <li>'. $directions[$i] .'</li>
<form method="post" action="index.php?state=mc"> <li>'. $phones[$i] .'</li>
<input name="id" type="hidden" value="'.$ids[$i].'"> </a>
<input name="name" type="hidden" value="'.$names[$i].'"> <li>
<input name="direction" type="hidden" value="'.$directions[$i].'"> <form method="post" action="index.php?state=mc">
<input name="phone" type="hidden" value="'.$phones[$i].'"> <input name="id" type="hidden" value="'.$ids[$i].'">
<input type="submit" id="submit" value="Editar" name="edit_cinema" class="primary" /> <input name="name" type="hidden" value="'.$names[$i].'">
</form> <input name="direction" type="hidden" value="'.$directions[$i].'">
</li> <input name="phone" type="hidden" value="'.$phones[$i].'">
<li> <input type="submit" id="submit" value="Editar" name="edit_cinema" class="primary" />
<form method="post" action="index.php?state=mc"> </form>
<input name="id" type="hidden" value="'.$ids[$i].'"> </li>
<input name="name" type="hidden" value="'.$names[$i].'"> <li>
<input name="direction" type="hidden" value="'.$directions[$i].'"> <form method="post" action="index.php?state=mc">
<input name="phone" type="hidden" value="'.$phones[$i].'"> <input name="id" type="hidden" value="'.$ids[$i].'">
<input type="submit" id="submit" value="Eliminar" name="delete_cinema" class="primary" /> <input name="name" type="hidden" value="'.$names[$i].'">
</form> <input name="direction" type="hidden" value="'.$directions[$i].'">
</li> <input name="phone" type="hidden" value="'.$phones[$i].'">
<input type="submit" id="submit" value="Eliminar" name="delete_cinema" class="primary" />
</form>
</li>
</div>
'; ';
$parity = ($parity == "odd") ? "even" : "odd";
} }
$reply .='</ul> $reply .=' </div>
</div> <div class="column side"></div>';
<div class="column side"></div>
';
break; break;
default: default: