X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/54970ec49e9cc800d7d431b4ba5158bae780f629..4f8bc31d20f46ddb617fc55800841d680337155b:/sistema/local_lib/HTML_Copete.php?ds=inline diff --git a/sistema/local_lib/HTML_Copete.php b/sistema/local_lib/HTML_Copete.php index d11cca2..1106818 100644 --- a/sistema/local_lib/HTML_Copete.php +++ b/sistema/local_lib/HTML_Copete.php @@ -1,7 +1,7 @@ '; - echo ' - Intranet - Mapa de Intranet - Cambio de Clave - Ayuda - E-mail - Sistemas - Servicios - Noticias - '; + $this->seccion = $seccion; + } + // -X2C + // +X2C Operation 169 + /** + * @return void + * @access public + */ + function getCSS() // ~X2C + { + return PATH_RAIZ."css/copete.css"; + } + // -X2C -parent::HTML_Table(array('width' => '760', + // +X2C Operation 175 + /** + * @return void + * @access public + */ + function toHTML() // ~X2C + { + $mapa = 'E-mailCambio de ClaveServiciosNoticias'; + + + 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'; - $this->addRow(array(''), array('colspan' => '4')); + + 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: Ministerio - de Economía y Producción - Boletín - Oficial - INFOLEG - - CDI'; + case 'noticias': $fila[] = 'Enlaces útiles: + + Ministerio de Economía y Producción + + - + + Boletín Oficial + + - + + INFOLEG + + - + + CDI + '; break; - case 'servicios': $fila[] = 'Servicios'; + case 'servicios': $fila[] = 'Servicios'; break; - case 'sistemas': $fila[] = 'Sistemas'; + case 'sistemas': $fila[] = 'Sistemas'; break; } - $fila[] = ''; - $this->addRow($fila, array('class' => 'titulo_vinculos')); + */ + $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 176 + /** + * @param int $contenido + * + * @return void + * @access public + */ + function setTitulo($contenido) // ~X2C + { + $this->titulo = $contenido; } // -X2C } // -X2C Class :HTML_Copete -?> +?> \ No newline at end of file