-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtransaksik.php
109 lines (107 loc) · 3.77 KB
/
vtransaksik.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
<!DOCTYPE html>
<?php
ob_start();
session_start();
error_reporting(0);
?>
<html>
<head><title>Rental Mobil
</title>
<link rel="stylesheet" href="style/css/style.css" type="text/css">
<script type="text/javascript" src="style/jquery/datatables/media/js/jquery.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() {
$('#belajar').dataTable({oLanguage:{sLengthMenu:"Show <select>"+"<option value='5'>5</option>"+"</select> entries"},"iDisplayLength":5});
} );
</script>
</head>
<body>
<body background="style/img/back01.png">
<div id="header">
<img src="style/img/banner_rahmad.jpg" class="banner" href="index.php">
</div>
<div id='cssmenu'>
<ul>
<li><a href='index1.php'>Home</a></li>
<li class='active has-sub'><a href='#'>Input Data</a>
<ul>
<li class='has-sub'><a href='ikendaraan.php'>Data Kendaraan</a></li>
<li class='has-sub'><a href='ipelanggan.php'>Data Pelanggan</a></li>
<li class='has-sub'><a href='itransaksip.php'>Data Transaksi Pinjam</a></li>
<li class='has-sub'><a href='itransaksik.php'>Data Transaksi Kembali</a></li>
<li class='has-sub'><a href='isopir.php'>Data Sopir</a></li>
<li class='has-sub'><a href='ipemilik.php'>Data Pemilik</a></li>
<li class='has-sub'><a href='iservice.php'>Data Service</a></li>
<li class='has-sub'><a href='isetoran.php'>Data Setoran</a></li>
<li class='has-sub'><a href='ikaryawan.php'>Data Karyawan</a></li>
</ul>
</li>
<li class='active has-sub'><a href='#'>Lihat Data</a>
<ul>
<li class='has-sub'><a href='vkendaraan.php'>Data Kendaraan</a></li>
<li class='has-sub'><a href='vpelanggan.php'>Data Pelanggan</a></li>
<li class='has-sub'><a href='vtransaksip.php'>Data Transaksi Pinjam</a></li>
<li class='has-sub'><a href='vtransaksik.php'>Data Transaksi kembali</a></li>
<li class='has-sub'><a href='vsopir.php'>Data Sopir</a></li>
<li class='has-sub'><a href='vpemilik.php'>Data Pemilik</a></li>
<li class='has-sub'><a href='vservice.php'>Data Service</a></li>
<li class='has-sub'><a href='vsetoran.php'>Data Setoran</a></li>
<li class='has-sub'><a href='vkaryawan.php'>Data Karyawan</a></li>
</ul>
</li>
<li><a href='index1.php'>Kontak</a></li>
<li><a href='index1.php'>About</a></li>
</ul>
</div>
<div id="leftbar">
<?php include "sidebar.php";?>
</div>
<div id="isi">
<div id="dataTables">
<table border="1" align="center" id="belajar" width="1015px" class="display">
<caption>Data Transaksi Kembali</caption>
<thead>
<tr>
<th width="12%">Id Kembali</th>
<th>No Transaksi</th>
<th>Tgl Kembali</th>
<th>Denda</th>
<th>KM Kembali</th>
<th>BBM Kembali</th>
<th>Biaya Kerusakan</th>
<th>Biaya BBM</th>
</tr>
</thead>
<tbody>
<?php
include'koneksi.php';
$query = mysql_query("select * from tb_transaksi_kembali");
$no = 0;
while ($r = mysql_fetch_array($query)){
echo"<tr>
<td>$r[Id_Kembali]</td>
<td>$r[No_Transaksi]</td>
<td>$r[Tgl_Kembali]</td>
<td>$r[Denda]</td>
<td>$r[KM_Kembali]</td>
<td>$r[BBM_Kembali]</td>
<td>$r[Biaya_Kerusakan]</td>
<td>$r[Biaya_BBM]</td>
<td><a href='dtransaksip.php?Id_Kembali=".$r['Id_Kembali']."'>Hapus |<a/>
<a href='etransaksip.php?Id_Kembali=".$r['Id_Kembali']."' >Edit<a/>
</td>
</tr>";
$no++;
}
?>
</tbody>
</table>
</div>
</div>
<div id="footer">
<center><p>Copyright © Rahmad Al Habib 2016</p></center>
</div>
</body>
</html>