本文整理汇总了PHP中JPagination::getListFooter方法的典型用法代码示例。如果您正苦于以下问题:PHP JPagination::getListFooter方法的具体用法?PHP JPagination::getListFooter怎么用?PHP JPagination::getListFooter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JPagination
的用法示例。
在下文中一共展示了JPagination::getListFooter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pagination
/**
* Creates a pagination using the passed in values
*
* @param array $config Configuration Options
* total => list total, limit => list limit, offset => list start offset
*
* @return string
*/
public function pagination(array $config)
{
$config = new KConfig($config);
jimport('joomla.html.pagination');
$pagination = new JPagination($config->total, $config->offset, $config->limit);
return $pagination->getListFooter();
}
示例2: DefaultPaginationSearchForm
function DefaultPaginationSearchForm($total, $limitstart, $limit)
{
jimport('joomla.html.pagination');
$pageNav = new JPagination($total, $limitstart, $limit);
?>
<div class="jev_pagination">
<?php
echo $pageNav->getListFooter();
?>
</div>
<?php
}
示例3: DefaultPaginationForm
function DefaultPaginationForm($total, $limitstart, $limit)
{
jimport('joomla.html.pagination');
$pageNav = new JPagination($total, $limitstart, $limit);
$Itemid = JRequest::getInt("Itemid");
$task = JRequest::getVar("jevtask");
$link = JRoute::_("index.php?option=" . JEV_COM_COMPONENT . "&Itemid={$Itemid}&task={$task}");
?>
<div class="jev_pagination">
<form action="<?php
echo $link;
?>
" method="post">
<?php
// TODO add in catids so that changing it doesn't look the data
echo $pageNav->getListFooter();
?>
</form>
</div>
<?php
}
示例4: display
public static function display()
{
if (JFactory::getApplication()->isSite()) {
JSession::checkToken('get') or die(JText::_('JINVALID_TOKEN'));
}
require_once JPATH_ROOT . '/components/com_content/helpers/route.php';
$mainframe = JFactory::getApplication();
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('behavior.tooltip');
$access = $mainframe->getUserStateFromRequest('com_content.posts.filter.access', 'filter_access', 0, 'int');
$published = $mainframe->getUserStateFromRequest('com_content.posts.filter.published', 'filter_published', '');
$category_id = $mainframe->getUserStateFromRequest('com_content.posts.filter.category_id', 'filter_category_id');
$language = $mainframe->getUserStateFromRequest('com_content.posts.filter.language', 'filter_language', '');
$search = $mainframe->getUserStateFromRequest('com_content.posts.filter.search', 'filter_search');
$listOrder = $mainframe->getUserStateFromRequest('com_content.posts.posts.filter_order', 'filter_order', 'a.title', 'cmd');
$listDirn = $mainframe->getUserStateFromRequest('com_content.posts.posts.filter_order_Dir', 'filter_order_Dir', 'DESC', 'word');
$limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
$limitstart = $mainframe->getUserStateFromRequest('com_content.posts.limitstart', 'limitstart', 0, 'int');
$filter_poststatus = $mainframe->getUserStateFromRequest('com_content.posts.filter_poststatus', 'filter_poststatus', 0, 'string');
$poststatus = array();
$poststatus[] = JHTML::_('select.option', -1, JText::_('COM_BT_SOCIALCONNECT_ADDING_STATUS'));
$poststatus[] = JHtml::_('select.option', 'notpost', JText::_('COM_BT_SOCIALCONNECT_NOT_YET'));
$poststatus[] = JHtml::_('select.option', 'posted', JText::_('COM_BT_SOCIALCONNECT_ADDED'));
$total = self::getTotal();
$pageNav = new JPagination($total, $limitstart, $limit);
$items = self::getItemContent();
$html = '<div id="admin-loading">' . ' <fieldset class="filter clearfix">' . ' <div class="left">' . ' <label style="display:inline" for="filter_search">' . JText::_('JSEARCH_FILTER_LABEL') . '</label>' . ' <input type="text" name="filter_search" id="filter_search" value="' . $search . '" size="30" title="' . JText::_('COM_CONTENT_FILTER_SEARCH_DESC') . '" />' . ' <button class="btn btn-small" type="submit">' . JText::_('JSEARCH_FILTER_SUBMIT') . '</button>' . ' <button class="btn btn-small" type="button" onclick="document.id(\'filter_search\').value=\'\';this.form.submit();">' . JText::_('JSEARCH_FILTER_CLEAR') . '</button>' . ' </div>' . ' <div class="right">' . '<select name="filter_poststatus" class="inputbox" onchange="this.form.submit()">' . JHtml::_('select.options', $poststatus, 'value', 'text', $filter_poststatus) . '' . ' </select>' . ' <select name="filter_access" class="inputbox" onchange="this.form.submit()">' . ' <option value="">' . JText::_('JOPTION_SELECT_ACCESS') . '</option>' . JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $access) . '' . ' </select>' . ' <select name="filter_published" class="inputbox" onchange="this.form.submit()">' . ' <option value="">' . JText::_('JOPTION_SELECT_PUBLISHED') . '</option>' . JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $published, true) . '' . ' </select>' . ' <select name="filter_category_id" class="inputbox" onchange="this.form.submit()">' . ' <option value="">' . JText::_('JOPTION_SELECT_CATEGORY') . '</option>' . JHtml::_('select.options', JHtml::_('category.options', 'com_content'), 'value', 'text', $category_id) . '' . ' </select>' . ' <select name="filter_language" class="inputbox" onchange="this.form.submit()">' . ' <option value="">' . JText::_('JOPTION_SELECT_LANGUAGE') . '</option>' . JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $language) . '' . ' </select>' . ' </div>' . ' </fieldset>' . '<table class="adminlist table table-striped">' . '<thead>' . ' <tr>' . ' <th width="1%">' . ' <input type="checkbox" name="checkall-toggle" value="" title="' . JText::_('JGLOBAL_CHECK_ALL') . '" onclick="Joomla.checkAll(this)" />' . ' </th>' . ' <th class="title">' . JHtml::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder) . '' . ' </th>' . ' <th width="5%">' . JHtml::_('grid.sort', 'JSTATUS', 'a.state', $listDirn, $listOrder) . '' . ' </th>' . ' <th width="5%">' . JHtml::_('grid.sort', 'JFEATURED', 'a.featured', $listDirn, $listOrder, NULL, 'desc') . '' . ' </th>' . ' <th width="15%">' . JHtml::_('grid.sort', 'JGRID_HEADING_ACCESS', 'access_level', $listDirn, $listOrder) . '' . ' </th>' . ' <th width="15%">' . JHtml::_('grid.sort', 'JCATEGORY', 'a.catid', $listDirn, $listOrder) . '' . ' </th>' . ' <th width="5%">' . JHtml::_('grid.sort', 'JGRID_HEADING_LANGUAGE', 'language', $listDirn, $listOrder) . '' . ' </th>' . ' <th width="5%">' . JHtml::_('grid.sort', 'JDATE', 'a.created', $listDirn, $listOrder) . '' . ' </th>' . ' <th width="1%" class="nowrap">' . JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder) . '' . ' </th>' . ' </tr>' . '</thead>' . '<tfoot>' . ' <tr>' . ' <td colspan="15">' . $pageNav->getListFooter() . '' . ' </td>' . ' </tr>' . '</tfoot>';
$html .= '<tbody>';
foreach ($items as $i => $item) {
$html .= '<tr class="row' . $i % 2 . '">' . '<td class="center">' . JHtml::_('grid.id', $i, $item->id) . '' . '</td>' . '<td>' . $item->title . '' . '</td>' . '<td class="center">' . JHtml::_('jgrid.published', $item->state, $i, 'articles.', '', 'cb', $item->publish_up, $item->publish_down) . '' . '</td>' . '<td class="center">' . JHtml::_('contentadministrator.featured', $item->featured, $i, '') . '' . '</td>' . '<td class="center">' . $item->access_level . '' . '</td>' . '<td class="center">' . $item->category_title . '' . '</td>' . '<td class="center">';
if ($item->language == '*') {
$html .= JText::alt('JALL', 'language');
} else {
$html .= $item->language_title ? $item->language_title : JText::_('JUNDEFINED');
}
$html .= '</td>' . '<td class="center nowrap">' . JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC4')) . '' . '</td>' . '<td class="center">' . $item->id . '' . '</td>' . '</tr>';
}
$html .= '</tbody>' . '</table>' . '<div>' . '<input type="hidden" name="task" value="" />' . '<input type="hidden" name="boxchecked" value="0" />' . '<input type="hidden" name="filter_order" value="' . $listOrder . '" />' . '<input type="hidden" name="filter_order_Dir" value="' . $listDirn . '" />' . JHtml::_('form.token') . '' . '</div>' . ' </div>';
echo $html;
}
示例5: foreach
echo '<tr>';
foreach ($this->columns as $column) {
$columns[] = $column['Field'];
echo '<th>' . $column['Field'] . '</th>';
}
echo '</tr>';
//radky
foreach ($this->rows as $row) {
echo '<tr>';
foreach ($columns as $col) {
echo '<td>' . $row[$col] . '</td>';
}
echo '</tr>';
}
echo '</table>';
} else {
echo '<div class="error">' . JText::_('NO_ROWS_FOUND') . '</div>';
}
/*--tabulka s radky*/
/*strankovani*/
echo '<p>';
jimport('joomla.html.pagination');
$pageNav = new JPagination($this->total, $this->limitstart, $this->limit);
echo '<form action="' . JRoute::_('') . '" name="adminForm" id="adminForm" method="post">';
echo $pageNav->getListFooter();
echo '</form>';
echo '</p>';
/*--*/
?>
示例6: acymailingtagcontent_show
//.........这里部分代码省略.........
<th class="title">
</th>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('FIELD_TITLE'), 'a.title', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('ACY_AUTHOR'), 'b.name', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_(ACYMAILING_J16 ? 'COM_CONTENT_PUBLISHED_DATE' : 'START PUBLISHING'), 'a.publish_up', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('ACY_CREATED'), 'a.created', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title titleid">
<?php
echo JHTML::_('grid.sort', JText::_('ACY_ID'), 'a.id', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="6">
<?php
echo $pagination->getListFooter();
?>
<?php
echo $pagination->getResultsCounter();
?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$k = 0;
for ($i = 0, $a = count($rows); $i < $a; $i++) {
$row =& $rows[$i];
?>
<tr id="content<?php
echo $row->id;
?>
" class="<?php
echo "row{$k}";
?>
" onclick="applyContent(<?php
echo $row->id . ",'row{$k}'";
?>
);" style="cursor:pointer;">
<td class="acytdcheckbox"></td>
<td>
<?php
$text = '<b>' . JText::_('JOOMEXT_ALIAS') . ': </b>' . $row->alias;
echo acymailing_tooltip($text, $row->title, '', $row->title);
?>
</td>
<td>
<?php
示例7: articlesHtml
/**
* Funkce pro zobrazení přehledu článků pro jejich výběr
*/
function articlesHtml()
{
global $mainframe;
$model = $this->getModel();
$limit = JRequest::getVar('limit', $mainframe->getCfg(list_limit));
$limitstart = JRequest::getVar('limitstart', 0);
$articles = $model->getArticles(JRequest::getInt('section', -1), JRequest::getInt('categorie', -1), JRequest::getString('filter', ''), JRequest::getCmd('filter_order', 'title'), JRequest::getCmd('filter_order_Dir', 'asc'), $limitstart, $limit, true);
$total = $model->getArticlesCount(JRequest::getInt('section', -1), JRequest::getInt('categorie', -1), JRequest::getString('filter', ''), true);
$result = '';
jimport('joomla.html.pagination');
$pageNav = new JPagination($total, $limitstart, $limit);
$result .= '<h3>' . JText::_('SELECT_ARTICLE') . '</h3>';
$result .= '<form action="index.php?option=com_ginclude&task=reload" name="adminForm" id="adminForm" method="post">';
$orderDir = JRequest::getCmd('filter_order_Dir', 'asc');
if ($orderDir == 'asc') {
$orderDir2 = 'desc';
} else {
$orderDir2 = 'asc';
}
$result .= '<div style="position:relative;">' . JText::_(FILTER) . ': <input type="text" name="filter" value="' . JRequest::getString('filter', '') . '" id="filter" /><button onclick="this.form.submit();">OK</button><button onclick="document.getElementById(\'filter\').value=\'\';this.form.submit();">Reset</button>';
$result .= '<div style="display:inline;position:absolute;right:5px;top:2px;"><select name="section" onchange="document.adminForm.submit();"><option value="-1">--' . JText::_(SELECT_SECTION) . '--</option>';
$sections = $model->getSections();
if (count($sections)) {
foreach ($sections as $key => $value) {
$result .= '<option value="' . $key . '"';
if (JRequest::getInt('section', -1) == $key) {
$result .= ' selected="selected" ';
}
$result .= '>' . $value . '</option>';
}
}
$result .= '</select> ';
$result .= '<select name="categorie" onchange="document.adminForm.submit();"><option value="-1">--' . JText::_(SELECT_CATEGORY) . '--</option>';
$categories = $model->getCategories(JRequest::getInt('section', -1));
if (count($categories) > 0) {
foreach ($categories as $key => $value) {
$result .= '<option value="' . $key . '"';
if (JRequest::getInt('categorie', -1) == $key) {
$result .= ' selected="selected" ';
}
$result .= '>' . $value . '</option>';
}
}
$result .= '</select></div>';
$result .= '</div>';
$result .= '<table border="0" class="adminlist" cellspacing="1"><thead><tr><th><a href="javascript:tableOrdering(\'1\',\'' . $orderDir2 . '\',\'\');">' . JText::_('TITLE') . '</a></th><th width="150"><a href="javascript:tableOrdering(\'2\',\'' . $orderDir2 . '\',\'\');">' . JText::_('SECTION') . '</a></th><th width="150"><a href="javascript:tableOrdering(\'3\',\'' . $orderDir2 . '\',\'\');">' . JText::_('CATEGORY') . '</a></th><th width="80"><a href="javascript:tableOrdering(\'created\',\'' . $orderDir2 . '\',\'\');">' . JText::_('DATE') . '</a></th></tr></thead>';
if ($total > 0 && count($articles) > 0) {
foreach ($articles as $article) {
if ($rowClass == 'row0') {
$rowClass = 'row1';
} else {
$rowClass = 'row0';
}
$result .= '<tr class="' . $rowClass . '"><td><a href="index.php?option=com_ginclude&task=reload&article=' . $article->id . '">' . $article->title . '</a></td><td>' . $article->section . '</td><td>' . $article->categorie . '</td><td>' . $article->cdate . '</td></tr>';
}
}
$result .= '<tfoot><tr><td colspan="4">' . $pageNav->getListFooter() . '</td></tr></tfoot></table>';
$result .= '<input type="hidden" name="filter_order" value="' . JRequest::getCmd('filter_order', 'title') . '" />';
$result .= '<input type="hidden" name="filter_order_Dir" value="' . $orderDir . '" />';
$result .= '</form>';
return $result;
}
示例8: array
//.........这里部分代码省略.........
echo $jflanguages->display('lang', $pageInfo->lang);
?>
</td>
</tr>
</table>
<table class="adminlist" cellpadding="1" width="100%">
<thead>
<tr>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('NAME'), 'a.product_name', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('DESCRIPTION'), 'a.product_s_desc', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title titleid">
<?php
echo JHTML::_('grid.sort', JText::_('ID'), 'a.product_id', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="3">
<?php
echo $pagination->getListFooter();
?>
<?php
echo $pagination->getResultsCounter();
?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$k = 0;
for ($i = 0, $a = count($rows); $i < $a; $i++) {
$row =& $rows[$i];
?>
<tr id="content<?php
echo $row->product_id;
?>
" class="<?php
echo "row{$k}";
?>
" onclick="updateTag(<?php
echo $row->product_id;
?>
);" style="cursor:pointer;">
<td>
<?php
echo acymailing::tooltip('SKU : ' . $row->product_sku, $row->product_name, '', $row->product_name);
?>
</td>
示例9: array
//.........这里部分代码省略.........
?>
</td>
</tr>
</table>
<table class="adminlist" cellpadding="1" width="100%">
<thead>
<tr>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('FIELD_TITLE'), 'a.title', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('ACY_AUTHOR'), 'b.name', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title">
<?php
echo JHTML::_('grid.sort', JText::_('ACY_CREATED'), 'a.created', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
<th class="title titleid">
<?php
echo JHTML::_('grid.sort', JText::_('ACY_ID'), 'a.id', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">
<?php
echo $pagination->getListFooter();
?>
<?php
echo $pagination->getResultsCounter();
?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$k = 0;
for ($i = 0, $a = count($rows); $i < $a; $i++) {
$row =& $rows[$i];
?>
<tr id="content<?php
echo $row->id;
?>
" class="<?php
echo "row{$k}";
?>
" onclick="applyContent(<?php
echo $row->id . ",'row{$k}'";
?>
);" style="cursor:pointer;">
<td>
<?php
$text = '<b>' . JText::_('ALIAS', true) . ': </b>' . $row->alias;
echo acymailing::tooltip($text, $row->title, '', $row->title);
?>
</td>
<td>
<?php
if (!empty($row->name)) {
示例10: ujTag
/**
* ujTag felvételi form
* @return void
* &JRequest: limit, limitstart, filterStr, order
*/
public function ujTag()
{
JHTML::_('behavior.modal');
$total = 0;
$pagination = null;
$user = JFactory::getUser();
$db = JFactory::getDBO();
if (!$this->temakorokHelper->isAdmin($user) & !$this->temakor_admin) {
echo '<div class="">Access denied</div>';
return;
}
// alapértelmezett browser status beolvasása sessionból
$session = JFactory::getSession();
$brStatusStr = '{"limit":20,"limitstart":0,"order":1,"filterStr":""}';
$brStatus = JSON_decode($brStatusStr);
$limitStart = JRequest::getVar('limitstart', $brStatus->limitstart);
$limit = JRequest::getVar('limit', $brStatus->limit);
$order = JRequest::getVar('order', $brStatus->order);
$filterStr = urldecode(JRequest::getVar('filterStr', $brStatus->filterStr));
JRequest::setVar('limit', $limit);
JRequest::setVar('limitstart', $limitStart);
JRequest::setVar('order', $order);
JRequest::setVar('filterStr', $filterStr);
// adattábla tartalom elérése és átadása a view -nek
$items = $this->model->getItems();
//DBG echo $this->model->getDBO()->getQuery();
$this->view->set('Items', $items);
// browser müködéshez linkek definiálása
$reorderLink = JURI::base() . 'index.php?option=com_' . $this->NAME . '&view=' . $this->NAME . 'list&tas=ujTag' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&temakor=' . $this->temakor_id . '&filterStr=' . urlencode($filterStr);
$doFilterLink = JURI::base() . 'index.php?option=com_' . $this->NAME . '&view=' . $this->NAME . 'list&task=ujTag' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&temakor=' . $this->temakor_id . '&order=' . JRequest::getVar('order', '1');
if ($this->temakor_id > 0) {
$itemLink = JURI::base() . 'index.php?option=com_tagok&view=tagok&task=doujtag' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&filterStr=' . urlencode($filterStr) . '&temakor=' . $this->temakor_id . '&order=' . JRequest::getVar('order', '1');
}
$this->view->set('reorderLink', $reorderLink);
$this->view->set('doFilterLink', $doFilterLink);
$this->view->set('itemLink', $itemLink);
// akciók definiálása
$akciok = array();
if ($this->temakor_id > 0) {
$akciok['temakor'] = JURI::base() . 'index.php?option=com_szavazasok&view=szavazasoklist&task=browse' . '&temakor=' . $this->temakor_id;
} else {
$akciok['temakorok'] = JURI::base() . 'index.php?option=com_temakorok&view=temakoroklist&task=browse';
}
$akciok['sugo'] = JURI::base() . 'index.php?option=com_content&view=article' . '&id=' . JText::_('UJTAG_SUGO') . '&Itemid=435&tmpl=component';
$this->view->set('Akciok', $akciok);
$this->view->set('Title', JText::_('UJTAG'));
$this->view->set('Temakor', $this->temakor);
//lapozósor definiálása
jimport('joomla.html.pagination');
$total = $this->model->getTotal($filterStr);
$pagination = new JPagination($total, $limitStart, $limit);
$pagination->setAdditionalUrlParam('order', $order);
$pagination->setAdditionalUrlParam('filterStr', urlencode($filterStr));
$pagination->setAdditionalUrlParam('temakor', $this->temakor_id);
$this->view->set('LapozoSor', $pagination->getListFooter());
$this->view->setLayout('ujtag');
$this->view->display();
}
示例11: szavazatok
/**
* képviselő eddigi szavazatainak megjelenítése
* (böngésző képernyő)
* @return void
* @JRequest integer temakor
* @JRequest integer id - kepviselo_id
* @JRequest integer limitstart
* @JRequest integer limit
* @JRequest string filterStr
* @JRequest integer order
*/
public function szavazatok()
{
JHTML::_('behavior.modal');
$total = 0;
$pagination = null;
$user = JFactory::getUser();
$db = JFactory::getDBO();
$document = JFactory::getDocument();
$viewType = $document->getType();
$view =& $this->getView('szavazatoklist', $viewType);
$model =& $this->getModel('szavazatoklist');
// alapértelmezett browser status beolvasása sessionból
$session = JFactory::getSession();
$brStatusStr = $session->get('szavazasoklist_status');
if ($brStatusStr == '') {
$brStatusStr = '{"limit":20,"limitstart":0,"order":1,"filterStr":""}';
}
$brStatus = JSON_decode($brStatus);
$limitStart = JRequest::getVar('limitstart', $brStatus->limitstart);
$limit = JRequest::getVar('limit', $brStatus->limit);
$order = JRequest::getVar('order', $brStatus->order);
$filterStr = urldecode(JRequest::getVar('filterStr', $brStatus->filterStr));
// browser status save to session and JRequest
$brStatus->limit = $limit;
$brStatus->limitStart = $limitStart;
$brStatus->order = $order;
$brStatus->filterStr = $filterStr;
// ebben az esetben inkább ne jegyezze meg....
//$session->set('szavazatoklist_status', JSON_encode($brStatus));
JRequest::setVar('limit', $limit);
JRequest::setVar('limitstart', $limitStart);
JRequest::setVar('order', $order);
JRequest::setVar('filterStr', $filterStr);
// adattábla tartalom elérése és átadása a view -nek
$items = $model->getItems();
//DBG echo '<p>'.$model->getDBO()->getQuery().'</p>';
// items-temakor-user hozzáférés ellenörzés
if ($this->temakorokHelper->isAdmin($user) == false) {
for ($i = 0; $i < count($items); $i++) {
$item = $items[$i];
if ($item->lathatosag == 1 & $user->id == 0 | $item->lathatosag == 2 & $this->temakorokHelper->userTag($item->id, $user) == false) {
// letiltott
$items[$i]->szmegenevezes = '***';
$items[$i]->amegenevezes = '***';
$items[$i]->pozicio = '**';
}
}
}
$view->set('Items', $items);
// témakör beolvasása
$db->setQuery('select * from #__temakorok where id="' . JRequest::getVar('temakor', 0) . '"');
$view->Temakor = $db->loadObject();
if ($view->Temakor == false) {
$view->Temakor = new stdclass();
$view->Temakor->megnevezes = JText::_('ALTALANOSKEPVISELO');
$view->Temakor->id = 0;
} else {
$view->Temakor->megnevezes .= ' ' . JText::_('KEPVISELO');
}
// képviselő adatok beolvasása
$view->set('Kuser', JFactory::getUser(JRequest::getVar('id', 0)));
// browser müködéshez linkek definiálása
$reorderLink = JURI::base() . 'index.php?option=com_kepviselok&view=kepviselok&task=szavazatok' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&filterStr=' . urlencode($filterStr) . '&temakor=' . JRequest::getVar('temakor') . '&id=' . JRequest::getVar('id', 0);
$doFilterLink = JURI::base() . 'index.php?option=com_kepviselok&view=kepviselok&task=add' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&order=' . JRequest::getVar('order', '1') . '&temakor=' . JRequest::getVar('temakor') . '&id=' . JRequest::getVar('id', 0);
$view->set('reorderLink', $reorderLink);
$view->set('doFilterLink', $doFilterLink);
// akciók definiálása
$akciok = array();
$akciok['back'] = JURI::base() . 'index.php?option=com_kepviselok&view=kepviselok&task=show' . '&temakor=' . JRequest::getVar('temakor') . '&id=' . JRequest::getVar('id', 0);
$akciok['sugo'] = JURI::base() . 'index.php?option=com_content&view=article' . '&id=' . JText::_('SZAVAZATOKSUGO') . '&Itemid=435&tmpl=component';
$view->set('Akciok', $akciok);
//lapozósor definiálása
jimport('joomla.html.pagination');
$total = $model->getTotal($filterStr);
$pagination = new JPagination($total, $limitStart, $limit);
$pagination->setAdditionalUrlParam('order', $order);
$pagination->setAdditionalUrlParam('filterStr', urlencode($filterStr));
$view->set('LapozoSor', $pagination->getListFooter());
// display
$view->setLayout('browse');
$view->display();
}
示例12: browse
//.........这里部分代码省略.........
$akciok['alternativaedit'] = JURI::base() . 'index.php?option=com_alternativak&view=alternativak&task=edit' . '&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
}
}
if ($this->temakorokHelper->isAdmin($user) | $this->temakor_admin | $this->temakorIndito($this->temakor_id, $user)) {
if ($this->szavazas->vita1 == 1) {
$akciok['alternativatorles'] = JURI::base() . 'index.php?option=com_alternativak&view=alternativak&task=deleteform' . '&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
}
}
if ($this->szavazas->szavazas == 1 & $user->id > 0) {
// a szavazás folyamatban van és bejelentkezett user
$db = JFactory::getDBO();
$db->setQuery('select id from #__szavazatok
where szavazas_id="' . $this->szavazas_id . '" and
user_id="' . $user->id . '"');
$res = $db->loadObjectList();
if (count($res) == 0) {
// ez a user még nem szavazott
if ($this->szavazas->szavazok == 1 | $this->szavazas->szavazok == 2 & $this->temakorokHelper->userTag($this->temakor_id, $user, false) | $this->szavazas->szavazok == 3 & $this->temakorokHelper->userTag($this->temakor_id, $user, true)) {
$akciok['szavazok'] = JURI::base() . 'index.php?option=com_szavazasok&view=szavazasok&task=szavazoform&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
}
} else {
$akciok['szavaztal'] = 'Y';
if ($this->szavazas->titkos == 0) {
$akciok['szavazatTorles'] = JURI::base() . 'index.php?option=com_alternativak&&task=szavazattorles&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
}
}
}
// if ($this->szavazas->lezart == 1) {
$akciok['eredmeny'] = JURI::base() . 'index.php?option=com_szavazasok&view=szavazasok&task=eredmeny&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
// }
if ($this->szavazas->szavazas == 1 & $user->id > 0) {
$akciok['emailszavazas'] = JURI::base() . 'index.php?option=com_szavazasok&view=szavazasok&task=meghivo&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
}
$akciok['copy'] = JURI::base() . 'index.php?option=com_alternativak&view=alternativaklist&task=copy' . '&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
$akciok['tagok'] = JURI::base() . 'index.php?option=com_tagok&temakor=' . $this->temakor_id;
$akciok['sugo'] = JURI::base() . 'index.php?option=com_content&view=article' . '&id=' . JText::_(strtoupper($this->NAME) . 'LIST_SUGO') . '&Itemid=435&tmpl=component';
$akciok['deleteSzavazas'] = JURI::base() . 'index.php?option=com_szavazasok&view=szavazasok&task=deleteform' . '&temakor=' . $this->temakor_id . '&szavazas=' . $this->szavazas_id;
$this->view->set('Akciok', $akciok);
// globális képviselő/képviselő jelölt gombok definiálása
$altKepviselo = array();
$altKepviselo['kepviselojeLink'] = '';
$kepviselo = array();
$kepviselo['kepviselojeLink'] = '';
$kepviselo['kepviseloJeloltLink'] = '';
$kepviselo['kepviselotValasztLink'] = '';
$kepviselo['ujJeloltLink'] = '';
if ($user->id > 0) {
if ($altKepviseloje > 0) {
$kepviseloUser = JFactory::getUser($altKepviseloje);
if ($kepviseloUser) {
$userEx = HsUser::getInstance($altKepviseloje);
$altKepviselo['kepviselojeLink'] = JURI::base() . 'index.php?option=com_kepviselok&task=show&id=' . $altKepviseloje;
if (isset($userEx->image)) {
$altKepviselo['image'] = $userEx->get('image');
} else {
$altKepviselo['image'] = '<img src="components/com_hs_users/asset/images/noimage.png" width="50" height="50" />';
}
$altKepviselo['nev'] = $kepviseloUser->name;
}
}
if ($kepviseloje > 0) {
$kepviseloUser = JFactory::getUser($kepviseloje);
if ($kepviseloUser) {
$userEx = HsUser::getInstance($kepviseloje);
$kepviselo['kepviselojeLink'] = JURI::base() . 'index.php?option=com_kepviselok&task=show&id=' . $kepviseloje;
if (isset($userEx->image)) {
$kepviselo['image'] = $userEx->get('image');
} else {
$kepviselo['image'] = '<img src="components/com_hs_users/asset/images/noimage.png" width="50" height="50" />';
}
$kepviselo['nev'] = $kepviseloUser->name;
}
} else {
if ($kepviseloJelolt) {
$kepviselo['kepviseloJeloltLink'] = JURI::base() . 'index.php?option=com_kepviselo&task=edit&id=' . $user->id;
} else {
$kepviselo['kepviselotValasztLink'] = JURI::base() . 'index.php?option=com_kepviselok&task=find&temekor=' . $this->temakor_id . '&szavazas=0';
$kepviselo['ujJeloltLink'] = JURI::base() . 'index.php?option=com_kepviselojeloltek&task=add&temekor=' . $this->temakor_id . '&szavazas=0&id=' . $user->id;
}
}
}
$this->view->set('Kepviselo', $kepviselo);
$this->view->set('AltKepviselo', $altKepviselo);
//lapozósor definiálása
jimport('joomla.html.pagination');
$total = $this->model->getTotal($filterStr);
$pagination = new JPagination($total, $limitStart, $limit);
$pagination->setAdditionalUrlParam('order', $order);
$pagination->setAdditionalUrlParam('filterStr', urlencode($filterStr));
$this->view->set('LapozoSor', $pagination->getListFooter());
// kacsolodó cikk id-jének elérése és átadása a viewer-nek
$db->setQuery('SELECT id from #__content WHERE alias="sz' . $this->szavazas_id . '"');
$res = $db->loadObject();
if ($res) {
$this->view->set('CommentId', $res->id);
} else {
$this->view->set('CommentId', 0);
}
$this->view->display();
}
示例13: listRecords
//.........这里部分代码省略.........
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=submitted"><?php echo BFText::_('COM_BREEZINGFORMS_RECORDS_SUBMITTED'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=ip"><?php echo BFText::_('COM_BREEZINGFORMS_IP'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=provider"><?php echo BFText::_('COM_BREEZINGFORMS_RECORDS_PROVIDER'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=title"><?php echo BFText::_('COM_BREEZINGFORMS_RECORDS_TITLE'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=name"><?php echo BFText::_('COM_BREEZINGFORMS_RECORDS_NAME'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=paypal_tx_id"><?php echo BFText::_('COM_BREEZINGFORMS_PAYMENT_TX_ID'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=paypal_payment_date"><?php echo BFText::_('COM_BREEZINGFORMS_PAYMENT_TX_DATE'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=paypal_testaccount"><?php echo BFText::_('COM_BREEZINGFORMS_PAYMENT_TESTACCOUNT'); ?></a>
</th>
<th>
<a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&order=<?php echo JRequest::getVar('order', 'DESC') == 'DESC' ? 'ASC' : 'DESC'; ?>&orderBy=paypal_download_tries"><?php echo BFText::_('COM_BREEZINGFORMS_PAYMENT_DOWNLOAD_TRIES'); ?></a>
</th>
<th nowrap align="center"><?php echo BFText::_('COM_BREEZINGFORMS_RECORDS_VIEWED'); ?></th>
<th nowrap align="center"><?php echo BFText::_('COM_BREEZINGFORMS_RECORDS_EXPORTED'); ?></th>
<th nowrap align="center"><?php echo BFText::_('COM_BREEZINGFORMS_RECORDS_ARCHIVED'); ?></th>
</tr>
</thead>
<?php
$k = 0;
$cnt = count( $rows );
for ($i=0; $i < $cnt; $i++)
{
$row = $rows[$i];
if ($row->viewed) $view_src = "components/com_breezingforms/images/icons/publish_g.png"; else $view_src = "components/com_breezingforms/images/icons/publish_x.png";
if ($row->exported) $exp_src = "components/com_breezingforms/images/icons/publish_g.png"; else $exp_src = "components/com_breezingforms/images/icons/publish_x.png";
if ($row->archived) $arch_src = "components/com_breezingforms/images/icons/publish_g.png"; else $arch_src = "components/com_breezingforms/images/icons/publish_x.png";
?>
<tr class="<?php echo "row$k"; ?>">
<td nowrap align="center"><input type="checkbox" id="cb<?php echo $i; ?>" name="ids[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);" /></td>
<td nowrap align="left"><a href="#" onclick="return listItemTask('cb<?php echo $i; ?>','edit')"><?php echo $row->id; ?></a></td>
<td nowrap align="left"><a href="#" onclick="return listItemTask('cb<?php echo $i; ?>','edit')"><?php echo $row->submitted; ?></a></td>
<td nowrap align="left"><?php echo $row->ip; ?></td>
<td nowrap align="left"><?php echo $row->provider; ?></td>
<td nowrap align="left"><?php echo $row->title; ?></td>
<td nowrap align="left"><?php echo $row->name; ?></td>
<td nowrap align="left"><?php echo $row->paypal_tx_id; ?></td>
<td nowrap align="left"><?php echo $row->paypal_payment_date; ?></td>
<td nowrap align="left"><?php echo $row->paypal_testaccount ? BFText::_('COM_BREEZINGFORMS_YES') : BFText::_('COM_BREEZINGFORMS_NO'); ?></td>
<td nowrap align="left"><?php echo $row->paypal_download_tries; ?></td>
<td nowrap align="center"><a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&id=<?php echo $row->id ?>&viewed=<?php echo $row->viewed ?>&order=<?php echo JRequest::getWord('order','DESC') ?>&orderBy=<?php echo JRequest::getWord('orderBy','submitted') ?>"><img src="<?php echo $view_src; ?>" alt="+" border="0" /></a></td>
<td nowrap align="center"><a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&id=<?php echo $row->id ?>&exported=<?php echo $row->exported ?>&order=<?php echo JRequest::getWord('order','DESC') ?>&orderBy=<?php echo JRequest::getWord('orderBy','submitted') ?>"><img src="<?php echo $exp_src; ?>" alt="+" border="0" /></a></td>
<td nowrap align="center"><a href="index.php?option=com_breezingforms&act=recordmanagement&txtsearch=<?php echo JRequest::getWord('txtsearch','false'); ?>&search=<?php echo htmlentities(JRequest::getVar('search',''), ENT_QUOTES, 'UTF-8'); ?>&form=<?php echo htmlentities(JRequest::getVar('form',''), ENT_QUOTES, 'UTF-8'); ?>&task=<?php echo JRequest::getVar('task',''); ?>&limitstart=<?php echo JRequest::getInt('limitstart',0); ?>&mylimit=<?php echo JRequest::getInt('mylimit',20); ?>&id=<?php echo $row->id ?>&archived=<?php echo $row->archived ?>&order=<?php echo JRequest::getWord('order','DESC') ?>&orderBy=<?php echo JRequest::getWord('orderBy','submitted') ?>"><img src="<?php echo $arch_src; ?>" alt="+" border="0" /></a></td>
</tr>
<?php
$k = 1 - $k;
}
?>
</table>
</div>
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="option" value="com_breezingforms" />
<input type="hidden" id="task" name="task" value="<?php echo JRequest::getVar('task',''); ?>" />
<input type="hidden" name="act" value="recordmanagement" />
<input type="hidden" name="status_update" value="0" />
<input type="hidden" name="order" value="<?php echo JRequest::getWord('order','DESC') ?>" />
<input type="hidden" name="orderBy" value="<?php echo JRequest::getWord('orderBy','submitted') ?>" />
<input type="hidden" id="limitstart" name="limitstart" value="<?php echo JRequest::getInt('limitstart',0); ?>" />
<input type="hidden" id="mylimit" name="mylimit" value="<?php echo JRequest::getInt('mylimit',20); ?>" />
<input type="hidden" id="exportt" name="exportt" value="0" />
</form>
<table class="adminlist">
<tfoot>
<tr>
<td colspan="14">
<form action="#">
<?php echo $pagination->getListFooter() ?>
</form>
</td>
</tr>
</tfoot>
</table>
<script>
// fixing limit, since it seems not to be available through JRequest or even $_POST/$_GET/$_REQUEST
document.getElementById('limit').onchange =
function(){
document.getElementById('mylimit').value = document.getElementById('limit').options[document.getElementById('limit').selectedIndex].value;
document.adminForm.submit();
};
</script>
<?php
}
示例14: szavaztam
/**
* szavaztam
* @return void
* @request integer limit
* @request integer limitstart
* @request integer order
* @request integer filterStr
* @session object 'temakoroklist_status'
*/
public function szavaztam()
{
jimport('hs.user.user');
JHTML::_('behavior.modal');
$total = 0;
$pagination = null;
$user = JFactory::getUser();
$db = JFactory::getDBO();
// hozzáférés ellenörzés
if ($user->id == 0) {
$this->temakorokHelper->getLogin(JText::_('JELENTKEZZBE'));
}
// alapértelmezett browser status beolvasása sessionból
$session = JFactory::getSession();
$brStatusStr = '{"limit":20,"limitstart":0,"order":1,"filterStr":"|1"}';
$brStatus = JSON_decode($brStatus);
$limitStart = JRequest::getVar('limitstart', $brStatus->limitstart);
$limit = JRequest::getVar('limit', $brStatus->limit);
$order = JRequest::getVar('order', $brStatus->order);
$filterStr = urldecode(JRequest::getVar('filterStr', $brStatus->filterStr));
if ($this->temakor_id == '') {
$this->temakor_id = $brStatus->temakor_id;
}
JRequest::setVar('limit', $limit);
JRequest::setVar('limitstart', $limitStart);
JRequest::setVar('order', $order);
JRequest::setVar('filterStr', $filterStr);
JRequest::setVar('temakor', $this->temakor_id);
// adattábla tartalom elérése és átadása a view -nek
$items = $this->model->getItems();
if ($this->model->getDBO()->getErrorNum() > 0) {
$this->model->getDBO()->stderr();
}
if ($this->model->getError() != '') {
$this->view->Msg = $this->model->getError();
}
$this->view->set('Items', $items);
$this->view->set('Title', JText::_('SZAVAZASOK_SZAVAZTAM'));
// browser müködéshez linkek definiálása
$reorderLink = JURI::base() . 'index.php?option=com_' . $this->NAME . '&view=szavazhatok&task=szavazhatok' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&filterStr=' . urlencode($filterStr) . '&temakor=' . $this->temakor_id;
$doFilterLink = JURI::base() . 'index.php?option=com_' . $this->NAME . '&view=szavazhatok&task=szavazhatok' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&order=' . JRequest::getVar('order', '1') . '&temakor=' . $this->temakor_id;
$itemLink = JURI::base() . 'index.php?option=com_alternativak&view=alternativaklist&task=szavazhatok' . '&task=browse' . '&limit=' . JRequest::getVar('limit', '20') . '&limitstart=0' . '&filterStr=' . urlencode($filterStr) . '&order=' . JRequest::getVar('order', '1');
$backLink = JURI::base() . 'index.php?option=com_temakorok&view=temakoroklist' . '&task=browse';
$this->view->set('reorderLink', $reorderLink);
$this->view->set('doFilterLink', $doFilterLink);
$this->view->set('itemLink', $itemLink);
$this->view->set('backLink', $backLink);
$this->view->set('temakorLink', $temakorLink);
// kik a szavazaás felvivők?
$szavazas_felvivo = $this->szavazas_felvivo();
// akciók definiálása
$akciok = array();
$this->view->set('Akciok', $akciok);
//lapozósor definiálása
jimport('joomla.html.pagination');
$total = $this->model->getTotal($filterStr);
$pagination = new JPagination($total, $limitStart, $limit);
$pagination->setAdditionalUrlParam('order', $order);
$pagination->setAdditionalUrlParam('filterStr', urlencode($filterStr));
$this->view->set('LapozoSor', $pagination->getListFooter());
$this->view->display();
}
示例15:
$pagesStop = 10;
}
}
}
}
$pagination->set("limitstart", $limitstart);
$pagination->set("limit", $limit);
$pagination->set("total", $total);
$pagination->set("pagesStart", $pagesStart);
$pagination->set("pagesStop", $pagesStop);
$pagination->set("pagesCurrent", $pagesCurrent);
$pagination->set("pagesTotal", $pagesTotal);
/*echo "<pre>";
print_r($pagination);
echo "</pre>";*/
echo $pagination->getListFooter();
?>
</td>
</tr>
</table>
</div>
<div class="g_table_wrap g_mobile">
<table class="table table-striped">
<tr class="g_table_header">
<th class="g_cell_1"><?php
echo JText::_("GURU_DAYS_NAME");
?>
</th>
<th class="g_cell_2"><?php
echo JText::_("GURU_ATTEPMT_Q");