From 78684ebb4c9fa80743b39ca55d2183d7d0997b27 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 10 Sep 2003 22:31:23 +0000 Subject: [PATCH] Se termina de acomodar el look&feel de sistemas. --- sistema/www/images/sistemas_ayuda.gif | Bin 0 -> 154 bytes sistema/www/sistemas.php | 85 +++++++++++++++++++++----- 2 files changed, 71 insertions(+), 14 deletions(-) create mode 100644 sistema/www/images/sistemas_ayuda.gif diff --git a/sistema/www/images/sistemas_ayuda.gif b/sistema/www/images/sistemas_ayuda.gif new file mode 100644 index 0000000000000000000000000000000000000000..57fe038ab347244fdd90d9a6788bf290d475edbd GIT binary patch literal 154 zcmV;L0A>G2Nk%w1VGIBa0J8u9|NsB*^7h~6?9bWbz|Gpf%-OHM(4Vu$fSR;_nX_+< zsy}9pFj|BkO?m(`X8-^HA^8La6aWtZEC2ui01N;O000C>@X5oRV@GPX2mr*wYzUxO z3V@8q0vL@DV8B8ZfPk9`P*k5FOz^P;UyMQUva1<_zgBP%2-+TuUTv2cNjSTLNHeKi IGLi@YJJ~uyM*si- literal 0 HcmV?d00001 diff --git a/sistema/www/sistemas.php b/sistema/www/sistemas.php index d3edfbc..a4498ec 100644 --- a/sistema/www/sistemas.php +++ b/sistema/www/sistemas.php @@ -11,70 +11,127 @@ require_once '../local_lib/intranetdb.php'; require_once 'HTML/Table.php'; require_once 'MECON/HTML/Link.php'; require_once 'MECON/HTML/Image.php'; -#require_once 'AI/DB.php'; require_once 'DB.php'; require_once 'AI/Sistema.php'; -define('COLUMNAS', 2); +define('COLUMNAS', 3); $t = new HTML_Table( array( 'width' => '760', - 'cellspacing' => '10', + 'cellspacing' => '0', 'cellpadding' => '0', 'border' => '0', ) ); +// Agrego fila con espaciados. +$img = new MECON_HTML_Image('/MECON/images/blanco', '', array('height' => 1)); +$img->updateAttributes(array('width' => 46)); +$fila[] = $img; +$img->updateAttributes(array('width' => 4)); +$fila[] = $img; +$img->updateAttributes(array('width' => 190)); +$fila[] = $img; +$img->updateAttributes(array('width' => 20)); +$fila[] = $img; +$img->updateAttributes(array('width' => 46)); +$fila[] = $img; +$img->updateAttributes(array('width' => 4)); +$fila[] = $img; +$img->updateAttributes(array('width' => 190)); +$fila[] = $img; +$img->updateAttributes(array('width' => 20)); +$fila[] = $img; +$img->updateAttributes(array('width' => 46)); +$fila[] = $img; +$img->updateAttributes(array('width' => 4)); +$fila[] = $img; +$img->updateAttributes(array('width' => 190)); +$fila[] = $img; +$t->addRow($fila); + $db = IntranetDB::connect(); $sistemas = AI_Sistema::getSistemas($db); -$pct = intval(100/COLUMNAS) . '%'; +//$pct = intval(100/COLUMNAS) . '%'; $sistema = @array_shift($sistemas); while ($sistema) { $row = array(); - for ($j = 0; $j < COLUMNAS; $j++) { + for ($j = 1; $j <= COLUMNAS; $j++) { if ($sistema) { - $img = new MECON_HTML_Image( + $row[] = new MECON_HTML_Image( "/sistemas/intranet/images/$sistema->icono", $sistema->nombre, array( 'title' => $sistema->descripcion, 'border' => 0, - 'align' => 'middle', + 'width' => '46', + 'height' => '46', ) ); + $row[] = ' '; $link = new MECON_HTML_Link( $sistema->link, - $sistema->nombre, + $sistema->nombre, array(), array( 'title' => $sistema->descripcion, 'target' => '_blank', + 'class' => 'intranet_sistemas_txt', ) ); - $html = $img->toHtml() . $link->toHtml() . '
' - . $sistema->descripcion; + $html = $link->toHtml(); if ($sistema->link_ayuda) { + $html .= ' '; + $img = new MECON_HTML_Image( + '/sistemas/intranet/images/sistemas_ayuda', + '(?)' + ); $link = new MECON_HTML_Link( $sistema->link_ayuda, - '(?)', + $img, array(), - array('target' => '_blank') + array( + 'target' => '_blank', + 'class' => 'intranet_sistemas_txt', + ) ); - $html .= $link->toHtml(); + $html .= $link->toHtml(); } $row[] = $html; $sistema = @array_shift($sistemas); } else { $row[] = ' '; + $row[] = ' '; + $row[] = ' '; + } + if ($j % (COLUMNAS)) { + $row[] = ' '; } } - $t->addRow($row, array('width' => $pct, 'valign' => 'top')); + $t->addRow(array(' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ')); + $t->addRow($row); } + + $m = new HTML_DietMarco('sistemas'); $m->addTitle('Sistemas'); +$m->addStyleDeclaration(' + .intranet_sistemas_txt { + COLOR: #003366; + FONT-FAMILY: Arial, Helvetica, sans-serif; + FONT-SIZE: 10pt; + FONT-WEIGHT: normal; + font-style: normal; + line-height: normal; + background-position: left centre; + text-align: left; + vertical-align: middle; + text-decoration: none; + }' +); $m->addBodyContent($t); $m->display(); -- 2.43.0