setValue("avis_enviaurl","http://".$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"]); $monthArr = array($lang['avisos']['january'], $lang['avisos']['february'], $lang['avisos']['march'], $lang['avisos']['april'], $lang['avisos']['may'], $lang['avisos']['june'], $lang['avisos']['july'], $lang['avisos']['august'], $lang['avisos']['september'], $lang['avisos']['october'], $lang['avisos']['november'], $lang['avisos']['december']); /***** Avis Listing *****/ if($avis_id==""){ // MODIFICACION PRUEBA$listno = $AW_System->getValue("avis_avisno"); SUPUESTAMENTE LA CANTIDAD DE NOTICIAS EN LISTA $listno = 1; //FIN $fechactual = date("Y-m-d"); $AW_Avis->data = array("avis_id","titulo", "resumen", "date_format(publicacion,' %d, %Y')", "date_format(publicacion,'%m')","imgmini"); if($condicion_id!="" && $condicion_id!=0){ $AW_Avis->where = "avistipo='avis' 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 condicion_id='$condicion_id'"; $toptitulo = $lang['avisos']['titulocondicion']." - ".stripslashes($AW_Avis_Condicion->getName($condicion_id)); }else if($arcyear!="" && $arcmonth!=""){ $AW_Avis->where = "revelar='Si' and avistipo='avis' 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['avisos']['tituloarchive']." - ".$monthArr[$month].date(" Y",mktime(0,0,0,$arcmonth,1,$arcyear)); }else{ $AW_Avis->where = "revelar='Si' and avistipo='avis' and (expiracion='0000-00-00' or expiracion>date_format('$fechactual', '%Y-%m-%d')) and publicacion<=date_format('$fechactual', '%Y-%m-%d') "; $toptitulo = $lang['avisos']['titulolatest']; } $AW_Avis->order = "publicacion desc"; $derivado=$AW_Avis->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['avisos']['prev'].""; }else{ $prevlink=""; } if($next<$total){ $nextlink="".$lang['avisos']['next'].""; }else{ $nextlink=""; } if($prevlink!="" && $nextlink!=""){ $navline="  "; } echo " "; $AW_Avis->order = "publicacion desc limit $start, $listno"; $derivado = $AW_Avis->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['avisos']['noavisfound']."

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