<?php include_once './cad/DAL/Connection.php'; include_once './cad/BLL/ClaseAulasBLL.php'; include_once './cad/BLL/ClaseMateriasBLL.php'; include_once './cad/BLL/ClaseRegistrosBLL.php'; include_once './cad/DTO/ClaseAulas.php'; include_once './cad/DTO/ClaseMaterias.php'; include_once './cad/DTO/ClaseRegistros.php'; $aulasBLL = new AulasBLL(); $materiasBLL = new MateriasBLL(); $registrosBLL = new RegistrosBLL(); if (isset($_REQUEST["task"])) { $task = $_REQUEST["task"]; } else { $task = "mostrar"; } switch ($task) { case "insertar-aula": if (isset($_REQUEST["numero"])) { $numero = $_REQUEST["numero"]; } $aulasBLL->insert($numero); break; case "insertar-materia": if (isset($_REQUEST["codigo"])) { $codigo = $_REQUEST["codigo"]; } if (isset($_REQUEST["nombre"])) { $nombre = $_REQUEST["nombre"]; }
<?php include_once './cad/DAL/Connection.php'; include_once './cad/BLL/MateriasBLL.php'; include_once './cad/DTO/Materias.php'; $id = $_REQUEST["id"]; $materiasBLL = new MateriasBLL(); $objMateria = $materiasBLL->select($id); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form method="POST" action="materia.php"> <input type="hidden" name="task" value="actualizar-materia"/> <input type="hidden" name="id" value="<?php echo $objMateria->getIdMateria(); ?> "/> <div> <label>Codigo</label> </div> <div> <input type="text" name="codigo" required="required" value="<?php echo $objMateria->getCodigo(); ?> "/> </div>
<?php include_once './cad/DAL/Connection.php'; include_once './cad/BLL/ClaseAulasBLL.php'; include_once './cad/BLL/ClaseMateriasBLL.php'; include_once './cad/DTO/ClaseAulas.php'; include_once './cad/DTO/ClaseMaterias.php'; $aulasBLL = new AulasBLL(); $materiasBLL = new MateriasBLL(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="css/index.css"> <link rel="stylesheet" type="text/css" href="css/form.css"> <title>Registro de Horarios de Materia/Aula</title> </head> <body> <main> <h2>Registro de Horarios de Materia/Aula</h2> <form method="POST" action="index.php"> <input type="hidden" name="task" value="insertar-registro"/> <div> <label>Materia:</label> </div> <div> <select name="materia" required="required"> <?php $listaMaterias = $materiasBLL->selectAll();