",$idn); $queryt="select distinct(tema) as temas from noticias where activo=1"; $rst=mysql_query($queryt); while ($data=mysql_fetch_array($rst)) { $temas[]=$data['temas']; } $queryt="select distinct(publicacion) as publicaciones from noticias where activo=1"; $rst=mysql_query($queryt); while ($data=mysql_fetch_array($rst)) { $publicaciones[]=$data['publicaciones']; } $query="select distinct(ano) as anos from noticias where activo=1"; $rs=mysql_query($query); while ($data=mysql_fetch_array($rs)) { $anos[]=$data['anos']; } function cortaTxt($string, $limit, $break=" ", $pad="…") { // return with no change if string is shorter than $limit if(strlen($string) <= $limit) return $string; // is $break present between $limit and the end of the string? if (false !== ($breakpoint = strpos($string, $break, $limit))) { $long=strlen($string)-1; if ($breakpoint<$long) { $string = substr($string, 0, $breakpoint) . $pad; } } return $string; } ?>
 
NEWS | SEARCH
,