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