From 60770759488e8c784648983040521e7d8430925f Mon Sep 17 00:00:00 2001 From: cirakg Date: Sat, 7 Jan 2023 23:00:20 +0100 Subject: Dodati tooltip-ovi na web aplikaciji. --- src/main/webapp/index.jsp | 33 ++++++++++++++++++++++- src/main/webapp/pages/addNewPokemon.jsp | 30 +++++++++++++++++++-- src/main/webapp/pages/adminIndex.jsp | 47 +++++++++++++++++++++++++++++---- src/main/webapp/pages/history.jsp | 12 ++++++++- src/main/webapp/pages/registerPage.jsp | 31 ++++++++++++++++++++++ src/main/webapp/pages/userIndex.jsp | 43 ++++++++++++++++++++++++++---- 6 files changed, 182 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index d182b7e..ba31c01 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -13,8 +13,37 @@ Login + -

Login

+

Login

(?) + Stranica za prijavu. U zavistinosti da li je korisnik koji se prijavljuje admin ili obican korisnik bice preusmeran na svoju stranicu. + ukoliko su unesu pogresne informacije za prijavu korisnik ce biti obavesten o tome. + +
+
Korisnicko ime @@ -40,6 +69,8 @@ +

+ diff --git a/src/main/webapp/pages/addNewPokemon.jsp b/src/main/webapp/pages/addNewPokemon.jsp index 095ac40..dd7d24c 100644 --- a/src/main/webapp/pages/addNewPokemon.jsp +++ b/src/main/webapp/pages/addNewPokemon.jsp @@ -6,6 +6,27 @@ Insert title here + <% boolean isAdmin=(Boolean)session.getAttribute("admin"); @@ -14,12 +35,17 @@ if(!isAdmin){ } %> - +
+
(?) + Stranica za dodavanje novog pokemona. + Sva polja su required. Za polje hp unos mora biti tipa int, polje snaga mora biti tipa float , sva ostala polja su tipa string. Polje ImageString64 je polje sa sliku encodiranu pomocu base64 encodera maxlenght je 15000. + Redirekcija na uspesnom dodavanju. +
Ime
Opis
Hp
- ImageString64
+ ImageString64

Abilities

ATTACK

diff --git a/src/main/webapp/pages/adminIndex.jsp b/src/main/webapp/pages/adminIndex.jsp index be5381f..ab7ecd1 100644 --- a/src/main/webapp/pages/adminIndex.jsp +++ b/src/main/webapp/pages/adminIndex.jsp @@ -18,6 +18,28 @@ border-collapse: collapse; padding:2px; } + .tooltip { + position: relative; + display: inline-block; + border-bottom: 1px dotted black; +} +.tooltip .tooltiptext { + visibility: hidden; + width: 300px; + background-color: black; + color: #fff; + text-align: center; + border-radius: 6px; + padding: 5px 0; + position: absolute; + z-index: 1; +} +.tooltip:hover .tooltiptext { + visibility: visible; +} +h1{ + display:inline +} @@ -33,8 +55,12 @@ if(!isAdmin){ +
-

Lista korisnika

+

Lista korisnika

(?) + Lista korisnika u bazi. Admin moze da izbrise korisnike koji nisu admin-i. + +
<% IService service=(IService)Naming.lookup(CONSTS.rmiUrl); ArrayListusers=service.getAllUsers(); @@ -42,8 +68,6 @@ request.setAttribute("users", users); ArrayList monsters=service.getMonsters(); request.setAttribute("monsters", monsters); %> - - @@ -79,11 +103,16 @@ request.setAttribute("monsters", monsters);
Id
+
+

-

Registracija novog admina

+

Registracija novog admina

(?) + Korisnicko ime i sifra moraju da budu alfanumericki string i polja ne smeju biti prazna. Dobija poruku da li je registracija uspesna. + +
Korisnicko ime
@@ -107,11 +136,17 @@ request.setAttribute("monsters", monsters);

+
+

-

Svi pokemoni

+

Svi pokemoni

(?) + Svi pokemoni registrovani u bazi. Ima mogucnost da ih obrise. + +
+
@@ -143,6 +178,8 @@ request.setAttribute("monsters", monsters);
Ime
+
+ diff --git a/src/main/webapp/pages/history.jsp b/src/main/webapp/pages/history.jsp index 7e36faf..34bf05c 100644 --- a/src/main/webapp/pages/history.jsp +++ b/src/main/webapp/pages/history.jsp @@ -21,12 +21,22 @@ %> + + + + + + - +
Ime + Slika + Datun + Rezultat +
diff --git a/src/main/webapp/pages/registerPage.jsp b/src/main/webapp/pages/registerPage.jsp index c4118a0..a0ad82f 100644 --- a/src/main/webapp/pages/registerPage.jsp +++ b/src/main/webapp/pages/registerPage.jsp @@ -6,7 +6,36 @@ Insert title here + +

Register

(?) + Klasicna stranica za registraciju. Korisnicko ime i sifra moraju da budu alfanumericki string i polja ne smeju biti prazna. Ukoliko je registracija uspensa korisnik se redirektuje na login stranicu ,a ukoliko je neuspesna korisnik biva obavesten o tome. + +
+
Korisnicko ime
@@ -24,5 +53,7 @@

+

+ \ No newline at end of file diff --git a/src/main/webapp/pages/userIndex.jsp b/src/main/webapp/pages/userIndex.jsp index 57e4a16..402b1ce 100644 --- a/src/main/webapp/pages/userIndex.jsp +++ b/src/main/webapp/pages/userIndex.jsp @@ -18,6 +18,28 @@ border-collapse: collapse; padding:2px; } + .tooltip { + position: relative; + display: inline-block; + border-bottom: 1px dotted black; +} +.tooltip .tooltiptext { + visibility: hidden; + width: 300px; + background-color: black; + color: #fff; + text-align: center; + border-radius: 6px; + padding: 5px 0; + position: absolute; + z-index: 1; +} +.tooltip:hover .tooltiptext { + visibility: visible; +} +h1{ + display:inline; +} @@ -30,7 +52,11 @@ if(isAdmin){ -

Izaberi pokemona

+
+

Izaberi pokemona

(?) + Korisnik da bi se uopste ulogovan i koristio desktop aplikaciju mora da ima izabranog pokemona!!! + Prikazan izabran poken sa svim podacima o njemu +

<% IService service=(IService)Naming.lookup(CONSTS.rmiUrl); @@ -56,8 +82,11 @@ Trenutno izabran pokemon: <% } %> -


-

Svi pokemoni

+

+

Svi pokemoni

(?) + Lista svih dostupnih pokemona odakle korisnik moze da izabere pokemona koga ce koristiti. +
+
@@ -89,8 +118,12 @@ Trenutno izabran pokemon:
Ime
-


-

Istorija

+

+

Istorija

(?) + Pregled istorije meceva korisnika. Prikaz imena i slike koriscenog pokemona, datum i rezultat meca. +
+
+
-- cgit v1.2.3