X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/707e1370e56a9a9536a81aab72b530c48e3d361e..c3070ea4067c0b7b9af7b871cd9fd918bed81fab:/sistema/www/noticias.php?ds=sidebyside diff --git a/sistema/www/noticias.php b/sistema/www/noticias.php index 9bc004f..cce9f52 100644 --- a/sistema/www/noticias.php +++ b/sistema/www/noticias.php @@ -1,42 +1,53 @@ -
- require_once '../local_lib/copete.php'; - $c = new Copete('noticias'); - echo $c->toHTML(); -?> -- - require_once '../local_lib/intranetdb.php'; - require_once 'MECON/HTML/Arbol/ArbolDB.php'; - $db = IntranetDB::connect(); - $dbdata = array( + require_once '../local_lib/HTML_DietMarco.php'; + require_once '../local_lib/intranetdb.php'; + require_once 'MECON/HTML/ArbolDB.php'; + require_once '../local_lib/HTML_Titulares.php'; + + $m = new HTML_DietMarco('noticias', 'Noticias'); + $m->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', + 'habilitado' => 'habilitado', 'id_padre' => 'grupo_padre', + 'order' => '', 'prepend_link' => 'noticias.php?grupo='); - $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif'); - echo $arbol->toHTML(); - ?> - | -- - require_once '../../lib/noticia.php'; - require_once '../local_lib/HTML_Noticia.php'; - - $n = new noticia(1294); - $not = new HTML_Noticia($n); - $not->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(); - ?> - | -