diff --git a/build/generated/classes/org/apache/jsp/become_002dHost_jsp.class b/build/generated/classes/org/apache/jsp/become_002dHost_jsp.class deleted file mode 100644 index 7191504..0000000 Binary files a/build/generated/classes/org/apache/jsp/become_002dHost_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/booking_002dpage_jsp.class b/build/generated/classes/org/apache/jsp/booking_002dpage_jsp.class deleted file mode 100644 index 2ec39a0..0000000 Binary files a/build/generated/classes/org/apache/jsp/booking_002dpage_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/cancel_005fresult_jsp.class b/build/generated/classes/org/apache/jsp/cancel_005fresult_jsp.class deleted file mode 100644 index 6ba7bee..0000000 Binary files a/build/generated/classes/org/apache/jsp/cancel_005fresult_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/index_jsp.class b/build/generated/classes/org/apache/jsp/index_jsp.class new file mode 100644 index 0000000..81d5dca Binary files /dev/null and b/build/generated/classes/org/apache/jsp/index_jsp.class differ diff --git a/build/generated/classes/org/apache/jsp/login_jsp.class b/build/generated/classes/org/apache/jsp/login_jsp.class deleted file mode 100644 index 589277c..0000000 Binary files a/build/generated/classes/org/apache/jsp/login_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/manage_002dplace_jsp.class b/build/generated/classes/org/apache/jsp/manage_002dplace_jsp.class deleted file mode 100644 index 0a6861e..0000000 Binary files a/build/generated/classes/org/apache/jsp/manage_002dplace_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/payment_002dpage_jsp_jsp.class b/build/generated/classes/org/apache/jsp/payment_002dpage_jsp_jsp.class deleted file mode 100644 index 1e580c9..0000000 Binary files a/build/generated/classes/org/apache/jsp/payment_002dpage_jsp_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/place_jsp.class b/build/generated/classes/org/apache/jsp/place_jsp.class deleted file mode 100644 index 4a8bce2..0000000 Binary files a/build/generated/classes/org/apache/jsp/place_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/search_002dlist_jsp.class b/build/generated/classes/org/apache/jsp/search_002dlist_jsp.class deleted file mode 100644 index 289e412..0000000 Binary files a/build/generated/classes/org/apache/jsp/search_002dlist_jsp.class and /dev/null differ diff --git a/build/generated/classes/org/apache/jsp/testQuery_jsp.class b/build/generated/classes/org/apache/jsp/testQuery_jsp.class deleted file mode 100644 index 4666acc..0000000 Binary files a/build/generated/classes/org/apache/jsp/testQuery_jsp.class and /dev/null differ diff --git a/build/generated/src/org/apache/jsp/become_002dHost_jsp.class.smap b/build/generated/src/org/apache/jsp/become_002dHost_jsp.class.smap deleted file mode 100644 index 67684be..0000000 --- a/build/generated/src/org/apache/jsp/become_002dHost_jsp.class.smap +++ /dev/null @@ -1,30 +0,0 @@ -SMAP -become_002dHost_jsp.java -JSP -*S JSP -*F -+ 0 become-Host.jsp -become-Host.jsp -+ 1 header-nav.jsp -header-nav.jsp -*L -5,23:49 -28,3:73 -30,2:76 -5#1,15:78 -20,3:94 -22,7:97 -29:104,3 -30,12:107 -42:119,3 -43,6:122 -49:128,3 -50,13:131 -63:144,3 -64,18:147 -82:165,3 -83,4:168 -31#0,342:171 -372,3:513 -374,3:516 -*E diff --git a/build/generated/src/org/apache/jsp/become_002dHost_jsp.java b/build/generated/src/org/apache/jsp/become_002dHost_jsp.java deleted file mode 100644 index d61da7e..0000000 --- a/build/generated/src/org/apache/jsp/become_002dHost_jsp.java +++ /dev/null @@ -1,530 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; - -public final class become_002dHost_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - static { - _jspx_dependants = new java.util.ArrayList(1); - _jspx_dependants.add("/header-nav.jsp"); - } - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" ลงสถานที่ของคุณ\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(" "); - - String checkIsProvider = (String) session.getAttribute("role"); - if (checkIsProvider != null) { - - out.write("\n"); - out.write(" "); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - - String username = (String) session.getAttribute("username"); - String role = (String) session.getAttribute("role"); - if (username != "" && username != null && role == null) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else if (username != "" && username != null && role.equals("provider")) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else { - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write(" "); - } - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
Become a Space provider with Bookspace.com\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" Become a Space provider with Bookspace.com\n"); - out.write("
มาเป็นครอบครอบเดียวกันกับเรา\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ชื่อสถานที่ *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" รูปภาพสถานที่ (จำกัดแค่สองรูป) *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" รายละเอียด *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" จุดเด่นของสถานที่คุณ *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ประเภทของงานที่เหมาะสมกับพื้นที่ของคุณ? *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ประชุม\n"); - out.write("
\n"); - out.write(" สัมมนา\n"); - out.write("
\n"); - out.write(" เวิร์คช็อป\n"); - out.write("
\n"); - out.write(" งานเปิดตัวสินค้า\n"); - out.write("
\n"); - out.write(" ปาร์ตี้\n"); - out.write("
\n"); - out.write(" ถ่ายภาพ / บันทึกภาพ\n"); - out.write("
\n"); - out.write(" มินิคอนเสิร์ต\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ประเภทสถานที่ *\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ย่านของสถานที่ *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" เบอร์โทรศัพท์ *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" อีเมล *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ราคาต่อชั่วโมง *\n"); - out.write(" ไม่รองรับใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ราคาต่อวัน *\n"); - out.write(" ไม่รองรับใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ความจุ ยืน *
\n"); - out.write(" ไม่มีใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ความจุ โต๊ะกลม *
\n"); - out.write(" ไม่มีใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ความจุ นั่ง *
\n"); - out.write(" ไม่มีใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ความจุ โต๊ะประชุม *
\n"); - out.write(" ไม่มีใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ความจุ ห้องพัก *
\n"); - out.write(" ไม่มีใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ความจุ ที่จอดรถ *
\n"); - out.write(" ไม่มีใส่ 0\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" Become a Space provider with Bookspace.com\n"); - out.write("
มาเป็นครอบครอบเดียวกันกับเรา\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ที่อยู่ *\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ที่อยู่ *\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" โปรดระบุชื่อสถานที่ของคุณ\n"); - out.write(" และปักหมุดที่สถานที่ของคุณให้ตรงกับสถานที่จริง\n"); - out.write(" \n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - } else { - response.sendRedirect("error-loginbefore_pv.jsp"); - } - out.write("\n"); - out.write("\n"); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/generated/src/org/apache/jsp/booking_002dpage_jsp.class.smap b/build/generated/src/org/apache/jsp/booking_002dpage_jsp.class.smap deleted file mode 100644 index a1f4bf2..0000000 --- a/build/generated/src/org/apache/jsp/booking_002dpage_jsp.class.smap +++ /dev/null @@ -1,46 +0,0 @@ -SMAP -booking_002dpage_jsp.java -JSP -*S JSP -*F -+ 0 booking-page.jsp -booking-page.jsp -+ 1 header-nav.jsp -header-nav.jsp -*L -5,27:50 -5#1,15:77 -20,3:93 -22,7:96 -29:103,3 -30,12:106 -42:118,3 -43,6:121 -49:127,3 -50,13:130 -63:143,3 -64,18:146 -82:164,3 -83,4:167 -31#0,2:170 -33,3:173 -35,8:176 -43,2:184,3 -45,3:190 -48,3:193,3 -51:202 -52,2:203,3 -54:209 -55,2:210,3 -57:216 -58:217,3 -59,9:220 -68:229,7 -69,2:236 -71:238,7 -72,10:245 -82,4:256 -85,46:260 -131,2:307 -132,116:309 -*E diff --git a/build/generated/src/org/apache/jsp/booking_002dpage_jsp.java b/build/generated/src/org/apache/jsp/booking_002dpage_jsp.java deleted file mode 100644 index b1b334c..0000000 --- a/build/generated/src/org/apache/jsp/booking_002dpage_jsp.java +++ /dev/null @@ -1,437 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; -import model.PlaceData; - -public final class booking_002dpage_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - static { - _jspx_dependants = new java.util.ArrayList(1); - _jspx_dependants.add("/header-nav.jsp"); - } - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(" \n"); - out.write(" "); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - - String username = (String) session.getAttribute("username"); - String role = (String) session.getAttribute("role"); - if (username != "" && username != null && role == null) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else if (username != "" && username != null && role.equals("provider")) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else { - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write(" "); - } - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - out.write(" "); - - PlaceData pd_rs = (PlaceData) request.getAttribute("data_set"); - - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
กรอกรายละเอียดการจองไปที่
\n"); - out.write("

"); - out.print( pd_rs.getPlace_name()); - out.write("

\n"); - out.write("
"); - out.print( pd_rs.getPlace_address()); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write(" "); - if (pd_rs.getPrice_pday() != 0.0) { - out.write("\n"); - out.write("
"); - out.print( pd_rs.getPrice_pday()); - out.write(" ต่อวัน
\n"); - out.write(" "); -} else { - out.write("\n"); - out.write("
ไม่เปิดจองแบบวัน
\n"); - out.write(" "); -} - out.write("\n"); - out.write(" "); - if (pd_rs.getPrice_phour() != 0.0) {; - out.write("\n"); - out.write("\n"); - out.write("
"); - out.print( pd_rs.getPrice_phour()); - out.write(" ต่อชั่วโมง
\n"); - out.write(" "); -} else { - out.write("\n"); - out.write("
ไมเปิดจองแบบชั่วโมง
\n"); - out.write(" "); -} - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
กรุณาเลือกประเภทการจองของท่าน
\n"); - out.write(" \n"); - out.write("\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); - - session.setAttribute("place_name", pd_rs.getPlace_name()); - session.setAttribute("cost_pday", pd_rs.getPrice_pday()); - session.setAttribute("cost_phour",pd_rs.getPrice_phour()); - - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
รายละเอียดงานอีเว้นท์ของท่าน
\n"); - out.write("
\n"); - out.write(" จำนวนผู้เข้าร่วม *\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" บอกรายละเอียดเกี่ยวกับอีเว้นท์ของท่าน (optional)\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" เลือกวันเวลาที่ท่านต้องการจอง\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" เวลาเริ่มจอง\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" เวลาสิ้นสุดการจอง\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); - - session.setAttribute("place_name", pd_rs.getPlace_name()); - - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
รายละเอียดงานอีเว้นท์ของท่าน
\n"); - out.write("
\n"); - out.write(" จำนวนผู้เข้าร่วม *\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" บอกรายละเอียดเกี่ยวกับอีเว้นท์ของท่าน (optional)\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" เลือกวันเวลาที่ท่านต้องการจอง\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" วันที่ต้องการจอง\n"); - out.write(" \n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" เวลาเริ่มจอง\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" เวลาสินสุดการจอง\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(""); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/generated/src/org/apache/jsp/cancel_005fresult_jsp.class.smap b/build/generated/src/org/apache/jsp/cancel_005fresult_jsp.class.smap deleted file mode 100644 index 1153358..0000000 --- a/build/generated/src/org/apache/jsp/cancel_005fresult_jsp.class.smap +++ /dev/null @@ -1,12 +0,0 @@ -SMAP -cancel_005fresult_jsp.java -JSP -*S JSP -*F -+ 0 cancel_result.jsp -cancel_result.jsp -*L -5,27:44 -32:71,2 -33,13:73 -*E diff --git a/build/generated/src/org/apache/jsp/cancel_005fresult_jsp.java b/build/generated/src/org/apache/jsp/cancel_005fresult_jsp.java deleted file mode 100644 index 7000c55..0000000 --- a/build/generated/src/org/apache/jsp/cancel_005fresult_jsp.java +++ /dev/null @@ -1,97 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; - -public final class cancel_005fresult_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - out.write("\n"); - out.write("
\n"); - out.write("

สิ้นสุดการดำเนินการ


\n"); - out.write(" \n"); - out.write("

ระบบกำลังพาท่านไปยังหน้าแรกของเว็บไซต์

\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/generated/src/org/apache/jsp/index_jsp.class.smap b/build/generated/src/org/apache/jsp/index_jsp.class.smap new file mode 100644 index 0000000..5c97c1b --- /dev/null +++ b/build/generated/src/org/apache/jsp/index_jsp.class.smap @@ -0,0 +1,40 @@ +SMAP +index_jsp.java +JSP +*S JSP +*F ++ 0 index.jsp +index.jsp ++ 1 header-nav.jsp +header-nav.jsp +*L +5,25:54 +5#1,15:79 +20,3:95 +22,7:98 +29:105,3 +30,12:108 +42:120,3 +43,6:123 +49:129,3 +50,12:132 +62:144,3 +63,18:147 +81:165,3 +82,4:168 +29#0,28:171 +57,7:200 +63,4:207 +66,8:211 +73:219 +74:220,3 +75,3:223 +78,3:226,3 +81:235 +82:236,3 +83,2:239 +85:241,3 +86,3:244 +89:247,3 +90,44:250 +*E diff --git a/build/generated/src/org/apache/jsp/manage_002dplace_jsp.java b/build/generated/src/org/apache/jsp/index_jsp.java similarity index 58% rename from build/generated/src/org/apache/jsp/manage_002dplace_jsp.java rename to build/generated/src/org/apache/jsp/index_jsp.java index 461b823..c84963f 100644 --- a/build/generated/src/org/apache/jsp/manage_002dplace_jsp.java +++ b/build/generated/src/org/apache/jsp/index_jsp.java @@ -3,11 +3,13 @@ import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; -import java.util.List; import model.Place; import java.sql.Connection; +import model.PlaceImage; +import java.util.ArrayList; +import model.PlaceData; -public final class manage_002dplace_jsp extends org.apache.jasper.runtime.HttpJspBase +public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); @@ -56,23 +58,23 @@ public void _jspService(HttpServletRequest request, HttpServletResponse response out.write("\n"); out.write("\n"); out.write("\n"); + out.write("\n"); out.write("\n"); out.write("\n"); out.write(" \n"); out.write(" \n"); - out.write(" JSP Page\n"); + out.write(" BOOKSPACE.COM\n"); out.write(" \n"); out.write(" \n"); - out.write(" \n"); out.write(" \n"); - out.write(" \n"); + out.write(" \n"); out.write(" \n"); + out.write(" \n"); out.write(" \n"); out.write(" \n"); out.write(" \n"); out.write(" \n"); - out.write("\n"); - out.write(" \n"); + out.write(" \n"); out.write(" "); out.write("\n"); out.write("\n"); @@ -84,7 +86,7 @@ public void _jspService(HttpServletRequest request, HttpServletResponse response out.write("\n"); out.write(" \n"); out.write(" \n"); - out.write(" JSP Page\n"); + out.write(" BOOKSPACE.COM\n"); out.write("\n"); out.write(" \n"); out.write(" \n"); @@ -106,7 +108,7 @@ public void _jspService(HttpServletRequest request, HttpServletResponse response out.write(" \n"); out.write("
\n"); out.write("
เกี่ยวกับคุณ
\n"); - out.write(" ประวัติการจอง\n"); + out.write(" ประวัติการจอง\n"); out.write(" แก้ไขโปรไฟล์\n"); out.write(" ออกจากระบบ\n"); out.write(" \n"); @@ -133,7 +135,6 @@ public void _jspService(HttpServletRequest request, HttpServletResponse response out.write(" ลงสถานที่ของคุณ\n"); out.write(" จัดการสถานที่\n"); out.write(" \n"); - out.write(" ลงโฆษณา\n"); out.write(" ออกจากระบบ\n"); out.write("
\n"); out.write(" \n"); @@ -168,51 +169,118 @@ public void _jspService(HttpServletRequest request, HttpServletResponse response out.write(" \n"); out.write("\n"); out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("

Manage your place

\n"); - out.write("
\n"); + out.write(" \n"); + out.write("
\n"); + out.write("
\n"); + out.write(" \n"); + out.write("

บุ๊คสเปซ.คอม

\n"); + out.write("

คุณกำลังมองหาสถานที่เพื่อทำกิจกรรมใช่หรือใหม่ ?

\n"); + out.write("
\n"); + out.write(" \n"); + out.write(" \n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("

The recomended place

\n"); + out.write("

a best place where a most review point

\n"); + out.write("
\n"); + out.write("
\n"); out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); + out.write("\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" "); - ServletContext sc = getServletContext(); - Connection conn = (Connection) sc.getAttribute("conn"); - Place p = new Place(conn); - String owner_name = (String) session.getAttribute("owner"); - List rs_place_name = p.queryPlaceByNameProvider(owner_name); - for (String place_name : rs_place_name) { + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + Place place = new Place(conn); + ArrayList place_set = place.queryPlaceSponser(); + for (PlaceData pd : place_set) { + + out.write("\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" "); + ArrayList pathImage = pd.getPlace_img(); + String pathImage_1 = ""; + PlaceImage pimage = pathImage.get(0); +// pathImage_1 = "http://localhost:8080/" + request.getContextPath() + "/image/" + pimage.getImg_name(); + pathImage_1 = "http://group20.tomcat.it.kmitl.ac.th//image/" + pimage.getImg_name(); + System.out.println(pathImage_1); - + out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
ชื่อสถานที่
\n"); - out.write("
\n"); - out.write(" "); - out.print(place_name); + out.write("
\n"); out.write("\n"); - out.write("
\n"); out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
ดูการจอง
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
ลงโฆษณา
\n"); - out.write("
\n"); + out.write("
\n"); + out.write("
"); + out.print( pd.getOwner_name()); + out.write(" Place ' s owner
\n"); + out.write("
"); + out.print( pd.getPlace_name()); + out.write("
\n"); + out.write("
"); + out.print( pd.getPlace_address()); + out.write("
\n"); + out.write("\n"); + out.write("
"); + out.print( pd.getPrice_pday()); + out.write(" per day
\n"); + out.write("\n"); + out.write("
\n"); + out.write(" \n"); out.write("
\n"); out.write("
\n"); - out.write(" "); + out.write("
\n"); + out.write(" "); } out.write("\n"); - out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("\n"); + out.write("\n"); + out.write(" \n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" \n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" \n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" We are number one online marketplace for event venue covering different event types from seminar to party to support industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.We are number one online marketplace for event venue covering different event types from seminar to party to support MICE industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" \n"); + out.write("\n"); + out.write("\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write("
\n"); + out.write(" @CopyRight 2018 it_kmitl project\n"); out.write("
\n"); out.write("
\n"); out.write("
\n"); @@ -220,8 +288,6 @@ public void _jspService(HttpServletRequest request, HttpServletResponse response out.write(" \n"); out.write(" \n"); out.write(" \n"); - out.write(" \n"); - out.write(" \n"); out.write(" \n"); out.write("\n"); } catch (Throwable t) { diff --git a/build/generated/src/org/apache/jsp/login_jsp.class.smap b/build/generated/src/org/apache/jsp/login_jsp.class.smap deleted file mode 100644 index 5c4d524..0000000 --- a/build/generated/src/org/apache/jsp/login_jsp.class.smap +++ /dev/null @@ -1,30 +0,0 @@ -SMAP -login_jsp.java -JSP -*S JSP -*F -+ 0 login.jsp -login.jsp -+ 1 login_2.css -css/login_2.css -+ 2 header-nav.jsp -header-nav.jsp -*L -5,21:50 -1#1,35:71 -25#0,4:106 -5#2,15:110 -20,3:126 -22,7:129 -29:136,3 -30,12:139 -42:151,3 -43,6:154 -49:160,3 -50,13:163 -63:176,3 -64,18:179 -82:197,3 -83,4:200 -28#0,38:203 -*E diff --git a/build/generated/src/org/apache/jsp/login_jsp.java b/build/generated/src/org/apache/jsp/login_jsp.java deleted file mode 100644 index ea3c14b..0000000 --- a/build/generated/src/org/apache/jsp/login_jsp.java +++ /dev/null @@ -1,252 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; - -public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - static { - _jspx_dependants = new java.util.ArrayList(2); - _jspx_dependants.add("/css/login_2.css"); - _jspx_dependants.add("/header-nav.jsp"); - } - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - - String username = (String) session.getAttribute("username"); - String role = (String) session.getAttribute("role"); - if (username != "" && username != null && role == null) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else if (username != "" && username != null && role.equals("provider")) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else { - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write(" "); - } - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/generated/src/org/apache/jsp/manage_002dplace_jsp.class.smap b/build/generated/src/org/apache/jsp/manage_002dplace_jsp.class.smap deleted file mode 100644 index ca92fca..0000000 --- a/build/generated/src/org/apache/jsp/manage_002dplace_jsp.class.smap +++ /dev/null @@ -1,34 +0,0 @@ -SMAP -manage_002dplace_jsp.java -JSP -*S JSP -*F -+ 0 manage-place.jsp -manage-place.jsp -+ 1 header-nav.jsp -header-nav.jsp -*L -5,25:52 -5#1,15:77 -20,3:93 -22,7:96 -29:103,3 -30,12:106 -42:118,3 -43,6:121 -49:127,3 -50,13:130 -63:143,3 -64,18:146 -82:164,3 -83,4:167 -29#0,11:170 -40,9:182 -48,5:191 -53:196,3 -54,3:199 -57:202,3 -58,7:205 -65:212,3 -66,13:215 -*E diff --git a/build/generated/src/org/apache/jsp/payment_002dpage_jsp_jsp.class.smap b/build/generated/src/org/apache/jsp/payment_002dpage_jsp_jsp.class.smap deleted file mode 100644 index 0ce891d..0000000 --- a/build/generated/src/org/apache/jsp/payment_002dpage_jsp_jsp.class.smap +++ /dev/null @@ -1,28 +0,0 @@ -SMAP -payment_002dpage_jsp_jsp.java -JSP -*S JSP -*F -+ 0 payment-page.jsp.jsp -payment-page.jsp.jsp -+ 1 header-nav.jsp -header-nav.jsp -*L -5,27:50 -5#1,15:77 -20,3:93 -22,7:96 -29:103,3 -30,12:106 -42:118,3 -43,6:121 -49:127,3 -50,13:130 -63:143,3 -64,18:146 -82:164,3 -83,4:167 -31#0,2:170 -33,3:173 -35,116:176 -*E diff --git a/build/generated/src/org/apache/jsp/payment_002dpage_jsp_jsp.java b/build/generated/src/org/apache/jsp/payment_002dpage_jsp_jsp.java deleted file mode 100644 index 3f58d86..0000000 --- a/build/generated/src/org/apache/jsp/payment_002dpage_jsp_jsp.java +++ /dev/null @@ -1,304 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; -import model.PlaceData; - -public final class payment_002dpage_jsp_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - static { - _jspx_dependants = new java.util.ArrayList(1); - _jspx_dependants.add("/header-nav.jsp"); - } - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(" \n"); - out.write(" "); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - - String username = (String) session.getAttribute("username"); - String role = (String) session.getAttribute("role"); - if (username != "" && username != null && role == null) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else if (username != "" && username != null && role.equals("provider")) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else { - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write(" "); - } - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - out.write(" "); - - PlaceData pd_rs = (PlaceData) request.getAttribute("data_set"); - - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
รายละเอียดการชำระเงิน
\n"); - out.write("
\n"); - out.write(" ช่องทางการชำระเงิน\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" หมายเลขบัตรเครดิต/เดบิต\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ชื่อบนบัตร\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" วันหมดอายุ\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" รหัส CVC/CVV\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
เมื่อกดจองเเล้วไม่สามารถของเงินคืนได้หากต้องการยกเลิกการจองได้
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(""); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/generated/src/org/apache/jsp/place_jsp.class.smap b/build/generated/src/org/apache/jsp/place_jsp.class.smap deleted file mode 100644 index ae06b66..0000000 --- a/build/generated/src/org/apache/jsp/place_jsp.class.smap +++ /dev/null @@ -1,54 +0,0 @@ -SMAP -place_jsp.java -JSP -*S JSP -*F -+ 0 place.jsp -place.jsp -+ 1 header-nav.jsp -header-nav.jsp -+ 2 setMap.jsp -setMap.jsp -*L -5,22:51 -5#1,15:73 -20,3:89 -22,7:92 -29:99,3 -30,12:102 -42:114,3 -43,6:117 -49:123,3 -50,13:126 -63:139,3 -64,18:142 -82:160,3 -83,4:163 -26#0,3:166 -28,3:169 -30,34:172 -64,2:206,3 -66,4:212 -70:216,5 -71,9:221 -80:230,3 -81,12:233 -93:245,3 -94,60:248 -154:308,3 -155,3:311 -158:314,3 -159,3:317 -162:320,3 -163,3:323 -166:326,3 -167,64:329 -231,3:393,3 -234,28:402 -5#2,19:430 -24:449,5 -25,8:454 -33:462,5 -34,14:467 -261#0,6:480 -*E diff --git a/build/generated/src/org/apache/jsp/place_jsp.java b/build/generated/src/org/apache/jsp/place_jsp.java deleted file mode 100644 index 47eece5..0000000 --- a/build/generated/src/org/apache/jsp/place_jsp.java +++ /dev/null @@ -1,497 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; -import model.PlaceData; - -public final class place_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - static { - _jspx_dependants = new java.util.ArrayList(2); - _jspx_dependants.add("/header-nav.jsp"); - _jspx_dependants.add("/setMap.jsp"); - } - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(" \n"); - out.write(" "); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - - String username = (String) session.getAttribute("username"); - String role = (String) session.getAttribute("role"); - if (username != "" && username != null && role == null) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else if (username != "" && username != null && role.equals("provider")) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else { - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write(" "); - } - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" "); - PlaceData pd_rs = (PlaceData) request.getAttribute("data_set"); - System.out.println(pd_rs); - - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \"First\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \"Second\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \"Third\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" Previous\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" Next\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" รายละเอียดของสถานที่\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); - out.print( pd_rs.getPlace_address()); - out.write(" \n"); - out.write("

"); - out.print( pd_rs.getPlace_name()); - out.write("

\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
Status "); - out.print( pd_rs.getPlace_status()); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
รายละเอียดของสถานที่
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); - out.print( pd_rs.getPlace_description()); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
จุดเด่นของสถานที่
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); - out.print( pd_rs.getPlace_featured()); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
ตำแหน่งของสถานที่
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
ที่อยู่
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" 129 พระราม 9 แขวง ห้วยขวาง เขต ห้วยขวาง Bangkok 10310\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
ความจุ
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
"); - out.print( pd_rs.getStand_capacity()); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
"); - out.print( pd_rs.getBanquat_capacity()); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
"); - out.print( pd_rs.getMeeting_capacity()); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
"); - out.print( pd_rs.getSit_capacity()); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
แสดงความคิดเห็น
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
Comment !
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
ความคิดเห็น
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
สมชาย ขนดก
\n"); - out.write("

สมชายว่ามันดีมากๆ เลยครับ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
สมชาย ขนดก
\n"); - out.write("

สมชายว่ามันดีมากๆ เลยครับ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" "); - if(pd_rs.getPrice_pday() > 0){ - out.write("\n"); - out.write(" "); - out.print( pd_rs.getPrice_pday()); - out.write(" \n"); - out.write(" "); -} - out.write("\n"); - out.write("
\n"); - out.write(" ต่อชั่วโมง | ค่าเช่าสถานที่เท่านั้น • ขั้นต่ำ 4 ชั่วโมง\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/generated/src/org/apache/jsp/search_002dlist_jsp.class.smap b/build/generated/src/org/apache/jsp/search_002dlist_jsp.class.smap deleted file mode 100644 index c30fff0..0000000 --- a/build/generated/src/org/apache/jsp/search_002dlist_jsp.class.smap +++ /dev/null @@ -1,40 +0,0 @@ -SMAP -search_002dlist_jsp.java -JSP -*S JSP -*F -+ 0 search-list.jsp -search-list.jsp -+ 1 header-nav.jsp -header-nav.jsp -*L -5,32:53 -5#1,15:85 -20,3:101 -22,7:104 -29:111,3 -30,12:114 -42:126,3 -43,6:129 -49:135,3 -50,13:138 -63:151,3 -64,18:154 -82:172,3 -83,4:175 -36#0:178 -37:179,2 -38,122:181 -160,5:304 -164,4:309 -168,7:314 -174:321 -175:322,3 -176,3:325 -179,3:328,3 -182,2:337 -184:339,3 -185,4:342 -188,2:346 -189,38:348 -*E diff --git a/build/generated/src/org/apache/jsp/search_002dlist_jsp.java b/build/generated/src/org/apache/jsp/search_002dlist_jsp.java deleted file mode 100644 index e02df2f..0000000 --- a/build/generated/src/org/apache/jsp/search_002dlist_jsp.java +++ /dev/null @@ -1,398 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; -import model.PlaceImage; -import java.sql.Connection; -import java.util.ArrayList; -import model.PlaceData; - -public final class search_002dlist_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - static { - _jspx_dependants = new java.util.ArrayList(1); - _jspx_dependants.add("/header-nav.jsp"); - } - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(" \n"); - out.write(" "); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" "); - - String username = (String) session.getAttribute("username"); - String role = (String) session.getAttribute("role"); - if (username != "" && username != null && role == null) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else if (username != "" && username != null && role.equals("provider")) { - out.write("\n"); - out.write(" \n"); - out.write(" "); - } else { - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write(" "); - } - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write("\n"); - out.write("\n"); - out.write(" "); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" Search more \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" ต้องการลงพื้นที่ของท่าน\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
    \n"); - out.write(" \n"); - out.write("
  • ดูผ่านแผนที่
  • \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("\n"); - out.write(" "); - - if (request.getAttribute("searched") != null) { - ArrayList list_forShow = (ArrayList) request.getAttribute("place_all"); - for (PlaceData pd : list_forShow) { - - - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); - - ArrayList pathImage = pd.getPlace_img(); - String pathImage_1 = ""; - PlaceImage pimage = pathImage.get(0); - pathImage_1 = "http://localhost:8080/"+request.getContextPath()+"/image/"+pimage.getImg_name(); - System.out.println(pathImage_1); - - - out.write("\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
"); - out.print( pd.getOwner_name()); - out.write(" Place ' s owner
\n"); - out.write("
"); - out.print( pd.getPlace_name()); - out.write("
\n"); - out.write("
"); - out.print( pd.getPrice_pday()); - out.write(" per day
\n"); - out.write("\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" "); - } - } - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" Contact Us\n"); - out.write("
\n"); - out.write("

\n"); - out.write(" Email: 59070088@it.kmitl.ac.th\n"); - out.write("
Phone Number: +66970699888\n"); - out.write("

\n"); - out.write("
\n"); - out.write(" \n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write("
\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write(" \n"); - out.write("\n"); - out.write(""); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/generated/src/org/apache/jsp/testQuery_jsp.class.smap b/build/generated/src/org/apache/jsp/testQuery_jsp.class.smap deleted file mode 100644 index 2d04806..0000000 --- a/build/generated/src/org/apache/jsp/testQuery_jsp.class.smap +++ /dev/null @@ -1,12 +0,0 @@ -SMAP -testQuery_jsp.java -JSP -*S JSP -*F -+ 0 testQuery.jsp -testQuery.jsp -*L -5,18:49 -23,12:68 -34,4:80 -*E diff --git a/build/generated/src/org/apache/jsp/testQuery_jsp.java b/build/generated/src/org/apache/jsp/testQuery_jsp.java deleted file mode 100644 index 8c4b20c..0000000 --- a/build/generated/src/org/apache/jsp/testQuery_jsp.java +++ /dev/null @@ -1,95 +0,0 @@ -package org.apache.jsp; - -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; -import java.sql.ResultSet; -import java.sql.Statement; -import model.PlaceDescription; -import java.sql.Connection; -import controller.NewPlace; - -public final class testQuery_jsp extends org.apache.jasper.runtime.HttpJspBase - implements org.apache.jasper.runtime.JspSourceDependent { - - private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); - - private static java.util.List _jspx_dependants; - - private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector; - - public java.util.List getDependants() { - return _jspx_dependants; - } - - public void _jspService(HttpServletRequest request, HttpServletResponse response) - throws java.io.IOException, ServletException { - - PageContext pageContext = null; - HttpSession session = null; - ServletContext application = null; - ServletConfig config = null; - JspWriter out = null; - Object page = this; - JspWriter _jspx_out = null; - PageContext _jspx_page_context = null; - - try { - response.setContentType("text/html;charset=UTF-8"); - pageContext = _jspxFactory.getPageContext(this, request, response, - null, true, 8192, true); - _jspx_page_context = pageContext; - application = pageContext.getServletContext(); - config = pageContext.getServletConfig(); - session = pageContext.getSession(); - out = pageContext.getOut(); - _jspx_out = out; - _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); - - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write("\n"); - out.write(" \n"); - out.write(" \n"); - out.write(" JSP Page\n"); - out.write(" \n"); - out.write(" \n"); - out.write("

Hello World!

\n"); - out.write(" \n"); - out.write(" "); - - ServletContext sc = getServletContext(); - Connection conn = (Connection) sc.getAttribute("conn"); -// PlaceDescription pd = new PlaceDescription(conn); - - Statement st = conn.createStatement(); - String sql = "select * from place_picture"; - ResultSet rs = st.executeQuery(sql); - while (rs.next()){ - out.println(rs.getString("img_name")+"
"); - out.println(rs.getString("place_name")+"
"); - } - - out.write("\n"); - out.write(" \n"); - out.write("\n"); - } catch (Throwable t) { - if (!(t instanceof SkipPageException)){ - out = _jspx_out; - if (out != null && out.getBufferSize() != 0) - out.clearBuffer(); - if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); - else throw new ServletException(t); - } - } finally { - _jspxFactory.releasePageContext(_jspx_page_context); - } - } -} diff --git a/build/web/META-INF/context.xml b/build/web/META-INF/context.xml index fc5f86f..036afe2 100644 --- a/build/web/META-INF/context.xml +++ b/build/web/META-INF/context.xml @@ -1,4 +1,8 @@ - + + + + diff --git a/build/web/WEB-INF/classes/controller/AdvertisementServelet.class b/build/web/WEB-INF/classes/controller/AdvertisementServelet.class new file mode 100644 index 0000000..395a212 Binary files /dev/null and b/build/web/WEB-INF/classes/controller/AdvertisementServelet.class differ diff --git a/build/web/WEB-INF/classes/controller/ApproveBooking.class b/build/web/WEB-INF/classes/controller/ApproveBooking.class new file mode 100644 index 0000000..b677332 Binary files /dev/null and b/build/web/WEB-INF/classes/controller/ApproveBooking.class differ diff --git a/build/web/WEB-INF/classes/controller/BookingServlet.class b/build/web/WEB-INF/classes/controller/BookingServlet.class index dbed5ef..a3229ee 100644 Binary files a/build/web/WEB-INF/classes/controller/BookingServlet.class and b/build/web/WEB-INF/classes/controller/BookingServlet.class differ diff --git a/build/web/WEB-INF/classes/controller/CommentServlet.class b/build/web/WEB-INF/classes/controller/CommentServlet.class new file mode 100644 index 0000000..4c1b06f Binary files /dev/null and b/build/web/WEB-INF/classes/controller/CommentServlet.class differ diff --git a/build/web/WEB-INF/classes/controller/LoginAdminServlet.class b/build/web/WEB-INF/classes/controller/LoginAdminServlet.class new file mode 100644 index 0000000..b1f1df1 Binary files /dev/null and b/build/web/WEB-INF/classes/controller/LoginAdminServlet.class differ diff --git a/build/web/WEB-INF/classes/controller/LoginProviderServlet.class b/build/web/WEB-INF/classes/controller/LoginProviderServlet.class index 2f355ce..f8c8207 100644 Binary files a/build/web/WEB-INF/classes/controller/LoginProviderServlet.class and b/build/web/WEB-INF/classes/controller/LoginProviderServlet.class differ diff --git a/build/web/WEB-INF/classes/controller/SignUpProviderServlet.class b/build/web/WEB-INF/classes/controller/SignUpProviderServlet.class index 77e3ed3..b827e0c 100644 Binary files a/build/web/WEB-INF/classes/controller/SignUpProviderServlet.class and b/build/web/WEB-INF/classes/controller/SignUpProviderServlet.class differ diff --git a/build/web/WEB-INF/classes/controller/SignUpServlet.class b/build/web/WEB-INF/classes/controller/SignUpServlet.class index 0b644e1..fb75430 100644 Binary files a/build/web/WEB-INF/classes/controller/SignUpServlet.class and b/build/web/WEB-INF/classes/controller/SignUpServlet.class differ diff --git a/build/web/WEB-INF/classes/controller/UpdateProfile.class b/build/web/WEB-INF/classes/controller/UpdateProfile.class index 6b6980b..95172f0 100644 Binary files a/build/web/WEB-INF/classes/controller/UpdateProfile.class and b/build/web/WEB-INF/classes/controller/UpdateProfile.class differ diff --git a/build/web/WEB-INF/classes/controller/UpdateStatusAds.class b/build/web/WEB-INF/classes/controller/UpdateStatusAds.class new file mode 100644 index 0000000..1f51a1d Binary files /dev/null and b/build/web/WEB-INF/classes/controller/UpdateStatusAds.class differ diff --git a/build/web/WEB-INF/classes/controller/UpdateStatusProvider.class b/build/web/WEB-INF/classes/controller/UpdateStatusProvider.class new file mode 100644 index 0000000..bb54d03 Binary files /dev/null and b/build/web/WEB-INF/classes/controller/UpdateStatusProvider.class differ diff --git a/build/web/WEB-INF/classes/listener/Init.class b/build/web/WEB-INF/classes/listener/Init.class index 923b567..858fcb8 100644 Binary files a/build/web/WEB-INF/classes/listener/Init.class and b/build/web/WEB-INF/classes/listener/Init.class differ diff --git a/build/web/WEB-INF/classes/model/Admin.class b/build/web/WEB-INF/classes/model/Admin.class new file mode 100644 index 0000000..80e9d71 Binary files /dev/null and b/build/web/WEB-INF/classes/model/Admin.class differ diff --git a/build/web/WEB-INF/classes/model/AdsDescription.class b/build/web/WEB-INF/classes/model/AdsDescription.class new file mode 100644 index 0000000..7b13e3d Binary files /dev/null and b/build/web/WEB-INF/classes/model/AdsDescription.class differ diff --git a/build/web/WEB-INF/classes/model/AdsvertiseData.class b/build/web/WEB-INF/classes/model/AdsvertiseData.class new file mode 100644 index 0000000..7ba3842 Binary files /dev/null and b/build/web/WEB-INF/classes/model/AdsvertiseData.class differ diff --git a/build/web/WEB-INF/classes/model/Booking.class b/build/web/WEB-INF/classes/model/Booking.class index 092e3d3..cf1ab7f 100644 Binary files a/build/web/WEB-INF/classes/model/Booking.class and b/build/web/WEB-INF/classes/model/Booking.class differ diff --git a/build/web/WEB-INF/classes/model/Comment.class b/build/web/WEB-INF/classes/model/Comment.class new file mode 100644 index 0000000..1fe6064 Binary files /dev/null and b/build/web/WEB-INF/classes/model/Comment.class differ diff --git a/build/web/WEB-INF/classes/model/CommentData.class b/build/web/WEB-INF/classes/model/CommentData.class new file mode 100644 index 0000000..04e5a67 Binary files /dev/null and b/build/web/WEB-INF/classes/model/CommentData.class differ diff --git a/build/web/WEB-INF/classes/model/Members.class b/build/web/WEB-INF/classes/model/Members.class index 0e93a40..c5405f4 100644 Binary files a/build/web/WEB-INF/classes/model/Members.class and b/build/web/WEB-INF/classes/model/Members.class differ diff --git a/build/web/WEB-INF/classes/model/Payment.class b/build/web/WEB-INF/classes/model/Payment.class index 92f4824..65c286b 100644 Binary files a/build/web/WEB-INF/classes/model/Payment.class and b/build/web/WEB-INF/classes/model/Payment.class differ diff --git a/build/web/WEB-INF/classes/model/Picture.class b/build/web/WEB-INF/classes/model/Picture.class index 79420d3..8e8cc82 100644 Binary files a/build/web/WEB-INF/classes/model/Picture.class and b/build/web/WEB-INF/classes/model/Picture.class differ diff --git a/build/web/WEB-INF/classes/model/Place.class b/build/web/WEB-INF/classes/model/Place.class index 2cf7393..21f0371 100644 Binary files a/build/web/WEB-INF/classes/model/Place.class and b/build/web/WEB-INF/classes/model/Place.class differ diff --git a/build/web/WEB-INF/classes/model/Provider.class b/build/web/WEB-INF/classes/model/Provider.class index 1d3fc06..9902d07 100644 Binary files a/build/web/WEB-INF/classes/model/Provider.class and b/build/web/WEB-INF/classes/model/Provider.class differ diff --git a/build/web/WEB-INF/classes/model/ProviderData.class b/build/web/WEB-INF/classes/model/ProviderData.class new file mode 100644 index 0000000..b1e83ae Binary files /dev/null and b/build/web/WEB-INF/classes/model/ProviderData.class differ diff --git a/build/web/WEB-INF/lib/mysql-connector-java-5.1.23-bin.jar b/build/web/WEB-INF/lib/mysql-connector-java-5.1.23-bin.jar new file mode 100644 index 0000000..5fc1035 Binary files /dev/null and b/build/web/WEB-INF/lib/mysql-connector-java-5.1.23-bin.jar differ diff --git a/build/web/WEB-INF/lib/mysql-connector-java-8.0.11.jar b/build/web/WEB-INF/lib/mysql-connector-java-8.0.11.jar new file mode 100644 index 0000000..c3b5f70 Binary files /dev/null and b/build/web/WEB-INF/lib/mysql-connector-java-8.0.11.jar differ diff --git a/build/web/WEB-INF/web.xml b/build/web/WEB-INF/web.xml index c494a1e..6c320dc 100644 --- a/build/web/WEB-INF/web.xml +++ b/build/web/WEB-INF/web.xml @@ -16,4 +16,11 @@ Container Shareable + + jdbc:mysql://tomcat.it.kmitl.ac.th:3306/webpro_20_dev?zeroDateTimeBehavior=convertToNull&autoReconnect=true&useEncoding=true&characterEncoding=UTF-8 + webpro_20_dev + javax.sql.DataSource + Container + Shareable + diff --git a/build/web/admin_manage.jsp b/build/web/admin_manage.jsp new file mode 100644 index 0000000..369cfec --- /dev/null +++ b/build/web/admin_manage.jsp @@ -0,0 +1,160 @@ +<%-- + Document : admin_manage.jsp + Created on : Apr 30, 2018, 2:00:32 AM + Author : mac +--%> + +<%@page import="model.AdsDescription"%> +<%@page import="model.AdsvertiseData"%> +<%@page import="model.ProviderData"%> +<%@page import="java.util.ArrayList"%> +<%@page import="model.Provider"%> +<%@page import="java.sql.Connection"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + BOOKSPACE.COM + + + + + + + + + + + + + + + <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + + if ((session.getAttribute("name")) == null) { + response.sendRedirect("error.jsp"); + } + Provider pv = new Provider(conn); + ArrayList array_pv = pv.queryProviderForAdmin(); + + AdsvertiseData adver_data = new AdsvertiseData(conn); + ArrayList ads_set = adver_data.queryAdsAll(); + + + %> +
+ สวัสดีแอดมิน : <%= session.getAttribute("name")%> +
+
+
+ +
+
+

จัดการผู้ให้บริการ

+
หน้าจัดการสมาชิกสามารถยืนยันตัวผู้ให้บริการได้
+ +
+
+
+
+
+ + + + + + + + + + + + <% + + %> + + <% for (ProviderData pv_data : array_pv) {%> + + + + + + + + + <% } %> + +
รหัสผู้ใช้ชื่อรหัสบัตรประชาชนเบอร์โทรสถานะลบสมาชิก
<%= pv_data.getUsername()%><%= pv_data.getOwner()%><%= pv_data.getIdCard()%><%= pv_data.getPhone()%><%= pv_data.getProvider_status()%><% if (pv_data.getProvider_status().equals("not_approve")) {%> + คลิกเพื่อรับรอง + <% } else {%> + ยืนยันตัวตนแล้ว + <%}%>
+
+
+
+
+ +
+
+ + +
+
+

จัดการโฆษณา

+
จัดการโฆษณาที่ผู้ให้บริการต้องการลง
+ +
+
+
+
+
+ + + + + + + + + + + + + <% + + %> + + <% for (AdsDescription ads : ads_set) {%> + + + + + + + + + + <% }%> + +
ชื่อสถานที่เวลาที่ขอลงรหัสผู้ใช้เจ้าของสถานที่วันที่เริ่มต้นและสิ้นสุดโฆษณาราคารวมสถานะอัพเดตสถานะ
<%= ads.getPlace_name() %><%= ads.getTime_purchase() %><%= ads.getProvider_username() %><%= ads.getDate_activate() %> , <%= ads.getDate_expire() %><%= ads.getCost_amount() %><%= ads.getStatus_ads() %> + คลิกเพื่อเปลี่ยนสถานะ +
+
+
+
+
+
+ + + + + + + + diff --git a/build/web/become-Host.jsp b/build/web/become-Host.jsp index acb0e94..9694f9f 100644 --- a/build/web/become-Host.jsp +++ b/build/web/become-Host.jsp @@ -9,7 +9,7 @@ - ลงสถานที่ของคุณ + BOOKSPACE.COM : ลงสถานที่ diff --git a/build/web/booking-history.jsp b/build/web/booking-history.jsp index 313a0fa..8785731 100644 --- a/build/web/booking-history.jsp +++ b/build/web/booking-history.jsp @@ -15,7 +15,7 @@ - JSP Page + BOOKSPACE.COM @@ -82,7 +82,7 @@
สถานะการชำระเงิน : <% if (bk_data.getStatus_accept_booking().equals("not_accept")) { %> - กรุณารอการอนุมัติจากเจ้าของสถานที่ + กรุณารอการอนุมัติจากเจ้าของสถานที่ <% } else if (bk_data.getStatus_payment().equals("yes")) {%> ชำระเงินแล้ว
คำเตือนหากท่านกด Cancel หรือยกเลิกท่านจะไม่สามารถได้รับเงินคืน
diff --git a/build/web/booking-page.jsp b/build/web/booking-page.jsp index c94fd5d..e94b1e1 100644 --- a/build/web/booking-page.jsp +++ b/build/web/booking-page.jsp @@ -10,7 +10,7 @@ - JSP Page + BOOKSPACE.COM @@ -31,7 +31,9 @@ <%@ include file="header-nav.jsp" %> <% PlaceData pd_rs = (PlaceData) request.getAttribute("data_set"); - + if (session.getAttribute("logged") == null) { + response.sendRedirect("comment_error.jsp"); + } %> diff --git a/build/web/buy_advertise.jsp b/build/web/buy_advertise.jsp new file mode 100644 index 0000000..7b8be2e --- /dev/null +++ b/build/web/buy_advertise.jsp @@ -0,0 +1,141 @@ +<%-- + Document : buy_advertise.jsp + Created on : Apr 29, 2018, 3:20:54 PM + Author : mac +--%> + +<%@page import="model.Place"%> +<%@page import="java.sql.Connection"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + + BOOKSPACE.COM + + + + + + + + + + + + + + + <%@ include file="header-nav.jsp" %> + <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + String place_name = request.getParameter("place_name"); + %> +
+
+
+
+
กรุณากรอกรายละเอียดการลงโฆษณาให้ครบถ้วน
+ +
+
+
+
+
+
+
+
ลงโฆษณาสถานที่ให้กับ :
<%= place_name %>
+
+
+ เลือกวันเวลาที่ท่านต้องการลงโฆษณา +
+
+
+ วันเริ่มต้น + +
+
+ วันสิ้นสุด + +
+
+
+
+
+
+ กรุณาคลิกรวมราคา + รวมราคา : + bath +
+
+
+ ประเภทการโฆษณา : โฆษณาตัวที่ 1 +

+ รายละเอียดการโฆษณา : เป็นโฆษณาตัวที่แสดงสถานที่ของคุณก่อนใครไม่ต้องเสริชก็จะเห็นสถานที่ก่อน จำกัดเพียง 10 ที่เท่านั้น +
ราคาต่อ 1 วัน : 1200 +

+ +
+
+ +
+
+
+
+ +
+ +
+
+ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/web/comment_error.jsp b/build/web/comment_error.jsp new file mode 100644 index 0000000..be8ac5c --- /dev/null +++ b/build/web/comment_error.jsp @@ -0,0 +1,52 @@ +<%-- + Document : comment_error.jsp + Created on : Apr 29, 2018, 9:08:46 PM + Author : mac +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + BOOKSPACE.COM + + + + + + + + + + + + + <%--<%@ include file="header-nav.jsp" %>--%> +
+

กรุณาเข้าสู่ระบบ
ระบบกำลังพาท่านไปยังหน้าเเรกของเว็บไซต์

+ +
+ + + + + + + + \ No newline at end of file diff --git a/build/web/comment_success.jsp b/build/web/comment_success.jsp new file mode 100644 index 0000000..8da5910 --- /dev/null +++ b/build/web/comment_success.jsp @@ -0,0 +1,54 @@ +<%-- + Document : comment_success + Created on : Apr 29, 2018, 9:49:28 PM + Author : mac +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + BOOKSPACE.COM + + + + + + + + + + + + + <%--<%@ include file="header-nav.jsp" %>--%> + + <% String place_name = (String)request.getAttribute("place_name"); %> + +
+

แสดงความคิดเห็นเรียบร้อย
+ ระบบกำลังพาท่านไปยังหน้าสถานที่ To Page : <%= place_name %>

+
+ + + + + + + + \ No newline at end of file diff --git a/build/web/create_place_success.jsp b/build/web/create_place_success.jsp index 7d8c06c..0d99c65 100644 --- a/build/web/create_place_success.jsp +++ b/build/web/create_place_success.jsp @@ -8,10 +8,47 @@ + BOOKSPACE.COM - JSP Page + + + + + + + + + + -

ลงพื้นที่เรียบร้อยละจ้าา กลับไปยังหน้าจัดการสถานที่

+ <%--<%@ include file="header-nav.jsp" %>--%> + + + +
+

ลงพื้นที่เรียบร้อยเเล้ว
+ ระบบกำลังพาท่านกลับไปยังหน้าจัดการสถานที่

+
+ + + + + + - + \ No newline at end of file diff --git a/build/web/css/admin.css b/build/web/css/admin.css new file mode 100644 index 0000000..8d7c95e --- /dev/null +++ b/build/web/css/admin.css @@ -0,0 +1,33 @@ +.topnav{ + margin-top: 3em; + margin-bottom: 3em; +} + +.button-signout{ + padding : 10px; + border-radius: 5px; + border:none; +} + + +.buttom-wrap{ + margin-bottom: 0.75em; + +} + +.content200{ + font-weight: 200; + +} + +.content{ + +} + +.des{ + font-weight: 200; +} + +tbody{ + font-weight: 200; +} \ No newline at end of file diff --git a/build/web/css/manage-booking.css b/build/web/css/manage-booking.css index bd588e9..22b8027 100644 --- a/build/web/css/manage-booking.css +++ b/build/web/css/manage-booking.css @@ -1,4 +1,4 @@ .contenter{ - font-size: 0.75em; + font-size: 0.9em; font-weight: 200; } \ No newline at end of file diff --git a/build/web/css/place.css b/build/web/css/place.css index bdd3b10..5170d20 100644 --- a/build/web/css/place.css +++ b/build/web/css/place.css @@ -214,4 +214,17 @@ margin: 0 auto; padding :5px; background-color :red; border-radius: 5px; +} + +.comment-wrap{ + padding:0.35em; +} + +.comment-button{ + border: none; + +} + +.comment-button:hover{ + cursor: pointer; } \ No newline at end of file diff --git a/build/web/css/style.css b/build/web/css/style.css index 91b2d02..42efaa9 100644 --- a/build/web/css/style.css +++ b/build/web/css/style.css @@ -21,7 +21,7 @@ a { display: flex; justify-content: center; align-items: center; - background: linear-gradient(-90deg, #e237a0, #3c1f55); + /* background-size: 100%; background-position: 50% 50%; @@ -190,8 +190,14 @@ a { .button_submit { padding: 10px 25px; - background: #1477ca; - color: white; + background: white; + color: black; + border-radius: 0.35em; + border:none; +} +.button_submit:hover { + cursor: pointer; + color:#e237a0; } @@ -302,10 +308,15 @@ a { /*section about us*/ .about_us { - background: linear-gradient(-90deg, #C33764, #1D2671); + } +._content{ + padding-left: 0.6em; + padding-right: 0.6em; +} + .content-sub { color: white; font-family: 'Kanit', sans-serif; @@ -323,7 +334,7 @@ a { .footer-nw { color: white; - background-color: #333; + /*background-color: #333;*/ } .become_partner { @@ -434,4 +445,16 @@ a { position: relative; background-repeat: no-repeat; background-size: cover; +} + +body{ + +} + + +.search-top{ + background: white; + border-radius: 10px; + padding:2em; + margin-bottom: 2em; } \ No newline at end of file diff --git a/build/web/edit-profile.jsp b/build/web/edit-profile.jsp index 8a36d33..5d3137a 100644 --- a/build/web/edit-profile.jsp +++ b/build/web/edit-profile.jsp @@ -12,7 +12,7 @@ - JSP Page + BOOKSPACE.COM @@ -39,7 +39,7 @@
@@ -54,6 +54,13 @@
+
+ +
+
<%= session.getAttribute("name")%>
+ +
+
@@ -87,29 +94,7 @@
-
-
- แก้ไขรูปโปรไฟล์ -
-
-
- -
- -
- - - -
- -
- -
ขนาดรูปควรเป็นจัตุรัส
-
- -
-
-
+
@@ -119,11 +104,8 @@ - - + + diff --git a/build/web/error-loginbefore_pv.jsp b/build/web/error-loginbefore_pv.jsp index 53cf3e9..c68049a 100644 --- a/build/web/error-loginbefore_pv.jsp +++ b/build/web/error-loginbefore_pv.jsp @@ -9,9 +9,45 @@ - JSP Page + BOOKSPACE.COM + + + + + + + + + -

Please login as provider click

+ <%--<%@ include file="header-nav.jsp" %>--%> + + + +
+

กรุณาเข้าสู่ระบบ
+ ระบบกำลังพาท่านกลับไปยังหน้าเข้าสู่ระบบ

+
+ + + + + + - + \ No newline at end of file diff --git a/build/web/error.jsp b/build/web/error.jsp index 658cd74..9ba94de 100644 --- a/build/web/error.jsp +++ b/build/web/error.jsp @@ -12,6 +12,49 @@ JSP Page -

This is error page

+ + + BOOKSPACE.COM + + + + + + + + + + + + <%--<%@ include file="header-nav.jsp" %>--%> + + + +
+

กรุณาเข้าสู่ระบบ
+ ระบบกำลังพาท่านกลับไปยังหน้าเข้าสู่ระบบ

+
+ + + + + + + + diff --git a/build/web/header-nav.jsp b/build/web/header-nav.jsp index 421e41d..2810573 100644 --- a/build/web/header-nav.jsp +++ b/build/web/header-nav.jsp @@ -12,7 +12,7 @@ - JSP Page + BOOKSPACE.COM @@ -53,7 +53,6 @@ ลงสถานที่ของคุณ จัดการสถานที่ - ลงโฆษณา ออกจากระบบ
diff --git a/build/web/image/013jblxi5jz.jpg b/build/web/image/013jblxi5jz.jpg new file mode 100644 index 0000000..d62bfed Binary files /dev/null and b/build/web/image/013jblxi5jz.jpg differ diff --git a/build/web/image/1613jb1r8udr.jpg b/build/web/image/1613jb1r8udr.jpg new file mode 100644 index 0000000..b46b56b Binary files /dev/null and b/build/web/image/1613jb1r8udr.jpg differ diff --git a/build/web/image/1613jb1r8udrso.jpg b/build/web/image/1613jb1r8udrso.jpg new file mode 100644 index 0000000..b46b56b Binary files /dev/null and b/build/web/image/1613jb1r8udrso.jpg differ diff --git a/build/web/image/1613jb1r8udv.jpg b/build/web/image/1613jb1r8udv.jpg new file mode 100644 index 0000000..b3fb04d Binary files /dev/null and b/build/web/image/1613jb1r8udv.jpg differ diff --git a/build/web/image/1617jev63oii.jpg b/build/web/image/1617jev63oii.jpg new file mode 100644 index 0000000..6761c12 Binary files /dev/null and b/build/web/image/1617jev63oii.jpg differ diff --git a/build/web/index.jsp b/build/web/index.jsp index d074859..664ab2a 100644 --- a/build/web/index.jsp +++ b/build/web/index.jsp @@ -4,158 +4,95 @@ Author : mac --%> +<%@page import="model.Place"%> +<%@page import="java.sql.Connection"%> +<%@page import="model.PlaceImage"%> +<%@page import="java.util.ArrayList"%> +<%@page import="model.PlaceData"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> - JSP Page + BOOKSPACE.COM + - + <%@ include file="header-nav.jsp" %>
-
-

-

- best place | best deal

-
-
-
- -
- -
-
-
-
-

The recomended place

- -
-
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
+
+
+
+
+
+

The recomended place

+
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
+ +
+
+ <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + Place place = new Place(conn); + ArrayList place_set = place.queryPlaceSponser(); + for (PlaceData pd : place_set) { + + %> +
+
+ <% ArrayList pathImage = pd.getPlace_img(); + String pathImage_1 = ""; + PlaceImage pimage = pathImage.get(0); +// pathImage_1 = "http://localhost:8080/" + request.getContextPath() + "/image/" + pimage.getImg_name(); + pathImage_1 = "http://group20.tomcat.it.kmitl.ac.th//image/" + pimage.getImg_name(); + System.out.println(pathImage_1); + + %> +
+ +
+
+
<%= pd.getOwner_name()%> Place ' s owner
+
<%= pd.getPlace_name()%>
+
<%= pd.getPlace_address()%>
+ +
<%= pd.getPrice_pday()%> per day
+ +
+ +
+ <% }%>
+ +
@@ -168,7 +105,7 @@
- We are number one online marketplace for event venue covering different event types from seminar to party to support MICE industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.We are number one online marketplace for event venue covering different event types from seminar to party to support MICE industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues. + We are number one online marketplace for event venue covering different event types from seminar to party to support industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.We are number one online marketplace for event venue covering different event types from seminar to party to support MICE industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.
@@ -177,20 +114,13 @@
+ +
- +
diff --git a/build/web/login_admin.jsp b/build/web/login_admin.jsp new file mode 100644 index 0000000..f344fcb --- /dev/null +++ b/build/web/login_admin.jsp @@ -0,0 +1,51 @@ +<%-- + Document : login_admin.jsp + Created on : Apr 30, 2018, 1:43:59 AM + Author : mac +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + BOOKSPACE.COM + + + + + + + + + + + + + +
+ +
Ï + + + + + + diff --git a/build/web/login_provider.jsp b/build/web/login_provider.jsp index b8b3c0b..7f9cd50 100644 --- a/build/web/login_provider.jsp +++ b/build/web/login_provider.jsp @@ -9,7 +9,7 @@ - JSP Page + BOOKSPACE.COM @@ -40,7 +40,7 @@
- +
diff --git a/build/web/manage-booking.jsp b/build/web/manage-booking.jsp index d3fefe9..04d98c8 100644 --- a/build/web/manage-booking.jsp +++ b/build/web/manage-booking.jsp @@ -13,7 +13,7 @@ - JSP Page + BOOKSPACE.COM @@ -27,54 +27,71 @@ - - <%@ include file="header-nav.jsp" %> - <% + + <%@ include file="header-nav.jsp" %> + <% ServletContext sc = getServletContext(); Connection conn = (Connection) sc.getAttribute("conn"); + String place_name = request.getParameter("place_name"); Booking bk = new Booking(conn); - - String username_user = (String) session.getAttribute("username"); - ArrayList bk_set = bk.queryBookingAll_User(username); - - + ArrayList bk_set = bk.queryBookingAll_Place(place_name); %>
-

Your booking table : ร้านสตาร์บัค

+

Your booking table : <%= place_name%>


+ <% for (BookingData bk_data : bk_set) {%>
-
การจองหมายเลข #44422
+
การจองหมายเลข #<%= bk_data.getBooking_id()%>
ชื่อผู้จอง
-
Jonatan ticktok
+
<%= bk_data.getName_of_customer()%>
-
วันที่จอง
-
31-มีนาคม-2554
+
สถานะการชำระเงิน
+
+ <% if (bk_data.getStatus_accept_booking().equals("not_accept")) { %> + กรุณารอการอนุมัติจากเจ้าของสถานที่ + <% } else if (bk_data.getStatus_payment().equals("yes")) {%> + ชำระเงินแล้ว + <% } else {%> + ยังไม่ได้ชำระเงิน + <%}%> +
-
จำนวนชั่วโมง
-
4
+
ช่วงเวลาที่จอง
+
<%= bk_data.getTime_checkin().substring(0, bk_data.getTime_checkin().length() - 2)%>
ถึง <%= bk_data.getTime_checkout().substring(0, bk_data.getTime_checkout().length() - 2)%>
จำนวนคน
-
14
+
<%= bk_data.getPeople()%>
-
+
รายละเอียดการจอง
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
<%= bk_data.getBooking_description()%>
+
+
+
สถานะการจอง
+
+ <% if( bk_data.getStatus_accept_booking().equals("accept") ){ %> + accept + <% } else{%> + + <% } %> +

+ <% }%>
diff --git a/build/web/manage-place.jsp b/build/web/manage-place.jsp index 05d5454..1e382da 100644 --- a/build/web/manage-place.jsp +++ b/build/web/manage-place.jsp @@ -13,7 +13,7 @@ - JSP Page + BOOKSPACE.COM @@ -59,7 +59,7 @@
ดูการจอง
- +
ลงโฆษณา
diff --git a/build/web/operation_result.jsp b/build/web/operation_result.jsp index 0a1c5a3..73d8254 100644 --- a/build/web/operation_result.jsp +++ b/build/web/operation_result.jsp @@ -9,7 +9,7 @@ - JSP Page + BOOKSPACE.COM diff --git a/build/web/payment-page.jsp b/build/web/payment-page.jsp index 6783454..57760ad 100644 --- a/build/web/payment-page.jsp +++ b/build/web/payment-page.jsp @@ -13,7 +13,7 @@ - JSP Page + BOOKSPACE.COM diff --git a/build/web/place.jsp b/build/web/place.jsp index 7457c52..e3fe801 100644 --- a/build/web/place.jsp +++ b/build/web/place.jsp @@ -1,9 +1,12 @@ - <%-- - Document : place - Created on : Apr 16, 2018, 2:28:22 PM - Author : mac +<%-- +Document : place +Created on : Apr 16, 2018, 2:28:22 PM +Author : mac --%> +<%@page import="model.CommentData"%> +<%@page import="model.Comment"%> +<%@page import="java.sql.Connection"%> <%@page import="model.PlaceImage"%> <%@page import="java.util.ArrayList"%> <%@page import="model.PlaceData"%> @@ -12,7 +15,7 @@ - JSP Page + BOOKSPACE.COM @@ -35,18 +38,19 @@
-
+
- +
-
Comment !
+ + +
@@ -195,31 +201,25 @@
-
ความคิดเห็น
-
-
-
- -
-
-
-
สมชาย ขนดก
-

สมชายว่ามันดีมากๆ เลยครับ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-
-
-
+
ความคิดจากสมาชิก
+ <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + Comment cd = new Comment(conn); + ArrayList cd_set = cd.queryAllCommentOfPlace(pd_rs.getPlace_name()); + for (CommentData comment_data : cd_set){ + %>
-
-
- -
-
-
สมชาย ขนดก
-

สมชายว่ามันดีมากๆ เลยครับ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
<%= comment_data.getName() %>
+

โพสตเมื่อ <%= comment_data.getTimecomment() %>

+

<%= comment_data.getComment_description() %>


+ + <%}%> +
@@ -229,22 +229,10 @@
- + diff --git a/build/web/search-list.jsp b/build/web/search-list.jsp index a129083..111f5c2 100644 --- a/build/web/search-list.jsp +++ b/build/web/search-list.jsp @@ -4,6 +4,7 @@ Author : mac --%> +<%@page import="model.Place"%> <%@page import="model.PlaceImage"%> <%@page import="java.sql.Connection"%> <%@page import="java.util.ArrayList"%> @@ -14,7 +15,7 @@ - JSP Page + BOOKSPACE.COM @@ -149,13 +150,12 @@
- <% if (request.getAttribute("searched") != null) { ArrayList list_forShow = (ArrayList) request.getAttribute("place_all"); @@ -164,31 +164,69 @@ %>
- <% - ArrayList pathImage = pd.getPlace_img(); - String pathImage_1 = ""; - PlaceImage pimage = pathImage.get(0); - pathImage_1 = "http://localhost:8080/"+request.getContextPath()+"/image/"+pimage.getImg_name(); - System.out.println(pathImage_1); - + <% ArrayList pathImage = pd.getPlace_img(); + String pathImage_1 = ""; + PlaceImage pimage = pathImage.get(0); +// pathImage_1 = "http://localhost:8080/" + request.getContextPath() + "/image/" + pimage.getImg_name(); + pathImage_1 = "http://group20.tomcat.it.kmitl.ac.th//image/"+ pimage.getImg_name(); + System.out.println(pathImage_1); + %> -
- +
+
<%= pd.getOwner_name()%> Place ' s owner
<%= pd.getPlace_name()%>
-
<%= pd.getPlace_address() %>
- +
<%= pd.getPlace_address()%>
+
<%= pd.getPrice_pday()%> per day

- +
<% } - }%> + } else {%> + <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + Place place = new Place(conn); + ArrayList place_set = place.queryPlaceSponser(); + for (PlaceData pd : place_set) { + + %> +
+
+ <% ArrayList pathImage = pd.getPlace_img(); + String pathImage_1 = ""; + PlaceImage pimage = pathImage.get(0); +// pathImage_1 = "http://localhost:8080/" + request.getContextPath() + "/image/" + pimage.getImg_name(); + pathImage_1 = "http://group20.tomcat.it.kmitl.ac.th//image/"+ pimage.getImg_name(); + System.out.println(pathImage_1); + + %> +
+ +
+
+
<%= pd.getOwner_name()%> Place ' s owner
+
<%= pd.getPlace_name()%>
+
<%= pd.getPlace_address()%>
+ +
<%= pd.getPrice_pday()%> per day
+ +
+ +
+
+
+ <% }%> + + + + <%}%> @@ -202,7 +240,7 @@
- + + + + + + + + diff --git a/web/become-Host.jsp b/web/become-Host.jsp index acb0e94..9694f9f 100644 --- a/web/become-Host.jsp +++ b/web/become-Host.jsp @@ -9,7 +9,7 @@ - ลงสถานที่ของคุณ + BOOKSPACE.COM : ลงสถานที่ diff --git a/web/booking-history.jsp b/web/booking-history.jsp index 313a0fa..8785731 100644 --- a/web/booking-history.jsp +++ b/web/booking-history.jsp @@ -15,7 +15,7 @@ - JSP Page + BOOKSPACE.COM @@ -82,7 +82,7 @@
สถานะการชำระเงิน : <% if (bk_data.getStatus_accept_booking().equals("not_accept")) { %> - กรุณารอการอนุมัติจากเจ้าของสถานที่ + กรุณารอการอนุมัติจากเจ้าของสถานที่ <% } else if (bk_data.getStatus_payment().equals("yes")) {%> ชำระเงินแล้ว
คำเตือนหากท่านกด Cancel หรือยกเลิกท่านจะไม่สามารถได้รับเงินคืน
diff --git a/web/booking-page.jsp b/web/booking-page.jsp index c94fd5d..e94b1e1 100644 --- a/web/booking-page.jsp +++ b/web/booking-page.jsp @@ -10,7 +10,7 @@ - JSP Page + BOOKSPACE.COM @@ -31,7 +31,9 @@ <%@ include file="header-nav.jsp" %> <% PlaceData pd_rs = (PlaceData) request.getAttribute("data_set"); - + if (session.getAttribute("logged") == null) { + response.sendRedirect("comment_error.jsp"); + } %> diff --git a/web/buy_advertise.jsp b/web/buy_advertise.jsp new file mode 100644 index 0000000..7b8be2e --- /dev/null +++ b/web/buy_advertise.jsp @@ -0,0 +1,141 @@ +<%-- + Document : buy_advertise.jsp + Created on : Apr 29, 2018, 3:20:54 PM + Author : mac +--%> + +<%@page import="model.Place"%> +<%@page import="java.sql.Connection"%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + + + BOOKSPACE.COM + + + + + + + + + + + + + + + <%@ include file="header-nav.jsp" %> + <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + String place_name = request.getParameter("place_name"); + %> +
+
+
+
+
กรุณากรอกรายละเอียดการลงโฆษณาให้ครบถ้วน
+ +
+
+
+
+
+
+
+
ลงโฆษณาสถานที่ให้กับ :
<%= place_name %>
+
+
+ เลือกวันเวลาที่ท่านต้องการลงโฆษณา +
+
+
+ วันเริ่มต้น + +
+
+ วันสิ้นสุด + +
+
+
+
+
+
+ กรุณาคลิกรวมราคา + รวมราคา : + bath +
+
+
+ ประเภทการโฆษณา : โฆษณาตัวที่ 1 +

+ รายละเอียดการโฆษณา : เป็นโฆษณาตัวที่แสดงสถานที่ของคุณก่อนใครไม่ต้องเสริชก็จะเห็นสถานที่ก่อน จำกัดเพียง 10 ที่เท่านั้น +
ราคาต่อ 1 วัน : 1200 +

+ +
+
+ +
+
+
+
+ +
+ +
+
+ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/comment_error.jsp b/web/comment_error.jsp new file mode 100644 index 0000000..be8ac5c --- /dev/null +++ b/web/comment_error.jsp @@ -0,0 +1,52 @@ +<%-- + Document : comment_error.jsp + Created on : Apr 29, 2018, 9:08:46 PM + Author : mac +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + BOOKSPACE.COM + + + + + + + + + + + + + <%--<%@ include file="header-nav.jsp" %>--%> +
+

กรุณาเข้าสู่ระบบ
ระบบกำลังพาท่านไปยังหน้าเเรกของเว็บไซต์

+ +
+ + + + + + + + \ No newline at end of file diff --git a/web/comment_success.jsp b/web/comment_success.jsp new file mode 100644 index 0000000..8da5910 --- /dev/null +++ b/web/comment_success.jsp @@ -0,0 +1,54 @@ +<%-- + Document : comment_success + Created on : Apr 29, 2018, 9:49:28 PM + Author : mac +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + BOOKSPACE.COM + + + + + + + + + + + + + <%--<%@ include file="header-nav.jsp" %>--%> + + <% String place_name = (String)request.getAttribute("place_name"); %> + +
+

แสดงความคิดเห็นเรียบร้อย
+ ระบบกำลังพาท่านไปยังหน้าสถานที่ To Page : <%= place_name %>

+
+ + + + + + + + \ No newline at end of file diff --git a/web/create_place_success.jsp b/web/create_place_success.jsp index 7d8c06c..0d99c65 100644 --- a/web/create_place_success.jsp +++ b/web/create_place_success.jsp @@ -8,10 +8,47 @@ + BOOKSPACE.COM - JSP Page + + + + + + + + + + -

ลงพื้นที่เรียบร้อยละจ้าา กลับไปยังหน้าจัดการสถานที่

+ <%--<%@ include file="header-nav.jsp" %>--%> + + + +
+

ลงพื้นที่เรียบร้อยเเล้ว
+ ระบบกำลังพาท่านกลับไปยังหน้าจัดการสถานที่

+
+ + + + + + - + \ No newline at end of file diff --git a/web/css/admin.css b/web/css/admin.css new file mode 100644 index 0000000..8d7c95e --- /dev/null +++ b/web/css/admin.css @@ -0,0 +1,33 @@ +.topnav{ + margin-top: 3em; + margin-bottom: 3em; +} + +.button-signout{ + padding : 10px; + border-radius: 5px; + border:none; +} + + +.buttom-wrap{ + margin-bottom: 0.75em; + +} + +.content200{ + font-weight: 200; + +} + +.content{ + +} + +.des{ + font-weight: 200; +} + +tbody{ + font-weight: 200; +} \ No newline at end of file diff --git a/web/css/manage-booking.css b/web/css/manage-booking.css index bd588e9..22b8027 100644 --- a/web/css/manage-booking.css +++ b/web/css/manage-booking.css @@ -1,4 +1,4 @@ .contenter{ - font-size: 0.75em; + font-size: 0.9em; font-weight: 200; } \ No newline at end of file diff --git a/web/css/place.css b/web/css/place.css index bdd3b10..5170d20 100644 --- a/web/css/place.css +++ b/web/css/place.css @@ -214,4 +214,17 @@ margin: 0 auto; padding :5px; background-color :red; border-radius: 5px; +} + +.comment-wrap{ + padding:0.35em; +} + +.comment-button{ + border: none; + +} + +.comment-button:hover{ + cursor: pointer; } \ No newline at end of file diff --git a/web/css/style.css b/web/css/style.css index 91b2d02..42efaa9 100644 --- a/web/css/style.css +++ b/web/css/style.css @@ -21,7 +21,7 @@ a { display: flex; justify-content: center; align-items: center; - background: linear-gradient(-90deg, #e237a0, #3c1f55); + /* background-size: 100%; background-position: 50% 50%; @@ -190,8 +190,14 @@ a { .button_submit { padding: 10px 25px; - background: #1477ca; - color: white; + background: white; + color: black; + border-radius: 0.35em; + border:none; +} +.button_submit:hover { + cursor: pointer; + color:#e237a0; } @@ -302,10 +308,15 @@ a { /*section about us*/ .about_us { - background: linear-gradient(-90deg, #C33764, #1D2671); + } +._content{ + padding-left: 0.6em; + padding-right: 0.6em; +} + .content-sub { color: white; font-family: 'Kanit', sans-serif; @@ -323,7 +334,7 @@ a { .footer-nw { color: white; - background-color: #333; + /*background-color: #333;*/ } .become_partner { @@ -434,4 +445,16 @@ a { position: relative; background-repeat: no-repeat; background-size: cover; +} + +body{ + +} + + +.search-top{ + background: white; + border-radius: 10px; + padding:2em; + margin-bottom: 2em; } \ No newline at end of file diff --git a/web/edit-profile.jsp b/web/edit-profile.jsp index 8a36d33..5d3137a 100644 --- a/web/edit-profile.jsp +++ b/web/edit-profile.jsp @@ -12,7 +12,7 @@ - JSP Page + BOOKSPACE.COM @@ -39,7 +39,7 @@
@@ -54,6 +54,13 @@
+
+ +
+
<%= session.getAttribute("name")%>
+ +
+
@@ -87,29 +94,7 @@
-
-
- แก้ไขรูปโปรไฟล์ -
-
-
- -
- -
- - - -
- -
- -
ขนาดรูปควรเป็นจัตุรัส
-
- -
-
-
+
@@ -119,11 +104,8 @@ - - + + diff --git a/web/error-loginbefore_pv.jsp b/web/error-loginbefore_pv.jsp index 53cf3e9..c68049a 100644 --- a/web/error-loginbefore_pv.jsp +++ b/web/error-loginbefore_pv.jsp @@ -9,9 +9,45 @@ - JSP Page + BOOKSPACE.COM + + + + + + + + + -

Please login as provider click

+ <%--<%@ include file="header-nav.jsp" %>--%> + + + +
+

กรุณาเข้าสู่ระบบ
+ ระบบกำลังพาท่านกลับไปยังหน้าเข้าสู่ระบบ

+
+ + + + + + - + \ No newline at end of file diff --git a/web/error.jsp b/web/error.jsp index 658cd74..9ba94de 100644 --- a/web/error.jsp +++ b/web/error.jsp @@ -12,6 +12,49 @@ JSP Page -

This is error page

+ + + BOOKSPACE.COM + + + + + + + + + + + + <%--<%@ include file="header-nav.jsp" %>--%> + + + +
+

กรุณาเข้าสู่ระบบ
+ ระบบกำลังพาท่านกลับไปยังหน้าเข้าสู่ระบบ

+
+ + + + + + + + diff --git a/web/header-nav.jsp b/web/header-nav.jsp index 421e41d..2810573 100644 --- a/web/header-nav.jsp +++ b/web/header-nav.jsp @@ -12,7 +12,7 @@ - JSP Page + BOOKSPACE.COM @@ -53,7 +53,6 @@ ลงสถานที่ของคุณ จัดการสถานที่ - ลงโฆษณา ออกจากระบบ
diff --git a/web/image/013jblxi5jz.jpg b/web/image/013jblxi5jz.jpg new file mode 100644 index 0000000..d62bfed Binary files /dev/null and b/web/image/013jblxi5jz.jpg differ diff --git a/web/image/1613jb1r8udr.jpg b/web/image/1613jb1r8udr.jpg new file mode 100644 index 0000000..b46b56b Binary files /dev/null and b/web/image/1613jb1r8udr.jpg differ diff --git a/web/image/1613jb1r8udrso.jpg b/web/image/1613jb1r8udrso.jpg new file mode 100644 index 0000000..b46b56b Binary files /dev/null and b/web/image/1613jb1r8udrso.jpg differ diff --git a/web/image/1613jb1r8udv.jpg b/web/image/1613jb1r8udv.jpg new file mode 100644 index 0000000..b3fb04d Binary files /dev/null and b/web/image/1613jb1r8udv.jpg differ diff --git a/web/image/1617jev63oii.jpg b/web/image/1617jev63oii.jpg new file mode 100644 index 0000000..6761c12 Binary files /dev/null and b/web/image/1617jev63oii.jpg differ diff --git a/web/index.jsp b/web/index.jsp index d074859..664ab2a 100644 --- a/web/index.jsp +++ b/web/index.jsp @@ -4,158 +4,95 @@ Author : mac --%> +<%@page import="model.Place"%> +<%@page import="java.sql.Connection"%> +<%@page import="model.PlaceImage"%> +<%@page import="java.util.ArrayList"%> +<%@page import="model.PlaceData"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> - JSP Page + BOOKSPACE.COM + - + <%@ include file="header-nav.jsp" %>
-
-

-

- best place | best deal

-
-
-
- -
- -
-
-
-
-

The recomended place

- -
-
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
+
+
+
+
+
+

The recomended place

+
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
-
-
-
-
-
-
-
-
-
Nawin Phunsawat Place ' s owner
-
Novotel Bangkok Ploenchit Sukhumvit
-
995 Bath per hour
-
50
+ +
+
+ <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + Place place = new Place(conn); + ArrayList place_set = place.queryPlaceSponser(); + for (PlaceData pd : place_set) { + + %> +
+
+ <% ArrayList pathImage = pd.getPlace_img(); + String pathImage_1 = ""; + PlaceImage pimage = pathImage.get(0); +// pathImage_1 = "http://localhost:8080/" + request.getContextPath() + "/image/" + pimage.getImg_name(); + pathImage_1 = "http://group20.tomcat.it.kmitl.ac.th//image/" + pimage.getImg_name(); + System.out.println(pathImage_1); + + %> +
+ +
+
+
<%= pd.getOwner_name()%> Place ' s owner
+
<%= pd.getPlace_name()%>
+
<%= pd.getPlace_address()%>
+ +
<%= pd.getPrice_pday()%> per day
+ +
+ +
+ <% }%>
+ +
@@ -168,7 +105,7 @@
- We are number one online marketplace for event venue covering different event types from seminar to party to support MICE industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.We are number one online marketplace for event venue covering different event types from seminar to party to support MICE industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues. + We are number one online marketplace for event venue covering different event types from seminar to party to support industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.We are number one online marketplace for event venue covering different event types from seminar to party to support MICE industry in Thailand. We have been growing very fast with our increasing number of users and partnered venues.
@@ -177,20 +114,13 @@
+ +
- +
diff --git a/web/login_admin.jsp b/web/login_admin.jsp new file mode 100644 index 0000000..f344fcb --- /dev/null +++ b/web/login_admin.jsp @@ -0,0 +1,51 @@ +<%-- + Document : login_admin.jsp + Created on : Apr 30, 2018, 1:43:59 AM + Author : mac +--%> + +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + BOOKSPACE.COM + + + + + + + + + + + + + +
+ +
Ï + + + + + + diff --git a/web/login_provider.jsp b/web/login_provider.jsp index b8b3c0b..7f9cd50 100644 --- a/web/login_provider.jsp +++ b/web/login_provider.jsp @@ -9,7 +9,7 @@ - JSP Page + BOOKSPACE.COM @@ -40,7 +40,7 @@
- +
diff --git a/web/manage-booking.jsp b/web/manage-booking.jsp index d3fefe9..04d98c8 100644 --- a/web/manage-booking.jsp +++ b/web/manage-booking.jsp @@ -13,7 +13,7 @@ - JSP Page + BOOKSPACE.COM @@ -27,54 +27,71 @@ - - <%@ include file="header-nav.jsp" %> - <% + + <%@ include file="header-nav.jsp" %> + <% ServletContext sc = getServletContext(); Connection conn = (Connection) sc.getAttribute("conn"); + String place_name = request.getParameter("place_name"); Booking bk = new Booking(conn); - - String username_user = (String) session.getAttribute("username"); - ArrayList bk_set = bk.queryBookingAll_User(username); - - + ArrayList bk_set = bk.queryBookingAll_Place(place_name); %>
-

Your booking table : ร้านสตาร์บัค

+

Your booking table : <%= place_name%>


+ <% for (BookingData bk_data : bk_set) {%>
-
การจองหมายเลข #44422
+
การจองหมายเลข #<%= bk_data.getBooking_id()%>
ชื่อผู้จอง
-
Jonatan ticktok
+
<%= bk_data.getName_of_customer()%>
-
วันที่จอง
-
31-มีนาคม-2554
+
สถานะการชำระเงิน
+
+ <% if (bk_data.getStatus_accept_booking().equals("not_accept")) { %> + กรุณารอการอนุมัติจากเจ้าของสถานที่ + <% } else if (bk_data.getStatus_payment().equals("yes")) {%> + ชำระเงินแล้ว + <% } else {%> + ยังไม่ได้ชำระเงิน + <%}%> +
-
จำนวนชั่วโมง
-
4
+
ช่วงเวลาที่จอง
+
<%= bk_data.getTime_checkin().substring(0, bk_data.getTime_checkin().length() - 2)%>
ถึง <%= bk_data.getTime_checkout().substring(0, bk_data.getTime_checkout().length() - 2)%>
จำนวนคน
-
14
+
<%= bk_data.getPeople()%>
-
+
รายละเอียดการจอง
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
<%= bk_data.getBooking_description()%>
+
+
+
สถานะการจอง
+
+ <% if( bk_data.getStatus_accept_booking().equals("accept") ){ %> + accept + <% } else{%> + + <% } %> +

+ <% }%>
diff --git a/web/manage-place.jsp b/web/manage-place.jsp index 05d5454..1e382da 100644 --- a/web/manage-place.jsp +++ b/web/manage-place.jsp @@ -13,7 +13,7 @@ - JSP Page + BOOKSPACE.COM @@ -59,7 +59,7 @@
ดูการจอง
- +
ลงโฆษณา
diff --git a/web/operation_result.jsp b/web/operation_result.jsp index 0a1c5a3..73d8254 100644 --- a/web/operation_result.jsp +++ b/web/operation_result.jsp @@ -9,7 +9,7 @@ - JSP Page + BOOKSPACE.COM diff --git a/web/payment-page.jsp b/web/payment-page.jsp index 6783454..57760ad 100644 --- a/web/payment-page.jsp +++ b/web/payment-page.jsp @@ -13,7 +13,7 @@ - JSP Page + BOOKSPACE.COM diff --git a/web/place.jsp b/web/place.jsp index 7457c52..e3fe801 100644 --- a/web/place.jsp +++ b/web/place.jsp @@ -1,9 +1,12 @@ - <%-- - Document : place - Created on : Apr 16, 2018, 2:28:22 PM - Author : mac +<%-- +Document : place +Created on : Apr 16, 2018, 2:28:22 PM +Author : mac --%> +<%@page import="model.CommentData"%> +<%@page import="model.Comment"%> +<%@page import="java.sql.Connection"%> <%@page import="model.PlaceImage"%> <%@page import="java.util.ArrayList"%> <%@page import="model.PlaceData"%> @@ -12,7 +15,7 @@ - JSP Page + BOOKSPACE.COM @@ -35,18 +38,19 @@
-
+
- +
-
Comment !
+ + +
@@ -195,31 +201,25 @@
-
ความคิดเห็น
-
-
-
- -
-
-
-
สมชาย ขนดก
-

สมชายว่ามันดีมากๆ เลยครับ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-
-
-
+
ความคิดจากสมาชิก
+ <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + Comment cd = new Comment(conn); + ArrayList cd_set = cd.queryAllCommentOfPlace(pd_rs.getPlace_name()); + for (CommentData comment_data : cd_set){ + %>
-
-
- -
-
-
สมชาย ขนดก
-

สมชายว่ามันดีมากๆ เลยครับ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
<%= comment_data.getName() %>
+

โพสตเมื่อ <%= comment_data.getTimecomment() %>

+

<%= comment_data.getComment_description() %>


+ + <%}%> +
@@ -229,22 +229,10 @@
- + diff --git a/web/search-list.jsp b/web/search-list.jsp index a129083..111f5c2 100644 --- a/web/search-list.jsp +++ b/web/search-list.jsp @@ -4,6 +4,7 @@ Author : mac --%> +<%@page import="model.Place"%> <%@page import="model.PlaceImage"%> <%@page import="java.sql.Connection"%> <%@page import="java.util.ArrayList"%> @@ -14,7 +15,7 @@ - JSP Page + BOOKSPACE.COM @@ -149,13 +150,12 @@
- <% if (request.getAttribute("searched") != null) { ArrayList list_forShow = (ArrayList) request.getAttribute("place_all"); @@ -164,31 +164,69 @@ %>
- <% - ArrayList pathImage = pd.getPlace_img(); - String pathImage_1 = ""; - PlaceImage pimage = pathImage.get(0); - pathImage_1 = "http://localhost:8080/"+request.getContextPath()+"/image/"+pimage.getImg_name(); - System.out.println(pathImage_1); - + <% ArrayList pathImage = pd.getPlace_img(); + String pathImage_1 = ""; + PlaceImage pimage = pathImage.get(0); +// pathImage_1 = "http://localhost:8080/" + request.getContextPath() + "/image/" + pimage.getImg_name(); + pathImage_1 = "http://group20.tomcat.it.kmitl.ac.th//image/"+ pimage.getImg_name(); + System.out.println(pathImage_1); + %> -
- +
+
<%= pd.getOwner_name()%> Place ' s owner
<%= pd.getPlace_name()%>
-
<%= pd.getPlace_address() %>
- +
<%= pd.getPlace_address()%>
+
<%= pd.getPrice_pday()%> per day

- +
<% } - }%> + } else {%> + <% + ServletContext sc = getServletContext(); + Connection conn = (Connection) sc.getAttribute("conn"); + Place place = new Place(conn); + ArrayList place_set = place.queryPlaceSponser(); + for (PlaceData pd : place_set) { + + %> +
+
+ <% ArrayList pathImage = pd.getPlace_img(); + String pathImage_1 = ""; + PlaceImage pimage = pathImage.get(0); +// pathImage_1 = "http://localhost:8080/" + request.getContextPath() + "/image/" + pimage.getImg_name(); + pathImage_1 = "http://group20.tomcat.it.kmitl.ac.th//image/"+ pimage.getImg_name(); + System.out.println(pathImage_1); + + %> +
+ +
+
+
<%= pd.getOwner_name()%> Place ' s owner
+
<%= pd.getPlace_name()%>
+
<%= pd.getPlace_address()%>
+ +
<%= pd.getPrice_pday()%> per day
+ +
+ +
+
+
+ <% }%> + + + + <%}%> @@ -202,7 +240,7 @@
-