-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWelc.php
More file actions
108 lines (81 loc) · 2.83 KB
/
Copy pathWelc.php
File metadata and controls
108 lines (81 loc) · 2.83 KB
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
108
<?php
include "c_user.php";
$controller = new controller();
if(isset($_POST['daftar'])){
$controller->insertUser();
}
if(isset($_POST['masuk'])){
$controller->loginUser();
}
?>
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Sign-Up/Login Form</title>
<link href='https://fonts.googleapis.com/css?family=Titillium+Web:400,300,600' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<div class="form">
<ul class="tab-group">
<li class="tab active"><a href="#signup">Daftar</a></li>
<li class="tab"><a href="#login">Masuk</a></li>
</ul>
<div class="tab-content">
<div id="signup">
<h1>Daftar</h1>
<?php
if(isset($_GET['gagal'])){
echo "<h2 style='color:red'>*Username / Password login salah</h2>";
}
if(isset($_GET['ada'])){
echo "<h2 style='color:red'>*Username telah terdaftar</h2>";
}
?>
<form action="" method="post">
<div class="field-wrap">
<label>
Username<span class="req">*</span>
</label>
<input type="text" name="usernamedaftar" required autocomplete="off"/>
</div>
<div class="field-wrap">
<label>
Password<span class="req">*</span>
</label>
<input type="password" name="passworddaftar" required autocomplete="off"/>
</div>
<button type="submit" name="daftar" class="x button button-block"/>Daftar</button>
</form>
</div>
<div id="login">
<h1>Masuk</h1>
<?php
if(isset($_GET['gagal'])){
echo "<h2 style='color:red'>Username / Password login salah</h2>";
}
?>
<form action="" method="post">
<div class="field-wrap">
<label>
Username<span class="req">*</span>
</label>
<input type="text" name="usernamelogin" required autocomplete="off"/>
</div>
<div class="field-wrap">
<label>
Password<span class="req">*</span>
</label>
<input type="password" name="passwordlogin" required autocomplete="off"/>
</div>
<button type="submit" name="masuk" class="button button-block"/>Masuk</button>
</form>
</div>
</div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>