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 <?php
include_once('../dao.php'); $template = new Template();
$prefix = $template->get_prefix();
include_once($prefix.'assets/php/dao.php');
include_once('manager.php'); include_once('manager.php');
class Manager_DAO extends DAO { class Manager_DAO extends DAO {

View File

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