manager update

This commit is contained in:
marian1010 2021-05-13 09:20:25 +02:00
parent 624778cd7a
commit b278c82228
2 changed files with 44 additions and 40 deletions

View File

@ -1,5 +1,7 @@
<?php
include_once('../dao.php');
$template = new Template();
$prefix = $template->get_prefix();
include_once($prefix.'assets/php/dao.php');
include_once('manager.php');
class Manager_DAO extends DAO {

View File

@ -21,7 +21,7 @@
$usernames = array();
$email = array();
$rol = array();
if(is_array($managers)){
foreach($managers as $key => $value){
$ids[$key] = $value->getId();
$idscinemas[$key] = $value->getIdcinema();
@ -29,7 +29,7 @@
$email[$key] = $value->getEmail();
$rol[$key] = $value->getRoll();
}
}
echo "<div class='row'>
<div class='column side'></div>
@ -47,6 +47,7 @@
</thead>
<tbody>
";
if(is_array($managers)){
for($i = 0; $i < count($managers); $i++){
echo '<tr>
<td>'. $ids[$i] .'</td>
@ -77,6 +78,7 @@
</tr>
';
}
}
echo'</tbody>
</table>
</div>