1
|
<?php
|
2
|
|
3
|
defined('_JEXEC') or die('Access denied');
|
4
|
|
5
|
jimport('joomla.environment.uri');
|
6
|
jimport('joomla.methods');
|
7
|
|
8
|
$document = JFactory :: getDocument();
|
9
|
$document -> addStyleSheet(JRoute :: _(JURI :: base() . 'components/com_openaire/css/tabcontent.css'));
|
10
|
$document -> addScript(JRoute :: _(JURI :: base() . 'components/com_openaire/js/tabcontent.js'));
|
11
|
|
12
|
?>
|
13
|
|
14
|
|
15
|
<div class="searchBox">
|
16
|
<ul class="tabs">
|
17
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=search&Itemid=' . $this -> itemId . '&noscroll=true#alltab')); ?>"><?php echo(JText :: _('ALL')); ?></a></li>
|
18
|
<li class="selected"><a rel="publtab"><?php echo(JText :: _('PUBLICATIONS')); ?></a></li>
|
19
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchprojects&Itemid=' . $this -> itemId . '&noscroll=true#projtab')); ?>"><?php echo(JText :: _('PROJECTS')); ?></a></li>
|
20
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchpeople&Itemid=' . $this -> itemId . '&noscroll=true#peopletab')); ?>"><?php echo(JText :: _('PEOPLE')); ?></a></li>
|
21
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchorganizations&Itemid=' . $this -> itemId . '&noscroll=true#orgtab')); ?>"><?php echo(JText :: _('ORGANIZATIONS')); ?></a></li>
|
22
|
<li><a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchdatasources&Itemid=' . $this -> itemId . '&noscroll=true#dtsrctab')); ?>"><?php echo(JText :: _('DATASOURCES')); ?></a></li>
|
23
|
</ul>
|
24
|
<div class="tabcontents">
|
25
|
<div class="tabcontent" id="publtab">
|
26
|
<form method="get" action="<?php echo(JRoute :: _('index.php?option=com_openaire&view=advancedsearchpublications')); ?>">
|
27
|
<input type="hidden" name="Itemid" value="<?php echo($this -> itemId); ?>" />
|
28
|
<input type="hidden" name="noscroll" value="true" />
|
29
|
<div class="flowWrapper">
|
30
|
<?php if (($this -> keywords != NULL) && ($this -> fields != NULL) && ($this -> constraints != NULL)) {
|
31
|
for ($i = 0; ($i < count($this -> keywords)) && ($i < count($this -> fields)) && ($i < count($this -> constraints)); $i++) { ?>
|
32
|
<div class="srchNavTextAdvancedFilter" style="width: 90%">
|
33
|
<input type="text" name="keyword[]" class="advancedsearch" placeholder="<?php echo(JText :: _('SEARCH_KEYWORDS')); ?>" value="<?php echo($this -> keywords[$i]); ?>" /><input type="submit" value="<?php echo(JText :: _('SEARCH')); ?>" class="search-button" />
|
34
|
<select name="field[]" class="fieldSelector">
|
35
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: ALL); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchPublications :: ALL) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ALL_FIELDS')); ?></option>
|
36
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: TITLE); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchPublications :: TITLE) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('TITLE')); ?></option>
|
37
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: AUTHOR); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchPublications :: AUTHOR) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('AUTHOR')); ?></option>
|
38
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: PUBLISHER); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchPublications :: PUBLISHER) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('PUBLISHER')); ?></option>
|
39
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: SUBJECT); ?>"<?php echo(($this -> fields[$i] == OpenAireViewAdvancedSearchPublications :: SUBJECT) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('SUBJECT')); ?></option>
|
40
|
</select>
|
41
|
<select name="constraint[]" class="wordTypeSelector">
|
42
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: ALL); ?>"<?php echo(($this -> constraints[$i] == OpenAireViewAdvancedSearchPublications :: ALL) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ALL_WORDS')); ?></option>
|
43
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: ANY); ?>"<?php echo(($this -> constraints[$i] == OpenAireViewAdvancedSearchPublications :: ANY) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ANY_WORDS')); ?></option>
|
44
|
</select>
|
45
|
|
46
|
<div class="addNewFilter">
|
47
|
<img src="<?php echo(JURI :: base() . 'components/com_openaire/images/addElementSelector.png'); ?>" width="25" height="25" />
|
48
|
</div>
|
49
|
<div class="removeNewFilter">
|
50
|
<img src="<?php echo(JURI :: base() . 'components/com_openaire/images/removeElementSelector.png'); ?>" width="25" height="25"<?php echo(((count($this -> keywords) == 1) || (count($this -> fields) == 1) || (count($this -> constraints) == 1)) ? ' style="display: none;"' : ''); ?> />
|
51
|
</div>
|
52
|
</div>
|
53
|
<?php }
|
54
|
} else { ?>
|
55
|
<div class="srchNavTextAdvancedFilter">
|
56
|
<input type="text" class="textsearch" name="keyword[]" placeholder="<?php echo(JText :: _('SEARCH_KEYWORDS')); ?>" /><input type="submit" value="<?php echo(JText :: _('SEARCH')); ?>" class="search-button" />
|
57
|
<select name="field[]" class="fieldSelector">
|
58
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: ALL); ?>"><?php echo(JText :: _('ALL_FIELDS')); ?></option>
|
59
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: TITLE); ?>"><?php echo(JText :: _('TITLE')); ?></option>
|
60
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: AUTHOR); ?>"><?php echo(JText :: _('AUTHOR')); ?></option>
|
61
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: PUBLISHER); ?>"><?php echo(JText :: _('PUBLISHER')); ?></option>
|
62
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: SUBJECT); ?>"><?php echo(JText :: _('SUBJECT')); ?></option>
|
63
|
</select>
|
64
|
<select name="constraint[]" class="wordTypeSelector">
|
65
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: ALL); ?>"><?php echo(JText :: _('ALL_WORDS')); ?></option>
|
66
|
<option value="<?php echo(OpenAireViewAdvancedSearchPublications :: ANY); ?>"><?php echo(JText :: _('ANY_WORDS')); ?></option>
|
67
|
</select>
|
68
|
<div class="addNewFilter">
|
69
|
<img src="<?php echo(JURI :: base() . 'components/com_openaire/images/addElementSelector.png'); ?>" width="25" height="25" />
|
70
|
</div>
|
71
|
<div class="removeNewFilter">
|
72
|
<img src="<?php echo(JURI :: base() . 'components/com_openaire/images/removeElementSelector.png'); ?>" width="25" height="25" style="display: none;" />
|
73
|
</div>
|
74
|
</div>
|
75
|
<?php } ?>
|
76
|
<div class="advancedPageResults">
|
77
|
<?php echo(JText :: _('RESULTS_PER_PAGE_')); ?>
|
78
|
<select name="size" class="resultsSelections">
|
79
|
<?php for ($size = OpenAireViewAdvancedSearchPublications :: MIN_SIZE; $size <= OpenAireViewAdvancedSearchPublications :: MAX_SIZE; $size += OpenAireViewAdvancedSearchPublications :: SIZE_STEP) { ?>
|
80
|
<option value="<?php echo($size); ?>"<?php echo(($size == $this -> size) ? ' selected="selected"' : ''); ?>><?php echo($size); ?></option>
|
81
|
<?php } ?>
|
82
|
</select>
|
83
|
</div>
|
84
|
</div>
|
85
|
<div class="flowWrapper">
|
86
|
<div class="advancedSearchOpt">
|
87
|
<a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=searchpublications&Itemid=' . $this -> itemId . '&noscroll=true#publtab')); ?>"><?php echo(JText :: _('SIMPLE_SEARCH_')); ?></a>
|
88
|
</div>
|
89
|
</div>
|
90
|
<?php if ($this -> statistics == NULL) { ?>
|
91
|
<div class="error"><?php echo(JText :: _('ERROR_RETRIEVING_STATISTICS')); ?></div>
|
92
|
<?php } else { ?>
|
93
|
<div class="compileAdvancedSearchFilters">
|
94
|
<div class="resultDisplayElement">
|
95
|
<div class="header">
|
96
|
<h3>
|
97
|
<span class="limitLabel"><?php echo(JText :: _('LIMITS')); ?></span>
|
98
|
<span id="noLimits" class="limitNoValue"><?php echo(JText :: _('___NONE')); ?></span>
|
99
|
</h3>
|
100
|
<input type="hidden" id="from" value="<?php echo(JText :: _('FROM')); ?>" />
|
101
|
<input type="hidden" id="to" value="<?php echo(JText :: _('TO')); ?>" />
|
102
|
<a id="clearAll" class="editClear"><?php echo(JText :: _('_CLEAR_ALL_')); ?></a>
|
103
|
</div>
|
104
|
<div class="filters">
|
105
|
<p id="typeLimits" style="float: none;">
|
106
|
<?php echo(JText :: _('DOCUMENT_TYPES_')); ?>
|
107
|
<span></span>
|
108
|
</p>
|
109
|
<p id="languageLimits" style="float: none;">
|
110
|
<?php echo(JText :: _('DOCUMENT_LANGUAGES_')); ?>
|
111
|
<span></span>
|
112
|
</p>
|
113
|
<p id="funderLimits" style="float: none;">
|
114
|
<?php echo(JText :: _('FUNDERS_')); ?>
|
115
|
<span></span>
|
116
|
</p>
|
117
|
<p id="fundingStreamLimits" style="float: none;">
|
118
|
<?php echo(JText :: _('FUNDING_STREAMS_')); ?>
|
119
|
<span></span>
|
120
|
</p>
|
121
|
<p id="scientificAreaLimits" style="float: none;">
|
122
|
<?php echo(JText :: _('SCIENTIFIC_AREAS_')); ?>
|
123
|
<span></span>
|
124
|
</p>
|
125
|
<p id="dateLimits" style="float: none;">
|
126
|
<?php echo(JText :: _('PUBLICATION_DATE_')); ?>
|
127
|
<span></span>
|
128
|
</p>
|
129
|
<p id="accessModeLimits" style="float: none;">
|
130
|
<?php echo(JText :: _('ACCESS_MODES_')); ?>
|
131
|
<span></span>
|
132
|
</p>
|
133
|
<p id="datasourceLimits" style="float: none;">
|
134
|
<?php echo(JText :: _('DATASOURCES_')); ?>
|
135
|
<span></span>
|
136
|
</p>
|
137
|
</div>
|
138
|
</div>
|
139
|
<?php if (($this -> result != NULL) && ($this -> result -> publications != NULL)) { ?>
|
140
|
<div class="viewmore">
|
141
|
<a><?php echo(JText :: _('VIEW_ADD_FILTERS')); ?></a>
|
142
|
</div>
|
143
|
<?php } ?>
|
144
|
<div class="leftAdvanced">
|
145
|
<div id="type" class="filterItem">
|
146
|
<?php if ($this -> statistics['type'] -> data == NULL) { ?>
|
147
|
<div class="box-info"><?php echo($this -> statistics['type'] -> error); ?></div>
|
148
|
<?php } else { ?>
|
149
|
<a class="editRef">
|
150
|
<h2><?php echo($this -> statistics['type'] -> title); ?></h2>
|
151
|
<div class="editClearOptions">
|
152
|
<?php echo(JText :: _('EDIT')); ?>
|
153
|
</div>
|
154
|
</a>
|
155
|
<div class="hiddenAdvancedSearch flowWrapper">
|
156
|
<?php foreach ($this -> types as $type) { ?>
|
157
|
<input type="hidden" name="type[]" value="<?php echo($type); ?>" />
|
158
|
<?php } ?>
|
159
|
<div class="updateFilters">
|
160
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
161
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
162
|
</div>
|
163
|
<div class="filterLimits">
|
164
|
<input class="filterLimits" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
|
165
|
</div>
|
166
|
<div class="valueSelector">
|
167
|
<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a> | <a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
|
168
|
</div>
|
169
|
<div class="filterListingBlock">
|
170
|
<?php foreach ($this -> statistics['type'] -> data as $row) { ?>
|
171
|
<div class="filterRow">
|
172
|
<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> types, TRUE) ? ' checked="checked"' : ''); ?> />
|
173
|
<label><?php echo($row -> name); ?></label>
|
174
|
</div>
|
175
|
<?php } ?>
|
176
|
</div>
|
177
|
</div>
|
178
|
<?php } ?>
|
179
|
</div>
|
180
|
<div id="languageSearch" class="filterItem">
|
181
|
<?php if ($this -> statistics['languageFilter'] -> data == NULL) { ?>
|
182
|
<div class="box-info"><?php echo($this -> statistics['languageFilter'] -> error); ?></div>
|
183
|
<?php } else { ?>
|
184
|
<a class="editRef">
|
185
|
<h2><?php echo($this -> statistics['languageFilter'] -> title); ?></h2>
|
186
|
<div class="editClearOptions">
|
187
|
<?php echo(JText :: _('EDIT')); ?>
|
188
|
</div>
|
189
|
</a>
|
190
|
<div class="hiddenAdvancedSearch flowWrapper">
|
191
|
<?php foreach ($this -> languages as $language) { ?>
|
192
|
<input type="hidden" name="languageSearch[]" value="<?php echo($language); ?>" />
|
193
|
<?php } ?>
|
194
|
<div class="updateFilters">
|
195
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
196
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
197
|
</div>
|
198
|
<div class="filterLimits">
|
199
|
<input class="filterLimits" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
|
200
|
</div>
|
201
|
<div class="valueSelector">
|
202
|
<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a> | <a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
|
203
|
</div>
|
204
|
<div class="filterListingBlock">
|
205
|
<?php foreach ($this -> statistics['languageFilter'] -> data as $row) { ?>
|
206
|
<div class="filterRow">
|
207
|
<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> languages, TRUE) ? ' checked="checked"' : ''); ?> />
|
208
|
<label><?php echo($row -> name); ?></label>
|
209
|
</div>
|
210
|
<?php } ?>
|
211
|
</div>
|
212
|
</div>
|
213
|
<?php } ?>
|
214
|
</div>
|
215
|
<div id="funder" class="filterItem">
|
216
|
<?php if ($this -> statistics['funder'] -> data == NULL) { ?>
|
217
|
<div class="box-info"><?php echo($this -> statistics['funder'] -> error); ?></div>
|
218
|
<?php } else { ?>
|
219
|
<a class="editRef">
|
220
|
<h2><?php echo($this -> statistics['funder'] -> title); ?></h2>
|
221
|
<div class="editClearOptions">
|
222
|
<?php echo(JText :: _('EDIT')); ?>
|
223
|
</div>
|
224
|
</a>
|
225
|
<div class="hiddenAdvancedSearch flowWrapper">
|
226
|
<?php foreach ($this -> funders as $funder) { ?>
|
227
|
<input type="hidden" name="funder[]" value="<?php echo($funder); ?>" />
|
228
|
<?php } ?>
|
229
|
<div class="updateFilters">
|
230
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
231
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
232
|
</div>
|
233
|
<div class="filterLimits">
|
234
|
<input class="filterLimits" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
|
235
|
</div>
|
236
|
<div class="valueSelector">
|
237
|
<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a> | <a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
|
238
|
</div>
|
239
|
<div class="filterListingBlock">
|
240
|
<?php foreach ($this -> statistics['funder'] -> data as $row) { ?>
|
241
|
<div class="filterRow">
|
242
|
<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> funders, TRUE) ? ' checked="checked"' : ''); ?> />
|
243
|
<label><?php echo($row -> name); ?></label>
|
244
|
</div>
|
245
|
<?php } ?>
|
246
|
</div>
|
247
|
</div>
|
248
|
<?php } ?>
|
249
|
</div>
|
250
|
<div id="fundingStream" class="filterItem">
|
251
|
<?php if ($this -> statistics['fundingStream'] -> data == NULL) { ?>
|
252
|
<div class="box-info"><?php echo($this -> statistics['fundingStream'] -> error); ?></div>
|
253
|
<?php } else { ?>
|
254
|
<a class="editRef">
|
255
|
<h2><?php echo($this -> statistics['fundingStream'] -> title); ?></h2>
|
256
|
<div class="editClearOptions">
|
257
|
<?php echo(JText :: _('EDIT')); ?>
|
258
|
</div>
|
259
|
</a>
|
260
|
<div class="hiddenAdvancedSearch flowWrapper">
|
261
|
<?php foreach ($this -> fundingStreams as $fundingStream) { ?>
|
262
|
<input type="hidden" name="fundingStream[]" value="<?php echo($fundingStream); ?>" />
|
263
|
<?php } ?>
|
264
|
<div class="updateFilters">
|
265
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
266
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
267
|
</div>
|
268
|
<div class="filterLimits">
|
269
|
<input class="filterLimits" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
|
270
|
</div>
|
271
|
<div class="valueSelector">
|
272
|
<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a> | <a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
|
273
|
</div>
|
274
|
<div class="filterListingBlock">
|
275
|
<?php foreach ($this -> statistics['fundingStream'] -> data as $row) { ?>
|
276
|
<div class="filterRow">
|
277
|
<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> fundingStreams, TRUE) ? ' checked="checked"' : ''); ?> />
|
278
|
<label><?php echo($row -> name); ?></label>
|
279
|
</div>
|
280
|
<?php } ?>
|
281
|
</div>
|
282
|
</div>
|
283
|
<?php } ?>
|
284
|
</div>
|
285
|
</div>
|
286
|
<div class="rightAdvanced">
|
287
|
<div id="scientificArea" class="filterItem">
|
288
|
<?php if ($this -> statistics['scientificArea'] -> data == NULL) { ?>
|
289
|
<div class="box-info"><?php echo($this -> statistics['scientificArea'] -> error); ?></div>
|
290
|
<?php } else { ?>
|
291
|
<a class="editRef">
|
292
|
<h2><?php echo($this -> statistics['scientificArea'] -> title); ?></h2>
|
293
|
<div class="editClearOptions">
|
294
|
<?php echo(JText :: _('EDIT')); ?>
|
295
|
</div>
|
296
|
</a>
|
297
|
<div class="hiddenAdvancedSearch flowWrapper">
|
298
|
<?php foreach ($this -> scientificAreas as $scientificArea) { ?>
|
299
|
<input type="hidden" name="scientificArea[]" value="<?php echo($scientificArea); ?>" />
|
300
|
<?php } ?>
|
301
|
<div class="updateFilters">
|
302
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
303
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
304
|
</div>
|
305
|
<div class="filterLimits">
|
306
|
<input class="filterLimits" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
|
307
|
</div>
|
308
|
<div class="valueSelector">
|
309
|
<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a> | <a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
|
310
|
</div>
|
311
|
<div class="filterListingBlock">
|
312
|
<?php foreach ($this -> statistics['scientificArea'] -> data as $row) { ?>
|
313
|
<div class="filterRow">
|
314
|
<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> scientificAreas, TRUE) ? ' checked="checked"' : ''); ?> />
|
315
|
<label><?php echo($row -> name); ?></label>
|
316
|
</div>
|
317
|
<?php } ?>
|
318
|
</div>
|
319
|
</div>
|
320
|
<?php } ?>
|
321
|
</div>
|
322
|
<div id="date" class="filterItem">
|
323
|
<?php if ($this -> statistics['year'] -> data == NULL) { ?>
|
324
|
<div class="box-info"><?php echo($this -> statistics['year'] -> error); ?></div>
|
325
|
<?php } else { ?>
|
326
|
<a class="editRef">
|
327
|
<h2><?php echo(JText :: _('PUBLICATION_DATE')); ?></h2>
|
328
|
<div class="editClearOptions">
|
329
|
<?php echo(JText :: _('EDIT')); ?>
|
330
|
</div>
|
331
|
</a>
|
332
|
<div class="hiddenAdvancedSearch flowWrapper">
|
333
|
<input type="hidden" name="date" value="<?php echo($this -> date); ?>" />
|
334
|
<input type="hidden" name="fromMonth" value="<?php echo($this -> fromMonth); ?>" />
|
335
|
<input type="hidden" name="fromYear" value="<?php echo($this -> fromYear); ?>" />
|
336
|
<input type="hidden" name="toMonth" value="<?php echo($this -> toMonth); ?>" />
|
337
|
<input type="hidden" name="toYear" value="<?php echo($this -> toYear); ?>" />
|
338
|
<div class="updateFilters">
|
339
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
340
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
341
|
</div>
|
342
|
<div class="selector">
|
343
|
<select class="dateType">
|
344
|
<option value="-1"<?php echo(($this -> date == -1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('ANY')); ?></option>
|
345
|
<option value="0"<?php echo(($this -> date == 0) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_SPECIFIED_DATE_RANGE')); ?></option>
|
346
|
<option value="1"<?php echo(($this -> date == 1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_ONE_MONTH')); ?></option>
|
347
|
<option value="2"<?php echo(($this -> date == 2) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_2_MONTHS')); ?></option>
|
348
|
<option value="3"<?php echo(($this -> date == 3) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_3_MONTHS')); ?></option>
|
349
|
<option value="6"<?php echo(($this -> date == 6) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_6_MONTHS')); ?></option>
|
350
|
<option value="12"<?php echo(($this -> date == 12) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_12_MONTHS')); ?></option>
|
351
|
<option value="24"<?php echo(($this -> date == 24) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_2_YEARS')); ?></option>
|
352
|
<option value="36"<?php echo(($this -> date == 36) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_3_YEARS')); ?></option>
|
353
|
<option value="60"<?php echo(($this -> date == 60) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_5_YEARS')); ?></option>
|
354
|
<option value="120"<?php echo(($this -> date == 120) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('IN_THE_LAST_10_YEARS')); ?></option>
|
355
|
</select>
|
356
|
</div>
|
357
|
<div class="fromDate" style="display: <?php echo(($this -> date == 0) ? 'block' : 'none'); ?>;">
|
358
|
<h3><?php echo(JText :: _('FROM')); ?></h3>
|
359
|
<select class="monthFrom">
|
360
|
<option value="1"<?php echo(($this -> fromMonth == 1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JANUARY__')); ?></option>
|
361
|
<option value="2"<?php echo(($this -> fromMonth == 2) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('FEBRUARY__')); ?></option>
|
362
|
<option value="3"<?php echo(($this -> fromMonth == 3) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MARCH__')); ?></option>
|
363
|
<option value="4"<?php echo(($this -> fromMonth == 4) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('APRIL__')); ?></option>
|
364
|
<option value="5"<?php echo(($this -> fromMonth == 5) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MAY__')); ?></option>
|
365
|
<option value="6"<?php echo(($this -> fromMonth == 6) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JUNE__')); ?></option>
|
366
|
<option value="7"<?php echo(($this -> fromMonth == 7) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JULY__')); ?></option>
|
367
|
<option value="8"<?php echo(($this -> fromMonth == 8) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('AUGUST__')); ?></option>
|
368
|
<option value="9"<?php echo(($this -> fromMonth == 9) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('SEPTEMBER__')); ?></option>
|
369
|
<option value="10"<?php echo(($this -> fromMonth == 10) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('OCTOBER__')); ?></option>
|
370
|
<option value="11"<?php echo(($this -> fromMonth == 11) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('NOVEMBER__')); ?></option>
|
371
|
<option value="12"<?php echo(($this -> fromMonth == 12) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('DECEMBER__')); ?></option>
|
372
|
</select>
|
373
|
<select class="yearFrom">
|
374
|
<?php for ($year = $this -> minYear; $year <= $this -> maxYear; $year++) { ?>
|
375
|
<option value="<?php echo($year); ?>"<?php echo(($year == $this -> fromYear) ? ' selected="selected"' : ''); ?>><?php echo($year); ?></option>
|
376
|
<?php } ?>
|
377
|
</select>
|
378
|
</div>
|
379
|
<div class="toDate" style="display: <?php echo(($this -> date == 0) ? 'block' : 'none'); ?>;">
|
380
|
<h3><?php echo(JText :: _('TO')); ?></h3>
|
381
|
<select class="monthTo">
|
382
|
<option value="1"<?php echo(($this -> toMonth == 1) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JANUARY__')); ?></option>
|
383
|
<option value="2"<?php echo(($this -> toMonth == 2) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('FEBRUARY__')); ?></option>
|
384
|
<option value="3"<?php echo(($this -> toMonth == 3) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MARCH__')); ?></option>
|
385
|
<option value="4"<?php echo(($this -> toMonth == 4) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('APRIL__')); ?></option>
|
386
|
<option value="5"<?php echo(($this -> toMonth == 5) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('MAY__')); ?></option>
|
387
|
<option value="6"<?php echo(($this -> toMonth == 6) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JUNE__')); ?></option>
|
388
|
<option value="7"<?php echo(($this -> toMonth == 7) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('JULY__')); ?></option>
|
389
|
<option value="8"<?php echo(($this -> toMonth == 8) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('AUGUST__')); ?></option>
|
390
|
<option value="9"<?php echo(($this -> toMonth == 9) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('SEPTEMBER__')); ?></option>
|
391
|
<option value="10"<?php echo(($this -> toMonth == 10) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('OCTOBER__')); ?></option>
|
392
|
<option value="11"<?php echo(($this -> toMonth == 11) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('NOVEMBER__')); ?></option>
|
393
|
<option value="12"<?php echo(($this -> toMonth == 12) ? ' selected="selected"' : ''); ?>><?php echo(JText :: _('DECEMBER__')); ?></option>
|
394
|
</select>
|
395
|
<select class="yearTo">
|
396
|
<?php for ($year = $this -> minYear; $year <= $this -> maxYear; $year++) { ?>
|
397
|
<option value="<?php echo($year); ?>"<?php echo(($year == $this -> toYear) ? ' selected="selected"' : ''); ?>><?php echo($year); ?></option>
|
398
|
<?php } ?>
|
399
|
</select>
|
400
|
</div>
|
401
|
</div>
|
402
|
<?php } ?>
|
403
|
</div>
|
404
|
<div id="accessMode" class="filterItem">
|
405
|
<?php if ($this -> statistics['accessMode'] -> data == NULL) { ?>
|
406
|
<div class="box-info"><?php echo($this -> statistics['accessMode'] -> error); ?></div>
|
407
|
<?php } else { ?>
|
408
|
<a class="editRef">
|
409
|
<h2><?php echo($this -> statistics['accessMode'] -> title); ?></h2>
|
410
|
<div class="editClearOptions">
|
411
|
<?php echo(JText :: _('EDIT')); ?>
|
412
|
</div>
|
413
|
</a>
|
414
|
<div class="hiddenAdvancedSearch flowWrapper">
|
415
|
<?php foreach ($this -> accessModes as $accessMode) { ?>
|
416
|
<input type="hidden" name="accessMode[]" value="<?php echo($accessMode); ?>" />
|
417
|
<?php } ?>
|
418
|
<div class="updateFilters">
|
419
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
420
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
421
|
</div>
|
422
|
<div class="filterLimits">
|
423
|
<input class="filterLimits" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
|
424
|
</div>
|
425
|
<div class="valueSelector">
|
426
|
<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a> | <a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
|
427
|
</div>
|
428
|
<div class="filterListingBlock">
|
429
|
<?php foreach ($this -> statistics['accessMode'] -> data as $row) { ?>
|
430
|
<div class="filterRow">
|
431
|
<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> accessModes, TRUE) ? ' checked="checked"' : ''); ?> />
|
432
|
<label><?php echo($row -> name); ?></label>
|
433
|
</div>
|
434
|
<?php } ?>
|
435
|
</div>
|
436
|
</div>
|
437
|
<?php } ?>
|
438
|
</div>
|
439
|
<div id="datasource" class="filterItem">
|
440
|
<?php if ($this -> statistics['datasource'] -> data == NULL) { ?>
|
441
|
<div class="box-info"><?php echo($this -> statistics['datasource'] -> error); ?></div>
|
442
|
<?php } else { ?>
|
443
|
<a class="editRef">
|
444
|
<h2><?php echo($this -> statistics['datasource'] -> title); ?></h2>
|
445
|
<div class="editClearOptions">
|
446
|
<?php echo(JText :: _('EDIT')); ?>
|
447
|
</div>
|
448
|
</a>
|
449
|
<div class="hiddenAdvancedSearch flowWrapper">
|
450
|
<?php foreach ($this -> datasources as $datasource) { ?>
|
451
|
<input type="hidden" name="datasource[]" value="<?php echo($datasource); ?>" />
|
452
|
<?php } ?>
|
453
|
<div class="updateFilters">
|
454
|
<input type="button" value="<?php echo(JText :: _('OK')); ?>" class="button-default okElement" />
|
455
|
<input type="button" value="<?php echo(JText :: _('CANCEL')); ?>" class="button-default cancelElement" />
|
456
|
</div>
|
457
|
<div class="filterLimits">
|
458
|
<input class="filterLimits" type="text" placeholder="<?php echo(JText :: _('START_TYPING_TO_LIMIT_YOUR_SELECTIONS')); ?>" />
|
459
|
</div>
|
460
|
<div class="valueSelector">
|
461
|
<a class="selectAll"><?php echo(JText :: _('SELECT_ALL')); ?></a> | <a class="deselectAll"><?php echo(JText :: _('DESELECT_ALL')); ?></a>
|
462
|
</div>
|
463
|
<div class="filterListingBlock">
|
464
|
<?php foreach ($this -> statistics['datasource'] -> data as $row) { ?>
|
465
|
<div class="filterRow">
|
466
|
<input type="checkbox" value="<?php echo($row -> id); ?>"<?php echo(in_array($row -> id, $this -> datasources, TRUE) ? ' checked="checked"' : ''); ?> />
|
467
|
<label><?php echo($row -> name); ?></label>
|
468
|
</div>
|
469
|
<?php } ?>
|
470
|
</div>
|
471
|
</div>
|
472
|
<?php } ?>
|
473
|
</div>
|
474
|
</div>
|
475
|
</div>
|
476
|
<?php } ?>
|
477
|
</form>
|
478
|
</div>
|
479
|
</div>
|
480
|
</div>
|