1 |
17569
|
thanos.pap
|
<?php
|
2 |
|
|
|
3 |
|
|
defined('_JEXEC') or die('Access denied');
|
4 |
|
|
|
5 |
19084
|
thanos.pap
|
jimport('joomla.environment.uri');
|
6 |
17569
|
thanos.pap
|
jimport('joomla.html.html');
|
7 |
|
|
|
8 |
|
|
JHtml :: _('behavior.mootools');
|
9 |
|
|
$document = JFactory :: getDocument();
|
10 |
19084
|
thanos.pap
|
$document -> addScript(JRoute :: _(JURI :: base() . 'components/com_openaire/js/tooltip.js'));
|
11 |
|
|
$document -> addScript(JRoute :: _(JURI :: base() . 'components/com_openaire/js/advancedsearchprojects.js'));
|
12 |
|
|
$document -> addStyleSheet(JRoute :: _(JURI :: base() . 'components/com_openaire/css/tooltip/tooltip1.css'));
|
13 |
|
|
$document -> addStyleSheet(JRoute :: _(JURI :: base() . 'templates/' . JFactory :: getApplication() -> getTemplate() . '/styles/openaire/css/tooltip.css'));
|
14 |
18541
|
thanos.pap
|
JView :: loadHelper('FilterHelper');
|
15 |
|
|
JView :: loadHelper('StatisticHelper');
|
16 |
17569
|
thanos.pap
|
|
17 |
|
|
?>
|
18 |
|
|
|
19 |
|
|
<div id="main-column">
|
20 |
18321
|
thanos.pap
|
<?php if (((($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) || ($this -> funders != NULL) || ($this -> fundingStreams != NULL) || ($this -> scientificAreas != NULL) || ($this -> startDate != -1) || ($this -> endDate != -1) || ($this -> sc39s != NULL)) && ($this -> result != NULL) && ($this -> result -> totalProjects > 0)) { ?>
|
21 |
17569
|
thanos.pap
|
<div id="left-column">
|
22 |
|
|
<div class="refineBox">
|
23 |
18541
|
thanos.pap
|
<?php $baseUrl = 'index.php?option=com_openaire&view=advancedsearchprojects&Itemid=' . $this -> itemId;
|
24 |
|
|
for ($i = 0; ($i < count($this -> keywords)) && ($i < count($this -> fields)) && ($i < count($this -> constraints)); $i++)
|
25 |
24347
|
thanos.pap
|
$baseUrl .= '&keyword%5B%5D=' . $this -> keywords[$i] . '&field%5B%5D=' . $this -> fields[$i] . '&constraint%5B%5D=' . $this -> constraints[$i];
|
26 |
18541
|
thanos.pap
|
foreach ($this -> funders as $funder)
|
27 |
24347
|
thanos.pap
|
$baseUrl .= '&funder%5B%5D=' . urlencode($funder);
|
28 |
18541
|
thanos.pap
|
foreach ($this -> fundingStreams as $fundingStream)
|
29 |
24347
|
thanos.pap
|
$baseUrl .= '&fundingStream%5B%5D=' . urlencode($fundingStream);
|
30 |
18541
|
thanos.pap
|
foreach ($this -> scientificAreas as $scientificArea)
|
31 |
24347
|
thanos.pap
|
$baseUrl .= '&scientificArea%5B%5D=' . urlencode($scientificArea);
|
32 |
18541
|
thanos.pap
|
$baseUrl .= '&startDate=' . $this -> startDate . '&startFromMonth=' . $this -> startFromMonth . '&startFromYear=' . $this -> startFromYear . '&startToMonth=' . $this -> startToMonth . '&startToYear=' . $this -> startToYear . '&endDate=' . $this -> endDate . '&endFromMonth=' . $this -> endFromMonth . '&endFromYear=' . $this -> endFromYear . '&endToMonth=' . $this -> endToMonth . '&endToYear=' . $this -> endToYear;
|
33 |
|
|
foreach ($this -> sc39s as $sc39)
|
34 |
24347
|
thanos.pap
|
$baseUrl .= '&sc39%5B%5D=' . urlencode($sc39 ? 'true' : 'false');
|
35 |
18541
|
thanos.pap
|
$baseUrl .= '&page=1&size=' . $this -> size . '&noscroll=true';
|
36 |
|
|
echo(FilterHelper :: formatFilters($this -> filters, $this -> result -> statistics, $baseUrl, '#projtab'));
|
37 |
|
|
echo(StatisticHelper :: formatStatistics($this -> result -> statistics, $this -> filters, $baseUrl, '#projtab')); ?>
|
38 |
17569
|
thanos.pap
|
</div>
|
39 |
|
|
</div>
|
40 |
|
|
<?php } ?>
|
41 |
|
|
<div id="right-column">
|
42 |
|
|
<?php echo($this -> loadTemplate('form'));
|
43 |
18321
|
thanos.pap
|
if ((($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) || ($this -> funders != NULL) || ($this -> fundingStreams != NULL) || ($this -> scientificAreas != NULL) || ($this -> startDate != -1) || ($this -> endDate != -1) || ($this -> sc39s != NULL)) {
|
44 |
17569
|
thanos.pap
|
echo($this -> loadTemplate('projects'));
|
45 |
|
|
} ?>
|
46 |
|
|
</div>
|
47 |
|
|
</div>
|