|
|
@@ -3,9 +3,8 @@ $ruta = '../';
|
|
|
require_once '../include/bd_pdo.php';
|
|
|
global $pdo;
|
|
|
|
|
|
-print_r($_POST);
|
|
|
-
|
|
|
$profesores = [];
|
|
|
+
|
|
|
if(isset($_POST['tipo'])){
|
|
|
foreach($_POST['tipo'] as $tipo){
|
|
|
$profesores_carrera = query("SELECT profesor_id FROM fs_profesor_carrera(:carrera_id)", [':carrera_id' => $tipo], false);
|
|
|
@@ -15,9 +14,6 @@ if(isset($_POST['tipo'])){
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-foreach($_POST['usuario'] as $profesor){
|
|
|
- array_push($profesores, $profesor);
|
|
|
-}
|
|
|
$sql = "SELECT fi_aviso(:fecha_inicial, :fecha_final, :texto, :facultad)";
|
|
|
$params = [':fecha_inicial' => $_POST['fecha_inicial'], ':fecha_final' => $_POST['fecha_final'], ':texto' => $_POST['texto'], ':facultad' => $_POST['facultad']];
|
|
|
$aviso_id = query($sql, $params, true);
|