diff --git a/WebContent/adminLogin.jsp b/WebContent/adminLogin.jsp
index ffd6dc8..de40b3c 100644
--- a/WebContent/adminLogin.jsp
+++ b/WebContent/adminLogin.jsp
@@ -1,4 +1,4 @@
-<%@ page import = "database.MySQLAccess" %>
+<%@ page import = "database.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import = "java.sql.*" %>
@@ -9,7 +9,7 @@ Cookie adminCookie;
ssoNum = Integer.parseInt(request.getParameter("ssoNum2"));
pass = request.getParameter("pass");
MySQLAccess myaccess = new MySQLAccess();
-Statement statement = myaccess.connectDB();
+Statement statement = myaccess.getStatement();
ResultSet result;
result = statement.executeQuery("select * FROM admin where Admin_ID='" + ssoNum + "' AND Password='" + pass + "'");
@@ -20,7 +20,7 @@ if (result.next()){
adminCookie.setMaxAge(30*60);
response.addCookie(adminCookie);
statement.close();
- response.sendRedirect("html/webpages/admin.html");
+ response.sendRedirect("html/webpages/admin.jsp");
} else {
statement.close();
response.sendRedirect("index.jsp");
diff --git a/WebContent/html/javascript/listing.jsp b/WebContent/html/javascript/listing.jsp
index 64ca8fc..cdf42d7 100644
--- a/WebContent/html/javascript/listing.jsp
+++ b/WebContent/html/javascript/listing.jsp
@@ -1,4 +1,4 @@
-<%@ page import = "database.MySQLAccess,entities.ListedDevice" %>
+<%@ page import = "database.*,entities.ListedDevice" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
@@ -8,8 +8,7 @@
<%
-MySQLAccess myaccess = new MySQLAccess();
-ListedDevice[] mydevices = myaccess.getAllDevices();
+ListedDevice[] mydevices = DeviceQueries.getAllDevices();
//string representation of array.
String deviceString = ListedDevice.arrayToString(mydevices);
diff --git a/WebContent/html/javascript/navbar.js b/WebContent/html/javascript/navbar.js
deleted file mode 100644
index 07b0906..0000000
--- a/WebContent/html/javascript/navbar.js
+++ /dev/null
@@ -1,2 +0,0 @@
-document.getElementById('navbaruniversal').innerHTML = ''
-
diff --git a/WebContent/html/javascript/request.jsp b/WebContent/html/javascript/request.jsp
index b1cca96..086c24f 100644
--- a/WebContent/html/javascript/request.jsp
+++ b/WebContent/html/javascript/request.jsp
@@ -1,4 +1,4 @@
-<%@ page import = "database.MySQLAccess,entities.ListedDevice" %>
+<%@ page import = "database.*,entities.ListedDevice" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
@@ -8,8 +8,7 @@
<%
-MySQLAccess myaccess = new MySQLAccess();
-ListedDevice[] mydevices = myaccess.getAllDevices();
+ListedDevice[] mydevices = DeviceQueries.getAllDevices();
//string representation of array.
String deviceString = ListedDevice.arrayToString(mydevices);
diff --git a/WebContent/html/webpages/admin.html b/WebContent/html/webpages/admin.jsp
similarity index 93%
rename from WebContent/html/webpages/admin.html
rename to WebContent/html/webpages/admin.jsp
index 312348b..d3992f8 100644
--- a/WebContent/html/webpages/admin.html
+++ b/WebContent/html/webpages/admin.jsp
@@ -1,90 +1,90 @@
-
-
-
-
-
-
-
-
-
-Synchrony Financial
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Welcome to the admin page
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+Synchrony Financial
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Welcome to the admin page
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/html/webpages/adminApprove.html b/WebContent/html/webpages/adminApprove.jsp
similarity index 93%
rename from WebContent/html/webpages/adminApprove.html
rename to WebContent/html/webpages/adminApprove.jsp
index f73865e..3efebf8 100644
--- a/WebContent/html/webpages/adminApprove.html
+++ b/WebContent/html/webpages/adminApprove.jsp
@@ -1,83 +1,83 @@
-
-
-
-
-
-
-
-
-
- Synchrony Financial
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Admin View Approvals
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ Synchrony Financial
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Admin View Approvals
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebContent/html/webpages/adminLocation.jsp b/WebContent/html/webpages/adminLocation.jsp
index 573f6aa..b9a4a45 100644
--- a/WebContent/html/webpages/adminLocation.jsp
+++ b/WebContent/html/webpages/adminLocation.jsp
@@ -1,4 +1,4 @@
-<%@ page import = "database.MySQLAccess,entities.Location" %>
+<%@ page import = "database.*,entities.Location" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
@@ -92,6 +92,7 @@
@@ -308,10 +309,9 @@
<%
-//database connection
-MySQLAccess myaccess = new MySQLAccess();
+
//database query
-Location[] locations = myaccess.getAdminLocations();
+Location[] locations = LocationQueries.getAdminLocations();
//string representation of array.
String locationString = Location.arrayToString(locations);
locationString = locationString.replace("'","\\'");
@@ -384,6 +384,5 @@ function closeModifyModal(){
-
\ No newline at end of file
diff --git a/WebContent/html/webpages/index.jsp b/WebContent/html/webpages/index.jsp
index e31fe6f..0f23040 100644
--- a/WebContent/html/webpages/index.jsp
+++ b/WebContent/html/webpages/index.jsp
@@ -67,7 +67,7 @@
Just curious to see what devices we have to offer? You've come to the right place.
-
+