aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/pages/adminIndex.jsp
blob: e4225e25081504d57b3cff10e05ea6e6965e1302 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Admin</title>
</head>
<body>

<h1>Registracija novog admina</h1>
<form method="post" action="registerAdmin.jsp">
	<input type="text" name="username"> Korisnicko ime 
	<br>
	<input type="password" name="password">Sifra
	<br>
	<p style="color:red;">
	<%
		if(request.getParameter("id")!=null &&request.getParameter("id").equals("-1") )
			out.print("Username vec postoji");
	%>
	</p>
	<p style="color:green;">
	<%
		if(request.getParameter("id")!=null &&request.getParameter("id").equals("-2") )
			out.print("Uspesna registracija");
	%>
	</p>
	<button type="submit">Registruj admina</button>
</form>
<h1>
</h1>




</body>
</html>