X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/89bf19b89812163353d94256d7adb0f3a9cda453..5bd45a75b2d9ea8c47d6a0ca9940bac005db04eb:/sistema/www/servicios.php?ds=inline
diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php
index 3268be9..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,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());