From a588e688634e7671739b8e3ae5245ee361c76bf5 Mon Sep 17 00:00:00 2001 From: Roshan Koshy Thomas Date: Thu, 25 Aug 2022 05:24:50 +0100 Subject: [PATCH] admin and user seperation --- WebContent/admin.jsp | 5 +++++ WebContent/css/admin.css | 1 - WebContent/includes/navbar.jsp | 24 ++++++++++++++++++++---- WebContent/index.jsp | 5 +++++ 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/WebContent/admin.jsp b/WebContent/admin.jsp index 9e8c66d..688821b 100644 --- a/WebContent/admin.jsp +++ b/WebContent/admin.jsp @@ -23,9 +23,13 @@ List prod = (List) request.getAttribute("product"); +<%@include file="/includes/head.jsp"%> + +<%@include file="/includes/navbar.jsp"%> + @@ -93,6 +97,7 @@ List prod = (List) request.getAttribute("product"); + diff --git a/WebContent/css/admin.css b/WebContent/css/admin.css index a13a78c..771f7ce 100644 --- a/WebContent/css/admin.css +++ b/WebContent/css/admin.css @@ -134,7 +134,6 @@ html{ - @media (max-width:991px){ html{ diff --git a/WebContent/includes/navbar.jsp b/WebContent/includes/navbar.jsp index 1293e26..f5aef74 100755 --- a/WebContent/includes/navbar.jsp +++ b/WebContent/includes/navbar.jsp @@ -1,9 +1,9 @@ -<%-- <%@page import="cfy.model.User"%> +<%@page import="cfy.model.User"%> <% -User auth = (User) request.getSession().getAttribute("auth"); -%> --%> +User usr = (User) request.getSession().getAttribute("auth"); +%>