From 863a0c89dca626c59bf859244568d598371fc957 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 22 Sep 2003 17:08:52 +0000 Subject: [PATCH] Se pone un poco de orden a las CSS. En especial se empieza a arreglar a tabla, agregando el metodo getCSS(). --- lib/MECON/HTML/Arbol.php | 2 +- lib/MECON/HTML/Tabla.php | 13 +- lib/MECON/HTML/Tabla/estilo_comun.php | 7 +- lib/MECON/HTML/Tabla/estilo_impresion.php | 7 +- lib/MECON/HTML/Tabla/estilo_servicio.php | 7 +- www/css/{ => html}/arbol.css | 308 +++++++++--------- www/css/html/tabla_comun.css | 38 +++ .../css/html/tabla_servicios.css | 4 +- 8 files changed, 218 insertions(+), 168 deletions(-) rename www/css/{ => html}/arbol.css (95%) create mode 100644 www/css/html/tabla_comun.css rename lib/MECON/HTML/Tabla/tabla_estilos.css => www/css/html/tabla_servicios.css (94%) diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php index d4a25b2..fcd976f 100644 --- a/lib/MECON/HTML/Arbol.php +++ b/lib/MECON/HTML/Arbol.php @@ -90,7 +90,7 @@ class MECON_HTML_Arbol extends HTML_Table * @access public */ function getCSS() { - return '/MECON/css/arbol'; + return '/MECON/css/html/arbol'; } /** diff --git a/lib/MECON/HTML/Tabla.php b/lib/MECON/HTML/Tabla.php index 035e4f4..65512ff 100644 --- a/lib/MECON/HTML/Tabla.php +++ b/lib/MECON/HTML/Tabla.php @@ -30,7 +30,6 @@ require_once 'HTML/Table.php'; * Libreria para le manejo de las tablas de los sistemas de intranet. * */ - class MECON_HTML_Tabla extends HTML_Table { /** @@ -63,7 +62,8 @@ class MECON_HTML_Tabla extends HTML_Table { */ function MECON_HTML_Tabla($attrs = null, $estilo = 'comun') { - $this->_conf = include 'MECON/HTML/Tabla/estilo_'.$estilo.'.php'; // Obtengo los valores particulares de configuracion + // Obtengo los valores particulares de configuracion. + $this->_conf = include(dirname(__FILE__) . '/Tabla/estilo_' . $estilo . '.php'); // Seteo los atributos para la tabla $this->_attrs = $this->_conf['atributos']['tabla_comun']; //Genero el objeto HTML_Table @@ -388,6 +388,15 @@ class MECON_HTML_Tabla extends HTML_Table { return $rta; } + /** + * Obtiene la Cascade Style Sheet para esta tabla. + * + * @return string Path 'web' a la css. + */ + function getCSS() { + return $this->_conf['css']; + } + } ?> diff --git a/lib/MECON/HTML/Tabla/estilo_comun.php b/lib/MECON/HTML/Tabla/estilo_comun.php index 78f4a72..be86ff6 100644 --- a/lib/MECON/HTML/Tabla/estilo_comun.php +++ b/lib/MECON/HTML/Tabla/estilo_comun.php @@ -26,6 +26,7 @@ $Id$ // Opciones para la tabla {{{ return array ( + 'css' => '/MECON/css/html/tabla_comun', 'atributos' => array ( // {{{ 'tabla_comun' => array( // {{{ 'width' => '100%', @@ -46,17 +47,17 @@ return array ( 'celda_cabecera' => array( // {{{ 'align' => 'center', 'bgcolor' => '#336699', - 'class' =>'texto11_blanco', + 'class' => 'mecon_html_tabla_comun_texto11_blanco', ), // }}} 'celda_comun' => array( // {{{ 'align' => 'center', 'bgcolor' => '#FFFFFF', - 'class' => 'texto11_negro', + 'class' => 'mecon_html_tabla_comun_texto11_negro', ), // }}} 'celda_titulo' => array( // {{{ 'align' => 'center', 'bgcolor' => '#DDEEFF', - 'class' => 'texto11_negro', + 'class' => 'mecon_html_tabla_comun_texto11_negro', ), // }}} 'celda_contenedora' => array( // {{{ ), // }}} diff --git a/lib/MECON/HTML/Tabla/estilo_impresion.php b/lib/MECON/HTML/Tabla/estilo_impresion.php index a06504a..d9e5ef9 100644 --- a/lib/MECON/HTML/Tabla/estilo_impresion.php +++ b/lib/MECON/HTML/Tabla/estilo_impresion.php @@ -26,6 +26,7 @@ $Id$ // Opciones para la tabla {{{ return array ( + 'css' => '/MECON/css/html/tabla_comun', 'atributos' => array ( // {{{ 'tabla_comun' => array( // {{{ 'width' => '100%', @@ -46,17 +47,17 @@ return array ( 'celda_cabecera' => array( // {{{ 'align' => 'center', 'bgcolor' => '#666666', - 'class' =>'texto11_blanco', + 'class' => 'mecon_html_tabla_comun_texto11_blanco', ), // }}} 'celda_comun' => array( // {{{ 'align' => 'center', 'bgcolor' => '#FFFFFF', - 'class' => 'texto11_negro', + 'class' => 'mecon_html_tabla_comun_texto11_negro', ), // }}} 'celda_titulo' => array( // {{{ 'align' => 'center', 'bgcolor' => '#CCCCCC', - 'class' => 'texto11_negro', + 'class' => 'mecon_html_tabla_comun_texto11_negro', ), // }}} 'celda_contenedora' => array( // {{{ ), // }}} diff --git a/lib/MECON/HTML/Tabla/estilo_servicio.php b/lib/MECON/HTML/Tabla/estilo_servicio.php index b1caba4..289b47c 100644 --- a/lib/MECON/HTML/Tabla/estilo_servicio.php +++ b/lib/MECON/HTML/Tabla/estilo_servicio.php @@ -26,6 +26,7 @@ $Id$ // Opciones para la tabla {{{ return array ( + #'css' => '/MECON/css/html/tabla_servicios', 'atributos' => array ( // {{{ 'tabla_comun' => array( // {{{ 'width' => '100%', @@ -46,17 +47,17 @@ return array ( 'celda_cabecera' => array( // {{{ 'align' => 'center', 'bgcolor' => '#FFFFFF', - 'class' => 'titulo_form', + 'class' => 'mecon_html_tabla_servicios_titulo_form', ), // }}} 'celda_comun' => array( // {{{ 'align' => 'center', 'bgcolor' => '#FFFFFF', - 'class' => 'txt1', + 'class' => 'mecon_html_tabla_servicios_txt1', ), // }}} 'celda_titulo' => array( // {{{ 'align' => 'center', 'bgcolor' => '#FFFFFF', - 'class' => 'txt1', + 'class' => 'mecon_html_tabla_servicios_txt1', ), // }}} 'celda_contenedora' => array( // {{{ ), // }}} diff --git a/www/css/arbol.css b/www/css/html/arbol.css similarity index 95% rename from www/css/arbol.css rename to www/css/html/arbol.css index 6ae56f5..12ef548 100644 --- a/www/css/arbol.css +++ b/www/css/html/arbol.css @@ -1,154 +1,154 @@ -.menu { - color: #003366; - font-family: Arial, Helvetica, sans-serif; - font-size: 10pt; - font-style: normal; - line-height: normal; - background-color: #FFFFFF; - background-position: left; - text-align: left; - vertical-align: middle -} - -.menu_bold { - color: #003366; - FONT-WEIGHT: bold ; - font-family: Arial, Helvetica, sans-serif; - font-size: 10pt; - font-style: normal; - line-height: normal; - background-color: #FFFFFF; - background-position: left; - text-align: left; - vertical-align: middle -} - -.menu_activo { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 10pt; - font-style: normal; - line-height: normal; - background-color: #FFCC99; - background-position: left center; - text-align: left; - vertical-align: middle -} - -.menu_activo_bold { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 10pt; - FONT-WEIGHT: bold ; - font-style: normal; - line-height: normal; - background-color: #FFCC99; - background-position: left center; - text-align: left; - vertical-align: middle -} - -.menu1 { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 9pt; - font-style: normal; - line-height: normal; - background-color: #FFFFFF; - background-position: left center; - text-align: left; - vertical-align: middle; -} - -.menu_activo1 { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 9pt; - font-style: normal; - line-height: normal; - background-color: #FFCC99; - background-position: left centre; - text-align: left; - vertical-align: middle -} - -.menu_activo2 { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 8pt; - font-style: normal; - line-height: normal; - background-color: #FFCC99; - background-position: left centre; - text-align: left; - vertical-align: middle -} - -.menu2 { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 8pt; - font-style: normal; - line-height: normal; - background-color: #FFFFFF; - background-position: left center; - text-align: left; - vertical-align: middle ; -} - -.menu1_bold { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 9pt; - font-style: normal; - line-height: normal; - background-color: #FFFFFF; - background-position: left center; - text-align: left; - vertical-align: middle; -} - -.menu_activo1_bold { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 9pt; - font-style: normal; - line-height: normal; - background-color: #FFCC99; - background-position: left centre; - text-align: left; - vertical-align: middle -} - -.menu_activo2_bold { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 8pt; - font-style: normal; - line-height: normal; - background-color: #FFCC99; - background-position: left centre; - text-align: left; - vertical-align: middle -} - -.menu2_bold { - COLOR: #003366; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 8pt; - font-style: normal; - line-height: normal; - background-color: #FFFFFF; - background-position: left center; - text-align: left; - vertical-align: middle ; -} -.arboltitulo { - COLOR: #FFFFFF; - FONT-FAMILY: Arial, Helvetica, sans-serif; - FONT-SIZE: 10pt; - FONT-WEIGHT: bold ; - font-style: normal; - line-height: normal -} - +.menu { + color: #003366; + font-family: Arial, Helvetica, sans-serif; + font-size: 10pt; + font-style: normal; + line-height: normal; + background-color: #FFFFFF; + background-position: left; + text-align: left; + vertical-align: middle +} + +.menu_bold { + color: #003366; + FONT-WEIGHT: bold ; + font-family: Arial, Helvetica, sans-serif; + font-size: 10pt; + font-style: normal; + line-height: normal; + background-color: #FFFFFF; + background-position: left; + text-align: left; + vertical-align: middle +} + +.menu_activo { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 10pt; + font-style: normal; + line-height: normal; + background-color: #FFCC99; + background-position: left center; + text-align: left; + vertical-align: middle +} + +.menu_activo_bold { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 10pt; + FONT-WEIGHT: bold ; + font-style: normal; + line-height: normal; + background-color: #FFCC99; + background-position: left center; + text-align: left; + vertical-align: middle +} + +.menu1 { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 9pt; + font-style: normal; + line-height: normal; + background-color: #FFFFFF; + background-position: left center; + text-align: left; + vertical-align: middle; +} + +.menu_activo1 { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 9pt; + font-style: normal; + line-height: normal; + background-color: #FFCC99; + background-position: left centre; + text-align: left; + vertical-align: middle +} + +.menu_activo2 { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 8pt; + font-style: normal; + line-height: normal; + background-color: #FFCC99; + background-position: left centre; + text-align: left; + vertical-align: middle +} + +.menu2 { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 8pt; + font-style: normal; + line-height: normal; + background-color: #FFFFFF; + background-position: left center; + text-align: left; + vertical-align: middle ; +} + +.menu1_bold { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 9pt; + font-style: normal; + line-height: normal; + background-color: #FFFFFF; + background-position: left center; + text-align: left; + vertical-align: middle; +} + +.menu_activo1_bold { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 9pt; + font-style: normal; + line-height: normal; + background-color: #FFCC99; + background-position: left centre; + text-align: left; + vertical-align: middle +} + +.menu_activo2_bold { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 8pt; + font-style: normal; + line-height: normal; + background-color: #FFCC99; + background-position: left centre; + text-align: left; + vertical-align: middle +} + +.menu2_bold { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 8pt; + font-style: normal; + line-height: normal; + background-color: #FFFFFF; + background-position: left center; + text-align: left; + vertical-align: middle ; +} +.arboltitulo { + COLOR: #FFFFFF; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 10pt; + FONT-WEIGHT: bold ; + font-style: normal; + line-height: normal +} + diff --git a/www/css/html/tabla_comun.css b/www/css/html/tabla_comun.css new file mode 100644 index 0000000..fbdb36e --- /dev/null +++ b/www/css/html/tabla_comun.css @@ -0,0 +1,38 @@ +/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: +// +--------------------------------------------------------------------+ +// | HTML - TABLE | +// +--------------------------------------------------------------------+ +// | Libreria para la estandarizacion de los elementos html de los | +// | de la Intranet | +// | Ministerio de Economía | +// +--------------------------------------------------------------------+ +// | Creado: fri mar 21 ART 2003 | +// | Autor: Martin Marrese | +// +--------------------------------------------------------------------+ +// +// $Id$ +// +// $URL$ +// $Rev$ +// $Date$ +// $Author$ +*/ + +.mecon_html_tabla_comun_texto11_blanco +{ + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 11px; + FONT-STYLE: bold; + COLOR: #FFFFFF; + FONT-WEIGHT: normal; + TEXT-DECORATION: none; +} +.mecon_html_tabla_comun_texto11_negro +{ + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 11px; + FONT-STYLE: normal; + COLOR: #000000; + FONT-WEIGHT: normal; + TEXT-DECORATION: none; +} diff --git a/lib/MECON/HTML/Tabla/tabla_estilos.css b/www/css/html/tabla_servicios.css similarity index 94% rename from lib/MECON/HTML/Tabla/tabla_estilos.css rename to www/css/html/tabla_servicios.css index 4383854..c76213f 100644 --- a/lib/MECON/HTML/Tabla/tabla_estilos.css +++ b/www/css/html/tabla_servicios.css @@ -18,7 +18,7 @@ // $Author$ */ -.texto11_blanco +.mecon_html_tabla_texto11_blanco { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; @@ -27,7 +27,7 @@ FONT-WEIGHT: normal; TEXT-DECORATION: none; } -.texto11_negro +.mecon_html_tabla_texto11_negro { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 11px; -- 2.43.0