X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/0030a5e4c8ffc960a1ab7413eb1cc1ef111bf366..5bd45a75b2d9ea8c47d6a0ca9940bac005db04eb:/sistema/www/servicios.php diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php index e1ba91d..8253b1a 100644 --- a/sistema/www/servicios.php +++ b/sistema/www/servicios.php @@ -1,20 +1,53 @@ -
- require_once '../local_lib/copete.php'; - $c = new Copete('servicios'); - echo $c->toHTML(); + require_once '../local_lib/HTML_DietMarco.php'; + require_once '../local_lib/HTML_Servicio.php'; + require_once 'AI/Servicio.php'; +// require_once 'AI/DB.php'; + require_once 'DB.php'; + $m = new HTML_DietMarco('servicios', 'Servicios'); + $m->addTitle('Servicios'); + + $n_serv = 0; + if(isset($_GET['servicios'])) + $n_serv = $_GET['servicios']; + $serv = new AI_Servicio($n_serv); + //$bd = AI_DB::Connect(); + $bd = DB::Connect('mysql://intranet:intranet@bal747f/intranet'); + $serv->cargar($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().'