-
Notifications
You must be signed in to change notification settings - Fork 0
/
sparql.php
112 lines (90 loc) · 4.35 KB
/
sparql.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>Orator Matcher</title>
<meta name="description" content="">
<meta name="author" content="">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<!-- Mobile Specific Metas
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<!-- CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/slider.css">
<link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jqueryui/1.11.4/themes/smoothness/theme.css">
<!-- Favicon
––––––––––––––––––––––––––––––––––––––––––––––––––
<link rel="icon" type="image/png" href="images/favicon.png"> -->
<!-- Javascripts
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<script src="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jqueryui/1.11.4/jquery-ui.js"></script>
<script src="https://tools-static.wmflabs.org/cdnjs/ajax/libs/tinysort/3.2.2/tinysort.js"></script>
<!-- <script type="text/javascript" src="slider.js"></script> -->
<script type="text/javascript" src="plugins/deference/js/deference.js"></script>
<script type="text/javascript" src="query.js"></script>
</head>
<body>
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<div class="container" style="margin-top: 10px">
<div class="row">
<form class="form-wrapper" id="form" >
<a href="index.php">< back home</a>
<div>
<?php
if ((!isset($_GET['name']) || !is_array($_GET['name'])) && !isset($_GET['names'])){
echo "<p style='color:red'>bad input</p></div></form>";
}
else{ ?>
<!-- <div id="slider">
<div> earliest / latest year of birth </div>
<input type="text" id="amount1" value="<?php echo $y1; ?>" data-index="0" class="sliderValue" name="y1" />
<div id="slider-range"></div>
<input type="text" id="amount2" value="<?php echo $y2; ?>" data-index="1" class="sliderValue" name="y2" />
</div> -->
<div class="analyse">
<p>Include</p>
<input type="checkbox" id="sportsPersonCheck" name="feature"
value="sportsPersonCheck" checked />
<label for="sportsPersonCheck">Athletes</label>
<!-- botanists-->
</div>
</div>
</form>
<div id='progressbar'></div>
<ul id='names'>
<?php
$names =array();
//backwards compatibility variable name:
if (isset($_GET['name'])){
$names = array_merge($names, $_GET['name']);
}
if (isset($_GET['names'])){
$names = array_merge($names, explode("|", urldecode($_GET['names'])));
}
$names = array_unique($names);
foreach ($names as $key => $name) {
$name = trim($name);
$name = strip_tags($name);
if ($name != ''){
echo "<li class='name' weight='-1'>".urldecode($name)."<ul class='response' ></ul></li>";
}
}
echo "</ul>";
}
?> </div>
</div>
<!-- End Document
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
</body>
</html>