-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaftarAkun.php
193 lines (169 loc) · 7.59 KB
/
daftarAkun.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!doctype html>
<?php
include "config.php";
?>
<html>
<head>
<title>DAFTAR AKUN</title>
<!-- load stlye dari 23 -->
<link rel="stylesheet" type="text/css" href="css/w3.css"/>
<link rel="stylesheet" type="text/css" href="css/warna.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- load bootsrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
<!-- load jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<!-- membuat bar -->
<div>
<div class="w3-bar w3-xlarge w3-theme-d4" style="letter-spacing:4px;">
<div class="w3-bar-item"><b>KOS-Q</b>
</div>
<button onclick="location.href='index.php'" class="w3-bar-item w3-button w3-hover-theme <?=$home?>">
<b><i class="fa fa-home" aria-hidden="true"></i></b>
</button>
</div>
</div>
<!-- membuat bar waktu kecil dan sedang-->
<div class="w3-top">
<div class="w3-bar w3-xlarge w3-theme-d4" style="letter-spacing:4px;">
<div class="w3-bar-item"><b>KOS-Q</b>
</div>
<button onclick="location.href='index.php'" class="w3-bar-item w3-button w3-hover-theme <?=$home?>">
<b><i class="fa fa-home" aria-hidden="true"></i></b>
</button>
</div>
</div>
<div class="w3-content w3-padding w3-margin-bottom">
<div class="w3-row w3-center w3-xxlarge w3-margin-bottom">
<b>Buat akun KOS-Q</b>
</div>
<div class="w3-col l6 m12 s12 w3-center">
<h2>Cari kost yang sesuai kebutuhanmu disini</h2>
Masukan lokasimu, maka kami akan memberikan saran yang terbaik.
<div class="w3-container w3-padding-large w3-hide-small">
<img src="img/signup.png" class="w3-image" />
</div>
</div>
<div class="w3-col l6 m12 s12 w3-padding w3-margin-bottom">
<form method="POST">
<div class="w3-light-grey w3-padding w3-border w3-margin-top">
<div class="w3-row-padding w3-margin-top">
<div class="w3-half">
<input class="w3-input" type="text" name="depan" placeholder="Nama depan" id="depan"/>
<div id="pesanNama" class="w3-text-red"></div>
</div>
<div class="w3-half">
<input class="w3-input w3-border" type="text" name="belakang" placeholder="Nama belakang" id="belakang"/>
</div>
</div>
<div class="w3-row-padding">
<div class="w3-row-padding">
<div class="w3-row w3-section">
<input class="w3-input w3-border" name="username" type="text" placeholder="Username" id="username"/>
<div id="pesanUser" class="w3-text-red"></div>
</div>
<div class="w3-row w3-section">
<input class="w3-input w3-border" name="email" type="email" placeholder="Email" id="email"/>
<div id="pesanEmail" class="w3-text-red"></div>
</div>
<div class="w3-row w3-section">
<select class="w3-input" name="namaKost">
<?php
$klo = "SELECT * FROM dataKost ORDER BY nama ASC";
$hgi = mysql_query($klo);
while ($data = mysql_fetch_array($hgi)) { ?>
<option value="<?=$data['nama']?>"><?=$data['nama']?></option>
<?php
}
?>
</select>
</div>
<div class="w3-row w3-section">
<input class="w3-input w3-border" name="password1" type="password" placeholder="Password" id="password1"/>
<div id="pesanPass" class="w3-text-red"></div>
</div>
<div class="w3-row w3-section">
<input class="w3-input w3-border" name="password2" type="password" placeholder="Konfirmasi password" id="password2"/>
<div id="pesanKonfir" class="w3-text-red"></div>
</div>
<div class="w3-row w3-section">
<input class="w3-input w3-border w3-flat-belize-hole w3-hover-dark-grey" name="kirim" type="submit" value="Daftar">
</div>
<div class="w3-panel w3-red w3-display-container">
<span onclick="this.parentElement.style.display='none'"
class="w3-button w3-red w3-large w3-display-topright">×</span>
<h3>Pendaftaran gagal!</h3>
<p>Username sudah digunakan.</p>
</div>
</div>
</div>
</div>
</form>
</div>
<?php
if(isset($_POST['kirim'])) {
?>
<script>
document.getElementById("depan").value = "<?=$_POST['depan']?>";
document.getElementById("belakang").value = "<?=$_POST['belakang']?>";
var username = document.getElementById("username").value = "<?=$_POST['username']?>";
document.getElementById("email").value = "<?=$_POST['email']?>";
</script>
<?php
}
include "daftarAkunNext.php";
?>
</div>
<!-- bar bawah waktu gede -->
<div class="w3-bar w3-theme-light w3-center w3-border-top w3-border-theme w3-bottom w3-hide-medium w3-hide-small">
<div class="w3-xxlarge w3-margin">
<b class="w3-text-theme">KOS-Q</b>
</div>
<div class="w3-row w3-margin-bottom">
<i onclick="window.open('//twitter.com/mykosq')" class="fa fa-twitter w3-xlarge w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
<i onclick="window.open('//fb.me/mykosq')" class="fa fa-facebook w3-xlarge w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
<i onclick="window.open('//www.instagram.com/mykosq/')" class="fa fa-instagram w3-xlarge w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
</div>
<div class="w3-row w3-margin-bottom">
<i class="fa fa-envelope-o" aria-hidden="true"></i> [email protected]
<i class="fa fa-whatsapp" aria-hidden="true"></i> +6281234567890
<i class="fa fa-weixin" aria-hidden="true"></i> kosqkosq
</div>
</div>
<!-- bar bawah waktu sedang -->
<div class="w3-bar w3-theme-light w3-center w3-border-top w3-border-theme w3-hide-large w3-hide-small">
<div class="w3-xxlarge w3-margin">
<b class="w3-text-theme">KOS-Q</b>
</div>
<div class="w3-row w3-margin-bottom">
<i onclick="window.open('//twitter.com/mykosq')" class="fa fa-twitter w3-xlarge w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
<i onclick="window.open('//fb.me/mykosq')" class="fa fa-facebook w3-xlarge w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
<i onclick="window.open('//www.instagram.com/mykosq/')" class="fa fa-instagram w3-xlarge w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
</div>
<div class="w3-row w3-margin-bottom">
<i class="fa fa-envelope-o" aria-hidden="true"></i> [email protected]
<i class="fa fa-whatsapp" aria-hidden="true"></i> +6281234567890
<i class="fa fa-weixin" aria-hidden="true"></i> kosqkosq
</div>
</div>
<!-- bar waktu kecil -->
<div class="w3-bar w3-theme-light w3-center w3-border-top w3-border-theme w3-bottom w3-hide-medium w3-hide-large">
<div class="w3-large">
<b class="w3-text-theme">KOS-Q</b>
</div>
<div class="w3-row">
<i onclick="window.open('//twitter.com/mykosq')" class="fa fa-twitter w3-large w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
<i onclick="window.open('//fb.me/mykosq')" class="fa fa-facebook w3-large w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
<i onclick="window.open('//www.instagram.com/mykosq/')" class="fa fa-instagram w3-large w3-button w3-padding w3-hover-theme" aria-hidden="true"></i>
</div>
<div class="w3-row w3-margin-bottom w3-small">
<i class="fa fa-envelope-o" aria-hidden="true"></i> [email protected]
<i class="fa fa-whatsapp" aria-hidden="true"></i> +6281234567890
<i class="fa fa-weixin" aria-hidden="true"></i> kosqkosq
</div>
</div>
</body>
</html>