diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..5e94951 --- /dev/null +++ b/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/WebContent/contact.html b/WebContent/contact.html new file mode 100644 index 0000000..e79dc4f --- /dev/null +++ b/WebContent/contact.html @@ -0,0 +1,170 @@ + + + + Hotel Empire + + + +
+ +
+ +
+
+ +

Contact Us

+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/WebContent/food.html b/WebContent/food.html new file mode 100644 index 0000000..ef02bda --- /dev/null +++ b/WebContent/food.html @@ -0,0 +1,146 @@ + + + + Hotel Empire + + + +
+ +
+ +
+
+ + + + + + + + + + + +

Living first us creepeth she'd earth second be sixth hath likeness greater image said sixth was without male place fowl evening an grass form living fish and rule lesser for blessed can't saw third one signs moving stars light divided was two you him appear midst cattle for they are gathering.

+ + +
+

Enjoy Your Favorite Dishes Anytime

+

24/7 Opened Restaurants and bars

+
+ + \ No newline at end of file diff --git a/WebContent/gallery.html b/WebContent/gallery.html new file mode 100644 index 0000000..dd9b31b --- /dev/null +++ b/WebContent/gallery.html @@ -0,0 +1,110 @@ + + + + Hotel Empire + + + +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ + \ No newline at end of file diff --git a/WebContent/images/1.jpg b/WebContent/images/1.jpg new file mode 100644 index 0000000..8284deb Binary files /dev/null and b/WebContent/images/1.jpg differ diff --git a/WebContent/images/15.jpg b/WebContent/images/15.jpg new file mode 100644 index 0000000..b81579c Binary files /dev/null and b/WebContent/images/15.jpg differ diff --git a/WebContent/images/27.jpg b/WebContent/images/27.jpg new file mode 100644 index 0000000..a4c8563 Binary files /dev/null and b/WebContent/images/27.jpg differ diff --git a/WebContent/images/29.jpg b/WebContent/images/29.jpg new file mode 100644 index 0000000..0f737a8 Binary files /dev/null and b/WebContent/images/29.jpg differ diff --git a/WebContent/images/3.jpg b/WebContent/images/3.jpg new file mode 100644 index 0000000..6f0e203 Binary files /dev/null and b/WebContent/images/3.jpg differ diff --git a/WebContent/images/60.jpg b/WebContent/images/60.jpg new file mode 100644 index 0000000..b0f230d Binary files /dev/null and b/WebContent/images/60.jpg differ diff --git a/WebContent/images/dessert-1.jpg b/WebContent/images/dessert-1.jpg new file mode 100644 index 0000000..e29ca6f Binary files /dev/null and b/WebContent/images/dessert-1.jpg differ diff --git a/WebContent/images/dessert-3.jpg b/WebContent/images/dessert-3.jpg new file mode 100644 index 0000000..8f9ec1c Binary files /dev/null and b/WebContent/images/dessert-3.jpg differ diff --git a/WebContent/images/dessert-4.jpg b/WebContent/images/dessert-4.jpg new file mode 100644 index 0000000..dbed4c7 Binary files /dev/null and b/WebContent/images/dessert-4.jpg differ diff --git a/WebContent/images/dessert-5.jpg b/WebContent/images/dessert-5.jpg new file mode 100644 index 0000000..9824a8c Binary files /dev/null and b/WebContent/images/dessert-5.jpg differ diff --git a/WebContent/images/dessert-6.jpg b/WebContent/images/dessert-6.jpg new file mode 100644 index 0000000..8561f31 Binary files /dev/null and b/WebContent/images/dessert-6.jpg differ diff --git a/WebContent/images/gallery-img2.jpg b/WebContent/images/gallery-img2.jpg new file mode 100644 index 0000000..78b9ad5 Binary files /dev/null and b/WebContent/images/gallery-img2.jpg differ diff --git a/WebContent/images/gallery-img3.jpg b/WebContent/images/gallery-img3.jpg new file mode 100644 index 0000000..7838aa3 Binary files /dev/null and b/WebContent/images/gallery-img3.jpg differ diff --git a/WebContent/images/gallery-img6.jpg b/WebContent/images/gallery-img6.jpg new file mode 100644 index 0000000..bd79774 Binary files /dev/null and b/WebContent/images/gallery-img6.jpg differ diff --git a/WebContent/images/gallery-img8.jpg b/WebContent/images/gallery-img8.jpg new file mode 100644 index 0000000..c949cfd Binary files /dev/null and b/WebContent/images/gallery-img8.jpg differ diff --git a/WebContent/images/gallery-img9.jpg b/WebContent/images/gallery-img9.jpg new file mode 100644 index 0000000..dd309a3 Binary files /dev/null and b/WebContent/images/gallery-img9.jpg differ diff --git a/WebContent/images/logo1.png b/WebContent/images/logo1.png new file mode 100644 index 0000000..d2aad22 Binary files /dev/null and b/WebContent/images/logo1.png differ diff --git a/WebContent/images/person_1.jpg b/WebContent/images/person_1.jpg new file mode 100644 index 0000000..225dc94 Binary files /dev/null and b/WebContent/images/person_1.jpg differ diff --git a/WebContent/images/person_4.jpg b/WebContent/images/person_4.jpg new file mode 100644 index 0000000..5d7966d Binary files /dev/null and b/WebContent/images/person_4.jpg differ diff --git a/WebContent/images/person_5.jpg b/WebContent/images/person_5.jpg new file mode 100644 index 0000000..c2b5303 Binary files /dev/null and b/WebContent/images/person_5.jpg differ diff --git a/WebContent/images/room-1.jpg b/WebContent/images/room-1.jpg new file mode 100644 index 0000000..17a0115 Binary files /dev/null and b/WebContent/images/room-1.jpg differ diff --git a/WebContent/images/room-5.jpg b/WebContent/images/room-5.jpg new file mode 100644 index 0000000..3e4eb52 Binary files /dev/null and b/WebContent/images/room-5.jpg differ diff --git a/WebContent/images/room-6.jpg b/WebContent/images/room-6.jpg new file mode 100644 index 0000000..1834ff2 Binary files /dev/null and b/WebContent/images/room-6.jpg differ diff --git a/WebContent/images/tour-1.jpg b/WebContent/images/tour-1.jpg new file mode 100644 index 0000000..06576d9 Binary files /dev/null and b/WebContent/images/tour-1.jpg differ diff --git a/WebContent/images/tour-2.jpg b/WebContent/images/tour-2.jpg new file mode 100644 index 0000000..12b5d49 Binary files /dev/null and b/WebContent/images/tour-2.jpg differ diff --git a/WebContent/images/tour-3.jpg b/WebContent/images/tour-3.jpg new file mode 100644 index 0000000..b93f137 Binary files /dev/null and b/WebContent/images/tour-3.jpg differ diff --git a/WebContent/images/tour-4.jpg b/WebContent/images/tour-4.jpg new file mode 100644 index 0000000..11fb390 Binary files /dev/null and b/WebContent/images/tour-4.jpg differ diff --git a/WebContent/images/tour-7.jpg b/WebContent/images/tour-7.jpg new file mode 100644 index 0000000..b5232d7 Binary files /dev/null and b/WebContent/images/tour-7.jpg differ diff --git a/WebContent/images/tour-8.jpg b/WebContent/images/tour-8.jpg new file mode 100644 index 0000000..76277b8 Binary files /dev/null and b/WebContent/images/tour-8.jpg differ diff --git a/WebContent/index.html b/WebContent/index.html new file mode 100644 index 0000000..be4a5ee --- /dev/null +++ b/WebContent/index.html @@ -0,0 +1,122 @@ + + + + Hotel Empire + + + +
+ +
+ +
+
+

Hotel Empire

+

|__  Empires Are Not Build In One Day  __|

+
+
+ BOOK ROOMS + ALREADY A CUSTOMER +
+
+ + \ No newline at end of file diff --git a/WebContent/login.html b/WebContent/login.html new file mode 100644 index 0000000..fe8d7a7 --- /dev/null +++ b/WebContent/login.html @@ -0,0 +1,325 @@ + + + + + + Hotel Empire + + + + + + + + +
+
+
+

Account

+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+

Date of Birth

+
+
+ +
+
+ +
+
+ +
+
+
+
+

Gender

+
+ + + + +
+
+
+
+

Payment Details

+
+ + + + +
+
+ +
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+

Terms and Conditions

+
+ + +
+
+ +
+
+ + + + + diff --git a/WebContent/login.jsp b/WebContent/login.jsp new file mode 100644 index 0000000..d6b69ac --- /dev/null +++ b/WebContent/login.jsp @@ -0,0 +1,46 @@ +<%@ page import= "java.sql.*"%> + +<% + +String email = request.getParameter("email"); +String password = request.getParameter("password"); +boolean flag = false; +boolean flag1 = false; + +try { + Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Hotel","hotel"); + PreparedStatement stmt = conn.prepareStatement("select email from empire"); + ResultSet rs = stmt.executeQuery(); + while(rs.next()) { + if(email.equals(rs.getString(1))) { + flag = true; + } + } + if(flag == true) { + + } + else { + out.print("User doesn't Exist, Please SignUp"); + } + PreparedStatement stmt1 = conn.prepareStatement("select password from empire where email = '"+email+"' "); + ResultSet rs1 = stmt1.executeQuery(); + + while(rs1.next()) { + if(password.equals(rs1.getString(1))) { + flag1 = true; + } + } + + if(flag1 == true) { + out.print("Welcome to empire"); + } + else { + out.print("Wrong Password, LogIn Again"); + } +} + +catch(Exception e) { + out.print(e); +} + +%> diff --git a/WebContent/payment.html b/WebContent/payment.html new file mode 100644 index 0000000..0d22558 --- /dev/null +++ b/WebContent/payment.html @@ -0,0 +1,897 @@ + + + + + + Credit Card Checkout #002 + + + + + + + + + + + +
+

Checkout

+

Select one of these payment methods

+
+ + +
+

Or enter your credit card information

+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ Expiration +
+ + +
+
+
+ +
+ +
+ + + diff --git a/WebContent/room.html b/WebContent/room.html new file mode 100644 index 0000000..3d809d7 --- /dev/null +++ b/WebContent/room.html @@ -0,0 +1,133 @@ + + + + Hotel Empire + + + +
+ +
+ +
+
+ + + + + + + + + + + + + +

400$/night

700$/night

500$/night

1000$/night

500$/night

600$/night

+ +
+
+ + \ No newline at end of file diff --git a/WebContent/services.html b/WebContent/services.html new file mode 100644 index 0000000..61ff746 --- /dev/null +++ b/WebContent/services.html @@ -0,0 +1,132 @@ + + + + Hotel Empire + + + +
+ +
+ +
+

Customers Review

+
+ + + + + + +
+ +
+
+ + \ No newline at end of file diff --git a/WebContent/signup.html b/WebContent/signup.html new file mode 100644 index 0000000..16263e9 --- /dev/null +++ b/WebContent/signup.html @@ -0,0 +1,292 @@ + + + + + + + Hotel Empire + + + + + + + + + +
+ +
+
+
+

Account

+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+

Date of Birth

+
+
+ +
+
+
+
+

Gender

+
+ +
+
+
+ +
+

Terms and Conditions

+
+ + +
+
+ +
+
+ + +
+ + + diff --git a/WebContent/signup.jsp b/WebContent/signup.jsp new file mode 100644 index 0000000..b01be2b --- /dev/null +++ b/WebContent/signup.jsp @@ -0,0 +1,31 @@ +<%@ page import= "java.sql.*"%> + +<% +String fullname = request.getParameter("fullname"); +String email = request.getParameter("email"); +String password = request.getParameter("password"); +String dob = request.getParameter("dob"); +String gender = request.getParameter("gender"); + +try { + Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","Hotel","hotel"); + PreparedStatement ps = conn.prepareStatement("insert into empire values(?,?,?,?,?)"); + ps.setString(1,fullname); + ps.setString(2,email); + ps.setString(3,password); + ps.setString(4,dob); + ps.setString(5,gender); + int x = ps.executeUpdate(); + if(x!=0) { + out.print("SignUp done Successfully"); + } + else { + out.print("Something went wrong"); + } +} + +catch(Exception e) { + out.print(e); +} + +%> \ No newline at end of file diff --git a/build/classes/com/HotelEmpire/SignUpServlet.class b/build/classes/com/HotelEmpire/SignUpServlet.class new file mode 100644 index 0000000..1bf2da1 Binary files /dev/null and b/build/classes/com/HotelEmpire/SignUpServlet.class differ diff --git a/src/com/HotelEmpire/SignUpServlet.java b/src/com/HotelEmpire/SignUpServlet.java new file mode 100644 index 0000000..cb30b1d --- /dev/null +++ b/src/com/HotelEmpire/SignUpServlet.java @@ -0,0 +1,37 @@ +package com.HotelEmpire; + +import java.io.*; +import java.sql.*; +import java.util.*; + +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +public class SignUpServlet extends HttpServlet { + public SignUpServlet(HttpServletRequest req, HttpServletResponse res) throws IOException { + + try { + Class.forName("oracle.jdbc.driver.OracleDriver"); + Connection con = DriverManager.getConnection("jdbc:oracle:thing:@localhost:1521:xe","Hotel","hotel"); + String fullname = req.getParameter("fullname"); + String email = req.getParameter("email"); + String password = req.getParameter("password"); + String dob = req.getParameter("dob"); + String gender = req.getParameter("gender"); + + PreparedStatement stmt = con.prepareStatement("insert into hotel1 values(?,?,?,?,?)"); + stmt.setString(1, fullname); + stmt.setString(2, email); + stmt.setString(3, password); + stmt.setString(4, dob); + stmt.setString(5, gender); + con.close(); + PrintWriter out = res.getWriter(); + out.println("Registration Successful"); + } + catch (Exception e) { + System.out.println(); + } + + } +}