X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/1e913f83523bc3f3c66422ba502f7f02cab60f3c..2175273b54918d3d8f474034ca2cb5def9f11fb2:/sistema/www/servicios.php?ds=inline diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php index 52b94f5..0384dcf 100644 --- a/sistema/www/servicios.php +++ b/sistema/www/servicios.php @@ -75,11 +75,15 @@ foreach($serv->getHijos() as $s) } } } -$marco->addStyleSheet($sh->getCSS()); -$tabla =& new HTML_Table(array('width' => 760, - 'cellspacing' => 10)); -$tabla->addRow(array($col_impar, $col_par), array('valign'=>'top')); -$marco->addBodyContent($tabla); + +if (is_a(@$sh, 'html_servicio')) { + $tabla =& new HTML_Table(array('width' => 760, 'cellspacing' => 10)); + $tabla->addRow(array($col_impar, $col_par), array('valign'=>'top')); + $marco->addStyleSheet($sh->getCSS()); + $marco->addBodyContent($tabla); +} else { + $marco->addBodyContent('
No hay servicios cargados en esta sección.
'); +} $marco->display(); ?>