-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
66 lines (66 loc) · 1.89 KB
/
sidebar.php
File metadata and controls
66 lines (66 loc) · 1.89 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style/css/style.css" type="text/css">
<link href="style/jquery/jqClock/jqClock.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="style/jquery/datatables/media/js/jquery.js"></script>
<script type="text/javascript" src="style/jquery/jqClock/jqClock.min.js"></script>
<script type="text/javascript" src="style/jquery/datatables/media/js/jquery.dataTables.min.js"></script>
<link href="style/jquery/datatables/media/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function(){
$("#clock1").clock();
});
</script>
</head>
<body>
<?php
if (empty($_SESSION[Username])) {
?>
<br>
<div id="formlogin">
<div id="judul">
<center><label>Form Login</label></center>
</div>
<form action="login.php" method="post" name="form1"><br>
<tr>
<td>Username </td>
<td><input name="Username" type="text" id="username" required></td>
</tr>
<tr>
<td>Password</td>
<td><input name="Password" type="password" id="password" required></td>
</tr>
<tr>
<p><td><input type="submit" name="Submit" value="Login" class="button">
<input type="reset" name="Submit2" value="Reset" class="button"></td></p>
</tr>
</form>
</div>
</br>
<?php }?>
<?php
if (!empty($_SESSION[Username])) {
?>
<br>
<div id="formlogin">
<div id="judul">
<center><label>Menu User</label></center>
</div></br>
<img src="style/img/people.png" width="57" height="56">
<ul>
<li>Welcome : <?php echo "$_SESSION[Username]"; ?></li><br>
<?php
$cek=mysql_num_rows(mysql_query("SELECT Username FROM login WHERE Username='$_SESSION[Username]'"));
if ($cek > 0) {
echo "";
}
?>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<br/>
<?php } ?>
<div id="clock1"></div>
</body>
</html>