@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
21 | 21 | <?php |
22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
25 | 25 | } |
26 | 26 | ?> |
@@ -49,37 +49,37 @@ discard block |
||
49 | 49 | |
50 | 50 | <?php |
51 | 51 | |
52 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
52 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
53 | 53 | |
54 | - $g = mysql_fetch_array($gtampil); |
|
54 | + $g = mysql_fetch_array($gtampil); |
|
55 | 55 | |
56 | - if ($g['pict']) { |
|
57 | - $pict = $g['pict']; |
|
58 | - } else { |
|
59 | - $pict = ''; |
|
60 | - } |
|
56 | + if ($g['pict']) { |
|
57 | + $pict = $g['pict']; |
|
58 | + } else { |
|
59 | + $pict = ''; |
|
60 | + } |
|
61 | 61 | |
62 | - $company = ucwords($g['company']); |
|
62 | + $company = ucwords($g['company']); |
|
63 | 63 | |
64 | - $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b |
|
64 | + $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b |
|
65 | 65 | ON a.id_shift = b.id_shift |
66 | 66 | WHERE a.id_kasir = '$k_ID' |
67 | 67 | |
68 | 68 | "); |
69 | 69 | |
70 | - $r = mysql_fetch_array($sql); |
|
70 | + $r = mysql_fetch_array($sql); |
|
71 | 71 | |
72 | - $penjualan_barang = $r['id_kasir']; |
|
72 | + $penjualan_barang = $r['id_kasir']; |
|
73 | 73 | |
74 | - $shift = $r['shift']; |
|
74 | + $shift = $r['shift']; |
|
75 | 75 | |
76 | - $petugas = $r['petugas']; |
|
76 | + $petugas = $r['petugas']; |
|
77 | 77 | |
78 | - $status = $r['status']; |
|
78 | + $status = $r['status']; |
|
79 | 79 | |
80 | - $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
80 | + $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
81 | 81 | |
82 | - ?> |
|
82 | + ?> |
|
83 | 83 | |
84 | 84 | <table width="100%"> |
85 | 85 | <tr> |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | while ($i = mysql_fetch_array($itampil)) { |
117 | 117 | echo "<th>$i[jenis_transaksi]</th>"; |
118 | 118 | } |
119 | - ?> |
|
119 | + ?> |
|
120 | 120 | |
121 | 121 | <?php |
122 | 122 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | while ($i = mysql_fetch_array($itampil)) { |
126 | 126 | echo "<th>$i[jenis_pembayaran]</th>"; |
127 | 127 | } |
128 | - ?> |
|
128 | + ?> |
|
129 | 129 | |
130 | 130 | |
131 | 131 | </tr> |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | |
288 | 288 | $no++; |
289 | 289 | } |
290 | - ?> |
|
290 | + ?> |
|
291 | 291 | </tbody> |
292 | 292 | |
293 | 293 | <tfoot> |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | |
301 | 301 | <?php |
302 | 302 | |
303 | - $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
303 | + $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
304 | 304 | |
305 | 305 | while ($i = mysql_fetch_array($itampil)) { |
306 | 306 | $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b |
@@ -325,10 +325,10 @@ discard block |
||
325 | 325 | ?> |
326 | 326 | |
327 | 327 | <?php |
328 | - $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
328 | + $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
329 | 329 | |
330 | - while ($i = mysql_fetch_array($itampil)) { |
|
331 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
330 | + while ($i = mysql_fetch_array($itampil)) { |
|
331 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
332 | 332 | |
333 | 333 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
334 | 334 | |
@@ -356,20 +356,20 @@ discard block |
||
356 | 356 | |
357 | 357 | "; |
358 | 358 | |
359 | - $ptampil = mysql_query($pSQL); |
|
359 | + $ptampil = mysql_query($pSQL); |
|
360 | 360 | |
361 | - $p = mysql_fetch_array($ptampil); |
|
361 | + $p = mysql_fetch_array($ptampil); |
|
362 | 362 | |
363 | - if ($p[jumlah]) { |
|
364 | - $jml = number_format($p['jumlah'], 0, '.', ','); |
|
365 | - } else { |
|
366 | - $jml = 0; |
|
367 | - } |
|
363 | + if ($p[jumlah]) { |
|
364 | + $jml = number_format($p['jumlah'], 0, '.', ','); |
|
365 | + } else { |
|
366 | + $jml = 0; |
|
367 | + } |
|
368 | 368 | |
369 | - echo"<th style='text-align:right;'>$jml </th>"; |
|
370 | - } |
|
369 | + echo"<th style='text-align:right;'>$jml </th>"; |
|
370 | + } |
|
371 | 371 | |
372 | - ?> |
|
372 | + ?> |
|
373 | 373 | |
374 | 374 | <th></th> |
375 | 375 | |
@@ -389,16 +389,16 @@ discard block |
||
389 | 389 | |
390 | 390 | <?php |
391 | 391 | |
392 | - if ($r[id_shift] == '1') { |
|
393 | - $id_shift = '1'; |
|
394 | - } else { |
|
395 | - $id_shift = '%'; |
|
396 | - } |
|
392 | + if ($r[id_shift] == '1') { |
|
393 | + $id_shift = '1'; |
|
394 | + } else { |
|
395 | + $id_shift = '%'; |
|
396 | + } |
|
397 | 397 | |
398 | - $itampil = mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift"); |
|
398 | + $itampil = mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift"); |
|
399 | 399 | |
400 | - while ($i = mysql_fetch_array($itampil)) { |
|
401 | - $shift = $i['shift']; ?> |
|
400 | + while ($i = mysql_fetch_array($itampil)) { |
|
401 | + $shift = $i['shift']; ?> |
|
402 | 402 | |
403 | 403 | <tr> |
404 | 404 | <th></th> |
@@ -437,15 +437,15 @@ discard block |
||
437 | 437 | |
438 | 438 | "; |
439 | 439 | |
440 | - $ptampil = mysql_query($pSQL); |
|
440 | + $ptampil = mysql_query($pSQL); |
|
441 | 441 | |
442 | - $p = mysql_fetch_array($ptampil); |
|
442 | + $p = mysql_fetch_array($ptampil); |
|
443 | 443 | |
444 | - if ($p[jumlah]) { |
|
445 | - $cash = number_format($p['jumlah'], 0, '.', ','); |
|
446 | - } else { |
|
447 | - $cash = 0; |
|
448 | - } ?> |
|
444 | + if ($p[jumlah]) { |
|
445 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
446 | + } else { |
|
447 | + $cash = 0; |
|
448 | + } ?> |
|
449 | 449 | <th style="text-align: right;"><?=$cash; ?></th> |
450 | 450 | <th style="text-align: left;">Credit</th> |
451 | 451 | |
@@ -480,15 +480,15 @@ discard block |
||
480 | 480 | |
481 | 481 | "; |
482 | 482 | |
483 | - $ptampil = mysql_query($pSQL); |
|
483 | + $ptampil = mysql_query($pSQL); |
|
484 | 484 | |
485 | - $p = mysql_fetch_array($ptampil); |
|
485 | + $p = mysql_fetch_array($ptampil); |
|
486 | 486 | |
487 | - if ($p[jumlah]) { |
|
488 | - $credit = number_format($p['jumlah'], 0, '.', ','); |
|
489 | - } else { |
|
490 | - $credit = 0; |
|
491 | - } ?> |
|
487 | + if ($p[jumlah]) { |
|
488 | + $credit = number_format($p['jumlah'], 0, '.', ','); |
|
489 | + } else { |
|
490 | + $credit = 0; |
|
491 | + } ?> |
|
492 | 492 | |
493 | 493 | <th style="text-align: right;"><?=$credit; ?></th> |
494 | 494 | <th colspan="4"></th> |
@@ -496,12 +496,12 @@ discard block |
||
496 | 496 | |
497 | 497 | |
498 | 498 | <?php |
499 | - } |
|
499 | + } |
|
500 | 500 | |
501 | - ?> |
|
501 | + ?> |
|
502 | 502 | |
503 | 503 | <?php if ($id_shift == '%') { |
504 | - ?> |
|
504 | + ?> |
|
505 | 505 | <tr> |
506 | 506 | <th></th> |
507 | 507 | <th></th> |
@@ -537,15 +537,15 @@ discard block |
||
537 | 537 | |
538 | 538 | "; |
539 | 539 | |
540 | - $ptampil = mysql_query($pSQL); |
|
540 | + $ptampil = mysql_query($pSQL); |
|
541 | 541 | |
542 | - $p = mysql_fetch_array($ptampil); |
|
542 | + $p = mysql_fetch_array($ptampil); |
|
543 | 543 | |
544 | - if ($p[jumlah]) { |
|
545 | - $cash = number_format($p['jumlah'], 0, '.', ','); |
|
546 | - } else { |
|
547 | - $cash = 0; |
|
548 | - } ?> |
|
544 | + if ($p[jumlah]) { |
|
545 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
546 | + } else { |
|
547 | + $cash = 0; |
|
548 | + } ?> |
|
549 | 549 | <th style="text-align: right;"><?=$cash; ?></th> |
550 | 550 | <th style="text-align: left;">Credit</th> |
551 | 551 | |
@@ -578,22 +578,22 @@ discard block |
||
578 | 578 | |
579 | 579 | "; |
580 | 580 | |
581 | - $ptampil = mysql_query($pSQL); |
|
581 | + $ptampil = mysql_query($pSQL); |
|
582 | 582 | |
583 | - $p = mysql_fetch_array($ptampil); |
|
583 | + $p = mysql_fetch_array($ptampil); |
|
584 | 584 | |
585 | - if ($p[jumlah]) { |
|
586 | - $credit = number_format($p['jumlah'], 0, '.', ','); |
|
587 | - } else { |
|
588 | - $credit = 0; |
|
589 | - } ?> |
|
585 | + if ($p[jumlah]) { |
|
586 | + $credit = number_format($p['jumlah'], 0, '.', ','); |
|
587 | + } else { |
|
588 | + $credit = 0; |
|
589 | + } ?> |
|
590 | 590 | |
591 | 591 | <th style="text-align: right;"><?=$credit; ?></th> |
592 | 592 | <th colspan="4"></th> |
593 | 593 | </tr> |
594 | 594 | |
595 | 595 | <?php |
596 | - } ?> |
|
596 | + } ?> |
|
597 | 597 | |
598 | 598 | <tr><td colspan="12"> </td></tr> |
599 | 599 | |
@@ -644,13 +644,13 @@ discard block |
||
644 | 644 | |
645 | 645 | $p = mysql_fetch_array($ptampil); |
646 | 646 | |
647 | - if ($p[jumlah]) { |
|
648 | - $total = number_format($p['jumlah'], 0, '.', ','); |
|
649 | - } else { |
|
650 | - $total = 0; |
|
651 | - } |
|
647 | + if ($p[jumlah]) { |
|
648 | + $total = number_format($p['jumlah'], 0, '.', ','); |
|
649 | + } else { |
|
650 | + $total = 0; |
|
651 | + } |
|
652 | 652 | |
653 | - ?> |
|
653 | + ?> |
|
654 | 654 | |
655 | 655 | |
656 | 656 | <tr> |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | |
390 | 390 | <?php |
391 | 391 | |
392 | - if ($r[id_shift] == '1') { |
|
392 | + if ($r[id_shift]=='1') { |
|
393 | 393 | $id_shift = '1'; |
394 | 394 | } else { |
395 | 395 | $id_shift = '%'; |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | |
501 | 501 | ?> |
502 | 502 | |
503 | - <?php if ($id_shift == '%') { |
|
503 | + <?php if ($id_shift=='%') { |
|
504 | 504 | ?> |
505 | 505 | <tr> |
506 | 506 | <th></th> |
@@ -139,46 +139,46 @@ discard block |
||
139 | 139 | |
140 | 140 | <?php |
141 | 141 | |
142 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
142 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
143 | 143 | |
144 | - $g = mysql_fetch_array($gtampil); |
|
144 | + $g = mysql_fetch_array($gtampil); |
|
145 | 145 | |
146 | - if ($g['pict']) { |
|
147 | - $pict = $g['pict']; |
|
148 | - } else { |
|
149 | - $pict = ''; |
|
150 | - } |
|
146 | + if ($g['pict']) { |
|
147 | + $pict = $g['pict']; |
|
148 | + } else { |
|
149 | + $pict = ''; |
|
150 | + } |
|
151 | 151 | |
152 | - $company = ucwords($g['company']); |
|
152 | + $company = ucwords($g['company']); |
|
153 | 153 | |
154 | - $jsql = mysql_query("SELECT * FROM jenis_transaksi |
|
154 | + $jsql = mysql_query("SELECT * FROM jenis_transaksi |
|
155 | 155 | WHERE id_jenis_transaksi = '$jenis_transaksi' |
156 | 156 | |
157 | 157 | "); |
158 | 158 | |
159 | - $j = mysql_fetch_array($jsql); |
|
159 | + $j = mysql_fetch_array($jsql); |
|
160 | 160 | |
161 | - $jenis_transaksi = $j['jenis_transaksi']; |
|
161 | + $jenis_transaksi = $j['jenis_transaksi']; |
|
162 | 162 | |
163 | - $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b |
|
163 | + $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b |
|
164 | 164 | ON a.id_shift = b.id_shift |
165 | 165 | WHERE a.id_kasir = '$k_ID' |
166 | 166 | |
167 | 167 | "); |
168 | 168 | |
169 | - $r = mysql_fetch_array($sql); |
|
169 | + $r = mysql_fetch_array($sql); |
|
170 | 170 | |
171 | - $penjualan_barang = $r['id_kasir']; |
|
171 | + $penjualan_barang = $r['id_kasir']; |
|
172 | 172 | |
173 | - $shift = $r['shift']; |
|
173 | + $shift = $r['shift']; |
|
174 | 174 | |
175 | - $petugas = $r['petugas']; |
|
175 | + $petugas = $r['petugas']; |
|
176 | 176 | |
177 | - $status = $r['status']; |
|
177 | + $status = $r['status']; |
|
178 | 178 | |
179 | - $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
179 | + $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
180 | 180 | |
181 | - ?> |
|
181 | + ?> |
|
182 | 182 | |
183 | 183 | <table width="100%"> |
184 | 184 | <tr> |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | echo "<th colspan='2'>".$h['penjamin'].'</th>'; |
213 | 213 | } |
214 | 214 | |
215 | - ?> |
|
215 | + ?> |
|
216 | 216 | |
217 | 217 | <th colspan ="4" >UMUM</th> |
218 | 218 | <th rowspan="2" >PIC</th> |
@@ -227,11 +227,11 @@ discard block |
||
227 | 227 | <tr> |
228 | 228 | |
229 | 229 | <?php |
230 | - for ($j = 1; $j <= $hjml; $j++) { |
|
231 | - echo '<th>JML</th>'; |
|
232 | - echo '<th>RUPIAH</th>'; |
|
233 | - } |
|
234 | - ?> |
|
230 | + for ($j = 1; $j <= $hjml; $j++) { |
|
231 | + echo '<th>JML</th>'; |
|
232 | + echo '<th>RUPIAH</th>'; |
|
233 | + } |
|
234 | + ?> |
|
235 | 235 | |
236 | 236 | |
237 | 237 | <th>JML</th> |
@@ -253,18 +253,18 @@ discard block |
||
253 | 253 | <tbody> |
254 | 254 | |
255 | 255 | <?php for ($i = 1; $i <= 31; $i++) { |
256 | - echo'<tr>'; |
|
256 | + echo'<tr>'; |
|
257 | 257 | |
258 | - echo"<td style='text-align:center;'>$i</td>"; |
|
258 | + echo"<td style='text-align:center;'>$i</td>"; |
|
259 | 259 | |
260 | - if (strlen($i) == '1') { |
|
261 | - $tgl = $prd.'-0'.$i; |
|
262 | - } else { |
|
263 | - $tgl = $prd.'-'.$i; |
|
264 | - } |
|
260 | + if (strlen($i) == '1') { |
|
261 | + $tgl = $prd.'-0'.$i; |
|
262 | + } else { |
|
263 | + $tgl = $prd.'-'.$i; |
|
264 | + } |
|
265 | 265 | |
266 | - //transaksi asuransi |
|
267 | - $dtampil1 = mysql_query("SELECT a.id_penjamin |
|
266 | + //transaksi asuransi |
|
267 | + $dtampil1 = mysql_query("SELECT a.id_penjamin |
|
268 | 268 | , COUNT(c.jumlah) as jml |
269 | 269 | , IFNULL(SUM(c.jumlah),0) as rp |
270 | 270 | FROM penjamin a LEFT JOIN kasir b |
@@ -280,13 +280,13 @@ discard block |
||
280 | 280 | GROUP BY a.id_penjamin |
281 | 281 | ORDER BY a.id_penjamin"); |
282 | 282 | |
283 | - while ($d1 = mysql_fetch_array($dtampil1)) { |
|
284 | - echo '<th>'.$d1['jml'].'</th>'; |
|
285 | - echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
286 | - } |
|
283 | + while ($d1 = mysql_fetch_array($dtampil1)) { |
|
284 | + echo '<th>'.$d1['jml'].'</th>'; |
|
285 | + echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
286 | + } |
|
287 | 287 | |
288 | - //transaksi umum tunai |
|
289 | - $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
288 | + //transaksi umum tunai |
|
289 | + $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
290 | 290 | , IFNULL(SUM(c.jumlah),0) as rp |
291 | 291 | FROM kasir b LEFT JOIN kasir_detail c |
292 | 292 | ON b.id_kasir = c.id_kasir |
@@ -296,13 +296,13 @@ discard block |
||
296 | 296 | WHERE b.tanggal = '$tgl' |
297 | 297 | AND b.status != '4'"); |
298 | 298 | |
299 | - $d2 = mysql_fetch_array($dtampil2); |
|
299 | + $d2 = mysql_fetch_array($dtampil2); |
|
300 | 300 | |
301 | - echo '<th>'.$d2['jml'].'</th>'; |
|
302 | - echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
301 | + echo '<th>'.$d2['jml'].'</th>'; |
|
302 | + echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
303 | 303 | |
304 | - //transaksi umum tunai |
|
305 | - $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
304 | + //transaksi umum tunai |
|
305 | + $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
306 | 306 | , IFNULL(SUM(c.jumlah),0) as rp |
307 | 307 | FROM kasir b LEFT JOIN kasir_detail c |
308 | 308 | ON b.id_kasir = c.id_kasir |
@@ -312,21 +312,21 @@ discard block |
||
312 | 312 | WHERE b.tanggal = '$tgl' |
313 | 313 | AND b.status != '4'"); |
314 | 314 | |
315 | - $d3 = mysql_fetch_array($dtampil3); |
|
315 | + $d3 = mysql_fetch_array($dtampil3); |
|
316 | 316 | |
317 | - echo '<th>'.$d3['jml'].'</th>'; |
|
318 | - echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
317 | + echo '<th>'.$d3['jml'].'</th>'; |
|
318 | + echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
319 | 319 | |
320 | - echo '<th></th>'; |
|
321 | - echo '<th></th>'; |
|
322 | - echo '<th></th>'; |
|
320 | + echo '<th></th>'; |
|
321 | + echo '<th></th>'; |
|
322 | + echo '<th></th>'; |
|
323 | 323 | |
324 | - echo '<th></th>'; |
|
325 | - echo '<th></th>'; |
|
326 | - echo '<th></th>'; |
|
324 | + echo '<th></th>'; |
|
325 | + echo '<th></th>'; |
|
326 | + echo '<th></th>'; |
|
327 | 327 | |
328 | - //total jml |
|
329 | - $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
328 | + //total jml |
|
329 | + $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
330 | 330 | FROM kasir b LEFT JOIN kasir_detail c |
331 | 331 | ON b.id_kasir = c.id_kasir |
332 | 332 | AND c.status != '4' |
@@ -334,12 +334,12 @@ discard block |
||
334 | 334 | WHERE b.tanggal = '$tgl' |
335 | 335 | AND b.status != '4'"); |
336 | 336 | |
337 | - $d4 = mysql_fetch_array($dtampil4); |
|
337 | + $d4 = mysql_fetch_array($dtampil4); |
|
338 | 338 | |
339 | - echo '<th>'.$d4['jml'].'</th>'; |
|
339 | + echo '<th>'.$d4['jml'].'</th>'; |
|
340 | 340 | |
341 | - //total pembayaran |
|
342 | - $dtampil5 = mysql_query("SELECT a.groups |
|
341 | + //total pembayaran |
|
342 | + $dtampil5 = mysql_query("SELECT a.groups |
|
343 | 343 | , IFNULL(SUM(c.jumlah),0) as rp |
344 | 344 | FROM jenis_pembayaran a LEFT JOIN kasir b |
345 | 345 | ON b.tanggal = '$tgl' |
@@ -352,23 +352,23 @@ discard block |
||
352 | 352 | GROUP BY a.groups |
353 | 353 | ORDER BY a.groups"); |
354 | 354 | |
355 | - while ($d5 = mysql_fetch_array($dtampil5)) { |
|
356 | - echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
357 | - } |
|
355 | + while ($d5 = mysql_fetch_array($dtampil5)) { |
|
356 | + echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
357 | + } |
|
358 | 358 | |
359 | - echo'</tr>'; |
|
360 | - } ?> |
|
359 | + echo'</tr>'; |
|
360 | + } ?> |
|
361 | 361 | |
362 | 362 | </tbody> |
363 | 363 | |
364 | 364 | <?php |
365 | 365 | |
366 | - echo'<tr>'; |
|
366 | + echo'<tr>'; |
|
367 | 367 | |
368 | - echo"<th style='text-align:center;'>TOTAL</th>"; |
|
368 | + echo"<th style='text-align:center;'>TOTAL</th>"; |
|
369 | 369 | |
370 | - //transaksi asuransi |
|
371 | - $dtampil1 = mysql_query("SELECT a.id_penjamin |
|
370 | + //transaksi asuransi |
|
371 | + $dtampil1 = mysql_query("SELECT a.id_penjamin |
|
372 | 372 | , COUNT(c.jumlah) as jml |
373 | 373 | , IFNULL(SUM(c.jumlah),0) as rp |
374 | 374 | FROM penjamin a LEFT JOIN kasir b |
@@ -384,13 +384,13 @@ discard block |
||
384 | 384 | GROUP BY a.id_penjamin |
385 | 385 | ORDER BY a.id_penjamin"); |
386 | 386 | |
387 | - while ($d1 = mysql_fetch_array($dtampil1)) { |
|
388 | - echo '<th>'.$d1['jml'].'</th>'; |
|
389 | - echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
390 | - } |
|
387 | + while ($d1 = mysql_fetch_array($dtampil1)) { |
|
388 | + echo '<th>'.$d1['jml'].'</th>'; |
|
389 | + echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
390 | + } |
|
391 | 391 | |
392 | - //transaksi umum tunai |
|
393 | - $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
392 | + //transaksi umum tunai |
|
393 | + $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
394 | 394 | , IFNULL(SUM(c.jumlah),0) as rp |
395 | 395 | FROM kasir b LEFT JOIN kasir_detail c |
396 | 396 | ON b.id_kasir = c.id_kasir |
@@ -400,13 +400,13 @@ discard block |
||
400 | 400 | AND b.tanggal LIKE '$prd%' |
401 | 401 | AND b.status != '4'"); |
402 | 402 | |
403 | - $d2 = mysql_fetch_array($dtampil2); |
|
403 | + $d2 = mysql_fetch_array($dtampil2); |
|
404 | 404 | |
405 | - echo '<th>'.$d2['jml'].'</th>'; |
|
406 | - echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
405 | + echo '<th>'.$d2['jml'].'</th>'; |
|
406 | + echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
407 | 407 | |
408 | - //transaksi umum tunai |
|
409 | - $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
408 | + //transaksi umum tunai |
|
409 | + $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
410 | 410 | , IFNULL(SUM(c.jumlah),0) as rp |
411 | 411 | FROM kasir b LEFT JOIN kasir_detail c |
412 | 412 | ON b.id_kasir = c.id_kasir |
@@ -416,33 +416,33 @@ discard block |
||
416 | 416 | WHERE b.tanggal LIKE '$prd%' |
417 | 417 | AND b.status != '4'"); |
418 | 418 | |
419 | - $d3 = mysql_fetch_array($dtampil3); |
|
419 | + $d3 = mysql_fetch_array($dtampil3); |
|
420 | 420 | |
421 | - echo '<th>'.$d3['jml'].'</th>'; |
|
422 | - echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
421 | + echo '<th>'.$d3['jml'].'</th>'; |
|
422 | + echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
423 | 423 | |
424 | - echo '<th></th>'; |
|
425 | - echo '<th></th>'; |
|
426 | - echo '<th></th>'; |
|
424 | + echo '<th></th>'; |
|
425 | + echo '<th></th>'; |
|
426 | + echo '<th></th>'; |
|
427 | 427 | |
428 | - echo '<th></th>'; |
|
429 | - echo '<th></th>'; |
|
430 | - echo '<th></th>'; |
|
428 | + echo '<th></th>'; |
|
429 | + echo '<th></th>'; |
|
430 | + echo '<th></th>'; |
|
431 | 431 | |
432 | - //total jml |
|
433 | - $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
432 | + //total jml |
|
433 | + $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
434 | 434 | FROM kasir b LEFT JOIN kasir_detail c |
435 | 435 | ON b.id_kasir = c.id_kasir |
436 | 436 | AND c.status != '4' |
437 | 437 | WHERE b.tanggal LIKE '$prd%' |
438 | 438 | AND b.status != '4'"); |
439 | 439 | |
440 | - $d4 = mysql_fetch_array($dtampil4); |
|
440 | + $d4 = mysql_fetch_array($dtampil4); |
|
441 | 441 | |
442 | - echo '<th>'.$d4['jml'].'</th>'; |
|
442 | + echo '<th>'.$d4['jml'].'</th>'; |
|
443 | 443 | |
444 | - //total pembayaran |
|
445 | - $dtampil5 = mysql_query("SELECT a.groups |
|
444 | + //total pembayaran |
|
445 | + $dtampil5 = mysql_query("SELECT a.groups |
|
446 | 446 | , IFNULL(SUM(c.jumlah),0) as rp |
447 | 447 | FROM jenis_pembayaran a LEFT JOIN kasir b |
448 | 448 | ON b.tanggal LIKE '$prd%' |
@@ -455,18 +455,18 @@ discard block |
||
455 | 455 | GROUP BY a.groups |
456 | 456 | ORDER BY a.groups"); |
457 | 457 | |
458 | - while ($d5 = mysql_fetch_array($dtampil5)) { |
|
459 | - echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
460 | - } |
|
458 | + while ($d5 = mysql_fetch_array($dtampil5)) { |
|
459 | + echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
460 | + } |
|
461 | 461 | |
462 | - echo'</tr>'; |
|
462 | + echo'</tr>'; |
|
463 | 463 | |
464 | - echo'<tr>'; |
|
464 | + echo'<tr>'; |
|
465 | 465 | |
466 | - echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>"; |
|
466 | + echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>"; |
|
467 | 467 | |
468 | - //total jml |
|
469 | - $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
468 | + //total jml |
|
469 | + $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml |
|
470 | 470 | FROM kasir b LEFT JOIN kasir_detail c |
471 | 471 | ON b.id_kasir = c.id_kasir |
472 | 472 | AND c.status != '4' |
@@ -474,12 +474,12 @@ discard block |
||
474 | 474 | WHERE b.tanggal LIKE '$prd%' |
475 | 475 | AND b.status != '4'"); |
476 | 476 | |
477 | - $d4 = mysql_fetch_array($dtampil4); |
|
477 | + $d4 = mysql_fetch_array($dtampil4); |
|
478 | 478 | |
479 | - echo '<th>'.$d4['jml'].'</th>'; |
|
479 | + echo '<th>'.$d4['jml'].'</th>'; |
|
480 | 480 | |
481 | - //total pembayaran |
|
482 | - $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp |
|
481 | + //total pembayaran |
|
482 | + $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp |
|
483 | 483 | FROM kasir b LEFT JOIN kasir_detail c |
484 | 484 | ON b.id_kasir = c.id_kasir |
485 | 485 | AND c.status != '4' |
@@ -487,9 +487,9 @@ discard block |
||
487 | 487 | WHERE b.tanggal LIKE '$prd%' |
488 | 488 | AND b.status != '4'"); |
489 | 489 | |
490 | - $d5 = mysql_fetch_array($dtampil5); |
|
490 | + $d5 = mysql_fetch_array($dtampil5); |
|
491 | 491 | |
492 | - echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
492 | + echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
493 | 493 | |
494 | 494 | ?> |
495 | 495 |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | <tr> |
324 | 324 | |
325 | 325 | <?php |
326 | - for ($j = 1; $j <= $hjml; $j++) { |
|
326 | + for ($j = 1; $j<=$hjml; $j++) { |
|
327 | 327 | echo '<th>JML</th>'; |
328 | 328 | echo '<th>RUPIAH</th>'; |
329 | 329 | } |
@@ -348,12 +348,12 @@ discard block |
||
348 | 348 | |
349 | 349 | <tbody> |
350 | 350 | |
351 | - <?php for ($i = 1; $i <= 31; $i++) { |
|
351 | + <?php for ($i = 1; $i<=31; $i++) { |
|
352 | 352 | echo'<tr>'; |
353 | 353 | |
354 | 354 | echo"<td style='text-align:center;'>$i</td>"; |
355 | 355 | |
356 | - if (strlen($i) == '1') { |
|
356 | + if (strlen($i)=='1') { |
|
357 | 357 | $tgl = $prd.'-0'.$i; |
358 | 358 | } else { |
359 | 359 | $tgl = $prd.'-'.$i; |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | |
603 | 603 | $month = date('m', strtotime($iprd)) * 1; |
604 | 604 | |
605 | - if ($month == '1') { |
|
605 | + if ($month=='1') { |
|
606 | 606 | $imonth = 12; |
607 | 607 | } else { |
608 | 608 | $imonth = $month - 1; |