-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
146 lines (118 loc) · 7.03 KB
/
index.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<title> ThatzTheBook</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link href="styling/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="scripts/index.js"></script>
<script src="scripts/modalScript.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
</head>
<body>
<div class="notification" id="notify"> </div>
<div class="wrapper">
<div class="header">
<div class="barContainer" onclick="toggleMenu(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<div id="headline"><h2>ThatzTheBook</h2><span class="errorMessage"></span></div>
<div id="user" class="usrin">
<img id="profile" width="75px" height="75px">
</div>
<div id="userData"></div>
</div>
<ul id="menu-box" class="sidenav">
<span id="home" class="home usrin"><li><a href="./">Home</a></li></span>
<span id="login" class="login usrout"><li><a onclick="showElement('loginID')">Login</a></li></span>
<span id="logout" class="logout usrin" ><li onclick="logout()"><a>Log Out</a></li></span>
<span id="CheckedOutBooks" class="CheckedOutBooks usrin"><li><a onclick="getUserBooks()">Checked Out Books</a></li></span>
<span id="addBook" class="addBook usrin" ><li><a onclick="showElement('addBookModal')">Add Book</a></li></span>
<span id="bookapprove" class="bookapprove admin" ><li><a onclick="needsApproved()">Book Approval</a></li></span>
<span id="getUsers" class="manageUsers admin" ><li><a onclick="getUsers()">Manage Users</a></li></span>
<span id = "reg" class="usrout"><li><a onclick="showElement('addUserID')">Register</a></li></span>
</ul>
<div id="searchBar" class="search">
<form id="searchForm">
<div class="autocomplete">
<input type='text' placeholder="Search" name='search' id="searchText" autocomplete="off">
</div>
<select id='filter' onchange="selectChange()"></select>
<button id="searchButton" class="fas fa-search" type="submit"></button>
</form>
</div>
<div id="addUserID" class="modal">
<form id="addUserForm" class="modal-content animate" enctype="multipart/form-data" action="/cse201/user/addUser.php" method="POST">
<span onclick="document.getElementById('addUserID').style.display = 'none'" class="close" title="Close Modal">×</span>
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="username" required>
<label for="name"><b>Name</b></label>
<input type="text" placeholder="Name" name="name" required>
<br>
<div type="button" class="glyphicon glyphicon-upload profileImage" id="uploadButton"></div>
<input type="file" name="fileToUpload" id="fileToUpload" style="display:none;"/>
<img class="uploadImg" src="/cse201/user/img/default.png">
<br>
<label for="psw"><b>Password</b></label>
<input id="addpass" type="password" placeholder="Enter Password" name="password" required>
<label for="psw"><b>Repeat Password</b></label>
<input id="addrepass" type="password" placeholder="Repeat Password" name="repassword" required>
<div class="modalContainer" style="background-color:#f1f1f1">
<span id='errormsg'></span>
<button type="button" onclick="document.getElementById('addUserID').style.display = 'none'" class="cancelbtn">Cancel</button>
<button class="whtbutton" type="submit" name="submit" value="upload">Add User</button>
</div>
</form>
</div>
<div id="addBookModal" class="modal">
<form id="addBookForm" class="modal-content animate" action="/cse201/book/read.php" method="POST">
<span onclick="document.getElementById('addBookmodal').style.display = 'none'" class="close" title="Close Modal">×</span>
<input type="text" placeholder="Enter Book Title" name="bookName" required>
<label for="bookaddition"><b>Book Addition</b></label>
<input type="text" placeholder="Book Addition" name="addition" required>
<label for="author"><b>Author</b></label>
<input type="text" placeholder="Author" name="author" required>
<label for="img"><b>Cover Image Link</b></label>
<input type="text" placeholder="Image Link" name="filePath" required>
<label for="img"><b>Library</b></label>
<select class="libraryList" name="libraryID"></select>
<div class="modalContainer" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('addBookModal').style.display = 'none'" class="cancelbtn">Cancel</button>
<button class="whtbutton" type="submit">Add Book</button>
</div>
</form>
</div>
<div id="loginID" class="modal">
<form id="loginForm" class="modal-content animate">
<span onclick="document.getElementById('loginID').style.display = 'none'" class="close" title="Close Modal">×</span>
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" id="loginuname" name="username" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" id="loginpass" name="password" required>
<div class="modalContainer" style="background-color:#f1f1f1">
<span id='loginerrormsg'></span>
<button type="button" onclick="document.getElementById('loginID').style.display = 'none'" class="cancelbtn">Cancel</button>
<button class="whtbutton" type="submit">Login</button>
</div>
</form>
</div>
<div id="bookinfo" class="modal">
<form class="modal-content animate">
<span onclick="document.getElementById('bookinfo').style.display = 'none'" class="close" title="Close Modal">×</span>
<table class="bookinfoTable" id="bookinfoTable">
</table>
<div class="modalContainer" id="bookinfoModal" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('bookinfo').style.display = 'none'" class="cancelbtn">Cancel</button>
</div>
</form>
</div>
<div class="content">
</div>
</div>
</body>
</html>