-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.php
41 lines (41 loc) · 1.52 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
<div><center><form name="logForm" method="post" action="?page=Login-Validasi" enctype="multipart/form-data">
<table class="table-common" width="500" border="0" cellpadding="2" cellspacing="1" bgcolor="#999999">
<tr>
<td width="106" rowspan="5" align="center" bgcolor="#FFFFFF"><img src="images/login-key.jpg" width="116" height="75" /></td>
<th colspan="2" bgcolor="#CCCCCC"><b>LOGIN TOKO </b></td>
</tr>
<tr>
<td width="117" bgcolor="#FFFFFF"><b>User Login </b></td>
<td width="263" bgcolor="#FFFFFF"><b>:
<input name="txtUser" type="text" size="30" maxlength="20" />
</b></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><b>Password</b></td>
<td bgcolor="#FFFFFF"><b>:
<input name="txtPassword" type="password" size="30" maxlength="20" />
</b></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><b>Hak akses</b></td>
<td bgcolor="#FFFFFF"><b>:
<select name="cmbLevel">
<option value="BLANK"> </option>
<?php
$arrHak = array("Kasir", "Admin");
foreach ($arrHak as $index => $value) {
if ($_POST['cmbLevel']==$value) {
$cek="selected";
} else { $cek = ""; }
echo "<option value='$value' $cek>$value</option>";
}
?>
</select>
</b></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><input type="submit" name="btnLogin" value=" Login " /></td>
</tr>
</table>
</form></center></div>