* * You should have received a copy of the GNU Affero General Public License * along with Goteo. If not, see <http://www.gnu.org/licenses/agpl.txt>. * */ use Goteo\Library\Text; $bodyClass = 'admin'; // paginacion require_once 'library/pagination/pagination.php'; // no cache para textos define('GOTEO_ADMIN_NOCACHE', true); $filter = $this['filter']; $data = Text::getAll($this['filters'], $_SESSION['translator_lang']); $pagedResults = new \Paginated($data, 20, isset($_GET['page']) ? $_GET['page'] : 1); // valores de filtro $idfilters = Text::filters(); $groups = Text::groups(); // metemos el todos \array_unshift($idfilters, 'Todos los textos'); \array_unshift($groups, 'Todas las agrupaciones'); $filters = array('idfilter' => array('label' => 'Filtrar por tipo:', 'type' => 'select', 'options' => $idfilters, 'value' => $this['filters']['idfilter']), 'group' => array('label' => 'Filtrar por agrupación:', 'type' => 'select', 'options' => $groups, 'value' => $this['filters']['group']), 'text' => array('label' => 'Buscar texto:', 'type' => 'input', 'options' => null, 'value' => $this['filters']['text'])); ?> <!-- Filtro --> <?php if (!empty($filters)) { ?> <div class="widget board"> <form id="filter-form" action="/translate/texts/list/<?php echo $filter; ?> " method="get">