-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.html
67 lines (63 loc) · 1.75 KB
/
query.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Read CSV!</title>
<style>
body{
background: teal;
}
form {
text-align: center;
padding: 30px;
}
input{
margin: 8px;
}
h1, h2 {
text-align: center;
}
table {
background-color: #dfa290;
margin-left: 10%;
width: 80%;
}
th {
background-color: #e0a899;
position: sticky;
top: 0;
}
tr, th, td, table {
padding: 5px;
border: 3px;
border-style: solid;
text-align: center;
}
td {
background-color: #ffe9dc;
border-style: dashed;
border-radius: 25% 15%;
border-color: teal;
margin: 5px;
}
</style>
</head>
<body>
<h1>Read data from your CSV file!</h1>
<h2>You can also download created .db file <a href="local.db" download>here</a></h2>
<form method="post" action="/query">
<h2>Choose operation type</h2>
<input type="radio" name="queryType" value="select" checked> <label>SELECT</label><br>
<input type="radio" name="queryType" value="selectWhere"> <label>SELECT with condition</label><br>
<input type="radio" name="queryType" value="ownQuery"> <label>Write your own query</label><br><br>
<h2>Choose what you want to see</h2>
<label>Items to select (eg. id, name, surname):</label><br>
<input type="text" name="queryItems"><br>
<label>Condition (WHERE):</label><br>
<input type="text" name="queryCondition"><br>
<label>Your own query (default table name: CSV):</label><br>
<input type="text" name="queryOwn"><br>
<input type="submit" value="run">
</form>
</body>
</html>