<?php include_once "../../login/check.php"; if (isset($_POST)) { include_once "../../class/curso.php"; include_once "../../class/cursoarea.php"; $curso = new curso(); $cursoarea = new cursoarea(); $CodCurso = $_POST['CodCurso']; $cur = $curso->mostrarCurso($CodCurso); $cur = array_shift($cur); $curarea = todoLista($cursoarea->mostrarTodoRegistro(), "CodCursoArea", "Nombre"); for ($i = 1; $i <= 4; $i++) { $datos[$i] = $i; } ?> <h2><?php echo $idioma['NuevaAreaCurso']; ?> </h2> <form action="guardar.php" method="post" class="formulario"> <input type="hidden" name="CodCurso" value="<?php echo $CodCurso; ?> "> <table class="table table-bordered table-striped"> <tr> <td><?php echo $idioma['Nombre']; ?> <br>
<?php include_once "../../login/check.php"; include_once "../../class/alumno.php"; include_once "../../class/curso.php"; include_once "../../class/asistencia.php"; include_once "../../class/cursoarea.php"; include_once "../../class/config.php"; include_once "../../class/agenda.php"; $alumno = new alumno(); $curso = new curso(); $cursoarea = new cursoarea(); $asistencia = new asistencia(); $config = new config(); $agenda = new agenda(); $Codigo = $_POST['Codigo']; $folder = "../../"; $cnf = $config->mostrarConfig("AtrasoAgenda"); $AtrasoAgenda = $cnf['Valor']; $al = $alumno->mostrarDatosCodBarra("CodBarra='{$Codigo}'"); if (count($al) <= 0) { ?> <div class="alert alert-error grande"><?php echo $idioma['CodigoNoAsignado']; ?> </div> <script language="javascript">$("#Codigo").val('').focus();mostrar();</script> <?php exit; } $al = array_shift($al);
<?php include_once "../../login/check.php"; if (!empty($_POST['CodCursoArea'])) { include_once "../../class/curso.php"; include_once "../../class/cursoarea.php"; $curso = new curso(); $cursoarea = new cursoarea(); $CodCursoArea = $_POST['CodCursoArea']; $cur = $cursoarea->mostrarArea($CodCursoArea); $cur = array_shift($cur); //$curarea=todoLista($cursoarea->mostrarTodoRegistro(),"CodCursoArea","Nombre"); /*for($i=1;$i<=4;$i++){ $datos[$i]=$i; }*/ $curarea = array("1" => $idioma['EducacionInicial'], "2" => $idioma['Primaria'], "3" => $idioma['Secundaria'], "4" => $Area = $idioma['EducacionSuperior']); ?> <h2><?php echo $idioma['Modificar']; ?> </h2> <form action="actualizar.php" method="post" class="formulario"> <input type="hidden" name="CodCursoArea" value="<?php echo $CodCursoArea; ?> "> <table class="table table-bordered table-striped"> <tr> <td><?php echo $idioma['Nombre']; ?>
<?php include_once "../../login/check.php"; if (!empty($_POST)) { extract($_POST); include_once "../../class/cursoarea.php"; $cursoarea = new cursoarea(); $valores = array("Nombre" => "'{$Nombre}'", "Abreviado" => "'{$Abreviado}'", "Area" => "'{$Area}'", "Posicion" => "'{$Posicion}'", "HoraInicioL" => "'{$HoraInicioL}'", "HoraEsperaL" => "'{$HoraEsperaL}'", "HoraInicioM" => "'{$HoraInicioM}'", "HoraEsperaM" => "'{$HoraEsperaM}'", "HoraInicioMi" => "'{$HoraInicioMi}'", "HoraEsperaMi" => "'{$HoraEsperaMi}'", "HoraInicioJ" => "'{$HoraInicioJ}'", "HoraEsperaJ" => "'{$HoraEsperaJ}'", "HoraInicioV" => "'{$HoraInicioV}'", "HoraEsperaV" => "'{$HoraEsperaV}'", "HoraInicioS" => "'{$HoraInicioS}'", "HoraEsperaS" => "'{$HoraEsperaS}'", "HoraInicioD" => "'{$HoraInicioD}'", "HoraEsperaD" => "'{$HoraEsperaD}'"); if ($cursoarea->insertarRegistro($valores)) { ?> <div class="alert alert-success"><?php echo $idioma['DatosGuardadosCorrectamente']; ?> </div> <?php } else { ?> <div class="alert alert-error"><?php echo $idioma['DatosGuardadosError']; ?> </div> <?php } } ?> <script language="javascript">mostrar();</script>
<?php include_once "../../login/check.php"; if (!empty($_POST['CodCursoArea'])) { include_once "../../class/cursoarea.php"; $cursoarea = new cursoarea(); $CodCursoArea = $_POST['CodCursoArea']; $cursoarea->eliminarRegistro("CodCursoArea={$CodCursoArea}"); }
<?php include_once "../../login/check.php"; if (!empty($_POST)) { extract($_POST); include_once "../../class/cursoarea.php"; $cursoarea = new cursoarea(); $valores = array("Nombre" => "'{$Nombre}'", "Abreviado" => "'{$Abreviado}'", "Area" => "'{$Area}'", "Posicion" => "'{$Posicion}'", "HoraInicioL" => "'{$HoraInicioL}'", "HoraEsperaL" => "'{$HoraEsperaL}'", "HoraInicioM" => "'{$HoraInicioM}'", "HoraEsperaM" => "'{$HoraEsperaM}'", "HoraInicioMi" => "'{$HoraInicioMi}'", "HoraEsperaMi" => "'{$HoraEsperaMi}'", "HoraInicioJ" => "'{$HoraInicioJ}'", "HoraEsperaJ" => "'{$HoraEsperaJ}'", "HoraInicioV" => "'{$HoraInicioV}'", "HoraEsperaV" => "'{$HoraEsperaV}'", "HoraInicioS" => "'{$HoraInicioS}'", "HoraEsperaS" => "'{$HoraEsperaS}'", "HoraInicioD" => "'{$HoraInicioD}'", "HoraEsperaD" => "'{$HoraEsperaD}'"); if ($cursoarea->actualizarRegistro($valores, "CodCursoArea={$CodCursoArea}")) { ?> <div class="alert alert-success"><?php echo $idioma['DatosGuardadosCorrectamente']; ?> </div> <?php } else { ?> <div class="alert alert-error"><?php echo $idioma['DatosGuardadosError']; ?> </div> <?php } } ?> <script language="javascript">mostrar();</script>
<?php include_once "../../login/check.php"; include_once "../../class/cursoarea.php"; $cursoarea = new cursoarea(); $cur = $cursoarea->mostrarAreas(); if (count($cur)) { ?> <a href="#" class="btn btn-mini btn-success" id="exportarexcel"><?php echo $idioma['ExportarExcel']; ?> </a> <table class="table table-bordered table-striped table-hover table-condensed"> <thead><tr><th>N</th><th><?php echo $idioma['Nombre']; ?> </th><th><?php echo sacarTooltip($idioma['Abreviado'], "", "R", 5); ?> </th><th><?php echo $idioma['Area']; ?> </th><th><?php echo $idioma['Posicion']; ?> </th></tr></thead> <?php foreach ($cur as $c) { $i++; switch ($c['Area']) { case 1: