From 5d73d2e578327c74418c296a0d42ca881fa79c04 Mon Sep 17 00:00:00 2001 From: thilinianjalika Date: Sat, 2 Oct 2021 13:06:37 +0530 Subject: [PATCH] Admin modified for advertisement confirmation --- EnLearn.iml | 2 +- .../enLearn/controller/AdminController.java | 2 +- .../service/AdvertisementServiceImpl.java | 5 +- .../WEB-INF/view/Advertisement-Confirm.jsp | 365 +++++++++--------- src/main/webapp/WEB-INF/view/admin-panel.jsp | 2 +- 5 files changed, 192 insertions(+), 184 deletions(-) diff --git a/EnLearn.iml b/EnLearn.iml index 86c33514..b2d9edb4 100644 --- a/EnLearn.iml +++ b/EnLearn.iml @@ -20,7 +20,7 @@ - + diff --git a/src/main/java/net/enLearn/controller/AdminController.java b/src/main/java/net/enLearn/controller/AdminController.java index 0391f964..f42dff0c 100644 --- a/src/main/java/net/enLearn/controller/AdminController.java +++ b/src/main/java/net/enLearn/controller/AdminController.java @@ -168,7 +168,7 @@ public String showEventUpdateForm(@RequestParam("eventId") int eventId, Model mo @RequestMapping("/showAdvertisements") public String showAdvertisement(Model model){ - int advertiser_id = 20; + int advertiser_id = 4; //To retrieve all the data in the table - advertisement diff --git a/src/main/java/net/enLearn/service/AdvertisementServiceImpl.java b/src/main/java/net/enLearn/service/AdvertisementServiceImpl.java index 41cbc736..44908f41 100644 --- a/src/main/java/net/enLearn/service/AdvertisementServiceImpl.java +++ b/src/main/java/net/enLearn/service/AdvertisementServiceImpl.java @@ -1,6 +1,6 @@ package net.enLearn.service; -import net.enLearn.dao.AdvertisementDAOImpl; +import net.enLearn.dao.AdvertisementDAO; import net.enLearn.entity.Advertisement; import net.enLearn.entity.Advertiser; import org.springframework.beans.factory.annotation.Autowired; @@ -13,7 +13,8 @@ public class AdvertisementServiceImpl implements AdvertisementService { @Autowired - AdvertisementDAOImpl advertisementDAO; + //AdvertisementDAOImpl advertisementDAO; + AdvertisementDAO advertisementDAO; @Override diff --git a/src/main/webapp/WEB-INF/view/Advertisement-Confirm.jsp b/src/main/webapp/WEB-INF/view/Advertisement-Confirm.jsp index f97c8fad..2254e309 100644 --- a/src/main/webapp/WEB-INF/view/Advertisement-Confirm.jsp +++ b/src/main/webapp/WEB-INF/view/Advertisement-Confirm.jsp @@ -1,7 +1,4 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ page import="net.enLearn.entity.Advertisement" %> -<%@ page import="java.util.List" %> -<%@ page import="net.enLearn.entity.Advertiser" %><%-- +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%-- Created by IntelliJ IDEA. User: Thilini Date: 9/9/2021 @@ -63,7 +60,7 @@
-
+
@@ -71,15 +68,151 @@ -
+
- -
+ <%----%> + + <%-- + + --%> +
+
+
+ +
+
+ placeholder image +
+ +
+
+
+ <%----%> + ${allAdvertisers.cname} + +
+
+ +
+
+
+
+ <%----%> + ${allAdvertisers.email} + +
+
+ +
+
+
+
+ <%----%> + ${allAdvertisers.contact_no} +
+
+ +
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+ + +
+
+
+ Confirm
+
+
+ Delete +
+
+
+
+ +
+
+
+
+ <%--
--%> + + <%-- +
+
+
+ Title +
+
+ placeholder image +
+ +
+
+
+ Company Name +
+
+ +
+
+
+
+ Selected Package +
+
+
+
+
+
+ Email +
+
+
+
+
+
+ Contact Number +
+
+
+
+ + + +
+
+
+ Confirm
+
+
+ Delete +
+
+
+
+ +
+
+
+
--%> + <%--
- - + Title
placeholder image @@ -96,10 +229,9 @@
- + Selected Package
-
@@ -108,13 +240,6 @@
-
-
-
- -
-
-
@@ -123,7 +248,9 @@
+
+
Confirm
@@ -138,99 +265,37 @@
-
- - - - - - <%--
-
-
- Title -
-
- placeholder image -
- -
-
-
- Company Name -
-
- -
-
-
-
- Selected Package -
-
-
-
-
-
- Email -
-
-
-
-
-
- Contact Number -
-
-
-
- - +
--%> + <%--
+
+
+ Title +
+
+ placeholder image +
+ +
+
+
+ Company Name +
+
-
-
-
- Confirm
-
-
- Delete -
-
-
-
- -
-
-
-
-
-
-
- Title -
-
- placeholder image -
- -
-
-
- Company Name -
- -
-
-
-
- Selected Package -
+
+
+
+ Selected Package +
+
-
-
-
-
- Email -
+
+
+
+ Email +
+
@@ -241,80 +306,22 @@
- -
- -
-
- Confirm
-
-
- Delete -
-
-
-
- -
-
-
-
-
-
-
- Title -
-
- placeholder image -
- -
-
-
- Company Name -
-
- -
-
-
-
- Selected Package -
-
-
-
-
-
- Email -
+
+ +
+
+ Confirm
+
+
+ Delete +
-
-
-
-
- Contact Number -
+
+
-
-
- -
-
- Confirm
-
-
- Delete -
-
-
-
- -
-
-
--%> +
--%>
diff --git a/src/main/webapp/WEB-INF/view/admin-panel.jsp b/src/main/webapp/WEB-INF/view/admin-panel.jsp index 4c21ed07..9153bb07 100644 --- a/src/main/webapp/WEB-INF/view/admin-panel.jsp +++ b/src/main/webapp/WEB-INF/view/admin-panel.jsp @@ -62,7 +62,7 @@