X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/707e1370e56a9a9536a81aab72b530c48e3d361e..9212a13878d2c6614483e0b6e9e68b8e6ece8996:/sistema/www/noticias.php diff --git a/sistema/www/noticias.php b/sistema/www/noticias.php index 9bc004f..de4e37c 100644 --- a/sistema/www/noticias.php +++ b/sistema/www/noticias.php @@ -1,42 +1,42 @@ - toHTML(); -?> - - - - - -
- addTitle('Noticias'); + + $noticias = new HTML_Table(array('width' => '760', 'border' => '0')); + if(isset($_GET['grupo'])) + { + $grupo = $_GET['grupo']; + $dias = null; + } + else + { + $grupo = null; + $dias = 7; + } + //Esto va a cambiar... + $db = IntranetDB::connect(); + $dbdata = array( 'db' => $db, 'tabla' => 'grupo_secciones', 'id' => 'grupo', + 'id_activo' => $grupo, 'nombre' => 'nombre', 'id_padre' => 'grupo_padre', 'prepend_link' => 'noticias.php?grupo='); - $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif'); - echo $arbol->toHTML(); - ?> - - setNuevo(true); - $ht = new HTML_Table(array('width'=>'600', 'border'=>'0', 'cellspacing'=>'0')); - $ht->addRow(array($not, $not)); - $ht->addRow(array($not, $not)); - $ht->addRow(array($not, $not)); - $ht->display(); - ?> -
- + $arbol = new MECON_HTML_ArbolDB($dbdata, 'NOTICIAS'); + + $titulares = new HTML_Titulares($grupo, $dias); + $noticias->addRow(array($arbol,$titulares)); + $m->addStyleSheet($arbol->getCSS()); + $m->addStyleSheet($titulares->getCSS()); + $noticias->updateCellAttributes(0, 0, array('valign'=>'top', 'width'=>'160')); + $noticias->updateCellAttributes(0, 1, array('valign'=>'top', 'width'=>'600')); + + $m->addBodyContent($noticias); + $m->display(); +?>