-
Notifications
You must be signed in to change notification settings - Fork 2
/
pengembalian.php
162 lines (140 loc) · 4.14 KB
/
pengembalian.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?php
include_once("view/conf.php");
if(!cek_login()){
header("location:index.php");
}
if(isset($_GET['invoice'])){
$n = intval($_GET['invoice']);
$url = "invoice2.php?kd=$n";
echo "
<script type='text/javascript'>
window.open('$url', '_blank');
window.open('pengembalian.php', '_self');
</script>
";
}
$title = "Transaksi Pengembalian";
/*
1 : Data Member
2 : Transaksi Peminjaman
3 : Transaksi Pengembalian
4 : Laporan
*/
$menu = 3;
include "view/header.php";
?>
<h1>Transaksi Pengembalian</h1>
<form action="process/add-data.php?id=pengembalian" method="post" id="form_kembali">
<fieldset>
<div class="row">
<div class="col-sm-2">
<label for="inputMb">Member ID</label>
</div>
<div class="col-sm-10">
<select name="kd_trans" id="inputMb" class="form-control">
<option value=""></option>
<?php
$list = $db->query("SELECT sip_peminjaman.kd_transaksi, sip_member.* FROM sip_member, sip_peminjaman WHERE sip_peminjaman.id = sip_member.id AND sip_member.status = 0");
foreach($list as $row){
echo "<option value='$row[kd_transaksi]'>$row[nama] ($row[kitas])</option>";
}
?>
</select>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label for="jam_pinjam">Jam Pinjam</label>
</div>
<div class="col-sm-10">
<div class="row">
<div class="col-sm-2">
<input type="hidden" id="tgl_pinjam">
<span class="tgl_pinjam"></span>
<span class="jam_pinjam">00</span> :
<span class="jam_pinjam2">00</span>
<input type="hidden" name="jp_h" id="jam_pinjam">
<input type="hidden" name="jp_m" id="jam_pinjam2">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label for="jam_kembali" id="pengembalian">Jam Kembali</label>
</div>
<div class="col-sm-10">
<div class="row">
<div class="col-sm-2">
<input type="hidden" id="tgl_kembali" name="tgl_kbl" value="<?=date("Y-m-d")?>">
<span class="tgl_kbl"><?=date_indo(date("Y-m-d"))?></span>
<span class="jam_kembali">00</span> :
<span class="jam_kembali2">00</span>
<input type="hidden" name="jk_h" class="jk1">
<input type="hidden" name="jk_m" class="jk2">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label for="tarif_h">Tarif / Jam</label>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">Rp</span>
<input type="number" id="tarif" name="tarif_h" readonly="readonly" value="<?=get_setting("harga")?>" class="form-control">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label for="jml_spd">Jumlah Sepeda</label>
</div>
<div class="col-sm-2">
<input type="number" name="jml_spd" class="form-control" readonly="readonly" id="jml_spd">
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label for="totharga">Total Harga</label>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">Rp</span>
<input type="number" name="total_harga" id="totharga" class="form-control bold lead" readonly="readonly">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label for="bayar">Bayar</label>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">Rp</span>
<input type="number" name="bayar" id="bayar" class="form-control">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<label for="kembalian">Kembalian</label>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">Rp</span>
<input type="number" name="kembalian" id="kembalian" class="form-control" readonly="readonly">
</div>
</div>
</div>
<div class="form-group padd">
<div class="col-lg-10 col-lg-offset-2">
<button class="btn btn-primary" name="btn"><span class="fa fa-save"></span> Proses</button>
</div>
</div>
</fieldset>
</form>
<?php
include "view/footer.php";
?>