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

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