Пример #1
0
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);
$cur = $curso->mostrarCurso($al['CodCurso']);
$cur = array_shift($cur);
$cArea = $cursoarea->mostrarArea($cur['CodCursoArea']);
$cArea = array_shift($cArea);