diff --git a/assets/php/common/film_dto.php b/assets/php/common/film_dto.php new file mode 100644 index 0000000..3b24897 --- /dev/null +++ b/assets/php/common/film_dto.php @@ -0,0 +1,37 @@ +_id = $id; + $this->_tittle = $tittle; + $this->_duration = $duration; + $this->_language = $language; + $this->_description = $description; + } + + //Methods: + + //Getters && Setters: + public function setId($id){ $this->_id = $id; } + public function getId(){ return $this->_id; } + public function setTittle($tittle) {$this->_tittle = $tittle; } + public function getTittle(){return $this->_tittle;} + public function setDuration($duration){$this->_duration = $duration; } + public function getDuration() {return $this->_duration;} + public function setLanguage($language) {$this->_language = $language; } + public function getLanguage(){return $this->_language;} + public function setDescription($description){ $this->_description = $description;} + public function getDescription(){return $this->_description;} + } +?> \ No newline at end of file diff --git a/assets/php/common/film_dto_interface.php b/assets/php/common/film_dto_interface.php new file mode 100644 index 0000000..23931f3 --- /dev/null +++ b/assets/php/common/film_dto_interface.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/assets/php/common/hall_dao.php b/assets/php/common/hall_dao.php index 4cbb23b..4c85a7c 100644 --- a/assets/php/common/hall_dao.php +++ b/assets/php/common/hall_dao.php @@ -1,6 +1,6 @@ _number = $number; + $this->_idcinema = $idcinema; + $this->_numRows = $numRows; + $this->_numCol = $numCol; + } + + //Methods: + + //Getters && Setters: + public function setNumber($number){ $this->_number = $number; } + public function getNumber(){ return $this->_number; } + + public function setIdcinema($idcinema){ $this->_idcinema = $idcinema; } + public function getIdcinema(){ return $this->_idcinema; } + + public function setNumRows($numRows){ $this->_numRows = $numRows; } + public function getNumRows(){ return $this->_numRows; } + + public function setNumCol($numCol){ $this->_numCol = $numCol; } + public function getNumCol(){ return $this->_numCol; } + + + + } +?> \ No newline at end of file diff --git a/assets/php/common/hall_dto_interface.php b/assets/php/common/hall_dto_interface.php new file mode 100644 index 0000000..0489026 --- /dev/null +++ b/assets/php/common/hall_dto_interface.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/assets/php/common/session_dao.php b/assets/php/common/session_dao.php index 5f80fec..381e55a 100644 --- a/assets/php/common/session_dao.php +++ b/assets/php/common/session_dao.php @@ -1,6 +1,6 @@ _id = $id; + $this->_idfilm = $idfilm; + $this->_idhall = $idhall; + $this->_idcinema = $idcinema; + $this->_date = $date; + $this->_startTime = $startTime; + $this->_seatPrice = $seatPrice; + $this->_format = $format; + } + + //Methods: + + //Getters && Setters: + public function setId($id){ $this->_id = $id; } + public function getId(){ return $this->_id; } + + public function setIdfilm($idfilm){ $this->_idfilm = $idfilm; } + public function getIdfilm(){ return $this->_idfilm; } + + public function setIdhall($idhall){ $this->_idhall = $idhall; } + public function getIdhall(){ return $this->_idhall; } + + public function setIdcinema($cinema){ $this->_idcinema = $idcinema; } + public function getIdcinema(){ return $this->_idcinema; } + + public function setDate($date){ $this->_date = $date; } + public function getDate(){ return $this->_date; } + + public function setStartTime($startTime){ $this->_startTime = $startTime; } + public function getStartTime(){ return $this->_startTime; } + + public function setSeatPrice($seatPrice){ $this->_seatPrice = $seatPrice; } + public function getSeatPrice(){ return $this->_seatPrice; } + + public function setFormat($format){ $this->_format = $format; } + public function getFormat(){ return $this->_format; } + + } +?> \ No newline at end of file diff --git a/assets/php/common/session_dto_interface.php b/assets/php/common/session_dto_interface.php new file mode 100644 index 0000000..651716f --- /dev/null +++ b/assets/php/common/session_dto_interface.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/assets/php/template.php b/assets/php/template.php index cd0a7b4..b7bfdff 100644 --- a/assets/php/template.php +++ b/assets/php/template.php @@ -101,7 +101,7 @@
  • Nuestros Cines
  • Quiénes somos
  • Contacto
  • - @@ -157,6 +157,75 @@ \n"; } + //Print panel menu: + function print_panelMenu($panel){ + $prefix = $this->prefix; + $menus = array("
  • Panel Principal
  • "); + + switch($panel){ + case "admin": array_push($menus, "
  • Ver como... + +
  • "); + array_push($menus, "
  • Modificar + +
  • "); + break; + + case "manager": array_push($menus, "
  • Ver como... + +
  • "); + array_push($menus, "
  • Modificar + +
  • "); + break; + + case "user": array_push($menus, "
  • Historial Compras
  • "); + array_push($menus, "
  • Datos Pago
  • "); + array_push($menus, "
  • Contraseña
  • "); + array_push($menus, "
  • Eliminar Usuario
  • "); + break; + + default: $menus = array(); break; + } + + /* +
  • Menú +