-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (117 loc) · 5.62 KB
/
index.html
File metadata and controls
123 lines (117 loc) · 5.62 KB
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
<!DOCTYPE html>
<head>
<meta name="" content="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Library -->
<script src="lib/jquery-3.1.1/jquery-3.1.1.min.js"></script>
<script src="lib/bootstrap-3.3.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="lib/bootstrap-3.3.0/css/bootstrap.min.css">
<link rel="stylesheet" href="lib/font-awesome-4.7.0/css/font-awesome.min.css">
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Teko:400,70">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oleo+Script:400,700">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Custom -->
<script src="js/filter.js"></script>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<section class="form">
<div class="section-header">
<h1>Back-end Practice</h1>
<h3>GET, POST, and AJAX method</h3>
<h3 class="ajax-result">Enter student ID.</h3>
</div>
<div class="section-content">
<div class="container">
<div class="col-md-6 form-line">
<!-- GET method -->
<form action="get.njs" method="GET">
<div class="form-group">
<label for="get">GET method</label>
<input class="form-control" type="text" name="id" placeholder="Enter student ID">
<button class="btn btn-default btn-submit" type="submit">
<i class="fa fa-paper-plane"></i> Submit
</button>
</div>
</form>
<!-- POST method -->
<form action="post.njs" method="POST">
<div class="form-group">
<label for="post">POST method</label>
<input class="form-control" type="text" name="id" placeholder="Enter student ID">
<button class="btn btn-default btn-submit" type="submit">
<i class="fa fa-paper-plane"></i> Submit
</button>
</div>
</form>
<!-- AJAX method -->
<form class="ajax">
<div class="form-group">
<label for="ajax">AJAX method</label>
<input class="form-control" type="text" placeholder="Enter student ID">
<button class="btn btn-default btn-submit" type="button">
<i class="fa fa-paper-plane"></i> Submit
</button>
<script src="js/search.js"></script>
</div>
</form>
</div>
<div class="col-md-6">
<div class="panel panel-primary filterable">
<div class="panel-heading">
<h3 class="panel-title">Users list</h3>
<div class="pull-right">
<button class="btn btn-default btn-xs btn-filter">
<span class="glyphicon glyphicon-filter"></span>
</button>
</div>
</div>
<table class="table">
<thead>
<tr class="filters">
<th>
<input class="form-control" type="text" placeholder="#" disabled>
</th>
<th>
<input class="form-control" type="text" placeholder="Student ID" disabled>
</th>
<th>
<input class="form-control" type="text" placeholder="Name" disabled>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>F74039025</td>
<td>陸勇盛大帥哥</td>
</tr>
<tr>
<td>2</td>
<td>F74026103</td>
<td>瞿旭民</td>
</tr>
<tr>
<td>3</td>
<td>E24039067</td>
<td>劉家良</td>
</tr>
<tr>
<td>4</td>
<td>P36051016</td>
<td>張睿宏</td>
</tr>
<tr>
<td>5</td>
<td>E24039091</td>
<td>吳治緯</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</body>