X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/5c4a90780e6b44a93909ce459cfb8814d66c3a23..d12f20b09e871355236f3a1573781a05f8bf239a:/sistema/local_lib/HTML_Titulares.php diff --git a/sistema/local_lib/HTML_Titulares.php b/sistema/local_lib/HTML_Titulares.php index dfef139..9e4597b 100644 --- a/sistema/local_lib/HTML_Titulares.php +++ b/sistema/local_lib/HTML_Titulares.php @@ -30,6 +30,7 @@ require_once '../../lib/noticia.php'; require_once '../local_lib/HTML_Noticia.php'; require_once '../../lib/mecondavdb.php'; +require_once 'AI/GrupoSecciones.php'; // +X2C includes require_once 'HTML/Table.php'; @@ -74,6 +75,14 @@ class HTML_Titulares extends HTML_Table { WHERE Articles.article_publication_state_id = ArticlePublicationStates.article_publication_state_id AND ArticlePublicationStates.publication_state_id=5 "; + if(!is_null($grupo_secciones)) + { + $db2 = DB::Connect('mysql://intranet:intranet@bal747f/intranet');//FIXME + $gs = new AI_GrupoSecciones($grupo_secciones); + $gs->cargar($db2); + if(count($gs->secciones) > 0) + $query .= 'AND Articles.section_id IN('.implode(',', $gs->secciones).') '; + } if(!is_null($antiguedad)) { $hoy->subtractSeconds(60*60*24*$antiguedad); @@ -113,5 +122,16 @@ class HTML_Titulares extends HTML_Table { } // -X2C + // +X2C Operation 196 + /** + * @return void + * @access public + */ + function getCSS() // ~X2C + { + return "css/noticias.css"; + } + // -X2C + } // -X2C Class :HTML_Titulares ?>