-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·52 lines (48 loc) · 1.57 KB
/
header.php
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
<!DOCTYPE html>
<?php
session_start();
?>
<html>
<head>
<link rel="stylesheet" type="type/css" href="style.css">
<title>E-Health</title>
</head>
<body>
<div class="TopPage">
<ul align="right">
<?php
if (!isset($_SESSION['username'])){
echo '<li><a id="but1" href="#login_form" type="button">Log In</a></li>
<li><a id="but1" href="register.php" type="button">Sign Up</a></li>';
}else{
echo '<li><a id="but1" href="logout.php" type="button">Log Out</a></li>
<li><button id="but1" href="" type="button">Profile</button></li>';
}
?>
</ul>
</div>
<div class="MenuBar">
<ul>
<?php
if (isset($_SESSION['username'])){
echo '<li><a href="index.php">Home</a></li>';
echo '<li><a href="buatpesan.php">Konsultasi</a></li>';
echo '<li><a href="jadwal.php" >Reservasi Check-Up</a></li>';
echo '<li><a href="kalender.php" >Reminder</a></li>';
echo '<li><a href="daftarkoneksi.php">Koneksi</a></li>';
}
?>
</ul>
</div>
<a href="#x" class="overlay" id="login_form" ></a>
<div class="popup">
<h2>Welcome Guest!</h2>
<p>Please enter your login and password here</p>
<form name="login" action="login.php" method="post">
Username : <input type="text" name="username"><br>
Password : <input type="password" name="password"><br>
<div id="err_login"></div><br>
<input type="submit" value="Log In"/>
</form>
<a class="close" href="#close"></a>
</div>