-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
49 lines (45 loc) · 1.18 KB
/
login.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
<?php
session_start();
if (!empty($_SESSION['username'])) {
if($_SESSION['level'] == 1){
header('location:index-a.php');
}else{
header('location:index-p.php');
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./css/login_style.css">
<title>SMKlinik | Login</title>
</head>
<body>
<header>
<div class="container">
<img src="./img/ini_logo.png" alt="Logo">
<h1><span class="hightlight">KLINIK</span> Cahaya</h1>
</div>
</header>
<section id="loginbox">
<div class="container">
<form class="logbox" action="login-action.php" method="post">
<p>Username</p>
<input type="text" name="username" placeholder=" Masukkan Username">
<p>Password</p>
<input type="text" name="password" placeholder=" Masukkan Password">
<br>
<div class="button">
<input type="submit" name="login" value="Login">
</div>
</form>
</div>
</section>
<footer>
<div class="container">
<p>Klinik Cahaya || Copyright © 2019</p>
</div>
</footer>
</body>
</html>