1 <body bgcolor="#FFFFFF" class="subtitulo" link="#003366" vlink="#660066" alink="#0066FF" topmargin="0">
3 require_once '../local_lib/copete.php';
4 $c = new Copete('noticias');
7 <table width='760' border='0'>
9 <td width='160' valign='top'>
11 require_once '../local_lib/intranetdb.php';
12 require_once 'MECON/HTML/Arbol/ArbolDB.php';
13 $db = IntranetDB::connect();
16 'tabla' => 'grupo_secciones',
19 'id_padre' => 'grupo_padre',
20 'prepend_link' => 'noticias.php?grupo=');
21 $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif');
22 echo $arbol->toHTML();
27 require_once '../../lib/noticia.php';
28 require_once '../local_lib/HTML_Noticia.php';
29 require_once '../../lib/mecondavdb.php';
30 $db = MEconDAVDB::Connect();
31 $fecha_limite = '2003-07-01';
32 $fecha_nuevo = '2003-07-07';
33 $query = "SELECT Articles.article_id,
34 IF(Articles.publication_date > '$fecha_nuevo', 'NUEVA', null)
35 FROM Articles, ArticlePublicationStates
36 WHERE Articles.article_publication_state_id =
37 ArticlePublicationStates.article_publication_state_id
38 AND ArticlePublicationStates.publication_state_id=5
39 AND Articles.publication_date > '$fecha_limite'
40 ORDER BY Articles.publication_date desc";
41 $result = $db->query($query);
42 if(DB::isError($result))
43 die($result->getMessage("query mal hecho"));
44 $ht = new HTML_Table(array('width'=>'600', 'border'=>'0', 'cellspacing'=>'0'));
46 while($row = $result->fetchRow())
49 $n = new noticia($row[0]);
50 $not = new HTML_Noticia($n);
51 if($row[1] == 'NUEVA')
53 if(is_null($not1)) $not1 = $not;
54 elseif(is_null($not2))
57 $ht->addRow(array($not1, $not2));
65 if(is_null($not2)) $ht->addRow(array($not1));