1 |
17329
|
thanos.pap
|
<?php
|
2 |
|
|
|
3 |
|
|
defined('_JEXEC') or die('Access denied');
|
4 |
|
|
|
5 |
|
|
jimport('joomla.methods');
|
6 |
|
|
|
7 |
18541
|
thanos.pap
|
JView :: loadHelper('PagingHelper');
|
8 |
17329
|
thanos.pap
|
JView :: loadHelper('OrganizationHelper');
|
9 |
|
|
|
10 |
|
|
if ($this -> result == NULL) { ?>
|
11 |
18321
|
thanos.pap
|
<div class="error"><?php echo(JText :: _('ERROR_PERFORMING_SEARCH')); ?></div>
|
12 |
17329
|
thanos.pap
|
<?php } else if ($this -> result -> organizations == NULL) { ?>
|
13 |
18321
|
thanos.pap
|
<div class="box-info"><?php echo(JText :: _('NO_ORGANIZATIONS_FOUND')); ?></div>
|
14 |
17329
|
thanos.pap
|
<?php } else { ?>
|
15 |
|
|
<div class="pageController">
|
16 |
18541
|
thanos.pap
|
<span class="totalof"><?php JText :: printf('N_ORGANIZATIONS_PAGE_N_OF_N', $this -> result -> totalOrganizations, $this -> page, $this -> totalPages); ?></span>
|
17 |
23853
|
thanos.pap
|
<?php $baseUrl = 'index.php?option=com_openaire&view=searchorganizations&Itemid=' . $this -> itemId . '&keyword=' . $this -> keyword;
|
18 |
18541
|
thanos.pap
|
foreach ($this -> filters as $filter)
|
19 |
23853
|
thanos.pap
|
$baseUrl .= '&' . urlencode($filter -> name) . '=' . urlencode(($filter -> value === TRUE) ? 'true' : (($filter -> value === FALSE) ? 'false' : $filter -> value));
|
20 |
|
|
$baseUrl .= '&size=' . $this -> size . '&noscroll=true&page=';
|
21 |
27140
|
yannis.str
|
echo(PagingHelper :: formatPaging($this -> page, $this -> totalPages, $this -> pagingStart, $this -> pagingEnd, $baseUrl, '')); ?>
|
22 |
17329
|
thanos.pap
|
</div>
|
23 |
|
|
<div class="searchResults">
|
24 |
|
|
<?php foreach ($this -> result -> organizations as $organization) {
|
25 |
|
|
echo(OrganizationHelper :: formatOrganization($organization, $this -> itemId));
|
26 |
|
|
} ?>
|
27 |
|
|
</div>
|
28 |
|
|
<div class="pageController">
|
29 |
27140
|
yannis.str
|
<?php echo(PagingHelper :: formatPaging($this -> page, $this -> totalPages, $this -> pagingStart, $this -> pagingEnd, $baseUrl, '')); ?>
|
30 |
17329
|
thanos.pap
|
</div>
|
31 |
|
|
<?php } ?>
|