HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/biologia/components/com_jevents/views/default/helpers/defaultpaginationform.php
<?php 
defined('_JEXEC') or die('Restricted access');

function DefaultPaginationForm($total, $limitstart, $limit, $keyword=""){
	jimport('joomla.html.pagination');
	$pageNav = new JPagination($total, $limitstart, $limit);
	if ($keyword !="" && method_exists($pageNav,"setAdditionalUrlParam")){		
		$pageNav->setAdditionalUrlParam("keyword", urlencode($keyword));
		$pageNav->setAdditionalUrlParam("showpast",JRequest::getInt("showpast",0));
	}
	$Itemid = JRequest::getInt("Itemid");
	$task = JRequest::getVar("jevtask");
	// include catids to make sure not lost when category is pre-selected
	$catids = JRequest::getString("catids",JRequest::getString("category_fv",""));
	if (JString::strlen($catids)>0){
		$catids = explode("|",$catids);
		JArrayHelper::toInteger($catids);
		$catids = "&catids=".implode("|",$catids);
	}
	$year = "";
	if (JRequest::getInt("year",0)>0){
		$year = "&year=".JRequest::getInt("year",0);
	}
	$month = "";
	if (JRequest::getInt("month",0)>0){
		$month = "&month=".JRequest::getInt("month",0);
	}
	if ($keyword !=""){
		$keyword = "&keyword=".urlencode($keyword)."&showpast=".JRequest::getInt("showpast",0);
	}
	$link = JRoute::_("index.php?option=".JEV_COM_COMPONENT."&Itemid=$Itemid&task=$task$catids$year$month$keyword");
	?>
	<div class="jev_pagination">
	<form action="<?php echo $link;?>" method="post" name="adminForm" id="adminForm">
	<?php
	if ($task!="crawler.listevents" || version_compare(JVERSION, "3.0.0", 'lt') ){
	echo $pageNav->getListFooter();
	}
	else {
		// Allow to receive a null layout
		$layoutId =  'pagination.crawlerlinks' ;

		$app = JFactory::getApplication();

		$list = array(
			'prefix'       => $pageNav->prefix,
			'limit'        => $pageNav->limit,
			'limitstart'   => $pageNav->limitstart,
			'total'        => $pageNav->total,
			'limitfield'   => $pageNav->getLimitBox(),
			'pagescounter' => $pageNav->getPagesCounter(),
			'pages'        => $pageNav->getPaginationPages() 
		);

		$options = array();
		
		echo  JLayoutHelper::render($layoutId, array('list' => $list, 'options' => $options));

	}
	?>
	</form>
	</div>
	<?php
}