-
Notifications
You must be signed in to change notification settings - Fork 2
/
results.php
313 lines (309 loc) · 11 KB
/
results.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<?php
include('functions.php');
header("Content-Type: text/html;charset=utf-8");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>GRID</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style_trim.css">
<link rel="stylesheet" type="text/css" href="css/menu_tools_style.css">
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
<link rel="stylesheet" type="text/css" href="//file.myfontastic.com/VDXsxxmWcbZZG8xXax2UK4/icons.css" >
<!-- <script type="text/javascript" src="JS/jquery-1.12.4.js"></script> -->
<script
src="//code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script type="text/javascript" src="//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="//cdn.datatables.net/plug-ins/1.10.16/features/scrollResize/dataTables.scrollResize.min.js"></script>
<script type="text/javascript">
//Filter for the Trim tool: Filters the data table according to the selected color (button).
function fun(value) {
for (var x = 1; x < 7; x++) {
if (x < value) {
$('#datos td.level' + x).parent('tr').addClass('hidden');
} else {
$('#datos td.level' + x).parent('tr').removeClass('hidden');
}
}
}
function show_valueS(x) {
document.getElementById("CI").innerHTML = x;
}
function show_valueE(x) {
document.getElementById("EC").innerHTML = x;
}
// Filter visualization options: allows filtering according to the selected criteria.
function hideColumns(sel) {
if (sel == 0) {
for (var i = 1; i <= 6; i++) {
$('.col_' + i).show();
}
} else {
for (var i = 1; i <= 6; i++) {
$('.col_' + i).hide();
}
$('.col_' + sel).show();
}
}
</script>
<script type="text/javascript">
$(document).ready(function () {
var oTablaDatos = $('#datos').DataTable({
scrollResize: true,
scrollY: 500,
scrollX:100,
scrollCollapse: true,
paging: false,
// "order": [
// [0, "asc"]
// ],
searching: true
// "columnDefs": [{
// "targets": [1],
// "visible": true
// }]
});
});
</script>
</head>
<body>
<main class="internalMain">
<header class="internalHeader">
<div class="logoDaCSI internalLogo">
<img src="./img/DaSCI_logo_180px.png" alt="Logo ">
</div>
<div class="logo2Tuplas">
<img src="./img/internal_header.png" alt="Logo ">
</div>
<div class="logoUGR internalLogo">
<img src="./img/UGR_logo_180px.png " alt="Logo ">
</div>
</header>
<nav class="navBar">
<div class='cssmenu toolsMenuContainer'>
<ul class="siteMenu">
<li class="menuItem">
<a> Visualizations Options</a>
<ul class="ul_menu">
<li class="visualization" id="1er_visualization" value="0" onclick="hideColumns(this.value)">All Information</li>
<li class="visualization" value="1" onclick="hideColumns(this.value)">Collective Clarity</li>
<li class="visualization" value="2" onclick="hideColumns(this.value)">Collective Writting</li>
<li class="visualization" value="3" onclick="hideColumns(this.value)">Collective Presence</li>
<li class="visualization" value="4" onclick="hideColumns(this.value)">Collective Answering Scale</li>
<li class="visualization" value="5" onclick="hideColumns(this.value)">Average Revelance</li>
<li class="visualization" value="6" onclick="hideColumns(this.value)">Consensus</li>
</ul>
</li>
<li class="menuItem">
<a> Trim Tool</a>
<ul>
<li class=li_li_menu>
<div class="options_bar" id="Consistency">
<p class="pTools"> Trim Tool: visualizes crop items below the following label</p>
<div class='btns'>
<label>
<input checked='' name='button-group' type='radio' value=1 class="bc" onclick="fun(this.value)">
<span class='btn first'>S
<sub>0</sub>
</span>
</label>
<label>
<input name='button-group' type='radio' value=2 class="bc" onclick="fun(this.value)">
<span class='btn'>S
<sub>1</sub>
</span>
</label>
<label>
<input name='button-group' type='radio' value=3 class="bc" onclick="fun(this.value)">
<span class='btn'>S
<sub>2</sub>
</span>
</label>
<label>
<input name='button-group' type='radio' value='4' class="bc" onclick="fun(this.value)">
<span class='btn'>S
<sub>3</sub>
</span>
</label>
<label>
<input name='button-group' type='radio' value='5' class="bc" onclick="fun(this.value)">
<span class='btn'>S
<sub>4</sub>
</span>
</label>
<label>
<input name='button-group' type='radio' value='6' class="bc" onclick="fun(this.value)">
<span class='btn'>S
<sub>5</sub>
</span>
</label>
<label>
<input name='button-group' type='radio' value='7' class="bc" onclick="fun(this.value)">
<span class='btn last'>S
<sub>6</sub>
</span>
</label>
</div>
</div>
</li>
</ul>
</li>
<li class="menuItem">
<a href="#"> Satisfiable Consistency</a>
<ul>
<li class=li_li_menu>
<div class="options_bar" id="Consistency_Index">
<p class="pTools">Satisfiable Consistency Level: </p>
<form name="consistency_form" method="POST">
<input type="range" name="consistency_level" min="0" max="1" step=".25" value=".75" class="slider" id="Consistency_Index"
onchange="show_valueS(this.value);">
<br>
<label name="CI" id="CI">.75</label>
</form>
</div>
</li>
</ul>
</li>
</ul>
</div>
<div class="siteMenuContainer">
<ul class="siteMenu">
<li class="menuItem">
<<a href="index.html">Home</a>
</li>
<li class="menuItem">
<<a href="import.html">Import</a>
</li>
<li class="menuItem">
<a href="authors.html">Authors</a>
</li>
<li class="menuItem">
<a href="https://github.com/NoeZermeno/2tuple-fuzzy-delphi" target="_blank">Source Code</a>
</li>
</ul>
</div>
</nav>
<article class="container">
<div class="mainResultsContainer">
<!--The title container is at the end of the document to obtain the result of all calculations.-->
<div class="tableContainer">
<table id="datos" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>Num</th>
<th>Item</th>
<th class="col_1">Collective Clarity</th>
<th class="col_2">Collective Writing</th>
<th class="col_3">Collective Presence</th>
<th class="col_4">Collective Scale</th>
<th class="col_5">Collective Relevance</th>
<th>Score</th>
<th class="col_6">Consensus</th>
<th>Final Results</th>
</tr>
</thead>
<tbody id=tableDatosBody>
<?php
$label_output = ""; //Variable temporal mientras se obtienen los resultados finales
/*--Row creation--*/
for ($y = 1; $y <= $total; $y++) {
?>
<tr>
<td>
<?php if ($y < 10) echo "I<sub>0" . $y . "<sub>";
else echo "I<sub>" . $y . "<sub>";
?>
</td>
<td id="questions">
<?php echo linguisticLabel('item', $y - 1); ?>
</td>
<td class="col_1" id="cClarity">
<?php //echo completeTuple(Normalize(linguisticLabel('CC',$y-1),13,7),7);?>
<?php completeTuple(Normalize(linguisticLabel('CC', $y - 1), $lcm, $output_scale), $output_scale); ?>
</td>
<td class="col_2" id="cWriting">
<?php completeTuple(Normalize(linguisticLabel('CW', $y - 1), $lcm, $output_scale), $output_scale); ?>
<?php //echo linguisticLabel('CW',$y-1) ?>
</td>
<td class="col_3" id="cPresence">
<?php completeTuple(Normalize(linguisticLabel('CP', $y - 1), $lcm, $output_scale), $output_scale); ?>
<?php //echo linguisticLabel('CP',$y-1);?>
</td>
<td class="col_4" id="cScale">
<?php completeTuple(Normalize(linguisticLabel('CAS', $y - 1), $lcm, $output_scale), $output_scale); ?>
<?php //echo linguisticLabel('CAS',$y-1); ?>
</td>
<td class="col_5" id="cRelevance">
<?php printf("%.3f", linguisticLabel('CR', $y - 1)); ?>
</td>
<td id="score">
<?php completeTuple(Normalize(linguisticLabel('SCORE', $y - 1), $lcm, $output_scale), $output_scale); ?>
<?php //echo linguisticLabel('SCORE',$y-1);?>
</td>
<td class="col_6">
<?php
if (consensus($y - 1)) {
echo "<img src='./img/check.png' width=25px>";
} else {
echo "<img src='./img/no_check.png' width=25px>";
}
?>
</td>
<td class=" level<?php echo level(Normalize(linguisticLabel('SCORE', $y - 1), $lcm, $output_scale)); ?>">
<?php lLabel(Normalize(linguisticLabel('SCORE', $y - 1), $lcm, $output_scale)); ?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th align="right">items</th>
<th align="right">Results</th>
<th class="col_1">
<?php completeTuple(Normalize(collective_criteria('CC'), $lcm, $output_scale), $output_scale); ?>
</th>
<th class="col_2">
<?php completeTuple(Normalize(collective_criteria('CW'), $lcm, $output_scale), $output_scale); ?>
</th>
<th class="col_3">
<?php completeTuple(Normalize(collective_criteria('CP'), $lcm, $output_scale), $output_scale); ?>
</th>
<th class="col_4">
<?php completeTuple(Normalize(collective_criteria('CAS'), $lcm, $output_scale), $output_scale); ?>
</th>
<th class="col_5"></th>
<th class="col_6"></th>
<th></th>
<th></th>
</tr>
</tfoot>
</table>
</div>
<div class="titleText">
<h2 class="titleContainer">QUESTIONNAIRE Total Score =
<?php completeTuple(Normalize(total_score(), $lcm, $output_scale), $output_scale); ?>
</h2>
</div>
</div>
</article>
<footer>
<div class="textFooter">
<p>License CC-By-NC-SA, DaSCI Andalusian Research Institute on Data Science and Computational Intelligence</p>
</div>
<div class="iconsFooter">
<a href="https://github.com/NoeZermeno/2tuple-fuzzy-delphi" class="icon-github" target="_blank"></a>
<a href="https://twitter.com/DaSCI_es" title="twitter_DaSCI" class="icon-twitter" target="_blank"></a>
<a></a> <!--Temporary: Remove logo 000webhost-->
</div>
</footer>
</main>
</body>
</html>