X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/b1898620c4461ff170c6c18f6e68d792ac652125..4ac9a89dc600fd993d6aeced3b1164ba0396ea8e:/sistema/www/sistemas.php?ds=sidebyside diff --git a/sistema/www/sistemas.php b/sistema/www/sistemas.php index 3897cfc..c495164 100644 --- a/sistema/www/sistemas.php +++ b/sistema/www/sistemas.php @@ -1,7 +1,79 @@ -
- - require_once '../local_lib/copete.php'; - $c = new Copete('sistemas'); - echo $c->toHTML(); + '100%', + 'cellspacing' => '0', + 'cellpadding' => '0', + 'border' => '0', + 'align' => 'left', + 'valign' => 'middle', + ) +); + +$db = IntranetDB::connect(); +$sistemas = AI_Sistema::getSistemas($db); + +$pct = intval(100/COLUMNAS) . '%'; +$sistema = @array_shift($sistemas); +while ($sistema) { + $row = array(); + for ($j = 0; $j < COLUMNAS; $j++) { + if ($sistema) { + $img = new HTML_Image( + "/sistemas/intranet/images/$sistema->icono", + $sistema->nombre, + array( + 'title' => $sistema->descripcion, + 'border' => 0, + 'align' => 'absmiddle', + ) + ); + $link = new HTML_Link( + $sistema->link, + $sistema->nombre, + array(), + array( + 'title' => $sistema->descripcion, + 'target' => '_blank', + ) + ); + $html = $img->toHtml() . $link->toHtml() . '