@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | { |
| 4 | 4 | echo "<select name=$var>"; |
| 5 | 5 | echo "<option value=0 selected>$default</option>"; |
| 6 | - for ($i = $awal; $i <= $akhir; $i++) { |
|
| 6 | + for ($i = $awal; $i<=$akhir; $i++) { |
|
| 7 | 7 | echo "<option value=$i>$i</option>"; |
| 8 | 8 | } |
| 9 | 9 | echo '</select> '; |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | include '../config/library.php'; |
| 15 | 15 | echo "<select name=$var>"; |
| 16 | 16 | echo "<option value=0 selected>$default</option>"; |
| 17 | - for ($bln = $awal; $bln <= $akhir; $bln++) { |
|
| 17 | + for ($bln = $awal; $bln<=$akhir; $bln++) { |
|
| 18 | 18 | echo "<option value=$bln>$nama_bln[$bln]</option>"; |
| 19 | 19 | } |
| 20 | 20 | echo '</select> '; |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | function combotgl2($awal, $akhir, $var, $terpilih) |
| 24 | 24 | { |
| 25 | 25 | echo "<select name=$var class='tselect_tgl'>"; |
| 26 | - for ($i = $awal; $i <= $akhir; $i++) { |
|
| 27 | - if ($i == $terpilih) { |
|
| 26 | + for ($i = $awal; $i<=$akhir; $i++) { |
|
| 27 | + if ($i==$terpilih) { |
|
| 28 | 28 | echo "<option value=$i selected>$i</option>"; |
| 29 | 29 | } else { |
| 30 | 30 | echo "<option value=$i>$i</option>"; |
@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | include '../config/library.php'; |
| 39 | 39 | echo "<select name=$var class='tselect_bln'>"; |
| 40 | - for ($bln = $awal; $bln <= $akhir; $bln++) { |
|
| 41 | - if ($bln == $terpilih) { |
|
| 40 | + for ($bln = $awal; $bln<=$akhir; $bln++) { |
|
| 41 | + if ($bln==$terpilih) { |
|
| 42 | 42 | echo "<option value=$bln selected>$nama_bln[$bln]</option>"; |
| 43 | 43 | } else { |
| 44 | 44 | echo "<option value=$bln>$nama_bln[$bln]</option>"; |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | function combothn($awal, $akhir, $var, $terpilih) |
| 51 | 51 | { |
| 52 | 52 | echo "<select name=$var class='tselect_thn'>"; |
| 53 | - for ($i = $awal; $i <= $akhir; $i++) { |
|
| 54 | - if ($i == $terpilih) { |
|
| 53 | + for ($i = $awal; $i<=$akhir; $i++) { |
|
| 54 | + if ($i==$terpilih) { |
|
| 55 | 55 | echo "<option value=$i selected>$i</option>"; |
| 56 | 56 | } else { |
| 57 | 57 | echo "<option value=$i>$i</option>"; |
@@ -84,28 +84,28 @@ |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | switch ($size[2]) { |
| 87 | - case 1: //GIF |
|
| 87 | + case 1: //GIF |
|
| 88 | 88 | $src = imagecreatefromgif($srcFile); |
| 89 | - break; |
|
| 90 | - case 2: //JPEG |
|
| 89 | + break; |
|
| 90 | + case 2: //JPEG |
|
| 91 | 91 | $src = imagecreatefromjpeg($srcFile); |
| 92 | - break; |
|
| 93 | - case 3: //PNG |
|
| 92 | + break; |
|
| 93 | + case 3: //PNG |
|
| 94 | 94 | $src = imagecreatefrompng($srcFile); |
| 95 | - break; |
|
| 96 | - default: |
|
| 95 | + break; |
|
| 96 | + default: |
|
| 97 | 97 | return false; |
| 98 | - break; |
|
| 98 | + break; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]); |
| 102 | 102 | |
| 103 | 103 | switch ($size[2]) { |
| 104 | - case 1: |
|
| 104 | + case 1: |
|
| 105 | 105 | case 2: |
| 106 | 106 | imagejpeg($dest, $destFile, $quality); |
| 107 | - break; |
|
| 108 | - case 3: |
|
| 107 | + break; |
|
| 108 | + case 3: |
|
| 109 | 109 | imagepng($dest, $destFile); |
| 110 | 110 | } |
| 111 | 111 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | $thumbnailPath = ''; |
| 14 | 14 | |
| 15 | 15 | // if a file is given |
| 16 | - if (trim($image['tmp_name']) != '') { |
|
| 16 | + if (trim($image['tmp_name'])!='') { |
|
| 17 | 17 | $ext = substr(strrchr($image['name'], '.'), 1); |
| 18 | 18 | |
| 19 | 19 | // generate a random new file name to avoid name conflict |
@@ -72,11 +72,11 @@ discard block |
||
| 72 | 72 | $tmpDest = pathinfo(strtolower($destFile)); |
| 73 | 73 | $size = getimagesize($srcFile); |
| 74 | 74 | |
| 75 | - if ($tmpDest['extension'] == 'gif' || $tmpDest['extension'] == 'jpg') { |
|
| 75 | + if ($tmpDest['extension']=='gif' || $tmpDest['extension']=='jpg') { |
|
| 76 | 76 | $destFile = substr_replace($destFile, 'jpg', -3); |
| 77 | 77 | $dest = imagecreatetruecolor($w, $h); |
| 78 | 78 | //imageantialias($dest, TRUE); |
| 79 | - } elseif ($tmpDest['extension'] == 'png') { |
|
| 79 | + } elseif ($tmpDest['extension']=='png') { |
|
| 80 | 80 | $dest = imagecreatetruecolor($w, $h); |
| 81 | 81 | //imageantialias($dest, TRUE); |
| 82 | 82 | } else { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $onChar = 1; |
| 41 | 41 | for ($x = 0; $x < strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
| 42 | 42 | if (!(($pos = strpos($char128asc, $text[$x])) === false)) { // SKIP NOT FOUND CHARS |
| 43 | - $w .= $char128wid[$pos]; |
|
| 43 | + $w .= $char128wid[$pos]; |
|
| 44 | 44 | $sum += $onChar++ * $pos; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | </style> |
| 18 | 18 | |
| 19 | 19 | <?php |
| 20 | -global $char128asc,$char128charWidth; |
|
| 20 | +global $char128asc, $char128charWidth; |
|
| 21 | 21 | $char128asc = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'; |
| 22 | 22 | $char128wid = [ |
| 23 | 23 | '212222', '222122', '222221', '121223', '121322', '131222', '122213', '122312', '132212', '221213', // 0-9 |
@@ -30,24 +30,24 @@ discard block |
||
| 30 | 30 | '112412', '122114', '122411', '142112', '142211', '241211', '221114', '413111', '241112', '134111', // 70-79 |
| 31 | 31 | '111242', '121142', '121241', '114212', '124112', '124211', '411212', '421112', '421211', '212141', // 80-89 |
| 32 | 32 | '214121', '412121', '111143', '111341', '131141', '114113', '114311', '411113', '411311', '113141', // 90-99 |
| 33 | - '114131', '311141', '411131', '211412', '211214', '211232', '23311120', ]; // 100-106 |
|
| 33 | + '114131', '311141', '411131', '211412', '211214', '211232', '23311120', ]; // 100-106 |
|
| 34 | 34 | |
| 35 | 35 | ////Define Function |
| 36 | 36 | function bar128($text) |
| 37 | 37 | { // Part 1, make list of widths |
| 38 | - global $char128asc,$char128wid; |
|
| 39 | - $w = $char128wid[$sum = 104]; // START symbol |
|
| 38 | + global $char128asc, $char128wid; |
|
| 39 | + $w = $char128wid[$sum = 104]; // START symbol |
|
| 40 | 40 | $onChar = 1; |
| 41 | - for ($x = 0; $x < strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
|
| 42 | - if (!(($pos = strpos($char128asc, $text[$x])) === false)) { // SKIP NOT FOUND CHARS |
|
| 41 | + for ($x = 0; $x<strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
|
| 42 | + if (!(($pos = strpos($char128asc, $text[$x]))===false)) { // SKIP NOT FOUND CHARS |
|
| 43 | 43 | $w .= $char128wid[$pos]; |
| 44 | 44 | $sum += $onChar++ * $pos; |
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | - $w .= $char128wid[$sum % 103].$char128wid[106]; //Check Code, then END |
|
| 47 | + $w .= $char128wid[$sum % 103].$char128wid[106]; //Check Code, then END |
|
| 48 | 48 | //Part 2, Write rows |
| 49 | 49 | $html = '<table cellpadding=0 cellspacing=0><tr>'; |
| 50 | - for ($x = 0; $x < strlen($w); $x += 2) { // code 128 widths: black border, then white space |
|
| 50 | + for ($x = 0; $x<strlen($w); $x += 2) { // code 128 widths: black border, then white space |
|
| 51 | 51 | $html .= "<td><div class=\"b128\" style=\"border-left-width:{$w[$x]};width:{$w[$x + 1]}\"></div>"; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | </style> |
| 18 | 18 | |
| 19 | 19 | <?php |
| 20 | -global $char128asc,$char128charWidth; |
|
| 20 | +global $char128asc, $char128charWidth; |
|
| 21 | 21 | $char128asc = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'; |
| 22 | 22 | $char128wid = [ |
| 23 | 23 | '212222', '222122', '222221', '121223', '121322', '131222', '122213', '122312', '132212', '221213', // 0-9 |
@@ -30,24 +30,24 @@ discard block |
||
| 30 | 30 | '112412', '122114', '122411', '142112', '142211', '241211', '221114', '413111', '241112', '134111', // 70-79 |
| 31 | 31 | '111242', '121142', '121241', '114212', '124112', '124211', '411212', '421112', '421211', '212141', // 80-89 |
| 32 | 32 | '214121', '412121', '111143', '111341', '131141', '114113', '114311', '411113', '411311', '113141', // 90-99 |
| 33 | - '114131', '311141', '411131', '211412', '211214', '211232', '23311120', ]; // 100-106 |
|
| 33 | + '114131', '311141', '411131', '211412', '211214', '211232', '23311120', ]; // 100-106 |
|
| 34 | 34 | |
| 35 | 35 | ////Define Function |
| 36 | 36 | function bar128($text) |
| 37 | 37 | { // Part 1, make list of widths |
| 38 | - global $char128asc,$char128wid; |
|
| 39 | - $w = $char128wid[$sum = 104]; // START symbol |
|
| 38 | + global $char128asc, $char128wid; |
|
| 39 | + $w = $char128wid[$sum = 104]; // START symbol |
|
| 40 | 40 | $onChar = 1; |
| 41 | - for ($x = 0; $x < strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
|
| 42 | - if (!(($pos = strpos($char128asc, $text[$x])) === false)) { // SKIP NOT FOUND CHARS |
|
| 41 | + for ($x = 0; $x<strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
|
| 42 | + if (!(($pos = strpos($char128asc, $text[$x]))===false)) { // SKIP NOT FOUND CHARS |
|
| 43 | 43 | $w .= $char128wid[$pos]; |
| 44 | 44 | $sum += $onChar++ * $pos; |
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | - $w .= $char128wid[$sum % 103].$char128wid[106]; //Check Code, then END |
|
| 47 | + $w .= $char128wid[$sum % 103].$char128wid[106]; //Check Code, then END |
|
| 48 | 48 | //Part 2, Write rows |
| 49 | 49 | $html = '<table cellpadding=0 cellspacing=0><tr>'; |
| 50 | - for ($x = 0; $x < strlen($w); $x += 2) { // code 128 widths: black border, then white space |
|
| 50 | + for ($x = 0; $x<strlen($w); $x += 2) { // code 128 widths: black border, then white space |
|
| 51 | 51 | $html .= "<td><div class=\"b128\" style=\"border-left-width:{$w[$x]};width:{$w[$x + 1]}\"></div>"; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $onChar = 1; |
| 41 | 41 | for ($x = 0; $x < strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
| 42 | 42 | if (!(($pos = strpos($char128asc, $text[$x])) === false)) { // SKIP NOT FOUND CHARS |
| 43 | - $w .= $char128wid[$pos]; |
|
| 43 | + $w .= $char128wid[$pos]; |
|
| 44 | 44 | $sum += $onChar++ * $pos; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -387,7 +387,7 @@ |
||
| 387 | 387 | |
| 388 | 388 | $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
| 389 | 389 | |
| 390 | -if ($r['gender'] == 'L') { |
|
| 390 | +if ($r['gender']=='L') { |
|
| 391 | 391 | $gender = 'Laki-laki'; |
| 392 | 392 | } else { |
| 393 | 393 | $gender = 'Perempuan'; |
@@ -1,41 +1,41 @@ discard block |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -session_start(); |
|
| 3 | + session_start(); |
|
| 4 | 4 | |
| 5 | -include './../../config/koneksi.php'; |
|
| 6 | -include './../../config/fungsi_indobulan.php'; |
|
| 7 | -include './../../config/barcode_gen.php'; |
|
| 8 | -include './../../config/qrcode/qrlib.php'; |
|
| 5 | + include './../../config/koneksi.php'; |
|
| 6 | + include './../../config/fungsi_indobulan.php'; |
|
| 7 | + include './../../config/barcode_gen.php'; |
|
| 8 | + include './../../config/qrcode/qrlib.php'; |
|
| 9 | 9 | |
| 10 | -$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
| 10 | + $tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
| 11 | 11 | |
| 12 | -$r = mysql_fetch_array($tampil); |
|
| 12 | + $r = mysql_fetch_array($tampil); |
|
| 13 | 13 | |
| 14 | -$module = $_GET['module']; |
|
| 14 | + $module = $_GET['module']; |
|
| 15 | 15 | |
| 16 | -$imodule = ucwords($r['nama_modul']); |
|
| 16 | + $imodule = ucwords($r['nama_modul']); |
|
| 17 | 17 | |
| 18 | -$nmmodule = ucwords($r['nama_modul']); |
|
| 18 | + $nmmodule = ucwords($r['nama_modul']); |
|
| 19 | 19 | |
| 20 | -$id = $r['id_modul']; |
|
| 20 | + $id = $r['id_modul']; |
|
| 21 | 21 | |
| 22 | -$fa_icon = $r['fa_icon']; |
|
| 22 | + $fa_icon = $r['fa_icon']; |
|
| 23 | 23 | |
| 24 | -// if($r[orientation] == 'P') { |
|
| 24 | + // if($r[orientation] == 'P') { |
|
| 25 | 25 | |
| 26 | -// $orientation = 'portrait'; |
|
| 26 | + // $orientation = 'portrait'; |
|
| 27 | 27 | |
| 28 | -// } else { |
|
| 28 | + // } else { |
|
| 29 | 29 | |
| 30 | -// $orientation = 'landscape'; |
|
| 30 | + // $orientation = 'landscape'; |
|
| 31 | 31 | |
| 32 | -// } |
|
| 32 | + // } |
|
| 33 | 33 | |
| 34 | -$orientation = 'portrait'; |
|
| 34 | + $orientation = 'portrait'; |
|
| 35 | 35 | |
| 36 | -$status = $_GET['status']; |
|
| 36 | + $status = $_GET['status']; |
|
| 37 | 37 | |
| 38 | -?> |
|
| 38 | + ?> |
|
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | |
@@ -337,27 +337,27 @@ discard block |
||
| 337 | 337 | |
| 338 | 338 | <?php |
| 339 | 339 | |
| 340 | -$time = time() - (1 * 1 * 60 * 60); |
|
| 340 | + $time = time() - (1 * 1 * 60 * 60); |
|
| 341 | 341 | |
| 342 | -$datetime = date('d/m/Y G:i:s', $time); |
|
| 342 | + $datetime = date('d/m/Y G:i:s', $time); |
|
| 343 | 343 | |
| 344 | -$tgl = tgl_indo(date('Y-m-d', $time)); |
|
| 344 | + $tgl = tgl_indo(date('Y-m-d', $time)); |
|
| 345 | 345 | |
| 346 | -$id_pasien = $_GET['id_pasien']; |
|
| 346 | + $id_pasien = $_GET['id_pasien']; |
|
| 347 | 347 | |
| 348 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 348 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 349 | 349 | |
| 350 | - $g = mysql_fetch_array($gtampil); |
|
| 350 | + $g = mysql_fetch_array($gtampil); |
|
| 351 | 351 | |
| 352 | -if ($g['pict']) { |
|
| 353 | - $pict = $g['pict']; |
|
| 352 | + if ($g['pict']) { |
|
| 353 | + $pict = $g['pict']; |
|
| 354 | 354 | } else { |
| 355 | - $pict = ''; |
|
| 355 | + $pict = ''; |
|
| 356 | 356 | } |
| 357 | 357 | |
| 358 | -$company = ucwords($g['company']); |
|
| 358 | + $company = ucwords($g['company']); |
|
| 359 | 359 | |
| 360 | - ?> |
|
| 360 | + ?> |
|
| 361 | 361 | |
| 362 | 362 | <div style='border:1px solid black;'> |
| 363 | 363 | |
@@ -376,23 +376,23 @@ discard block |
||
| 376 | 376 | |
| 377 | 377 | |
| 378 | 378 | <?php |
| 379 | - $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
|
|
| 379 | + $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
|
|
| 380 | 380 | FROM pasien a left join agama b |
| 381 | 381 | ON a.id_agama = b.id_agama |
| 382 | 382 | left join kategori c |
| 383 | 383 | ON a.id_kategori = c.id_kategori |
| 384 | 384 | WHERE a.id_pasien = '$id_pasien' "); |
| 385 | 385 | |
| 386 | -$r = mysql_fetch_array($tampil); |
|
| 386 | + $r = mysql_fetch_array($tampil); |
|
| 387 | 387 | |
| 388 | -$tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
| 388 | + $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
| 389 | 389 | |
| 390 | -if ($r['gender'] == 'L') { |
|
| 391 | - $gender = 'Laki-laki'; |
|
| 390 | + if ($r['gender'] == 'L') { |
|
| 391 | + $gender = 'Laki-laki'; |
|
| 392 | 392 | } else { |
| 393 | - $gender = 'Perempuan'; |
|
| 393 | + $gender = 'Perempuan'; |
|
| 394 | 394 | } |
| 395 | -?> |
|
| 395 | + ?> |
|
| 396 | 396 | <table> |
| 397 | 397 | |
| 398 | 398 | <table width='100%' border='0'> |
@@ -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> |
@@ -1,38 +1,38 @@ discard block |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -header('Content-Type: application/octet-stream'); |
|
| 4 | -header('Content-Type: application/download'); |
|
| 5 | -header('Content-Type: application/vnd.ms-excel'); |
|
| 6 | -header('Content-Disposition: attachment;filename=laporan_harian_kasir.xls '); |
|
| 7 | -header('Content-Transfer-Encoding: binary '); |
|
| 3 | + header('Content-Type: application/octet-stream'); |
|
| 4 | + header('Content-Type: application/download'); |
|
| 5 | + header('Content-Type: application/vnd.ms-excel'); |
|
| 6 | + header('Content-Disposition: attachment;filename=laporan_harian_kasir.xls '); |
|
| 7 | + header('Content-Transfer-Encoding: binary '); |
|
| 8 | 8 | |
| 9 | -?> |
|
| 10 | - |
|
| 11 | -<?php |
|
| 9 | + ?> |
|
| 10 | + |
|
| 11 | + <?php |
|
| 12 | 12 | |
| 13 | 13 | |
| 14 | -include './../../config/koneksi.php'; |
|
| 14 | + include './../../config/koneksi.php'; |
|
| 15 | 15 | |
| 16 | -$report_id = $_GET[report_id]; |
|
| 17 | -$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$report_id."'"); |
|
| 16 | + $report_id = $_GET[report_id]; |
|
| 17 | + $tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$report_id."'"); |
|
| 18 | 18 | |
| 19 | -$r = mysql_fetch_array($tampil); |
|
| 19 | + $r = mysql_fetch_array($tampil); |
|
| 20 | 20 | |
| 21 | -//module=$module&report_id=$report_id&k_ID=$k_ID |
|
| 21 | + //module=$module&report_id=$report_id&k_ID=$k_ID |
|
| 22 | 22 | |
| 23 | -$module = $_GET['module']; |
|
| 23 | + $module = $_GET['module']; |
|
| 24 | 24 | |
| 25 | -$imodule = ucwords($r['nama_modul']); |
|
| 25 | + $imodule = ucwords($r['nama_modul']); |
|
| 26 | 26 | |
| 27 | -$nmmodule = ucwords($r['nama_modul']); |
|
| 27 | + $nmmodule = ucwords($r['nama_modul']); |
|
| 28 | 28 | |
| 29 | -$id = $r['id_modul']; |
|
| 29 | + $id = $r['id_modul']; |
|
| 30 | 30 | |
| 31 | -$fa_icon = $r['fa_icon']; |
|
| 31 | + $fa_icon = $r['fa_icon']; |
|
| 32 | 32 | |
| 33 | -$k_ID = $_GET['k_ID']; |
|
| 33 | + $k_ID = $_GET['k_ID']; |
|
| 34 | 34 | |
| 35 | -?> |
|
| 35 | + ?> |
|
| 36 | 36 | |
| 37 | 37 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 38 | 38 | <html xmlns="http://www.w3.org/1999/xhtml"><head> |
@@ -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> |
@@ -111,21 +111,21 @@ discard block |
||
| 111 | 111 | <tr> |
| 112 | 112 | <?php |
| 113 | 113 | |
| 114 | - $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 114 | + $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 115 | 115 | |
| 116 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 117 | - echo "<th>$i[jenis_transaksi]</th>"; |
|
| 118 | - } |
|
| 119 | - ?> |
|
| 120 | - |
|
| 116 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 117 | + echo "<th>$i[jenis_transaksi]</th>"; |
|
| 118 | + } |
|
| 119 | + ?> |
|
| 120 | + |
|
| 121 | 121 | <?php |
| 122 | 122 | |
| 123 | - $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 123 | + $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 124 | 124 | |
| 125 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 126 | - echo "<th>$i[jenis_pembayaran]</th>"; |
|
| 127 | - } |
|
| 128 | - ?> |
|
| 125 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 126 | + echo "<th>$i[jenis_pembayaran]</th>"; |
|
| 127 | + } |
|
| 128 | + ?> |
|
| 129 | 129 | |
| 130 | 130 | |
| 131 | 131 | </tr> |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | <tbody> |
| 139 | 139 | <?php |
| 140 | 140 | |
| 141 | - $dSQL = "SELECT a.notrans, a.pasien , a.id_jenis_pembayaran, c.penjamin,d.jenis_pembayaran , sum(a.jumlah) as jumlah |
|
| 141 | + $dSQL = "SELECT a.notrans, a.pasien , a.id_jenis_pembayaran, c.penjamin,d.jenis_pembayaran , sum(a.jumlah) as jumlah |
|
| 142 | 142 | |
| 143 | 143 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 144 | 144 | |
@@ -160,45 +160,45 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | "; |
| 162 | 162 | |
| 163 | - $dtampil = mysql_query($dSQL); |
|
| 163 | + $dtampil = mysql_query($dSQL); |
|
| 164 | 164 | |
| 165 | - $no = 1; |
|
| 165 | + $no = 1; |
|
| 166 | 166 | |
| 167 | - while ($d = mysql_fetch_array($dtampil)) { |
|
| 168 | - $d_id = $d['id_kasir_detail']; |
|
| 167 | + while ($d = mysql_fetch_array($dtampil)) { |
|
| 168 | + $d_id = $d['id_kasir_detail']; |
|
| 169 | 169 | |
| 170 | - $ijumlah = number_format($d['jumlah'], 0, '.', ','); |
|
| 170 | + $ijumlah = number_format($d['jumlah'], 0, '.', ','); |
|
| 171 | 171 | |
| 172 | - $jumlah = number_format($d['jumlah'], 0, '.', ','); |
|
| 172 | + $jumlah = number_format($d['jumlah'], 0, '.', ','); |
|
| 173 | 173 | |
| 174 | - $total = $total + $d['jumlah']; |
|
| 174 | + $total = $total + $d['jumlah']; |
|
| 175 | 175 | |
| 176 | - $itotal = number_format($total, 0, '.', ','); |
|
| 176 | + $itotal = number_format($total, 0, '.', ','); |
|
| 177 | 177 | |
| 178 | - echo'<tr>'; |
|
| 178 | + echo'<tr>'; |
|
| 179 | 179 | |
| 180 | - echo' <td>'; |
|
| 180 | + echo' <td>'; |
|
| 181 | 181 | |
| 182 | - echo $no; |
|
| 182 | + echo $no; |
|
| 183 | 183 | |
| 184 | - echo'</td>'; |
|
| 184 | + echo'</td>'; |
|
| 185 | 185 | |
| 186 | - echo' <td>'; |
|
| 186 | + echo' <td>'; |
|
| 187 | 187 | |
| 188 | - echo $d['notrans']; |
|
| 188 | + echo $d['notrans']; |
|
| 189 | 189 | |
| 190 | - echo'</td>'; |
|
| 190 | + echo'</td>'; |
|
| 191 | 191 | |
| 192 | - echo' <td>'; |
|
| 192 | + echo' <td>'; |
|
| 193 | 193 | |
| 194 | - echo $d['pasien']; |
|
| 194 | + echo $d['pasien']; |
|
| 195 | 195 | |
| 196 | - echo'</td>'; |
|
| 196 | + echo'</td>'; |
|
| 197 | 197 | |
| 198 | - $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 198 | + $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 199 | 199 | |
| 200 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 201 | - $jtampil = mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 200 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 201 | + $jtampil = mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 202 | 202 | ON a.id_kasir = b.id_kasir |
| 203 | 203 | where a.tanggal = '$r[tanggal]' |
| 204 | 204 | AND a.id_shift = '$r[id_shift]' |
@@ -207,21 +207,21 @@ discard block |
||
| 207 | 207 | AND b.status <> '4' |
| 208 | 208 | "); |
| 209 | 209 | |
| 210 | - $j = mysql_fetch_array($jtampil); |
|
| 210 | + $j = mysql_fetch_array($jtampil); |
|
| 211 | 211 | |
| 212 | - if ($j[jumlah]) { |
|
| 213 | - $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 214 | - } else { |
|
| 215 | - $jml = 0; |
|
| 216 | - } |
|
| 212 | + if ($j[jumlah]) { |
|
| 213 | + $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 214 | + } else { |
|
| 215 | + $jml = 0; |
|
| 216 | + } |
|
| 217 | 217 | |
| 218 | - echo "<td style='text-align:right;'>$jml</td>"; |
|
| 219 | - } |
|
| 218 | + echo "<td style='text-align:right;'>$jml</td>"; |
|
| 219 | + } |
|
| 220 | 220 | |
| 221 | - $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 221 | + $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 222 | 222 | |
| 223 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 224 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 223 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 224 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 225 | 225 | |
| 226 | 226 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 227 | 227 | |
@@ -251,43 +251,43 @@ discard block |
||
| 251 | 251 | |
| 252 | 252 | "; |
| 253 | 253 | |
| 254 | - $ptampil = mysql_query($pSQL); |
|
| 254 | + $ptampil = mysql_query($pSQL); |
|
| 255 | 255 | |
| 256 | - $p = mysql_fetch_array($ptampil); |
|
| 256 | + $p = mysql_fetch_array($ptampil); |
|
| 257 | 257 | |
| 258 | - if ($p[jumlah]) { |
|
| 259 | - $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 260 | - } else { |
|
| 261 | - $jml = 0; |
|
| 262 | - } |
|
| 258 | + if ($p[jumlah]) { |
|
| 259 | + $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 260 | + } else { |
|
| 261 | + $jml = 0; |
|
| 262 | + } |
|
| 263 | 263 | |
| 264 | - echo"<td style='text-align:right;'>$jml </td>"; |
|
| 265 | - } |
|
| 264 | + echo"<td style='text-align:right;'>$jml </td>"; |
|
| 265 | + } |
|
| 266 | 266 | |
| 267 | - echo' <td>'; |
|
| 267 | + echo' <td>'; |
|
| 268 | 268 | |
| 269 | - $jtampil = mysql_query("SELECT b.ket FROM kasir a INNER JOIN kasir_detail b
|
|
| 269 | + $jtampil = mysql_query("SELECT b.ket FROM kasir a INNER JOIN kasir_detail b
|
|
| 270 | 270 | ON a.id_kasir = b.id_kasir |
| 271 | 271 | where a.tanggal = '$r[tanggal]' |
| 272 | 272 | AND a.id_shift = '$r[id_shift]' |
| 273 | 273 | AND b.notrans = '$d[notrans]' |
| 274 | 274 | "); |
| 275 | 275 | |
| 276 | - $j = mysql_fetch_array($jtampil); |
|
| 276 | + $j = mysql_fetch_array($jtampil); |
|
| 277 | 277 | |
| 278 | - echo $j[ket]; |
|
| 278 | + echo $j[ket]; |
|
| 279 | 279 | |
| 280 | - if ($d['penjamin']) { |
|
| 281 | - echo'<br>'.'('.$d['penjamin'].')'; |
|
| 282 | - } |
|
| 280 | + if ($d['penjamin']) { |
|
| 281 | + echo'<br>'.'('.$d['penjamin'].')'; |
|
| 282 | + } |
|
| 283 | 283 | |
| 284 | - echo'</td>'; |
|
| 284 | + echo'</td>'; |
|
| 285 | 285 | |
| 286 | - echo '</tr>'; |
|
| 286 | + echo '</tr>'; |
|
| 287 | 287 | |
| 288 | - $no++; |
|
| 289 | - } |
|
| 290 | - ?> |
|
| 288 | + $no++; |
|
| 289 | + } |
|
| 290 | + ?> |
|
| 291 | 291 | </tbody> |
| 292 | 292 | |
| 293 | 293 | <tfoot> |
@@ -300,10 +300,10 @@ 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 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 306 | - $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 305 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 306 | + $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 307 | 307 | ON a.id_kasir = b.id_kasir |
| 308 | 308 | where a.tanggal = '$r[tanggal]' |
| 309 | 309 | AND a.id_shift = '$r[id_shift]' |
@@ -311,24 +311,24 @@ discard block |
||
| 311 | 311 | AND b.status <> '4' |
| 312 | 312 | "); |
| 313 | 313 | |
| 314 | - $j = mysql_fetch_array($jtampil); |
|
| 314 | + $j = mysql_fetch_array($jtampil); |
|
| 315 | 315 | |
| 316 | - if ($j[jumlah]) { |
|
| 317 | - $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 318 | - } else { |
|
| 319 | - $jml = 0; |
|
| 320 | - } |
|
| 316 | + if ($j[jumlah]) { |
|
| 317 | + $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 318 | + } else { |
|
| 319 | + $jml = 0; |
|
| 320 | + } |
|
| 321 | 321 | |
| 322 | - echo "<th style='text-align:right;'>$jml</th>"; |
|
| 323 | - } |
|
| 322 | + echo "<th style='text-align:right;'>$jml</th>"; |
|
| 323 | + } |
|
| 324 | 324 | |
| 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> |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | <?php |
| 410 | 410 | |
| 411 | 411 | |
| 412 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 412 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 413 | 413 | |
| 414 | 414 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 415 | 415 | |
@@ -437,22 +437,22 @@ 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 | - } ?> |
|
| 449 | - <th style="text-align: right;"><?=$cash; ?></th> |
|
| 444 | + if ($p[jumlah]) { |
|
| 445 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 446 | + } else { |
|
| 447 | + $cash = 0; |
|
| 448 | + } ?> |
|
| 449 | + <th style="text-align: right;"><?=$cash; ?></th> |
|
| 450 | 450 | <th style="text-align: left;">Credit</th> |
| 451 | 451 | |
| 452 | 452 | <?php |
| 453 | 453 | |
| 454 | 454 | |
| 455 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 455 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 456 | 456 | |
| 457 | 457 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 458 | 458 | |
@@ -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> |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | <?php |
| 511 | 511 | |
| 512 | 512 | |
| 513 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 513 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 514 | 514 | |
| 515 | 515 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 516 | 516 | |
@@ -537,22 +537,22 @@ 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 | - } ?> |
|
| 549 | - <th style="text-align: right;"><?=$cash; ?></th> |
|
| 544 | + if ($p[jumlah]) { |
|
| 545 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 546 | + } else { |
|
| 547 | + $cash = 0; |
|
| 548 | + } ?> |
|
| 549 | + <th style="text-align: right;"><?=$cash; ?></th> |
|
| 550 | 550 | <th style="text-align: left;">Credit</th> |
| 551 | 551 | |
| 552 | 552 | <?php |
| 553 | 553 | |
| 554 | 554 | |
| 555 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 555 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 556 | 556 | |
| 557 | 557 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 558 | 558 | |
@@ -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 | |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | <?php |
| 615 | 615 | |
| 616 | 616 | |
| 617 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 617 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 618 | 618 | |
| 619 | 619 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 620 | 620 | |
@@ -640,17 +640,17 @@ discard block |
||
| 640 | 640 | |
| 641 | 641 | "; |
| 642 | 642 | |
| 643 | - $ptampil = mysql_query($pSQL); |
|
| 643 | + $ptampil = mysql_query($pSQL); |
|
| 644 | 644 | |
| 645 | - $p = mysql_fetch_array($ptampil); |
|
| 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> |
@@ -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; |
@@ -15,12 +15,12 @@ discard block |
||
| 15 | 15 | $datetime = date('Y-m-d G:i:s', $hour); |
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | - if ($module == 'approval_diskon_penjualan_barang' and $act == 'approve') { |
|
| 18 | + if ($module=='approval_diskon_penjualan_barang' and $act=='approve') { |
|
| 19 | 19 | $id_module = $_POST['id_module']; |
| 20 | 20 | |
| 21 | 21 | $jum = $_POST['jum'] - 1; |
| 22 | 22 | |
| 23 | - for ($i = 1; $i <= $jum; $i++) { |
|
| 23 | + for ($i = 1; $i<=$jum; $i++) { |
|
| 24 | 24 | $id = $_POST['id'.$i]; |
| 25 | 25 | $p_status = $_POST['p_status'.$i]; |
| 26 | 26 | $status = $_POST['status'.$i]; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $notrans = $_POST['notrans'.$i]; |
| 31 | 31 | $outlet = $_POST['outlet'.$i]; |
| 32 | 32 | |
| 33 | - if ($p_status == '1') { |
|
| 33 | + if ($p_status=='1') { |
|
| 34 | 34 | mysql_query("UPDATE penjualan_barang_detail
|
| 35 | 35 | SET disc = disc1 |
| 36 | 36 | , disc_value = disc_value1 |
@@ -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> |
@@ -1,33 +1,33 @@ discard block |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) { |
|
| 4 | - ob_start('ob_gzhandler'); |
|
| 3 | + if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) { |
|
| 4 | + ob_start('ob_gzhandler'); |
|
| 5 | 5 | } else { |
| 6 | - ob_start(); |
|
| 6 | + ob_start(); |
|
| 7 | 7 | } |
| 8 | 8 | |
| 9 | -include './../../config/koneksi.php'; |
|
| 9 | + include './../../config/koneksi.php'; |
|
| 10 | 10 | |
| 11 | -$report_id = $_GET[report_id]; |
|
| 12 | -$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$report_id."'"); |
|
| 11 | + $report_id = $_GET[report_id]; |
|
| 12 | + $tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$report_id."'"); |
|
| 13 | 13 | |
| 14 | -$r = mysql_fetch_array($tampil); |
|
| 14 | + $r = mysql_fetch_array($tampil); |
|
| 15 | 15 | |
| 16 | -//module=$module&report_id=$report_id&k_ID=$k_ID |
|
| 16 | + //module=$module&report_id=$report_id&k_ID=$k_ID |
|
| 17 | 17 | |
| 18 | -$module = $_GET['module']; |
|
| 18 | + $module = $_GET['module']; |
|
| 19 | 19 | |
| 20 | -$imodule = ucwords($r['nama_modul']); |
|
| 20 | + $imodule = ucwords($r['nama_modul']); |
|
| 21 | 21 | |
| 22 | -$nmmodule = ucwords($r['nama_modul']); |
|
| 22 | + $nmmodule = ucwords($r['nama_modul']); |
|
| 23 | 23 | |
| 24 | -$id = $r['id_modul']; |
|
| 24 | + $id = $r['id_modul']; |
|
| 25 | 25 | |
| 26 | -$fa_icon = $r['fa_icon']; |
|
| 26 | + $fa_icon = $r['fa_icon']; |
|
| 27 | 27 | |
| 28 | -$k_ID = $_GET['k_ID']; |
|
| 28 | + $k_ID = $_GET['k_ID']; |
|
| 29 | 29 | |
| 30 | -?> |
|
| 30 | + ?> |
|
| 31 | 31 | |
| 32 | 32 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 33 | 33 | <html xmlns="http://www.w3.org/1999/xhtml"><head> |
@@ -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> |
@@ -207,21 +207,21 @@ discard block |
||
| 207 | 207 | <tr> |
| 208 | 208 | <?php |
| 209 | 209 | |
| 210 | - $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 210 | + $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 211 | 211 | |
| 212 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 213 | - echo "<th>$i[jenis_transaksi]</th>"; |
|
| 214 | - } |
|
| 215 | - ?> |
|
| 216 | - |
|
| 212 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 213 | + echo "<th>$i[jenis_transaksi]</th>"; |
|
| 214 | + } |
|
| 215 | + ?> |
|
| 216 | + |
|
| 217 | 217 | <?php |
| 218 | 218 | |
| 219 | - $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 219 | + $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 220 | 220 | |
| 221 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 222 | - echo "<th>$i[jenis_pembayaran]</th>"; |
|
| 223 | - } |
|
| 224 | - ?> |
|
| 221 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 222 | + echo "<th>$i[jenis_pembayaran]</th>"; |
|
| 223 | + } |
|
| 224 | + ?> |
|
| 225 | 225 | |
| 226 | 226 | |
| 227 | 227 | </tr> |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | <tbody> |
| 235 | 235 | <?php |
| 236 | 236 | |
| 237 | - $dSQL = "SELECT a.notrans, a.pasien , a.id_jenis_pembayaran, c.penjamin,d.jenis_pembayaran , sum(a.jumlah) as jumlah |
|
| 237 | + $dSQL = "SELECT a.notrans, a.pasien , a.id_jenis_pembayaran, c.penjamin,d.jenis_pembayaran , sum(a.jumlah) as jumlah |
|
| 238 | 238 | |
| 239 | 239 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 240 | 240 | |
@@ -256,45 +256,45 @@ discard block |
||
| 256 | 256 | |
| 257 | 257 | "; |
| 258 | 258 | |
| 259 | - $dtampil = mysql_query($dSQL); |
|
| 259 | + $dtampil = mysql_query($dSQL); |
|
| 260 | 260 | |
| 261 | - $no = 1; |
|
| 261 | + $no = 1; |
|
| 262 | 262 | |
| 263 | - while ($d = mysql_fetch_array($dtampil)) { |
|
| 264 | - $d_id = $d['id_kasir_detail']; |
|
| 263 | + while ($d = mysql_fetch_array($dtampil)) { |
|
| 264 | + $d_id = $d['id_kasir_detail']; |
|
| 265 | 265 | |
| 266 | - $ijumlah = number_format($d['jumlah'], 0, '.', ','); |
|
| 266 | + $ijumlah = number_format($d['jumlah'], 0, '.', ','); |
|
| 267 | 267 | |
| 268 | - $jumlah = number_format($d['jumlah'], 0, '.', ''); |
|
| 268 | + $jumlah = number_format($d['jumlah'], 0, '.', ''); |
|
| 269 | 269 | |
| 270 | - $total = $total + $d['jumlah']; |
|
| 270 | + $total = $total + $d['jumlah']; |
|
| 271 | 271 | |
| 272 | - $itotal = number_format($total, 0, '.', ','); |
|
| 272 | + $itotal = number_format($total, 0, '.', ','); |
|
| 273 | 273 | |
| 274 | - echo'<tr>'; |
|
| 274 | + echo'<tr>'; |
|
| 275 | 275 | |
| 276 | - echo' <td>'; |
|
| 276 | + echo' <td>'; |
|
| 277 | 277 | |
| 278 | - echo $no; |
|
| 278 | + echo $no; |
|
| 279 | 279 | |
| 280 | - echo'</td>'; |
|
| 280 | + echo'</td>'; |
|
| 281 | 281 | |
| 282 | - echo' <td>'; |
|
| 282 | + echo' <td>'; |
|
| 283 | 283 | |
| 284 | - echo $d['notrans']; |
|
| 284 | + echo $d['notrans']; |
|
| 285 | 285 | |
| 286 | - echo'</td>'; |
|
| 286 | + echo'</td>'; |
|
| 287 | 287 | |
| 288 | - echo' <td>'; |
|
| 288 | + echo' <td>'; |
|
| 289 | 289 | |
| 290 | - echo $d['pasien']; |
|
| 290 | + echo $d['pasien']; |
|
| 291 | 291 | |
| 292 | - echo'</td>'; |
|
| 292 | + echo'</td>'; |
|
| 293 | 293 | |
| 294 | - $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 294 | + $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 295 | 295 | |
| 296 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 297 | - $jtampil = mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 296 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 297 | + $jtampil = mysql_query("SELECT b.jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 298 | 298 | ON a.id_kasir = b.id_kasir |
| 299 | 299 | where a.tanggal = '$r[tanggal]' |
| 300 | 300 | AND a.id_shift = '$r[id_shift]' |
@@ -303,21 +303,21 @@ discard block |
||
| 303 | 303 | AND b.status <> '4' |
| 304 | 304 | "); |
| 305 | 305 | |
| 306 | - $j = mysql_fetch_array($jtampil); |
|
| 306 | + $j = mysql_fetch_array($jtampil); |
|
| 307 | 307 | |
| 308 | - if ($j[jumlah]) { |
|
| 309 | - $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 310 | - } else { |
|
| 311 | - $jml = 0; |
|
| 312 | - } |
|
| 308 | + if ($j[jumlah]) { |
|
| 309 | + $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 310 | + } else { |
|
| 311 | + $jml = 0; |
|
| 312 | + } |
|
| 313 | 313 | |
| 314 | - echo "<td style='text-align:right;'>$jml</td>"; |
|
| 315 | - } |
|
| 314 | + echo "<td style='text-align:right;'>$jml</td>"; |
|
| 315 | + } |
|
| 316 | 316 | |
| 317 | - $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 317 | + $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 318 | 318 | |
| 319 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 320 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 319 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 320 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 321 | 321 | |
| 322 | 322 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 323 | 323 | |
@@ -347,43 +347,43 @@ discard block |
||
| 347 | 347 | |
| 348 | 348 | "; |
| 349 | 349 | |
| 350 | - $ptampil = mysql_query($pSQL); |
|
| 350 | + $ptampil = mysql_query($pSQL); |
|
| 351 | 351 | |
| 352 | - $p = mysql_fetch_array($ptampil); |
|
| 352 | + $p = mysql_fetch_array($ptampil); |
|
| 353 | 353 | |
| 354 | - if ($p[jumlah]) { |
|
| 355 | - $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 356 | - } else { |
|
| 357 | - $jml = 0; |
|
| 358 | - } |
|
| 354 | + if ($p[jumlah]) { |
|
| 355 | + $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 356 | + } else { |
|
| 357 | + $jml = 0; |
|
| 358 | + } |
|
| 359 | 359 | |
| 360 | - echo"<td style='text-align:right;'>$jml </td>"; |
|
| 361 | - } |
|
| 360 | + echo"<td style='text-align:right;'>$jml </td>"; |
|
| 361 | + } |
|
| 362 | 362 | |
| 363 | - echo' <td>'; |
|
| 363 | + echo' <td>'; |
|
| 364 | 364 | |
| 365 | - $jtampil = mysql_query("SELECT b.ket FROM kasir a INNER JOIN kasir_detail b
|
|
| 365 | + $jtampil = mysql_query("SELECT b.ket FROM kasir a INNER JOIN kasir_detail b
|
|
| 366 | 366 | ON a.id_kasir = b.id_kasir |
| 367 | 367 | where a.tanggal = '$r[tanggal]' |
| 368 | 368 | AND a.id_shift = '$r[id_shift]' |
| 369 | 369 | AND b.notrans = '$d[notrans]' |
| 370 | 370 | "); |
| 371 | 371 | |
| 372 | - $j = mysql_fetch_array($jtampil); |
|
| 372 | + $j = mysql_fetch_array($jtampil); |
|
| 373 | 373 | |
| 374 | - echo $j[ket]; |
|
| 374 | + echo $j[ket]; |
|
| 375 | 375 | |
| 376 | - if ($d['penjamin']) { |
|
| 377 | - echo'<br>'.'('.$d['penjamin'].')'; |
|
| 378 | - } |
|
| 376 | + if ($d['penjamin']) { |
|
| 377 | + echo'<br>'.'('.$d['penjamin'].')'; |
|
| 378 | + } |
|
| 379 | 379 | |
| 380 | - echo'</td>'; |
|
| 380 | + echo'</td>'; |
|
| 381 | 381 | |
| 382 | - echo '</tr>'; |
|
| 382 | + echo '</tr>'; |
|
| 383 | 383 | |
| 384 | - $no++; |
|
| 385 | - } |
|
| 386 | - ?> |
|
| 384 | + $no++; |
|
| 385 | + } |
|
| 386 | + ?> |
|
| 387 | 387 | </tbody> |
| 388 | 388 | |
| 389 | 389 | <tfoot> |
@@ -396,10 +396,10 @@ 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 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 402 | - $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 401 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 402 | + $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b
|
|
| 403 | 403 | ON a.id_kasir = b.id_kasir |
| 404 | 404 | where a.tanggal = '$r[tanggal]' |
| 405 | 405 | AND a.id_shift = '$r[id_shift]' |
@@ -407,24 +407,24 @@ discard block |
||
| 407 | 407 | AND b.status <> '4' |
| 408 | 408 | "); |
| 409 | 409 | |
| 410 | - $j = mysql_fetch_array($jtampil); |
|
| 410 | + $j = mysql_fetch_array($jtampil); |
|
| 411 | 411 | |
| 412 | - if ($j[jumlah]) { |
|
| 413 | - $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 414 | - } else { |
|
| 415 | - $jml = 0; |
|
| 416 | - } |
|
| 412 | + if ($j[jumlah]) { |
|
| 413 | + $jml = number_format($j['jumlah'], 0, '.', ','); |
|
| 414 | + } else { |
|
| 415 | + $jml = 0; |
|
| 416 | + } |
|
| 417 | 417 | |
| 418 | - echo "<th style='text-align:right;'>$jml</th>"; |
|
| 419 | - } |
|
| 418 | + echo "<th style='text-align:right;'>$jml</th>"; |
|
| 419 | + } |
|
| 420 | 420 | |
| 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> |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | <?php |
| 496 | 496 | |
| 497 | 497 | |
| 498 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 498 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 499 | 499 | |
| 500 | 500 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 501 | 501 | |
@@ -523,22 +523,22 @@ 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 | - } ?> |
|
| 535 | - <th style="text-align: right;"><?=$cash; ?></th> |
|
| 530 | + if ($p[jumlah]) { |
|
| 531 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 532 | + } else { |
|
| 533 | + $cash = 0; |
|
| 534 | + } ?> |
|
| 535 | + <th style="text-align: right;"><?=$cash; ?></th> |
|
| 536 | 536 | <th style="text-align: left;">Credit</th> |
| 537 | 537 | |
| 538 | 538 | <?php |
| 539 | 539 | |
| 540 | 540 | |
| 541 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 541 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 542 | 542 | |
| 543 | 543 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 544 | 544 | |
@@ -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> |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | <?php |
| 597 | 597 | |
| 598 | 598 | |
| 599 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 599 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 600 | 600 | |
| 601 | 601 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 602 | 602 | |
@@ -623,22 +623,22 @@ 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 | - } ?> |
|
| 635 | - <th style="text-align: right;"><?=$cash; ?></th> |
|
| 630 | + if ($p[jumlah]) { |
|
| 631 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 632 | + } else { |
|
| 633 | + $cash = 0; |
|
| 634 | + } ?> |
|
| 635 | + <th style="text-align: right;"><?=$cash; ?></th> |
|
| 636 | 636 | <th style="text-align: left;">Credit</th> |
| 637 | 637 | |
| 638 | 638 | <?php |
| 639 | 639 | |
| 640 | 640 | |
| 641 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 641 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 642 | 642 | |
| 643 | 643 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 644 | 644 | |
@@ -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 | |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | <?php |
| 701 | 701 | |
| 702 | 702 | |
| 703 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 703 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 704 | 704 | |
| 705 | 705 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 706 | 706 | |
@@ -726,17 +726,17 @@ discard block |
||
| 726 | 726 | |
| 727 | 727 | "; |
| 728 | 728 | |
| 729 | - $ptampil = mysql_query($pSQL); |
|
| 729 | + $ptampil = mysql_query($pSQL); |
|
| 730 | 730 | |
| 731 | - $p = mysql_fetch_array($ptampil); |
|
| 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> |