Project

General

Profile

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