X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/8868480b53a3121abef5d9b051263b3c91e36e09..8d11319a99d9d2a48a73a0ae402e3b32745cf04b:/sistema/www/servicios.php diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php index 64d260b..caf3d85 100644 --- a/sistema/www/servicios.php +++ b/sistema/www/servicios.php @@ -1,32 +1,42 @@ addTitle('Servicios'); - - $seccion = new HTML_Table(array ('width'=>'300', - 'border' => '0', - 'cellspacing' => '0', - 'cellpadding' => '0', - 'bgcolor' => '#003868')); -/* $this->t_interna = new HTML_Table(array ('width'=>'132', - 'border' => '0', - 'cellspacing' => '2', - 'cellpadding' => '0', - 'class' => 'bodytext'));*/ - $titulo = new HTML_Table(array('width'=>'132', - 'height'=>'26', - 'border' => '0', - 'cellspacing' => '0', - 'cellpadding' => '0', - 'align'=>'center', - 'background'=>'images/seccion_cabecera.gif')); - $titulo->addRow(array("hola"), array('align'=>'center', - 'class'=>'arboltitulo')); - $seccion->addRow(array($titulo), array('bgcolor' => '#FFFFFF')); - - $m->addBodyContent($seccion); + $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); + $col_par = ''; + $col_impar = ''; + $impar = true; + foreach($serv->getHijos() as $s) + { + $sh =& new HTML_Servicio($s->servicio); + if($impar) + { + $col_impar .= $sh->toHTML().'
'; + $impar = false; + } + else + { + $col_par .= $sh->toHTML().'
'; + $impar = true; + } + } + $m->addStyleSheet($sh->getCSS()); + $tabla =& new HTML_Table(array('width' => 760, + 'cellspacing' => 10)); + $tabla->addRow(array($col_impar, $col_par), array('valign'=>'top')); + $m->addBodyContent($tabla); + $m->display(); ?>