-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaturwaktukrs.php
84 lines (80 loc) · 2.47 KB
/
aturwaktukrs.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
<html>
<head>
<title>Atur Waktu KRS</title>
<link rel="stylesheet" type="text/css" href="CSS/layout.css"/>
<link rel="stylesheet" type="text/css" href="CSS/element.css"/>
<script type="text/javascript" src="JS/krsjs.js"></script>
<link rel="stylesheet" type="text/css" href="CSS/jquery.ui.all.css" />
<link rel="stylesheet" type="text/css" href="CSS/demos.css" />
<link rel="stylesheet" type="text/css" href="CSS/jquery.ui.datepicker.css" />
<script type="text/javascript" src="JS/jquery-1.9.1.js"></script>
<script type="text/javascript" src="JS/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="JS/ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="JS/ui/i18n/jquery.ui.datepicker-id.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#tanggal").datepicker({
showOn: "both", buttonImage: "Images/calendar.gif", buttonImageOnly: true, nextText: "", prevText: "", changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd"
});
});
</script>
</head>
<body>
<div id="container">
<div id="header">
<table border="0" cellspacing="10">
<tr>
<td><img src="Images/admin.png" width="150" height="150" /></td>
<td><h1>Admin Page</h1></td>
</tr>
</table>
</div>
<div id="cpanel">
<form action="tambahwaktu.php" method="POST">
<table border="0" cellspacing="40">
<tr>
<td colspan="3"><h1>Atur Waktu KRS</h1></td>
</tr>
<tr>
<td>
<a href="paneladmin.php" title="Kembali"><img src="Images/back.png" /></a>
</td>
</tr>
<?php
include "koneksi.php";
$tampil = "SELECT * FROM data_waktu";
$querytampil = mysql_query($tampil);
$jum = mysql_num_rows($querytampil);
if($jum==1) {
echo "<tr>";
echo "<td><a href=\"resetwaktu.php\" title=\"Reset Waktu\"><img src=\"Images/bin.png\" /></a></td>";
echo "<td><a href=\"resetwaktu.php\" title=\"Reset Waktu\"><h2>Atur Ulang Waktu KRS</h2></a></td>";
echo "</tr>";
} else {
?>
<tr>
<td><h2>Tanggal</h2></td>
<td>:</td>
<td><input id="tanggal" type="text" name="tgl"></td>
</tr>
<tr>
<td><h2>Jam</h2></td>
<td>:</td>
<td><input type="text" name="jam" size="15" /></td>
</tr>
<tr>
<td colspan="3">
<input type="submit" name="submit" value="Submit" />
<input type="reset" name="reset" value="Reset" />
</td>
</tr>
<?php
}
?>
</table>
</form>
</div>
</div>
<div id="footer">Copyright © 2013 ERA</div>
</body>
</html>