diff --git a/CREDITS.md b/CREDITS.md index ce18637..7859141 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -23,3 +23,6 @@ We would like to directly thank the following artists for their contributions: * Doughnut * Bird (the red one!) * Paint Brush + +##Roundicons +* Warning diff --git a/WebContent/html/webpages/orderFormHandler.jsp b/WebContent/html/webpages/orderFormHandler.jsp index 1f13065..9efd92b 100644 --- a/WebContent/html/webpages/orderFormHandler.jsp +++ b/WebContent/html/webpages/orderFormHandler.jsp @@ -26,7 +26,7 @@ if(Integer.parseInt(request.getParameter("location_dropdown"))==0) request.getParameter("locname"), request.getParameter("state"), request.getParameter("address"), - request.getParameter("city"), + request.getParameter("town"), request.getParameter("zip"), sso ); @@ -35,9 +35,10 @@ if(Integer.parseInt(request.getParameter("location_dropdown"))==0) //Now update employee String userName = request.getParameter("name"); String phone = request.getParameter("phone"); +String email = request.getParameter("email"); // read location ID, but only if we haven't already generated it when adding new location to db if(location==-1){ location = Integer.parseInt(request.getParameter("location_dropdown"));} -EmployeeQueries.updateEmployee(sso, userName, phone, location); +EmployeeQueries.updateEmployee(sso, userName, phone, location, email); System.out.print("updated employee "+userName); // And now for the ticket diff --git a/WebContent/html/webpages/shoppingCart.jsp b/WebContent/html/webpages/shoppingCart.jsp index e4fce88..99d0ab1 100644 --- a/WebContent/html/webpages/shoppingCart.jsp +++ b/WebContent/html/webpages/shoppingCart.jsp @@ -55,6 +55,11 @@ if(c.getName().equals("ssoNum")) sso = Integer.parseInt(c.getValue()); text-align: center; padding: 10px; } + input[type=text]{ margin: 0 auto; width: 60%; } + + input[type=tel]{ margin: 0 auto; width: 60%; } + + input[type=number]{ margin: 0 auto; width: 60%; } @@ -82,7 +87,10 @@ if(c.getName().equals("ssoNum")) sso = Integer.parseInt(c.getValue());
- +
+
+ +

- - + +
@@ -163,7 +171,7 @@ if(c.getName().equals("ssoNum")) sso = Integer.parseInt(c.getValue());
- +
@@ -205,7 +213,7 @@ document.getElementById('da').addEventListener('click',deleteAll); // Event listeners for order form address fields, to force select New Location if a field is changed document.orderForm.address.addEventListener('keyup',forceDropdownCustomLocation); -document.orderForm.city.addEventListener('keyup',forceDropdownCustomLocation); +document.orderForm.town.addEventListener('keyup',forceDropdownCustomLocation); document.orderForm.state.addEventListener('keyup',forceDropdownCustomLocation); document.orderForm.zip.addEventListener('keyup',forceDropdownCustomLocation); @@ -235,7 +243,6 @@ var employee = { var checked = new Array(); var locations = getLocations(); -//debug_add_items_to_cart(); show(); //on load, we want to show everything @@ -351,14 +358,17 @@ function autoFillFields(orderAllBool) { int locationID = employee.getLocation(); String name = employee.getName(); String phone = employee.getPhone(); + String email = employee.getEmail(); %> employee.name = "<%=name%>"; employee.phone = "<%=phone%>"; + employee.email = "<%=email%>"; document.orderForm.name.value=employee.name; document.orderForm.phone.value=employee.phone; + document.orderForm.email.value=employee.email; // already got locations on page load, now populate dropdown and mark appropriate option selected document.orderForm.location_dropdown.innerHTML=""; - for (var i = locations.length - 1; i >= 0; i--) { + for (var i = 0; i < locations.length; i++) { document.orderForm.location_dropdown.innerHTML+= ("