diff --git a/nbproject/private/private.properties b/nbproject/private/private.properties index c28b339..1b8816d 100644 --- a/nbproject/private/private.properties +++ b/nbproject/private/private.properties @@ -1,10 +1,10 @@ -deploy.ant.properties.file=C:\\Users\\Maulana\\AppData\\Roaming\\NetBeans\\8.2\\tomcat80.properties +deploy.ant.properties.file=C:\\Users\\AGS\\AppData\\Roaming\\NetBeans\\8.2\\tomcat80.properties j2ee.platform.is.jsr109=true j2ee.server.domain=C:/Users/Maulana/AppData/Roaming/NetBeans/8.2/apache-tomcat-8.0.27.0_base -j2ee.server.home=C:/Program Files/Apache Software Foundation/Apache Tomcat 8.0.27 -j2ee.server.instance=tomcat80:home=C:\\Program Files\\Apache Software Foundation\\Apache Tomcat 8.0.27:base=apache-tomcat-8.0.27.0_base +j2ee.server.home=D:/KULIAH/3RD SEMESTER/apache-tomcat-8.5.23-windows-x64/apache-tomcat-8.5.23 +j2ee.server.instance=tomcat80:home=D:\\KULIAH\\3RD SEMESTER\\apache-tomcat-8.5.23-windows-x64\\apache-tomcat-8.5.23 j2ee.server.middleware=C:/Program Files/Glassfish/glassfish 4.1.1 javac.debug=true javadoc.preview=true -selected.browser=Chrome +selected.browser=SL[/Browsers/FirefoxBrowser user.properties.file=C:\\Users\\Maulana\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/nbproject/project.properties b/nbproject/project.properties index a5bc9cf..4f8cd05 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -34,7 +34,7 @@ j2ee.compile.on.save=true j2ee.copy.static.files.on.save=true j2ee.deploy.on.save=true j2ee.platform=1.7-web -j2ee.platform.classpath=${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-storeconfig.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/catalina.jar:${j2ee.server.home}/lib/ecj-4.4.2.jar:${j2ee.server.home}/lib/el-api.jar:${j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:${j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/servlet-api.jar:${j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:${j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:${j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:${j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-jni.jar:${j2ee.server.home}/lib/tomcat-util-scan.jar:${j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat-websocket.jar:${j2ee.server.home}/lib/websocket-api.jar +j2ee.platform.classpath=${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-storeconfig.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/catalina.jar:${j2ee.server.home}/lib/ecj-4.6.3.jar:${j2ee.server.home}/lib/el-api.jar:${j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:${j2ee.server.home}/lib/jaspic-api.jar:${j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/servlet-api.jar:${j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:${j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:${j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:${j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-jni.jar:${j2ee.server.home}/lib/tomcat-util-scan.jar:${j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat-websocket.jar:${j2ee.server.home}/lib/websocket-api.jar j2ee.server.type=Tomcat jar.compress=false javac.classpath=\ diff --git a/src/java/id/ac/polban/jtk/project3/travlendar2A/Controller/EventController.java b/src/java/id/ac/polban/jtk/project3/travlendar2A/Controller/EventController.java index f4fcbce..7b2c925 100644 --- a/src/java/id/ac/polban/jtk/project3/travlendar2A/Controller/EventController.java +++ b/src/java/id/ac/polban/jtk/project3/travlendar2A/Controller/EventController.java @@ -165,8 +165,8 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws S tempInt = Integer.parseInt(req.getParameter("event_id")); objEvent.setEvent_id(tempInt); - tempInt = Integer.parseInt(req.getParameter("traveller_id")); - objEvent.setTraveller_id(tempInt); + //tempInt = Integer.parseInt(req.getParameter("traveller_id")); + objEvent.setTraveller_id(1); tempString = req.getParameter("event_name"); if(tempString == null) System.out.println("Gagal ambil data dari request event name"); diff --git a/src/java/id/ac/polban/jtk/project3/travlendar2A/DaoConcreteClass/EventDaoImp.java b/src/java/id/ac/polban/jtk/project3/travlendar2A/DaoConcreteClass/EventDaoImp.java index 83be04b..fbb0426 100644 --- a/src/java/id/ac/polban/jtk/project3/travlendar2A/DaoConcreteClass/EventDaoImp.java +++ b/src/java/id/ac/polban/jtk/project3/travlendar2A/DaoConcreteClass/EventDaoImp.java @@ -46,7 +46,8 @@ public List getListFromDB(int halaman) throws SQLException{ listEvent = new ArrayList(); //tempInt = (halaman-1) * this.limit; sql = String.format("SELECT * FROM `event`"); - //sql1 = String.format("SELECT TRAVELLER_ID FROM travlendardb.traveller"); + //sql = String.format("SELECT `EVENT_NAME`, `START_EVENT`, `END_EVENT`, `NOTE`, `ADDRESS_PLACE` FROM `event`, `location` WHERE `event.LOCATION_ID` = `location.LOCATION_ID`"); + //sql1 = String.format("SELECT ADDRESS_PLACE FROM `location`, `event` WHERE `event`.LOCATION_ID = `location`.LOCATION_ID"); super.connect(); Statement statement; ResultSet resultSet, resultSet1; @@ -248,7 +249,7 @@ public Event getDataFromDB(int eventCode) throws SQLException // mendapatkan data sesuai atribut - tempInt = resultSet.getInt("LOCATION_ID"); + tempInt = resultSet.getInt("LOCATION_ID"); event.setLocation_id(tempInt); tempInt = resultSet.getInt("EVENT_ID"); diff --git a/web/Admin-Panel/Assets2/css/styletraveller.css b/web/Admin-Panel/Assets2/css/styletraveller.css index 629a196..a186300 100644 --- a/web/Admin-Panel/Assets2/css/styletraveller.css +++ b/web/Admin-Panel/Assets2/css/styletraveller.css @@ -294,7 +294,7 @@ a:hover{ margin-top: 5px; margin-bottom: 5px; padding: 10px; - width: 310px; + width: 100%; height: 50px; background: #f4f4f4; border: none; diff --git a/web/Admin-Panel/Event/list_event.jsp b/web/Admin-Panel/Event/list_event.jsp index 010f910..3d4b968 100644 --- a/web/Admin-Panel/Event/list_event.jsp +++ b/web/Admin-Panel/Event/list_event.jsp @@ -13,6 +13,7 @@ + JSP Page @@ -42,13 +43,26 @@
- - + + + + +