1
|
<?php
|
2
|
|
3
|
defined('_JEXEC') or die('Access denied');
|
4
|
|
5
|
jimport('joomla.environment.uri');
|
6
|
jimport('joomla.html.html');
|
7
|
|
8
|
JHtml :: _('behavior.mootools');
|
9
|
$document = JFactory :: getDocument();
|
10
|
$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
|
JView :: loadHelper('FilterHelper');
|
15
|
JView :: loadHelper('StatisticHelper');
|
16
|
|
17
|
?>
|
18
|
|
19
|
<div id="main-column">
|
20
|
<?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
|
<div id="left-column">
|
22
|
<div class="refineBox">
|
23
|
<?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
|
$baseUrl .= '&keyword%5B%5D=' . $this -> keywords[$i] . '&field%5B%5D=' . $this -> fields[$i] . '&constraint%5B%5D=' . $this -> constraints[$i];
|
26
|
foreach ($this -> funders as $funder)
|
27
|
$baseUrl .= '&funder%5B%5D=' . urlencode($funder);
|
28
|
foreach ($this -> fundingStreams as $fundingStream)
|
29
|
$baseUrl .= '&fundingStream%5B%5D=' . urlencode($fundingStream);
|
30
|
foreach ($this -> scientificAreas as $scientificArea)
|
31
|
$baseUrl .= '&scientificArea%5B%5D=' . urlencode($scientificArea);
|
32
|
$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
|
$baseUrl .= '&sc39%5B%5D=' . urlencode($sc39 ? 'true' : 'false');
|
35
|
$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
|
</div>
|
39
|
</div>
|
40
|
<?php } ?>
|
41
|
<div id="right-column">
|
42
|
<?php echo($this -> loadTemplate('form'));
|
43
|
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
|
echo($this -> loadTemplate('projects'));
|
45
|
} ?>
|
46
|
</div>
|
47
|
</div>
|
48
|
|