error_reporting(0); require_once("lib/comm.php"); require_once("lib/News.php"); require_once("lib/ImageResize.php"); if (isset($_GET['_pagi_pg'])){ $StartRow2 = $_GET['_pagi_pg']; $opciones .= "&_pagi_pg=".$_GET['_pagi_pg']; } elseif (isset($_POST['_pagi_pg'])){ $StartRow2 = $_POST['_pagi_pg']; $opciones .= "&_pagi_pg=".$_POST['_pagi_pg']; } else $StartRow2 = 1; if(isset($_GET['SortOn'])) $SortOn = $_GET['SortOn']; if (isset($_REQUEST['SortOn'])){ $opciones .= "&SortOn=".$_REQUEST['SortOn']; $opciones_sin_pag .= "&SortOn=".$_REQUEST['SortOn']; } else{ $opciones .= "&SortOn=id"; $opciones_sin_pag .= "&SortOn=id"; } if (isset($_REQUEST['SortBy'])){ $opciones .= "&SortBy=".$_REQUEST['SortBy']; $opciones_sin_pag .= "&SortBy=".$_REQUEST['SortBy']; } else{ $opciones .= "&SortBy=ASC"; $opciones_sin_pag .= "&SortBy=ASC"; } $Limit = 3; $From = ($StartRow2-1)*$Limit; if($From<0) $From = 0; if(isset($_REQUEST['SortOn'])){ if(isset($_REQUEST['SortBy'])){ $Options['SortOn'] = $_REQUEST['SortOn']; $Options['SortBy'] = $_REQUEST['SortBy']; } } else{ $Options['SortOn'] = "id"; $Options['SortBy'] = "ASC"; } $Options['SortOn'] = "fecha_inicio"; $Options['SortBy'] = "DESC"; $Options['fecha'] = date("Y-m-d"); $NewsData = News::GetAllNews($Options,$From,$Limit,false); $NewsDatRecCount = News::GetAllNews($Options,$From,$Limit,true); $TotalNews = $NewsDatRecCount->_tot_rec_count; $_pagi_sql = "select * from agenda "; $_pagi_cuantos = $Limit; $_pagi_nav_num_enlaces = 5; $_pagi_separador = " "; $_pagi_nav_anterior = ""; $_pagi_nav_siguiente = ""; $_pagi_nav_primera = ""; $_pagi_nav_ultima = ""; $_pagi_propagar = $opciones_sin_pag."&"; $_pagi_conteo_alternativo = true; //$_pagi_nav_estilo = "Estilo4"; include("lib/paginator.inc.php"); ?>