From 92eab92efb1158b94fd6ce283a92191656649b85 Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Thu, 22 Dec 2022 04:22:48 +0100 Subject: Dodate provere role korisnika. Dodat prikaz pokemona kod admina. --- src/main/webapp/pages/adminIndex.jsp | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'src/main/webapp/pages/adminIndex.jsp') diff --git a/src/main/webapp/pages/adminIndex.jsp b/src/main/webapp/pages/adminIndex.jsp index 1b0f4e7..25d021f 100644 --- a/src/main/webapp/pages/adminIndex.jsp +++ b/src/main/webapp/pages/adminIndex.jsp @@ -21,14 +21,26 @@ +<% +boolean isAdmin=(Boolean)session.getAttribute("admin"); +if(!isAdmin){ + response.sendRedirect("../index.jsp"); +} +%> +

+ + +

Lista korisnika

<% IService service=(IService)Naming.lookup(CONSTS.rmiUrl); ArrayListusers=service.getAllUsers(); request.setAttribute("users", users); +ArrayList monsters=service.getMonsters(); +request.setAttribute("monsters", monsters); %> @@ -95,6 +107,40 @@ request.setAttribute("users", users); +

Svi pokemoni

+ + + + + + + + + + + + + + + + + + +
ImeOpisHpSlika
+ + + + + + + + + + + +
+ + -- cgit v1.2.3