X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/e59d3170b36e5b9ccc19afcb1565faf4dcb40463..5bd45a75b2d9ea8c47d6a0ca9940bac005db04eb:/sistema/www/servicios.php?ds=sidebyside
diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php
index caf3d85..8253b1a 100644
--- a/sistema/www/servicios.php
+++ b/sistema/www/servicios.php
@@ -14,22 +14,33 @@
//$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());