manager update
This commit is contained in:
parent
624778cd7a
commit
b278c82228
@ -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 {
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user