-
Notifications
You must be signed in to change notification settings - Fork 0
/
log.php
100 lines (95 loc) · 2.64 KB
/
log.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
<?php
session_start();
if($_SESSION['user']==FALSE) {
echo "<script>alert('Anda tidak berhak mengakses halaman ini');document.location='index.php'</script>";
}
else {
?>
<html>
<head>
<title>Data Log Transaksi</title>
<link href="css/login-.css" rel="stylesheet" type="text/css" />
<link href="css/main-.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.head {
color: #FFF;
opacity: 0.9;
-webkit-transition: box-shadow .25s ease-in-out;
-moz-transition: box-shadow .25s ease-in-out;
-o-transition: box-shadow .25s ease-in-out;
transition: box-shadow .25s ease-in-out;
background: #0099CC;
padding: 10px;
border-radius: 5px;
box-shadow: 1px 0px 15px #FFF;
}
.head:hover {
box-shadow: 1px 0px 40px #66CCFF;
}
.title h1{
color:#FFFFFF;
text-shadow: 0 1px 2px #000;
}
.hov {
-webkit-transition: background .25s ease-in-out;
-moz-transition: background .25s ease-in-out;
-o-transition: background .25s ease-in-out;
transition: background .25s ease-in-out;
}
.hov:hover {
background: #333;
opacity: 0.7;
}
.tittab {
background: #FFF;
color: #000;
padding: 15px;
}
.link a {
color: #000;
}
.link:hover {
color: #000;
}
</style>
</head>
<body>
<p align="right" class="link"><a href="main.php">Back to Send App</a> - <a href="logout.php">Logout</a></p>
<center><div class="title"><h1>DATA LOG</h1></div></center>
<br><br>
<table class="head" align="center" width="82%" cellspacing="0">
<tr class="tittab">
<td align="left" width="90"><b>No</b></td>
<td align="left" width="190"><b>Nomor</b></td>
<td align="left" width="140"><b>Nominal</b></td>
<td align="left" width="140"><b>Tanggal</b></td>
<td align="left" width="140"><b> </b></td>
</tr>
<?php
mysql_connect("localhost","root","");
mysql_select_db("mostryahoo");
$hasil=mysql_query("SELECT * FROM log");
if($hasil === FALSE) {
die(mysql_error());
}
while($data=mysql_fetch_array($hasil))
{
$no=$data[0];
$notel=$data[1];
$nominal=$data[3];
$date=$data[4];
print ("<tr class='hov'>");
print ("<td style='padding: 2px;'>$no</td>");
print ("<td style='padding: 2px;'>$notel</td>");
print ("<td style='padding: 2px;'>$nominal</td>");
print ("<td style='padding: 2px;'>$date</td>");
print ("<td style='padding: 2px;' class='link'><a href='Hapus_data.php?no=$no'>Delete</a></td>");
print ("</tr>");
}
?>
</table>
</body>
</html>
<?php
}
?>