/
home2
/
reumatologia
/
public_html
/
admin
/
Upload File
HOME
<?php error_reporting(E_ERROR | E_PARSE); require_once('../library/class.archivos.php'); /* obtenemos datos enviados */ $filter = array(); $filter['IdCategoria'] = $_REQUEST['IdCategoria']; $filter['IdEstado'] = $_REQUEST['IdEstado']; $filter['Titulo'] = trim($_REQUEST['Titulo']); $filter['Fecha'] = trim($_REQUEST['Fecha']); $Page = intval($_REQUEST['pageIndex']); $PageSize = intval($_REQUEST['pageSize']); /* declaramos e instanciamos variables necesarias */ $arrData = array(); $oArchivos = new Archivos(); $oPage = new Page($Page, $PageSize); $arrData = $oArchivos->GetAll($filter, $oPage); $count = $oArchivos->GetCountRows($filter); $arrResult = array("data" => $arrData, "itemsCount" => $count); header('Content-type: application/json'); echo json_encode($arrResult); ?>