@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $datetime = date('Y-m-d G:i:s', $hour); |
| 18 | 18 | $userid = $_SESSION['userid']; |
| 19 | 19 | |
| 20 | - if ($module == 'general_setting' and $act == 'input') { |
|
| 20 | + if ($module=='general_setting' and $act=='input') { |
|
| 21 | 21 | $id_module = $_POST['id_module']; |
| 22 | 22 | |
| 23 | 23 | $lokasi_file = $_FILES['fupload']['tmp_name']; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | if ($id) { |
| 46 | 46 | $query = mysql_query('SELECT * FROM poli WHERE id_poli = "'.$id.'"'); |
| 47 | - if ($query && mysql_num_rows($query) == 1) { |
|
| 47 | + if ($query && mysql_num_rows($query)==1) { |
|
| 48 | 48 | $data = mysql_fetch_object($query); |
| 49 | 49 | } else { |
| 50 | 50 | die('Data modul tidak ditemukan'); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | <?php if ($id) { |
| 82 | 82 | ?> |
| 83 | 83 | |
| 84 | - <?php if (@$data->aktif == 'Y') { |
|
| 84 | + <?php if (@$data->aktif=='Y') { |
|
| 85 | 85 | ?> |
| 86 | 86 | |
| 87 | 87 | <div class="form-group"> |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | 18 | // Hapus modul |
| 19 | - if ($module == 'poli' and $act == 'hapus') { |
|
| 19 | + if ($module=='poli' and $act=='hapus') { |
|
| 20 | 20 | $id = $_GET['id']; |
| 21 | 21 | $id_module = $_GET['id_module']; |
| 22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Input group |
| 36 | - elseif ($module == 'poli' and $act == 'input') { |
|
| 36 | + elseif ($module=='poli' and $act=='input') { |
|
| 37 | 37 | $id_module = $_POST['id_module']; |
| 38 | 38 | |
| 39 | 39 | if ($_POST['ID']) { |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | 18 | // Hapus modul |
| 19 | - if ($module == 'kategori' and $act == 'hapus') { |
|
| 19 | + if ($module=='kategori' and $act=='hapus') { |
|
| 20 | 20 | $id = $_GET['id']; |
| 21 | 21 | $id_module = $_GET['id_module']; |
| 22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Input group |
| 36 | - elseif ($module == 'kategori' and $act == 'input') { |
|
| 36 | + elseif ($module=='kategori' and $act=='input') { |
|
| 37 | 37 | $id_module = $_POST['id_module']; |
| 38 | 38 | |
| 39 | 39 | if ($_POST['ID']) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | if ($id) { |
| 46 | 46 | $query = mysql_query('SELECT * FROM kategori WHERE id_kategori = "'.$id.'"'); |
| 47 | - if ($query && mysql_num_rows($query) == 1) { |
|
| 47 | + if ($query && mysql_num_rows($query)==1) { |
|
| 48 | 48 | $data = mysql_fetch_object($query); |
| 49 | 49 | } else { |
| 50 | 50 | die('Data modul tidak ditemukan'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | <?php if ($id) { |
| 84 | 84 | ?> |
| 85 | 85 | |
| 86 | - <?php if (@$data->aktif == 'Y') { |
|
| 86 | + <?php if (@$data->aktif=='Y') { |
|
| 87 | 87 | ?> |
| 88 | 88 | |
| 89 | 89 | <div class="form-group"> |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | <?php |
| 257 | 257 | |
| 258 | 258 | |
| 259 | - $SQL = "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang |
|
| 259 | + $SQL = "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang |
|
| 260 | 260 | |
| 261 | 261 | ,a.qty-a.qty_ps as iqty, b.id_merk, b.id_barang |
| 262 | 262 | ,ifnull((SELECT sum(saldo_akhir) |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | |
| 315 | 315 | while ($r = mysql_fetch_array($tampil)) { |
| 316 | 316 | |
| 317 | - //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty) |
|
| 317 | + //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty) |
|
| 318 | 318 | |
| 319 | 319 | $hsql = mysql_query("SELECT harga as last_price
|
| 320 | 320 | FROM pemesanan_barang_detail |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | |
| 428 | 428 | |
| 429 | 429 | |
| 430 | - <?php if ($size == '10') { |
|
| 430 | + <?php if ($size=='10') { |
|
| 431 | 431 | ?> |
| 432 | 432 | |
| 433 | 433 | <option value="10" selected="selected">10</option> |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | |
| 444 | 444 | |
| 445 | 445 | |
| 446 | - <?php if ($size == '15') { |
|
| 446 | + <?php if ($size=='15') { |
|
| 447 | 447 | ?> |
| 448 | 448 | |
| 449 | 449 | <option value="15" selected="selected">15</option> |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | |
| 460 | 460 | |
| 461 | 461 | |
| 462 | - <?php if ($size == '20') { |
|
| 462 | + <?php if ($size=='20') { |
|
| 463 | 463 | ?> |
| 464 | 464 | |
| 465 | 465 | <option value="20" selected="selected">20</option> |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | |
| 477 | 477 | |
| 478 | - <?php if ($size == '50') { |
|
| 478 | + <?php if ($size=='50') { |
|
| 479 | 479 | ?> |
| 480 | 480 | |
| 481 | 481 | <option value="50" selected="selected">20</option> |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | |
| 492 | 492 | |
| 493 | 493 | |
| 494 | - <?php if ($size == '100') { |
|
| 494 | + <?php if ($size=='100') { |
|
| 495 | 495 | ?> |
| 496 | 496 | |
| 497 | 497 | <option value="100" selected="selected">100</option> |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | // Hapus modul |
| 27 | 27 | |
| 28 | - if ($module == 'kasir' and $act == 'hapus') { |
|
| 28 | + if ($module=='kasir' and $act=='hapus') { |
|
| 29 | 29 | $id = $_GET['id']; |
| 30 | 30 | |
| 31 | 31 | $id_module = $_GET['id_module']; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | // Input group |
| 55 | 55 | |
| 56 | - elseif ($module == 'kasir' and $act == 'input') { |
|
| 56 | + elseif ($module=='kasir' and $act=='input') { |
|
| 57 | 57 | $id_module = $_POST['id_module']; |
| 58 | 58 | |
| 59 | 59 | if ($_POST['ID']) { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | <?php |
| 125 | - } elseif ($module == 'kasir' and $act == 'add') { |
|
| 125 | + } elseif ($module=='kasir' and $act=='add') { |
|
| 126 | 126 | $id_module = $_POST['id_module']; |
| 127 | 127 | |
| 128 | 128 | $k_ID = $_POST['k_ID']; |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | |
| 243 | 243 | |
| 244 | 244 | <?php |
| 245 | - } elseif ($module == 'kasir' and $act == 'dhapus') { |
|
| 245 | + } elseif ($module=='kasir' and $act=='dhapus') { |
|
| 246 | 246 | $id = $_GET['id']; |
| 247 | 247 | |
| 248 | 248 | $id_module = $_GET['id_module']; |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | WHERE id_kasir_detail = '$id'"); |
| 259 | 259 | |
| 260 | 260 | header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&ID='.$k_ID); |
| 261 | - } elseif ($module == 'kasir' and $act == 'verified') { |
|
| 261 | + } elseif ($module=='kasir' and $act=='verified') { |
|
| 262 | 262 | $id = $_GET['id']; |
| 263 | 263 | |
| 264 | 264 | $id_module = $_GET['id_module']; |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | "); |
| 311 | 311 | |
| 312 | 312 | header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save¬rans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet); |
| 313 | - } elseif ($module == 'kasir' and $act == 'reset') { |
|
| 313 | + } elseif ($module=='kasir' and $act=='reset') { |
|
| 314 | 314 | $id = $_GET['id']; |
| 315 | 315 | |
| 316 | 316 | $id_module = $_GET['id_module']; |
@@ -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> |
@@ -656,7 +656,7 @@ discard block |
||
| 656 | 656 | <tr> |
| 657 | 657 | <th style="border:none;"> </th> |
| 658 | 658 | <th colspan="5" style="text-align: left;">Disetorkan Ke Bendahara</th> |
| 659 | - <th style="text-align: right;"><?=$total;?></th> |
|
| 659 | + <th style="text-align: right;"><?=$total; ?></th> |
|
| 660 | 660 | <th style="" colspan="6"> </th> |
| 661 | 661 | </tr> |
| 662 | 662 | |
@@ -691,7 +691,7 @@ discard block |
||
| 691 | 691 | <tr> |
| 692 | 692 | <th style="border:none;"> </th> |
| 693 | 693 | <th style="border:none;"> </th> |
| 694 | - <th style="text-align: center;">(<?=$petugas;?>)</th> |
|
| 694 | + <th style="text-align: center;">(<?=$petugas; ?>)</th> |
|
| 695 | 695 | <th style="border:none;"> </th> |
| 696 | 696 | <th style="border:none;"> </th> |
| 697 | 697 | <th style="text-align: center;"> |
@@ -146,37 +146,37 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | <?php |
| 148 | 148 | |
| 149 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 149 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 150 | 150 | |
| 151 | - $g = mysql_fetch_array($gtampil); |
|
| 151 | + $g = mysql_fetch_array($gtampil); |
|
| 152 | 152 | |
| 153 | - if ($g['pict']) { |
|
| 154 | - $pict = $g['pict']; |
|
| 155 | - } else { |
|
| 156 | - $pict = ''; |
|
| 157 | - } |
|
| 153 | + if ($g['pict']) { |
|
| 154 | + $pict = $g['pict']; |
|
| 155 | + } else { |
|
| 156 | + $pict = ''; |
|
| 157 | + } |
|
| 158 | 158 | |
| 159 | - $company = ucwords($g['company']); |
|
| 159 | + $company = ucwords($g['company']); |
|
| 160 | 160 | |
| 161 | - $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b
|
|
| 161 | + $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b
|
|
| 162 | 162 | ON a.id_shift = b.id_shift |
| 163 | 163 | WHERE a.id_kasir = '$k_ID' |
| 164 | 164 | |
| 165 | 165 | "); |
| 166 | 166 | |
| 167 | - $r = mysql_fetch_array($sql); |
|
| 167 | + $r = mysql_fetch_array($sql); |
|
| 168 | 168 | |
| 169 | - $penjualan_barang = $r['id_kasir']; |
|
| 169 | + $penjualan_barang = $r['id_kasir']; |
|
| 170 | 170 | |
| 171 | - $shift = $r['shift']; |
|
| 171 | + $shift = $r['shift']; |
|
| 172 | 172 | |
| 173 | - $petugas = $r['petugas']; |
|
| 173 | + $petugas = $r['petugas']; |
|
| 174 | 174 | |
| 175 | - $status = $r['status']; |
|
| 175 | + $status = $r['status']; |
|
| 176 | 176 | |
| 177 | - $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
| 177 | + $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
| 178 | 178 | |
| 179 | - ?> |
|
| 179 | + ?> |
|
| 180 | 180 | |
| 181 | 181 | <table width="100%"> |
| 182 | 182 | <tr> |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | while ($i = mysql_fetch_array($itampil)) { |
| 213 | 213 | echo "<th>$i[jenis_transaksi]</th>"; |
| 214 | 214 | } |
| 215 | - ?> |
|
| 215 | + ?> |
|
| 216 | 216 | |
| 217 | 217 | <?php |
| 218 | 218 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | while ($i = mysql_fetch_array($itampil)) { |
| 222 | 222 | echo "<th>$i[jenis_pembayaran]</th>"; |
| 223 | 223 | } |
| 224 | - ?> |
|
| 224 | + ?> |
|
| 225 | 225 | |
| 226 | 226 | |
| 227 | 227 | </tr> |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | |
| 384 | 384 | $no++; |
| 385 | 385 | } |
| 386 | - ?> |
|
| 386 | + ?> |
|
| 387 | 387 | </tbody> |
| 388 | 388 | |
| 389 | 389 | <tfoot> |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | |
| 397 | 397 | <?php |
| 398 | 398 | |
| 399 | - $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 399 | + $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 400 | 400 | |
| 401 | 401 | while ($i = mysql_fetch_array($itampil)) { |
| 402 | 402 | $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b
|
@@ -421,10 +421,10 @@ discard block |
||
| 421 | 421 | ?> |
| 422 | 422 | |
| 423 | 423 | <?php |
| 424 | - $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 424 | + $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 425 | 425 | |
| 426 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 427 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 426 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 427 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 428 | 428 | |
| 429 | 429 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 430 | 430 | |
@@ -452,20 +452,20 @@ discard block |
||
| 452 | 452 | |
| 453 | 453 | "; |
| 454 | 454 | |
| 455 | - $ptampil = mysql_query($pSQL); |
|
| 455 | + $ptampil = mysql_query($pSQL); |
|
| 456 | 456 | |
| 457 | - $p = mysql_fetch_array($ptampil); |
|
| 457 | + $p = mysql_fetch_array($ptampil); |
|
| 458 | 458 | |
| 459 | - if ($p[jumlah]) { |
|
| 460 | - $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 461 | - } else { |
|
| 462 | - $jml = 0; |
|
| 463 | - } |
|
| 459 | + if ($p[jumlah]) { |
|
| 460 | + $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 461 | + } else { |
|
| 462 | + $jml = 0; |
|
| 463 | + } |
|
| 464 | 464 | |
| 465 | - echo"<th style='text-align:right;'>$jml </th>"; |
|
| 466 | - } |
|
| 465 | + echo"<th style='text-align:right;'>$jml </th>"; |
|
| 466 | + } |
|
| 467 | 467 | |
| 468 | - ?> |
|
| 468 | + ?> |
|
| 469 | 469 | |
| 470 | 470 | <th></th> |
| 471 | 471 | |
@@ -475,16 +475,16 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | <?php |
| 477 | 477 | |
| 478 | - if ($r[id_shift] == '1') { |
|
| 479 | - $id_shift = '1'; |
|
| 480 | - } else { |
|
| 481 | - $id_shift = '%'; |
|
| 482 | - } |
|
| 478 | + if ($r[id_shift] == '1') { |
|
| 479 | + $id_shift = '1'; |
|
| 480 | + } else { |
|
| 481 | + $id_shift = '%'; |
|
| 482 | + } |
|
| 483 | 483 | |
| 484 | - $itampil = mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift"); |
|
| 484 | + $itampil = mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift"); |
|
| 485 | 485 | |
| 486 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 487 | - $shift = $i['shift']; ?> |
|
| 486 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 487 | + $shift = $i['shift']; ?> |
|
| 488 | 488 | |
| 489 | 489 | <tr> |
| 490 | 490 | <th></th> |
@@ -523,15 +523,15 @@ discard block |
||
| 523 | 523 | |
| 524 | 524 | "; |
| 525 | 525 | |
| 526 | - $ptampil = mysql_query($pSQL); |
|
| 526 | + $ptampil = mysql_query($pSQL); |
|
| 527 | 527 | |
| 528 | - $p = mysql_fetch_array($ptampil); |
|
| 528 | + $p = mysql_fetch_array($ptampil); |
|
| 529 | 529 | |
| 530 | - if ($p[jumlah]) { |
|
| 531 | - $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 532 | - } else { |
|
| 533 | - $cash = 0; |
|
| 534 | - } ?> |
|
| 530 | + if ($p[jumlah]) { |
|
| 531 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 532 | + } else { |
|
| 533 | + $cash = 0; |
|
| 534 | + } ?> |
|
| 535 | 535 | <th style="text-align: right;"><?=$cash; ?></th> |
| 536 | 536 | <th style="text-align: left;">Credit</th> |
| 537 | 537 | |
@@ -566,15 +566,15 @@ discard block |
||
| 566 | 566 | |
| 567 | 567 | "; |
| 568 | 568 | |
| 569 | - $ptampil = mysql_query($pSQL); |
|
| 569 | + $ptampil = mysql_query($pSQL); |
|
| 570 | 570 | |
| 571 | - $p = mysql_fetch_array($ptampil); |
|
| 571 | + $p = mysql_fetch_array($ptampil); |
|
| 572 | 572 | |
| 573 | - if ($p[jumlah]) { |
|
| 574 | - $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 575 | - } else { |
|
| 576 | - $credit = 0; |
|
| 577 | - } ?> |
|
| 573 | + if ($p[jumlah]) { |
|
| 574 | + $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 575 | + } else { |
|
| 576 | + $credit = 0; |
|
| 577 | + } ?> |
|
| 578 | 578 | |
| 579 | 579 | <th style="text-align: right;"><?=$credit; ?></th> |
| 580 | 580 | <th colspan="4"></th> |
@@ -582,12 +582,12 @@ discard block |
||
| 582 | 582 | |
| 583 | 583 | |
| 584 | 584 | <?php |
| 585 | - } |
|
| 585 | + } |
|
| 586 | 586 | |
| 587 | - ?> |
|
| 587 | + ?> |
|
| 588 | 588 | |
| 589 | 589 | <?php if ($id_shift == '%') { |
| 590 | - ?> |
|
| 590 | + ?> |
|
| 591 | 591 | <tr> |
| 592 | 592 | <th></th> |
| 593 | 593 | <th></th> |
@@ -623,15 +623,15 @@ discard block |
||
| 623 | 623 | |
| 624 | 624 | "; |
| 625 | 625 | |
| 626 | - $ptampil = mysql_query($pSQL); |
|
| 626 | + $ptampil = mysql_query($pSQL); |
|
| 627 | 627 | |
| 628 | - $p = mysql_fetch_array($ptampil); |
|
| 628 | + $p = mysql_fetch_array($ptampil); |
|
| 629 | 629 | |
| 630 | - if ($p[jumlah]) { |
|
| 631 | - $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 632 | - } else { |
|
| 633 | - $cash = 0; |
|
| 634 | - } ?> |
|
| 630 | + if ($p[jumlah]) { |
|
| 631 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 632 | + } else { |
|
| 633 | + $cash = 0; |
|
| 634 | + } ?> |
|
| 635 | 635 | <th style="text-align: right;"><?=$cash; ?></th> |
| 636 | 636 | <th style="text-align: left;">Credit</th> |
| 637 | 637 | |
@@ -664,22 +664,22 @@ discard block |
||
| 664 | 664 | |
| 665 | 665 | "; |
| 666 | 666 | |
| 667 | - $ptampil = mysql_query($pSQL); |
|
| 667 | + $ptampil = mysql_query($pSQL); |
|
| 668 | 668 | |
| 669 | - $p = mysql_fetch_array($ptampil); |
|
| 669 | + $p = mysql_fetch_array($ptampil); |
|
| 670 | 670 | |
| 671 | - if ($p[jumlah]) { |
|
| 672 | - $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 673 | - } else { |
|
| 674 | - $credit = 0; |
|
| 675 | - } ?> |
|
| 671 | + if ($p[jumlah]) { |
|
| 672 | + $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 673 | + } else { |
|
| 674 | + $credit = 0; |
|
| 675 | + } ?> |
|
| 676 | 676 | |
| 677 | 677 | <th style="text-align: right;"><?=$credit; ?></th> |
| 678 | 678 | <th colspan="4"></th> |
| 679 | 679 | </tr> |
| 680 | 680 | |
| 681 | 681 | <?php |
| 682 | - } ?> |
|
| 682 | + } ?> |
|
| 683 | 683 | |
| 684 | 684 | <tr><td colspan="12"> </td></tr> |
| 685 | 685 | |
@@ -730,13 +730,13 @@ discard block |
||
| 730 | 730 | |
| 731 | 731 | $p = mysql_fetch_array($ptampil); |
| 732 | 732 | |
| 733 | - if ($p[jumlah]) { |
|
| 734 | - $total = number_format($p['jumlah'], 0, '.', ','); |
|
| 735 | - } else { |
|
| 736 | - $total = 0; |
|
| 737 | - } |
|
| 733 | + if ($p[jumlah]) { |
|
| 734 | + $total = number_format($p['jumlah'], 0, '.', ','); |
|
| 735 | + } else { |
|
| 736 | + $total = 0; |
|
| 737 | + } |
|
| 738 | 738 | |
| 739 | - ?> |
|
| 739 | + ?> |
|
| 740 | 740 | |
| 741 | 741 | |
| 742 | 742 | <tr> |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | <?php |
| 477 | 477 | |
| 478 | - if ($r[id_shift] == '1') { |
|
| 478 | + if ($r[id_shift]=='1') { |
|
| 479 | 479 | $id_shift = '1'; |
| 480 | 480 | } else { |
| 481 | 481 | $id_shift = '%'; |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | |
| 587 | 587 | ?> |
| 588 | 588 | |
| 589 | - <?php if ($id_shift == '%') { |
|
| 589 | + <?php if ($id_shift=='%') { |
|
| 590 | 590 | ?> |
| 591 | 591 | <tr> |
| 592 | 592 | <th></th> |
@@ -742,7 +742,7 @@ discard block |
||
| 742 | 742 | <tr> |
| 743 | 743 | <th style="border:none;"> </th> |
| 744 | 744 | <th colspan="5" style="text-align: left;">Disetorkan Ke Bendahara</th> |
| 745 | - <th style="text-align: right;">Rp.<?=$total;?></th> |
|
| 745 | + <th style="text-align: right;">Rp.<?=$total; ?></th> |
|
| 746 | 746 | <th style="" colspan="6"> </th> |
| 747 | 747 | </tr> |
| 748 | 748 | |
@@ -776,7 +776,7 @@ discard block |
||
| 776 | 776 | <tr> |
| 777 | 777 | <th style="border:none;"> </th> |
| 778 | 778 | <th style="border:none;"> </th> |
| 779 | - <th style="text-align: center;">(<?=$petugas;?>)</th> |
|
| 779 | + <th style="text-align: center;">(<?=$petugas; ?>)</th> |
|
| 780 | 780 | <th style="border:none;"> </th> |
| 781 | 781 | <th style="border:none;"> </th> |
| 782 | 782 | <th style="text-align: center;"> |