From: Gonzalo Merayo Date: Thu, 3 Jul 2003 20:08:48 +0000 (+0000) Subject: Ahora las noticias se generan dinamicamente X-Git-Tag: svn_import~247 X-Git-Url: https://git.llucax.com/mecon/intranet.git/commitdiff_plain/e54c0e22cd808855fdc1171d1bc70d00175e1ad0?ds=inline Ahora las noticias se generan dinamicamente --- diff --git a/doc/noticias.xmi b/doc/noticias.xmi index c62be6e..94fc8eb 100644 --- a/doc/noticias.xmi +++ b/doc/noticias.xmi @@ -10,7 +10,7 @@ +" uniqueid="185" /> @@ -34,6 +34,8 @@ + + @@ -51,7 +53,7 @@ - + @@ -59,14 +61,14 @@ - + - + @@ -77,7 +79,9 @@ + + diff --git a/lib/configuracion.php b/lib/configuracion.php index 5a31be1..12e73c7 100644 --- a/lib/configuracion.php +++ b/lib/configuracion.php @@ -27,10 +27,10 @@ 'titulo_sistema' => 'Intranet', 'pie_sistema' => 'Ministerio de Economia', 'db_type' => 'mysql', - 'db_user' => 'intranet', - 'db_pass' => 'intranet', - 'db_host' => 'bal747f', - 'db_name' => 'intranet', + 'db_user' => 'mark', + 'db_pass' => 'mark', + 'db_host' => 'intranet-db', + 'db_name' => 'MEconDAV', ); ?> diff --git a/lib/noticia.php b/lib/noticia.php index 88f9f08..6a07def 100644 --- a/lib/noticia.php +++ b/lib/noticia.php @@ -111,4 +111,4 @@ class noticia { // -X2C } // -X2C Class :noticia -?> +?> \ No newline at end of file diff --git a/sistema/local_lib/HTML_Noticia.php b/sistema/local_lib/HTML_Noticia.php index ac74f83..ad25c41 100644 --- a/sistema/local_lib/HTML_Noticia.php +++ b/sistema/local_lib/HTML_Noticia.php @@ -30,7 +30,8 @@ // +X2C includes -require_once 'HTML_Table.php'; +require_once 'HTML/Table.php'; +require_once 'HTML/Image.php'; // ~X2C // +X2C Class 162 :HTML_Noticia @@ -44,6 +45,18 @@ class HTML_Noticia extends HTML_Table { */ var $noticia; + /** + * @var bool $completa + * @access public + */ + var $completa; + + /** + * @var int $nuevo + * @access public + */ + var $nuevo; + // ~X2C // +X2C Operation 166 @@ -53,7 +66,22 @@ class HTML_Noticia extends HTML_Table { */ function toHTML() // ~X2C { - trigger_error('Not implemented!', E_USER_WARNING); + $this->addRow(array('Subtítulo'), array('class' => 'subtitulo')); + $img_str = null; + if($this->nuevo) + { + $nuevo = new HTML_Image('images/nuevo.gif'); + $img_str = $nuevo->toHTML(); + } + $this->addRow(array('Título de la noticia que nos vincula con su texto completo.'.$img_str), array('class' => 'titulo_noticia')); + $this->addRow(array('(10/02/03)'), + array('class' => 'fecha_noticia')); + $mas = new HTML_Image('images/mas.gif'); + $this->addRow(array($mas->toHTML().'ver más'), + array('class' => 'ver_mas')); + $this->addRow(array(new HTML_Image('images/linea_puntos.gif')), + array('class' => 'ver_mas')); + return parent::toHTML(); } // -X2C @@ -66,7 +94,11 @@ class HTML_Noticia extends HTML_Table { */ function HTML_Noticia($noticia) // ~X2C { - trigger_error('Not implemented!', E_USER_WARNING); + $this->noticia = $noticia; + $params = array('width' => '280', + 'border' =>'0', + 'cellPadding'=>'0'); + parent::HTML_Table($params); } // -X2C @@ -80,7 +112,7 @@ class HTML_Noticia extends HTML_Table { */ function setCompleta($completa) // ~X2C { - trigger_error('Not implemented!', E_USER_WARNING); + $this->completa = $completa; } // -X2C @@ -93,9 +125,9 @@ class HTML_Noticia extends HTML_Table { */ function setNuevo($nuevo) // ~X2C { - trigger_error('Not implemented!', E_USER_WARNING); + $this->nuevo = $nuevo; } // -X2C } // -X2C Class :HTML_Noticia -?> \ No newline at end of file +?> diff --git a/sistema/local_lib/configuracion.php b/sistema/local_lib/configuracion.php new file mode 100644 index 0000000..5a31be1 --- /dev/null +++ b/sistema/local_lib/configuracion.php @@ -0,0 +1,36 @@ + +// +----------------------------------------------------------------------+ +// +// $Id: configuracion.php 2 2003-06-24 16:54:23Z gmeray $ +// $Author: gmeray $ +// $URL: http://portal.mecon.ar/svn/bandas/sistema/lib/configuracion.php $ +// $Date: 2003-06-24 13:54:23 -0300 (Tue, 24 Jun 2003) $ +// $Rev: 2 $ +// + return array ( + 'titulo_sistema' => 'Intranet', + 'pie_sistema' => 'Ministerio de Economia', + 'db_type' => 'mysql', + 'db_user' => 'intranet', + 'db_pass' => 'intranet', + 'db_host' => 'bal747f', + 'db_name' => 'intranet', + ); + +?> diff --git a/lib/intranetdb.php b/sistema/local_lib/intranetdb.php similarity index 100% rename from lib/intranetdb.php rename to sistema/local_lib/intranetdb.php diff --git a/sistema/www/css/noticias.css b/sistema/www/css/noticias.css new file mode 100644 index 0000000..6b3c4f1 --- /dev/null +++ b/sistema/www/css/noticias.css @@ -0,0 +1,57 @@ +BODY { + FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: 10pt; TEXT-ALIGN: left +} +UL { + FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal +} +P { + FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal +} +.PagNegro { + COLOR: #000000; FONT-FAMILY: Verdana, Tahoma; FONT-SIZE: 8pt; TEXT-DECORATION: none +} +.PagRojo { + COLOR: #006699; FONT-FAMILY: Verdana, Tahoma; FONT-SIZE: 8pt; TEXT-DECORATION: none +} +.TextBlue { + COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal +} +.titulo_vinculos { + BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left +} +.menu { + BACKGROUND-COLOR: #ffffff; BACKGROUND-POSITION: left 50%; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} +.menu_activo { + BACKGROUND-COLOR: #ffcc99; BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} +.titulo_uno { + BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} +.subtitulo { + BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: bold; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} +.titulo_noticia { + BACKGROUND-POSITION-X: left; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: justify; VERTICAL-ALIGN: top +} +.fecha_noticia { + BACKGROUND-POSITION: left bottom; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: bottom +} +.ver_mas { + BACKGROUND-POSITION: right bottom; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal; TEXT-ALIGN: right; VERTICAL-ALIGN: middle +} +.textoazul { + COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt; FONT-STYLE: normal; FONT-WEIGHT: normal; LINE-HEIGHT: normal +} +.menu1 { + BACKGROUND-COLOR: #ffffff; BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; FONT-STYLE: normal; LINE-HEIGHT: normal; MARGIN-LEFT: 10px; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} +.menu_activo1 { + BACKGROUND-COLOR: #ffcc99; BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 9pt; FONT-STYLE: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} +.menu_activo2 { + BACKGROUND-COLOR: #ffcc99; BACKGROUND-POSITION-X: left; COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} +.menu2 { + BACKGROUND-COLOR: #ffffff; BACKGROUND-POSITION-X: left; CLIP: rect(15px 15px 15px 15px); COLOR: #003366; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 8pt; FONT-STYLE: normal; LINE-HEIGHT: normal; TEXT-ALIGN: left; VERTICAL-ALIGN: middle +} diff --git a/sistema/www/images/nuevo.gif b/sistema/www/images/nuevo.gif new file mode 100644 index 0000000..68f9053 Binary files /dev/null and b/sistema/www/images/nuevo.gif differ diff --git a/sistema/www/noticias.php b/sistema/www/noticias.php index 0ffde4d..9cc65a2 100644 --- a/sistema/www/noticias.php +++ b/sistema/www/noticias.php @@ -23,7 +23,18 @@ ?> - + setNuevo(true); + $ht = new HTML_Table(array('width'=>'600', 'border'=>'0', 'cellspacing'=>'0')); + $ht->addRow(array($not, $not)); + $ht->addRow(array($not, $not)); + $ht->addRow(array($not, $not)); + $ht->display(); + ?>