-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
69 lines (58 loc) · 1.88 KB
/
index.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
session_start();
if($_SESSION['pesan']==null){
echo ""; }
else{
echo $_SESSION['pesan'];
}
if(isset($_SESSION['id'])){
if($_SESSION['jenis']==1){
header('location:umum/beranda_umum.php');
}else{
header('location:org/beranda.php');
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style/style.css">
</head>
<body>
<div>
<div id="img-login"><h1 class="model-h1">BANGKU <label>Sumbang Buku</label> </h1>
<img src="img/Logo.png" style="width: 20%; height: 40%;position: fixed; margin-left: 15%;margin-top:7%; "
class="animasi sorot"> </div>
<div class="login">
<div class="kotak model-form" >
<form class="login-form" action="fungsi/proses.php" method="post" onsubmit="validasi()">
<h1> Login </h1>
<div align="center">
<img style="width: 30%; height: 30%;" src="img/default_user.png">
</div>
<?php if($_SESSION['pesan']!=""){
echo "<div class='alert'>".$_SESSION['pesan']."</div>";
}?>
<input type="text" name="username" placeholder="Username">
<input type="password" name="password" placeholder="Password">
<br>
<div align="center">
<button type="submit" name="login" value="login" class="bt bt-birusoft" style="float: left;margin-left: 14%"> login </button>
</div>
</form>
<a href="register.php"><button class="bt bt-birusoft" style="float: left; margin-left: 10%"> Register</button></a>
</div>
</div>
</body>
<!--untuk validasi form login-->
<!--<script type="text/javascript">-->
<!-- var validasi= function () {-->
<!-- alert ('yes ')-->
<!-- }-->
<!---->
<!--</script>-->
</html>
<?php
$_SESSION['pesan']="";
?>