From bad58c7c15130ccbe74c9fd0f0222f9a38d01dcd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Tue, 19 Aug 2003 17:49:23 +0000 Subject: [PATCH 1/1] Acomode para usar con el renderer nuevo --- sistema/www/css/servicios_agenda.css | 2 +- sistema/www/servicios/agenda/agenda1.php | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sistema/www/css/servicios_agenda.css b/sistema/www/css/servicios_agenda.css index db28f33..5c4f853 100644 --- a/sistema/www/css/servicios_agenda.css +++ b/sistema/www/css/servicios_agenda.css @@ -1,7 +1,7 @@ .textoazul { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: normal } .titulo_form { COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11pt; font-style: normal; line-height: normal; background-position: centre centre; text-align: centre; vertical-align: middle ; font-weight: normal} -.txt1 { COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; background-position: left centre; text-align: left; vertical-align: top; font-weight: normal } +.txt1 { COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; background-position: left centre; vertical-align: top; font-weight: normal } .txt2 { COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; font-style: normal; line-height: normal; background-position: left top; text-align: left; vertical-align: top; font-weight: normal } .txt_naranja { COLOR: #FF3300; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; font-weight: bold} .txt_derecha { COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; font-style: normal; line-height: normal; background-position: right centre; text-align: right; vertical-align: middle; font-weight: normal } diff --git a/sistema/www/servicios/agenda/agenda1.php b/sistema/www/servicios/agenda/agenda1.php index 252b984..f5e30af 100644 --- a/sistema/www/servicios/agenda/agenda1.php +++ b/sistema/www/servicios/agenda/agenda1.php @@ -23,9 +23,14 @@ Autor: Martin Marrese ------------------------------------------------------------------------------- $Id$ -----------------------------------------------------------------------------*/ + +require_once 'MECON/general.php'; +prepend_include_path('/home/mmarrese/public_html/meconlib/lib/'); + //REQUIRE ONCE {{{ require_once '../../../local_lib/Servicios/Agenda.php'; require_once 'HTML/Table.php'; +require_once 'MECON/HTML/Tabla.php'; require_once '../../../local_lib/HTML_DietMarco.php'; require_once 'MECON/HTML/QuickForm.php'; require_once 'HTML/Image.php'; @@ -39,8 +44,10 @@ if (DB::isError($DB)) { } //}}} //CREO LOS OBJETOS NECESARIOS {{{ +$TABLAFORM = new Tabla ('width="500"', 'servicio'); $MARCO = new HTML_DietMarco('servicios'); $FORM = new MECON_HTML_QuickForm('agenda', 'post', 'agenda2', '', array ('onSubmit' => "return validar(this)", 'action' => '')); +$FORM->renderer->setTable($TABLAFORM); $TABLA = new HTML_Table('width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"'); $IMG1 = new HTML_Image('../../images/servicios_agenda_lupa.gif'); $IMG2 = new HTML_Image('../../images/servicios_agenda_mail.gif'); @@ -81,8 +88,6 @@ $FORM->addRule('interno','El interno debe ser numerico','numeric'); //}}} //ACOMODO EL FORM {{{ $MARCO->addStyleSheet(PATH_RAIZ.'css/servicios_agenda.css'); //EL PROBLEMA QUE ESTO LO NECESITO PARA QUE FUNCIONE EL RENDERER NUEVO -$FORM->setRenderer('MECON_HTML_QuickForm_Renderer_Tabla_Servicios'); -$FORM->setRendererOpts('width="500"'); //}}} //ARMO LA TABLA {{{ $TABLA->addRow(array($LINK_1->toHtml(), $LINK_2->toHtml(), $TELECO->toHtml())); -- 2.43.0