Exemple #1
0
<?php

require "../main_Lib.php";
include_once '../class/class_alumno.php';
include_once '../class/class_curso.php';
require "../smartyLib/Smarty.class.php";
validarAcceso(AuthUser::TIPO_SECRETARIA);
include_once "../class/class_alumno.php";
$smarty = new Smarty();
require_once '../phpLib/SmartyToolbox.php';
smartyTemplate($smarty, "../");
setHistoryGoBack("");
$class_alumno = new alumno();
$class_curso = new curso();
$cursos = $class_curso->obtenerCursos();
$smarty->assign("cursos", $cursos);
@($curso_ID = isset($_POST['curso_ID']) ? $_POST['curso_ID'] : $_SESSION['curso_ID']);
$_SESSION['curso_ID'] = $curso_ID;
@($searchQuery = isset($_POST['searchQuery']) ? $_POST['searchQuery'] : $_SESSION['searchQuery']);
$_SESSION['searchQuery'] = $searchQuery;
if (count($_POST) > 0) {
    //$chkAlumnosMatriculados = (isset($_POST['chkAlumnosMatriculados']))?"checked":"no_checked";
    $selectAlumnosMatriculados = isset($_POST['selectAlumnosMatriculados']) ? $_POST['selectAlumnosMatriculados'] : $_SESSION["selectAlumnosMatriculados"];
    $_SESSION["selectAlumnosMatriculados"] = $selectAlumnosMatriculados;
} else {
    $chkAlumnosMatriculados = $_SESSION["chkAlumnosMatriculados"];
    $selectAlumnosMatriculados = $_SESSION["selectAlumnosMatriculados"];
}
$matricula = null;
if ($selectAlumnosMatriculados != "Todos") {
    $matricula = $selectAlumnosMatriculados;
Exemple #2
0
/***********************************
Librería para los templates
***********************************/
require "../smartyLib/Smarty.class.php";
$smarty = new Smarty();
smartyTemplate($smarty, "../");
$smarty->assign("titulo_browser", "Profesores");
$smarty->assign("colegio", $_SESSION['colegio']->nombre);
$smarty->assign("titulo_principal", "Unidad T&eacute;cnica Pedag&oacute;gica");
$smarty->assign("titulo_secundario", "BD->" . $_SESSION['base_datos']->anio);
$smarty->assign("path", $_SESSION['path']);
//$smarty->display("utp.tpl");
$smarty->assign("title", "U.T.P.");
$smarty->assign("file_sidebar", "SIDEBAR-utp.tpl");
$smarty->assign("menu", menuProfesores());
$smarty->assign("file_content", "utp.tpl");
$smarty->display('layout/main.tpl');
setHistoryGoBack();
if (!isset($_GET['code'])) {
    $code = null;
} else {
    $code = $_GET['code'];
}
switch ($code) {
    case 1:
        break;
    case 2:
        moveLocation("modificar_cursos.php", 0);
        break;
    case 3:
        moveLocation("notas/ramos.php", 0);
Exemple #3
0
require "../main_Lib.php";
validarAcceso(AuthUser::TIPO_PROFESOR);
include_once "../class/class_alumno.php";
/***********************************
Librería para los templates
***********************************/
require "../smartyLib/Smarty.class.php";
$smarty = new Smarty();
smartyTemplate($smarty, "../");
# ENCABEZADO PÁGINA WEB #
$smarty->assign("title", "Nómina del curso");
$smarty->assign("colegio", $_SESSION['colegio']->nombre);
$smarty->assign("titulo_izq", "N&oacute;mina del Curso");
$smarty->assign("titulo_der", mostrar_curso($_GET['curso']));
$smarty->assign("path", $_SESSION['path']);
# FIN ENCABEZADO #
$curso = $_GET['curso'];
setHistoryGoBack("?curso=" . $curso);
$smarty->assign("curso", $curso);
$archivo_xls = "nomina_" . mostrar_curso($curso) . "_R" . rand() . ".xls";
$class_alumno = new alumno();
$alumnos = $class_alumno->obtenerAlumnos($curso, 1, false);
$i = 0;
if (count($alumnos) > 0) {
    foreach ($alumnos as $rut => $datos_alumno) {
        $indice_alumno[] = ++$i;
        $rut_alumno[] = $rut;
        $nombre_alumno[] = $datos_alumno['dato_alumno']['apellidop'] . " " . $datos_alumno['dato_alumno']['apellidom'] . " " . $datos_alumno['dato_alumno']['nombres'];
    }
}
$smarty->assign("indice_alumno", $indice_alumno);
Exemple #4
0
<?php

require "../main_Lib.php";
require "../smartyLib/Smarty.class.php";
require_once "../phpLib/Calendar/Calendar.php";
include_once '../phpLib/calc.php';
validarAcceso(AuthUser::TIPO_SECRETARIA);
$smarty = new Smarty();
smartyTemplate($smarty, "../");
setHistoryGoBack(PATH_HTTP . "secretaria/SEC-calendario.php");
$smarty->assign("PATH_HTTP", PATH_HTTP);
//ob_end_clean();
$ano = isset($_GET['ano']) ? $_GET['ano'] : date("Y");
$mes = isset($_GET['mes']) ? $_GET['mes'] : date("m");
$dia = isset($_GET['dia']) ? $_GET['dia'] : date("d");
$fecha_hoy = $dia . "/" . $mes . "/" . $ano;
$ingresos_totales_mes = calc_total_ingreso($ano, $mes);
$salida_mes = calc_salida_mes($mes);
$total_dia = calc_total_ingreso($ano, $mes, $dia);
$salida_dia = calc_salida_dia($dia, $mes, $ano);
$nombre_mes = Calendar::getNombreMes($mes);
$smarty->assign("ingresos_totales_mes", $ingresos_totales_mes);
$smarty->assign("salida_mes", $salida_mes);
$smarty->assign("total_dia", $total_dia);
$smarty->assign("salida_dia", $salida_dia);
$smarty->assign("fecha_hoy", $fecha_hoy);
$smarty->assign("dia", $dia);
$smarty->assign("anio", $anio);
$smarty->assign("mes", $mes);
$smarty->assign("nombre_mes", $nombre_mes);
$smarty->assign("file_content", "SEC-calendario.tpl");
Exemple #5
0
        $nombre_alumno[] = $alumnos[$rut]['dato_alumno']['apellidop'] . " " . $alumnos[$rut]['dato_alumno']['apellidom'] . " " . $alumnos[$rut]['dato_alumno']['nombres'];
        $promedio_alumno[] = $ranking->promedio;
    }
}
$smarty->assign("indice_alumno", $indice_alumno);
$smarty->assign("rut_alumno", $rut_alumno);
$smarty->assign("nombre_alumno", $nombre_alumno);
$smarty->assign("promedio_alumno", $promedio_alumno);
switch ($periodo) {
    case '2S':
        $titulo = "Ranking Segundo Semestre";
        break;
    case 'anual':
        $titulo = "Ranking Anual";
        break;
    default:
        $titulo = "Ranking Primer Semestre";
        break;
}
$smarty->assign("titulo_tabla", $titulo);
//dpr($prom_anual);
//dpr(promedio($prom_anual));
setHistoryGoBack("?curso=" . $curso . "&periodo=" . $periodo);
$smarty->assign("file_content", "PROF-ranking.tpl");
$smarty->assign("titulo_principal", mostrar_curso($curso));
$smarty->assign("titulo_secundario", "Ranking de Alumnos");
$smarty->assign("title", "Ranking de Alumnos");
$menu = menuProfesores();
$menu[] = array("img" => "img.jpg", "url" => "#", "text" => "Ranking", "title" => "Ranking " . mostrar_curso($curso), "alt" => "", "id" => "", "class" => "ranking");
$smarty->assign("menu", $menu);
$smarty->display('layout/main.tpl');