-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter.html
107 lines (71 loc) · 1.88 KB
/
filter.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!doctype html>
<?php
session_start();
?>
<html>
<head>
<meta charset="UTF-8">
<title>Unos Pacijenta</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header class="headerWrapper">
<div class="container">
<img src="img/logo.png" alt="">
<div class="logoutButton">
<?php
//$username = $_GET['username'];
//$password = $_GET['password'];
// U slučaju krivog logina preusmjeravanje na login.html
/*
if($_SESSION["username"] != 'Danijel' && $_SESSION["password"] != 'lozinka')
{
header('Location: login.html');
}
*/
if (!isset($_SESSION["username"]) || (empty($_SESSION["username"]))) {
header('Location: login.html');
}
echo "Dobrodosao " .$_SESSION["username"];
?>
<form action="ubijSession.php" method="post">
<input type="submit" value="Logout" />
</form>
</div>
</div>
</header>
<div class="wrapperLogin">
<div class="meniWrapper">
<h3>Meni</h3>
<nav class="">
<ul>
<li><a href="osobniPodaci.php">Osobni Podaci</a></li>
<li><a href="popisPacijenata.php">Popis Pacijenata</a></li>
<li><a href="unosPacijenta.php">Unos Pacijenta</a></li>
<li><a href="json.php">Doktori</a></li>
<li><a href="#">Generiraj pdf</a></li>
</ul>
</nav>
</div>
<div class="sadrzajWrapper">
<section class="logoWrapper">
<img src="img/logo.png" alt="">
<h3>Pronađite pacijente..</h3>
</section>
<section class="formaWrapper">
<form action="generirajPDF.php" method="POST">
<label for="username">Ime: </label>
<input type="text" name="ime">
<label for="password">Prezime:</label>
<input type="password" name="prezime">
<br>
<input type="submit" name="login" value="Filter" style="width:100px;">
</form>
</section>
</div>
</div>
<footer class="footerWrapper">
<p>CopyRight ZDK.2014</p>
</footer>
</body>
</html>