-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
131 lines (110 loc) · 5.86 KB
/
index.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
<?php
include_once 'controller.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>New Q5</title>
<meta name="description" content="">
<meta name="author" content="1Veertje">
<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">
<!-- 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 type="text/javascript" src="script.js"></script>
</head>
<body>
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<div class="container">
<div class="row">
<form class="form-wrapper" method="POST" target='_self' id="form" >
<div class="error"><?php echo $error; ?></div>
<noscript>
<div class="error">
This site requires JavaScript.
</div>
</noscript>
<div id="notice" <?php if ($notice_closed) echo 'style="display: none;"'; ?>>
<a href="#" id="close" alt="close">x</a>
<p>This is a small form for adding or updating a person's data in <a href="https://www.wikidata.org/wiki/Wikidata:Main_Page" target="_blank">Wikidata</a>.</p>
<p>For a full list of features and disclaimers, please consult the <a href="https://github.com/VDK/new-q5/blob/main/README.md">README</a>.</p>
<p>Please make sure new items conform to the <a href="https://www.wikidata.org/wiki/Wikidata:Notability" target="_blank">notability standards</a>, especially those for <a href="https://www.wikidata.org/wiki/Wikidata:Living_people" target="_blank">living people</a>.</p>
</div>
<a href="#" id="reopen" alt="reopen" <?php if (!$notice_closed) echo 'style="display: none;"'; ?>>?</a>
<p>Personal details:</p>
<div>
<div class="flex">
<div style="width: 100%"><label for="fullname">name</label>
<input type="text" id="fullname" name='fullname'/ ></div>
<div><label for="age">age</label>
<input type="text" id="age" name='age' style="width:100px;"/></div>
</div>
<label for="dob">date of birth</label>
<input type="text" id="dob" name='dob' />
<label for="dod">date of death</label>
<input type="text" id="dod" name='dod'/ >
<label for="description">short description</label>
<input type="text" id="description" name='description' />
<label for="qs">custom QuickStatement</label>
<input type="text" id="qs" name='qs' />
</div>
<div id='possible_match' >
<input type="hidden" name="person_QID" id="person_QID"/>
<ul id='responses' ></ul>
</div>
Reference:
<label for="ref_url">URL</label>
<input type="text" id="ref_url" placeholder="https://" name='ref_url' />
<div id="ref_params" >
<label for="ref_title">title</label>
<div class="flex">
<input type="text" id="ref_lang" placeholder="lang" name="ref_lang" style="width:50px" maxlength="3" value="en" />
<input type="text" id="ref_title" name="ref_title" />
</div>
<label for="ref_pubdate">publcation date</label>
<input type="date" id="ref_pubdate" name="ref_pubdate" />
<label for="ref_authors">author</label>
<input type="text" id="ref_authors" name="ref_authors" />
<div id="description"> <input id="described_by_source" type="checkbox" name="described_by_source" <?php echo $described_by_source; ?> />
<label id="described_label" for="described_by_source">Include reference as <a href="https://www.wikidata.org/wiki/Property:P973" target="_blank">described by url (P973)</a> statement</label></div>
</div>
<span style="clear:both;"/>
<input type="submit" class='button' value="go" id="submit" />
</form>
</div>
<?php
if ($qs ){?>
<div class="row">
<form class="form-wrapper">
<textarea id='quickstatement' style="height: 150px;" >
<?php echo($qs); ?>
</textarea>
<a onclick="sendQS()" style="cursor: pointer;">Import QuickStatement</a>
</form>
</div>
<?php } ?>
</div>
<footer id="footer"><a href="https://github.com/VDK/New-Q5" target="_blank">Code on GitHub</a> <br/>available under MIT license</footer>
</div>
<!-- End Document
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
</body>
</html>