Add files via upload
This commit is contained in:
@ -8,19 +8,29 @@
|
||||
$rooms = array($r1, $r2, $r3, $r4);
|
||||
|
||||
function drawRooms($ros){
|
||||
echo "<table>";
|
||||
echo "
|
||||
<table class='alt'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sala</th>
|
||||
<th>Opción</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>";
|
||||
foreach($ros as $r){
|
||||
echo "
|
||||
<tr>
|
||||
<td> <button type=\"button\"> Sala ". $r->getId() ."</button> </td>
|
||||
<td> <button type=\"button\" onClick=\"Javascript:window.location.href = 'index.php?edit_rooms=true';\")\">Editar</button> </td>
|
||||
</tr>";
|
||||
<tr>
|
||||
<!-- AUN NO HEMOS VISTO JAVASCRIPT -->
|
||||
<!-- ADEMÁS, AUNQUE USÁSEMOS JS, ESO NO SE HARÍA CON UN WINDOWS.LOCATION.HREF, DE MOMENTO, USAD LOS BOTONES COMO OS PONGO EL DE AÑADIR -->
|
||||
<!--<td> <button type=\"button\"> Sala ". $r->getId() ."</button> </td> -->
|
||||
<td><a href=\"\" class='button'>Sala". $r->getId() ."</a></td>
|
||||
<!--<td> <button type=\"button\" onClick=\"Javascript:window.location.href = 'index.php?edit_rooms=true';\")\">Editar</button> </td> MAL, POR LO MISMO-->
|
||||
<td><a href=\"index.php?edit_rooms=true\" class='button'>Editar</a></td>
|
||||
</tr>";
|
||||
}
|
||||
echo "
|
||||
<tr>
|
||||
<td> <button type=\"button\" onClick=\"Javascript:window.location.href = 'index.php?edit_rooms=true';\")\">Añadir</button> </td>
|
||||
</tr>
|
||||
</table>\n";
|
||||
echo "<tbody>
|
||||
</table>\n";
|
||||
echo "<a href=\"index.php?edit_sessions=true\" class='button large'>Añadir</a>";
|
||||
}
|
||||
drawRooms($rooms);
|
||||
?>
|
Reference in New Issue
Block a user