From 5ee09a12dee340d7b7a8775dba8dea49b6d72dcc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mu=C3=B1oz=20Garcia?=
<73303506+danimu03@users.noreply.github.com>
Date: Thu, 6 May 2021 12:18:20 +0200
Subject: [PATCH] updates
---
panel_admin/manage_managers.php | 194 ++++++++++++++++++++++----------
panel_admin/panelAdmin.php | 10 ++
2 files changed, 146 insertions(+), 58 deletions(-)
diff --git a/panel_admin/manage_managers.php b/panel_admin/manage_managers.php
index 12ca0a9..dded178 100644
--- a/panel_admin/manage_managers.php
+++ b/panel_admin/manage_managers.php
@@ -5,25 +5,28 @@
include_once('../assets/php/common/manager.php');
+ include_once('../assets/php/common/cinema_dao.php');
+
+ include_once('../assets/php/common/user_dao.php');
+
include_once(__DIR__.'/includes/formManager.php');
-
// View functions
function print_managers(){
$manager = new Manager_DAO("complucine");
$managers = $manager->allManagersData();
$ids = array();
+ $idscinemas = array();
$usernames = array();
$email = array();
- $pass = array();
$rol = array();
foreach($managers as $key => $value){
$ids[$key] = $value->getId();
+ $idscinemas[$key] = $value->getIdcinema();
$usernames[$key] = $value->getUsername();
$email[$key] = $value->getEmail();
- $pass[$key] = $value->getPass();
$rol[$key] = $value->getRoll();
}
@@ -35,6 +38,7 @@
Id
+ IdCinema
Nombre
Email
password
@@ -43,29 +47,29 @@