Esempio n. 1
0
$app = JFactory::getApplication();
$option = $app->input->get('option');
$tasks = $task . 's';
$OPT = strtoupper($option);
$user = JFactory::getUser();
$userId = $user->get('id');
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$canOrder = 0;
$saveOrder = 0;
if ($saveOrder) {
    $saveOrderingUrl = 'index.php?option=' . $option . '&task=' . $task . '.saveOrderAjax&tmpl=component';
    JHtml::_('sortablelist.sortable', 'categoryList', 'adminForm', strtolower($listDirn), $saveOrderingUrl, false, true);
}
$sortFields = $this->getSortFields();
echo $r->jsJorderTable($listOrder);
echo $r->startForm($option, $task, 'adminForm');
echo $r->startFilter($OPT . '_FILTER');
echo $r->selectFilterCategory(PhocaGalleryCategory::options($option), 'JOPTION_SELECT_CATEGORY', $this->state->get('filter.category_id'));
echo $r->endFilter();
echo $r->startMainContainer();
echo $r->startFilterBar();
echo $r->inputFilterSearch($OPT . '_FILTER_SEARCH_LABEL', $OPT . '_FILTER_SEARCH_DESC', $this->escape($this->state->get('filter.search')));
echo $r->inputFilterSearchClear('JSEARCH_FILTER_SUBMIT', 'JSEARCH_FILTER_CLEAR');
echo $r->inputFilterSearchLimit('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC', $this->pagination->getLimitBox());
echo $r->selectFilterDirection('JFIELD_ORDERING_DESC', 'JGLOBAL_ORDER_ASCENDING', 'JGLOBAL_ORDER_DESCENDING', $listDirn);
echo $r->selectFilterSortBy('JGLOBAL_SORT_BY', $sortFields, $listOrder);
echo $r->endFilterBar();
echo $r->startTable('categoryList');
echo $r->startTblHeader();
echo $r->thOrdering('JGRID_HEADING_ORDERING', $listDirn, $listOrder);