X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/eb86d04858357c87d5d7a7e3cb528ef24949b725..8a77d0b3c6347150fe4ac26aeb17b738e91351dc:/sistema/www/servicios.php?ds=sidebyside
diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php
index 33ec252..8253b1a 100644
--- a/sistema/www/servicios.php
+++ b/sistema/www/servicios.php
@@ -4,7 +4,7 @@
require_once 'AI/Servicio.php';
// require_once 'AI/DB.php';
require_once 'DB.php';
- $m = new HTML_DietMarco('servicios');
+ $m = new HTML_DietMarco('servicios', 'Servicios');
$m->addTitle('Servicios');
$n_serv = 0;
@@ -14,24 +14,36 @@
//$bd = AI_DB::Connect();
$bd = DB::Connect('mysql://intranet:intranet@bal747f/intranet');
$serv->cargar($bd);
- $serv->cargarHijos($bd);
+ $serv->cargarHijos($bd, true, AI_SERVICIO_ORDEN_LONG_HIJOS);
$col_par = '';
$col_impar = '';
$impar = true;
+ $otro = false;
foreach($serv->getHijos() as $s)
{
$sh =& new HTML_Servicio($s->servicio);
if($impar)
{
$col_impar .= $sh->toHTML().'
';
- $impar = false;
+ if ($otro) $otro = false;
+ else
+ {
+ $impar = false;
+ $otro = true;
+ }
}
else
{
$col_par .= $sh->toHTML().'
';
- $impar = true;
+ if ($otro) $otro = false;
+ else
+ {
+ $impar = true;
+ $otro = true;
+ }
}
}
+ $m->addStyleSheet($sh->getCSS());
$tabla =& new HTML_Table(array('width' => 760,
'cellspacing' => 10));
$tabla->addRow(array($col_impar, $col_par), array('valign'=>'top'));