@@ -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'; |
@@ -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> |
@@ -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> |