<?php require 'main_Lib.php'; include_once 'class/class_siga.php'; include_once "class/class_style.php"; $sistema = $_GET['sistema']; $_SESSION['path'] = $_GET['colegio_ID']; $class_siga = new siga(); $_SESSION["MATRICULA_ANIO"] = MATRICULA_ANIO; $_SESSION['colegio'] = $class_siga->obtenerColegio($_GET['colegio_ID']); $_SESSION['base_datos'] = $class_siga->obtenerDB($_SESSION['colegio']->FK_db_db_ID); $_SESSION['base_datos']->nombrebd = "dorcl_" . $_SESSION['path'] . $_SESSION['base_datos']->anio; $styleSIGA = new stdClass(); $class_style = new style(); $style = $class_style->obtenerStyle($_SESSION['colegio']->colegio_ID); $styleSIGA->style_ID = $style['style_ID']; $styleSIGA->FK_colegios_colegio_ID = $style['FK_colegios_colegio_ID']; $styleSIGA->style_css = $style['style_css']; $styleSIGA->style_path = $style['style_path']; $_SESSION['style'] = $styleSIGA; switch ($sistema) { case "notas": moveLocation("profesor/profesores.php", 0); break; case "pagos": moveLocation("secretaria/SEC-buscas.php", 0); break; } exit;
include_once 'PHPCriteria/Criteria.php'; include_once 'phpLib/validaRut.php'; validarAcceso("super_usuario"); //headers("Super Usuario", ""); /* * ********************************* Librería para los templates * ********************************* */ require "smartyLib/Smarty.class.php"; $smarty = new Smarty(); require_once 'phpLib/SmartyToolbox.php'; # ENCABEZADO PAGINA WEB # $smarty->assign("colegio", $_SESSION['colegio']->nombre); $smarty->assign("titulo_principal", "Super Usuario"); $smarty->assign("titulo_secundario", "BD->" . $_SESSION['base_datos']->anio); # FIN ENCABEZADO # $class_siga = new siga(); $colegios = $class_siga->obtenerColegios(); $slideMenu = array(); //dpr($_POST); set_time_limit(600); if (isset($_POST['guardar'])) { $class_respaldos = new Respaldos(); if ($_POST['guardar'] == "Respaldos Notas") { try { $class_respaldos->respaldosNotas(); $smarty->assign("exito", "Se han raspaldado exitosamente las notas"); } catch (Exception $e) { $smarty->assign("error", "Se ha producido un error al guardar las notas"); } } if ($_POST['guardar'] == "Respaldos Pagos") {