Noticias
-
$noticia->setNotActivo(1);
$res = $noticia->obtNoticias();
$contador_li = 0;
if (mysql_num_rows($res)==0){?>
No hay noticias que mostrar
}else{
while($row = mysql_fetch_array($res)){
$noticia->setNoticia($row);
$mes = ((int)(date_format(new DateTime($noticia->getNotFecha()), 'm')))-1;
?>
if ($contador_li == 0){?>- }?>
echo date_format(new DateTime($noticia->getNotFecha()), 'd');?> echo $spanish[$mes];?>if ($noticia->getNotImagen()!=""){ ?> }?>$nottitulo=str_replace(' ','-',trim($noticia->getNotTitulo())); //$mes = ((int)(date_format(new DateTime($noticia->getNotFecha()), 'm'))); //$dia = date_format(new DateTime($noticia->getNotFecha()), 'd'); //$anio= date_format(new DateTime($noticia->getNotFecha()), 'Y'); ?>
echo $noticia->getNotTitulo(); ?>
echo $noticia->getNotSubtitulo();?>
}?>
}?>
if ($contador_li != 0){?>
}?>
}?>