LaRutaMoskitia.com
 

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==""){ $listno = $AW_System->getValue("noti_notino"); $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; } //CESAR $mostrando=$lang['noticias']['resultados']." ".$from." ".$lang['noticias']['a']." ".$to." ".$lang['noticias']['de']." ".$total; //FIN CESAR if($prev>=0){ $prevlink="".$lang['noticias']['prev'].""; }else{ $prevlink=""; } if($next<$total){ $nextlink="".$lang['noticias']['next'].""; }else{ $nextlink=""; } if($prevlink!="" && $nextlink!=""){ $navline=" || "; } echo "
$toptitulo


$mostrando || $navline $prevlink $navline $nextlink

"; $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 " "; } }else{ echo ""; } echo "
$imgmini
$posted

$decfila[2]...



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


"; } /***** Noti Details *****/ if($noti_id!=""){ /*****Navigation Link Calculation*****/ $fechactual = date("Y-m-d"); $AW_Noti->data=array("noti_id"); $AW_Noti->data = array("noti_id","date_format(publicacion,'%M %d, %Y')", "titulo", "resumen", "contenido"); 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'"; }else if($arcyear!="" && $arcmonth!=""){ $AW_Noti->where = "revelar='Si' and notitipo='noti' and date_format(publicacion,'%Y')=$arcyear and date_format(publicacion,'%c')=$arcmonth"; }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') "; } $AW_Noti->order = "publicacion desc"; $derivado=$AW_Noti->getList(); $count=0; while($decfila=mysql_fetch_row($derivado)){ if($decfila[0]==$noti_id){ $curpos=$count; } $count++; } $prevpos=$curpos-1; $nextpos=$curpos+1; $curpos=$curpos+1; $total=mysql_num_rows($derivado); if($prevpos>=0){ mysql_data_seek($derivado,$prevpos); if($decfila=mysql_fetch_row($derivado)){ $previd=$decfila[0]; }} if($nextpos<$total){ mysql_data_seek($derivado,$nextpos); if($decfila=mysql_fetch_row($derivado)){ $nextid=$decfila[0]; }} mysql_free_result($derivado); /*****Begin Previous and Next Navigation Link. Modify To Match Your Display*****/ if($previd!=""){ $prevlink="".$lang['noticias']['prev']."";} if($nextid!=""){ $nextlink="".$lang['noticias']['next']."";} if($prevlink!="" && $nextlink!=""){ $navline="  "; } /*****Get Noti Details*****/ $AW_Noti->data = array("titulo", "contenido", "date_format(publicacion,' %d, %Y')", "date_format(publicacion,'%m')"); $derivado = $AW_Noti->getDetail($noti_id); if($decfila=mysql_fetch_row($derivado)){ $titulo = stripslashes($decfila[0]); $contenido = stripslashes($decfila[1]); $posted = $monthArr[$decfila[3]-1].$decfila[2]; } mysql_free_result($derivado); echo "
".$lang['noticias']['backtolist']."

$titulo
".$lang['noticias']['postedon']." $posted      ".$lang['noticias']['emailthis']."      ".$lang['noticias']['printthis']."

$contenido


"; } ?>

td{ font-family: ".$AW_System->getValue("noti_textfont")."; color: ".$AW_System->getValue("noti_textcolor")."; font-size: ".$AW_System->getValue("noti_textsize")."; } a.titulolink:link { color: ".$AW_System->getValue("noti_titulolink")."; } a.titulolink:active { color: ".$AW_System->getValue("noti_titulolink")."; } a.titulolink:visited { color: ".$AW_System->getValue("noti_titulolink")."; } a.titulolink:hover { color: ".$AW_System->getValue("noti_titulohover")."; } ";*/ //modificación césar if ($link == null) { $link = $_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']); //CESAR --> $arcyear=null; $arcmonth=null; $month=null; $fechactual = date("Y-m-d"); $AW_Noti->data = array("noti_id","titulo", "resumen", "date_format(publicacion,' %d, %Y')", "date_format(publicacion,'%m')","imgmini"); $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)); //CESAR <-- /***** Categories Block *****/ if($AW_System->getValue("noti_bloquecat")=="Si"){ echo "

"; if($prede_id=="" || $prede_id==0){ $prede_id=0; echo ""; } $AW_Noti_Categoria->data = array("categoria_id","prede_id","name"); $AW_Noti_Categoria->where = "prede_id=$prede_id"; $AW_Noti_Categoria->order = "name"; $derivado = $AW_Noti_Categoria->getList(); if(mysql_num_rows($derivado)!=0){ while($decfila=mysql_fetch_row($derivado)){ $AW_Noti_Categoria->where = "prede_id=$decfila[0]"; $derivadochild = $AW_Noti_Categoria->getList(); $decfila[2] = stripslashes($decfila[2]); if(mysql_num_rows($derivadochild)!=0){ echo ""; }else{ echo ""; } mysql_free_result($derivadochild); } mysql_free_result($derivado); $AW_Noti_Categoria->data = array("prede_id","name"); $AW_Noti_Categoria->where = "categoria_id=$prede_id"; $AW_Noti_Categoria->order = ""; $derivado = $AW_Noti_Categoria->getList(); if($decfila=mysql_fetch_row($derivado)){ echo ""; } mysql_free_result($derivado); }else{ //echo ""; } echo "
".$lang['noticias']['menuarchive']."
$decfila[2]
$decfila[2]

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

".$lang['noticias']['nocategories']."
"; } /***** Archives Block *****/ if($AW_System->getValue("noti_bloquefech")=="Si"){ echo "

"; $AW_Noti->data = array("distinct date_format(publicacion,'%m %Y')","date_format(publicacion,'%Y')","date_format(publicacion,'%c')"); $AW_Noti->order = "publicacion desc"; $derivado = $AW_Noti->getList(); if(mysql_num_rows($derivado)!=0){ while($decfila=mysql_fetch_row($derivado)){ $month = substr($decfila[0],0,2)-1; $year = substr($decfila[0],3,4); echo ""; } mysql_free_result($derivado); }else{ echo ""; } echo "
".$lang['noticias']['all']."
$monthArr[$month] $year
".$lang['noticias']['noarchives']."

"; } ?>