X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/b4816bec493913a55f23735def66c60b1a74e4eb..f3ae07982132c35339f6d4e4947546aeea5b9550:/sistema/local_lib/HTML_Copete.php
diff --git a/sistema/local_lib/HTML_Copete.php b/sistema/local_lib/HTML_Copete.php
index f51bea1..58f10ea 100644
--- a/sistema/local_lib/HTML_Copete.php
+++ b/sistema/local_lib/HTML_Copete.php
@@ -1,7 +1,7 @@
|
// +--------------------------------------------------------------------+
//
-// $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
+// $Id$
//
+require_once 'MECON/HTML/Image.php';
// +X2C includes
@@ -38,6 +39,18 @@ require_once 'HTML/Table.php';
* @access public
*/
class HTML_Copete extends HTML_Table {
+ /**
+ * @var int $titulo
+ * @access private
+ */
+ var $titulo;
+
+ /**
+ * @var int $seccion
+ * @access private
+ */
+ var $seccion;
+
// ~X2C
// +X2C Operation 163
@@ -49,33 +62,78 @@ class HTML_Copete extends HTML_Table {
*/
function HTML_Copete($seccion) // ~X2C
{
- $mapa = '';
+ $this->seccion = $seccion;
+ }
+ // -X2C
+ // +X2C Operation 169
+ /**
+ * @return void
+ * @access public
+ */
+ function getCSS() // ~X2C
+ {
+ return PATH_RAIZ."css/copete.css";
+ }
+ // -X2C
+
+ // +X2C Operation 175
+ /**
+ * @return void
+ * @access public
+ */
+ function toHTML() // ~X2C
+ {
+ $mapa = '';
-parent::HTML_Table(array('width' => '760',
+
+ parent::HTML_Table(array('width' => '760',
'border' => '0',
'cellspacing' => '0',
'cellpadding' => '0'));
+
$anchos = array('12', '25', '712', '11');
$fila = array();
foreach($anchos as $a)
- $fila[] = '';
+ $fila[] = '';
$this->addRow($fila);
- $img_seccion = 'images/copete_'.$seccion.'.jpg';
+
+ if(isset($_SESSION['usuario']))
+ $img_seccion = 'images/copete_'.$this->seccion.'_logout.jpg';
+ else
+ $img_seccion = 'images/copete_'.$this->seccion.'.jpg';
$this->addRow(array(''.$mapa), array('colspan' => '4'));
+
$fila = array();
- $fila[] = '';
- $fila[] = '';
- switch($seccion)
+ $fila[] = new MECON_HTML_Image(PATH_RAIZ.'images/copete_inicio.gif',
+ null,
+ array('height' => '30',
+ 'border' => '0'));
+ $fila[] = new MECON_HTML_Image(PATH_RAIZ.'images/copete_flecha_azul.gif',
+ null,
+ array('height' => '30',
+ 'border' => '0'));
+/*
+ switch($this->seccion)
{
case 'noticias': $fila[] = 'Enlaces útiles:
@@ -99,26 +157,30 @@ parent::HTML_Table(array('width' => '760',
case 'sistemas': $fila[] = 'Sistemas';
break;
}
- $fila[] = '';
- $this->addRow($fila, array('class' => 'copete_titulo_vinculos'));
- $this->updateCellAttributes(2,0,array('width'=>'12'));
- $this->updateCellAttributes(2,1,array('width'=>'25'));
- if($seccion=='noticias')
- {
- $this->updateCellAttributes(2,2,array('width'=>'712'));
- }
- $this->updateCellAttributes(2,3,array('width'=>'11'));
+ */
+ $fila[] = $this->titulo;
+ $fila[] = new MECON_HTML_Image(PATH_RAIZ.'images/copete_fin.gif',
+ null,
+ array('height' => '30',
+ 'border' => '0'));
+ $this->addRow($fila, array('class' => 'copete_titulo_vinculos'));
+
+ for($n = 0; $n < 4; $n++)
+ $this->updateCellAttributes(1, $n, array('width'=>$anchos[$n]));
+ return parent::toHTML();
}
// -X2C
- // +X2C Operation 169
+ // +X2C Operation 176
/**
+ * @param int $contenido
+ *
* @return void
* @access public
*/
- function getCSS() // ~X2C
+ function setTitulo($contenido) // ~X2C
{
- return PATH_RAIZ."css/copete.css";
+ $this->titulo = $contenido;
}
// -X2C