<?php $limit = fRequest::encode('limit', 'integer'); $page = fRequest::encode('p', 'integer'); if ($page < 1) { exit; } $start = ($page - 1) * $limit; $categories = fRecordSet::buildFromSQL('EconomicUnitCategory', "SELECT * FROM economic_unit_categories {$where} LIMIT {$start},{$limit}", "SELECT count(*) FROM economic_unit_categories {$where}", $limit, $page); if ($categories->count() == 0) { echo '<div class="notification information" > Por el momento no hay registros en <b> Categorías de Geolocalización</b>. </div>'; } else { $p = new Pagination($categories->getPages(), $categories->getPage(), 3); $pagination = $p->getPaginationLinks(); ?> <center> <table class="contenttoc" style="width:auto; float:left"> <tr> <th> <input type="checkbox" name="check" id="check" /> </th> <th> Nombre </th> <th> Editar </th> <th> Eliminar </th> </tr> <?php date_default_timezone_set('America/Mexico_City'); foreach ($categories as $ecategory) { $id = $ecategory->prepareEconomicUnitCategoryId(); echo '<tr>