setValue("noti_enviaurl","http://".$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"]); $monthArr = array($lang['noticias']['january'], $lang['noticias']['february'], $lang['noticias']['march'], $lang['noticias']['april'], $lang['noticias']['may'], $lang['noticias']['june'], $lang['noticias']['july'], $lang['noticias']['august'], $lang['noticias']['september'], $lang['noticias']['october'], $lang['noticias']['november'], $lang['noticias']['december']); /***** Noti Listing *****/ if($noti_id==""){ // MODIFICACION PRUEBA$listno = $AW_System->getValue("noti_notino"); SUPUESTAMENTE LA CANTIDAD DE NOTICIAS EN LISTA $listno = 1; //FIN $fechactual = date("Y-m-d"); $AW_Noti->data = array("noti_id","titulo", "resumen", "date_format(publicacion,' %d, %Y')", "date_format(publicacion,'%m')","imgmini"); if($categoria_id!="" && $categoria_id!=0){ $AW_Noti->where = "notitipo='noti' and revelar='Si' and (expiracion='0000-00-00' or expiracion>date_format('$fechactual', '%Y-%m-%d')) and publicacion<=date_format('$fechactual', '%Y-%m-%d') and categoria_id='$categoria_id'"; $toptitulo = $lang['noticias']['titulocategoria']." - ".stripslashes($AW_Noti_Categoria->getName($categoria_id)); }else if($arcyear!="" && $arcmonth!=""){ $AW_Noti->where = "revelar='Si' and notitipo='noti' and date_format(publicacion,'%Y')=$arcyear and date_format(publicacion,'%c')=$arcmonth"; $month = date("m",mktime(0,0,0,$arcmonth,1,$arcyear))-1; $toptitulo = $lang['noticias']['tituloarchive']." - ".$monthArr[$month].date(" Y",mktime(0,0,0,$arcmonth,1,$arcyear)); }else{ $AW_Noti->where = "revelar='Si' and notitipo='noti' and (expiracion='0000-00-00' or expiracion>date_format('$fechactual', '%Y-%m-%d')) and publicacion<=date_format('$fechactual', '%Y-%m-%d') "; $toptitulo = $lang['noticias']['titulolatest']; } $AW_Noti->order = "publicacion desc"; $derivado=$AW_Noti->getList(); if(mysql_num_rows($derivado)!=0){ $total=mysql_num_rows($derivado); }else{ $total=0; } if($start=="" || $start==0){ $start=0; } $prev=$start-$listno; $next=$start+$listno; $from=$start+1; $to=$listno+$from-1; if($to>=$total){ $to=$total; }if($to<$from){ $from=0; } if($prev>=0){ $prevlink="".$lang['noticias']['prev'].""; }else{ $prevlink=""; } if($next<$total){ $nextlink="".$lang['noticias']['next'].""; }else{ $nextlink=""; } if($prevlink!="" && $nextlink!=""){ $navline="  "; } echo " "; $AW_Noti->order = "publicacion desc limit $start, $listno"; $derivado = $AW_Noti->getList(); if (mysql_num_rows($derivado)>0){ while($decfila=mysql_fetch_row($derivado)){ $decfila[1] = stripslashes($decfila[1]); $decfila[2] = stripslashes($decfila[2]); $posted = $monthArr[$decfila[4]-1].$decfila[3]; $imgmini = ($decfila[5]!=""?"":""); echo"
$posted :: $decfila[1]
"; } }else{ echo "


".$lang['noticias']['nonotifound']."

"; } echo ""; } /***** Noti Details *****/ echo " "; ?>