-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathproject2.html
100 lines (80 loc) · 3.6 KB
/
project2.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
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
<html>
<head>
<title>Project2</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/additional-methods.min.js"></script>
<script src="bootstrap.js"></script>
<script src="university.js" type="text/javascript"></script>
<link rel="stylesheet" href="university.css">
<script type="text/html" id="university-save-alert-message">
<div class="alert alert-warning alert-dismissible fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
aria-hidden="true">×</span></button>
<strong>{message}</strong>
</div>
</script>
<style>
.error {
color: red;
background-color: #acf;
}
</style>
<script>
$().ready(function () {
$("#universityForm").validate({
rules: {
phone: {
required: true,
phoneUS: true
}
}
})
});
</script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-id="persistent" data-position="fixed">
<h1>University DB</h1>
</div>
<h3>To check for more screenshots and implementation details , please right click this <a href="explanations.html">link</a></h3>
<div data-role="content">
<form id="universityForm">
<fieldset>
<label for="name">University Name: </label>
<input type="text" name="name" id="name" minlength="2" placeholder="Enter University Name" required>
<label for="phone">Phone: </label>
<input type="tel" name="phone" id="phone" placeholder="Enter Phone Number" required>
<label for="address">Address: </label>
<input type="text" name="address" id="address" placeholder="Enter Address" required>
<div id="error_alert" class="alert alert-danger" role="alert">
</div>
</fieldset>
</form>
<div class="">
<a data-role="button" onclick="saveUniversity()">Save</a>
<a data-role="button" onclick="deleteUniversity()">Delete</a>
</div>
</div>
<div data-role="content">
<div id='search-error-alert'></div>
<label for="search_keyword">Search: </label>
<input type="text" name="search_keyword" id="search_keyword" placeholder="Enter Name to Search" />
<div class="">
<a data-role="button" onclick="searchRecord()">Search</a>
<a data-role="button" onclick="displayRecords()">Display Records</a>
</div>
<table id="search_result" class="table">
</table>
</div>
<div data-role=footer data-id="persistent" data-position="fixed">
<h3>Developed by Haozhou Wang(A00431268)</h3>
</div>
</div>
</body>
</html>