X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/868dbd551a017f53a02aec2ff4670c8012e2cebc..f35dae6dac4977912dcf90296c20ccc48e32b1c3:/sistema/www/servicios/bandas/index.php diff --git a/sistema/www/servicios/bandas/index.php b/sistema/www/servicios/bandas/index.php index a2a61d6..38f1b90 100644 --- a/sistema/www/servicios/bandas/index.php +++ b/sistema/www/servicios/bandas/index.php @@ -28,12 +28,19 @@ $Id: agenda1.php 64 2003-08-21 18:48:28Z mmarre $ require_once 'HTML/Table.php'; require_once 'MECON/HTML/Tabla.php'; require_once '../../../local_lib/HTML_DietMarco.php'; -require_once '../../../local_lib/Servicios/Bandas/Buscador.php'; +require_once 'BandasNovedades/Buscador.php'; require_once 'MECON/HTML/QuickForm.php'; require_once 'MECON/HTML/Image.php'; require_once 'DB.php'; //}}} +//CHEQUEO QUE EL USUARIO YA ESTÉ LOGUEADO {{{ +if(!isset($_SESSION['documento'])) +{ + header('Location: ../../servicios.php'); +} +//}}} + //CREO LA CONEXION A LA BASE DE DATOS {{{ $DB = DB::connect("mysql://intranet:intranet@bal747f/bandas",true); if (DB::isError($DB)) { @@ -44,14 +51,14 @@ if (DB::isError($DB)) { //CREO LOS OBJETOS NECESARIOS {{{ $TABLAFORM = new MECON_HTML_Tabla ('width="500"', 'medio'); $MARCO = new HTML_DietMarco('servicios','Bandas Horarias'); -$FORM = new MECON_HTML_QuickForm('bandas', 'post', 'banda_agente', '', array ('onSubmit' => "return validar(this)", 'action' => '')); +$FORM = new MECON_HTML_QuickForm('bandas', 'post', 'banda_agente', '', array ('action' => '')); $FORM->renderer->setTable($TABLAFORM); $TABLA = new HTML_Table('width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"'); $IMG = new MECON_HTML_Image('../../images/servicios_flecha_naranja.gif'); //}}} //OBTENGO LOS DATOS DE LAS BASES {{{ setlocale (LC_ALL, 'es_AR'); -$RESULT_MESES = Servicios_Bandas_Buscador::getMeses($DB); +$RESULT_MESES = BandasNovedades_Buscador::getMeses($DB); $MESES = array(); foreach ($RESULT_MESES as $m) {