X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/1e913f83523bc3f3c66422ba502f7f02cab60f3c..ba466154033d54821e07ab851bccc42e8e344fe9:/sistema/www/servicios.php 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(); ?>