X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/aa4c4c45d35dfb51f40f9f04b68de2047f57f634..8d11319a99d9d2a48a73a0ae402e3b32745cf04b:/sistema/www/sistemas.php
diff --git a/sistema/www/sistemas.php b/sistema/www/sistemas.php
index 0bebcda..98512a8 100644
--- a/sistema/www/sistemas.php
+++ b/sistema/www/sistemas.php
@@ -1,12 +1,16 @@
'100%',
+ 'width' => '760',
'cellspacing' => '0',
'cellpadding' => '0',
'border' => '0',
- 'align' => 'left',
- 'valign' => 'middle',
)
);
+// 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 HTML_Image(
+ $row[] = new MECON_HTML_Image(
"/sistemas/intranet/images/$sistema->icono",
$sistema->nombre,
array(
- 'title' => $sistema->descripcion,
'border' => 0,
- 'align' => 'absmiddle',
+ 'width' => '46',
+ 'height' => '46',
)
);
- $row[] = $img->toHtml().' '.$sistema->nombre
- . '
' . $sistema->descripcion
- . ($sistema->link_ayuda
- ? (' (?)')
- : '');
+ $row[] = ' ';
+ $link = new MECON_HTML_Link(
+ $sistema->link,
+ $sistema->nombre,
+ array(),
+ array(
+ 'target' => '_blank',
+ 'class' => 'intranet_sistemas_txt',
+ )
+ );
+ $html = $link->toHtml() . ': ' . $sistema->descripcion;
+ 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',
+ 'class' => 'intranet_sistemas_txt',
+ )
+ );
+ $html .= $link->toHtml();
+ }
+ $row[] = $html;
$sistema = @array_shift($sistemas);
} else {
$row[] = ' ';
+ $row[] = ' ';
+ $row[] = ' ';
+ }
+ if ($j % (COLUMNAS)) {
+ $row[] = ' ';
}
}
- $t->addRow($row, array('width' => $pct));
+ $t->addRow(array(' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '));
+ $t->addRow($row, array('class' => 'intranet_sistemas_txt'));
}
-$m = new HTML_DietMarco('sistemas');
+$m = new HTML_DietMarco('sistemas', '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;
+ }
+ A.intranet_sistemas_txt {
+ font-weight: bold;
+ }'
+);
$m->addBodyContent($t);
$m->display();