2021-03-26 15:45:16 +01:00
|
|
|
<?php
|
2021-04-12 17:21:59 +02:00
|
|
|
require('./includes/hall_dto.php');
|
2021-03-26 15:45:16 +01:00
|
|
|
|
2021-04-12 17:21:59 +02:00
|
|
|
$r1 = new HallDTO(0,20,20,30);
|
|
|
|
$r2 = new HallDTO(1,10,30,30);
|
|
|
|
$r3 = new HallDTO(2,30,10,30);
|
|
|
|
$r4 = new HallDTO(3,15,15,30);
|
2021-03-26 15:45:16 +01:00
|
|
|
$rooms = array($r1, $r2, $r3, $r4);
|
|
|
|
|
2021-04-12 17:21:59 +02:00
|
|
|
function drawHalls($ros){
|
2021-04-15 20:53:01 +02:00
|
|
|
echo " <p> Esta vista esta en desarrollo <p>
|
2021-04-13 21:16:07 +02:00
|
|
|
<div class=\"column middle\">
|
2021-03-29 01:04:21 +02:00
|
|
|
<table class='alt'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Sala</th>
|
|
|
|
<th>Opción</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>";
|
2021-03-26 15:45:16 +01:00
|
|
|
foreach($ros as $r){
|
|
|
|
echo "
|
2021-03-29 01:04:21 +02:00
|
|
|
<tr>
|
2021-04-12 17:21:59 +02:00
|
|
|
<td><a href=\"\" class='button'>Sala". $r->getNumber() ."</a></td>
|
2021-04-15 20:53:01 +02:00
|
|
|
<td><a href=\"index.php?state=rooms\" class='button'>Editar</a></td>
|
2021-03-29 01:04:21 +02:00
|
|
|
</tr>";
|
2021-03-26 15:45:16 +01:00
|
|
|
}
|
2021-03-29 01:04:21 +02:00
|
|
|
echo "<tbody>
|
|
|
|
</table>\n";
|
2021-04-15 20:53:01 +02:00
|
|
|
echo "<a href=\"index.php?state=rooms\" class='button large'>Añadir</a>
|
2021-04-13 21:16:07 +02:00
|
|
|
</div>";
|
2021-03-26 15:45:16 +01:00
|
|
|
}
|
2021-04-12 17:21:59 +02:00
|
|
|
drawHalls($rooms);
|
2021-04-08 09:59:11 +02:00
|
|
|
?>
|
2021-04-13 21:16:07 +02:00
|
|
|
|