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

Please login to merge, or discard this patch.
modul/mod_rujukan/rujukan.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $no = 1;
50 50
 
51 51
             while ($r = mysql_fetch_array($tampil)) {
52
-                if ($r[tipe] == 'R') {
52
+                if ($r[tipe]=='R') {
53 53
                     $tipe = 'RS/Klinik';
54 54
                 } else {
55 55
                     $tipe = 'Lab';
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 echo"<td style='text-align:center;'>$r[aktif]</td>";
62 62
                 echo" <td  style='text-align:center;'>";
63 63
 
64
-                if ($r_edit == 'Y') {
64
+                if ($r_edit=='Y') {
65 65
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_rujukan=$r[id_rujukan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
66 66
                 }
67 67
 
Please login to merge, or discard this patch.
Switch Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1
-  
2
-<?php
1
+      
2
+    <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+        default:
6
+          ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -44,35 +44,35 @@  discard block
 block discarded – undo
44 44
                             
45 45
                          <?php
46 46
 
47
-            $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan');
47
+                    $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan');
48 48
 
49
-            $no = 1;
49
+                    $no = 1;
50 50
 
51
-            while ($r = mysql_fetch_array($tampil)) {
52
-                if ($r[tipe] == 'R') {
53
-                    $tipe = 'RS/Klinik';
54
-                } else {
55
-                    $tipe = 'Lab';
56
-                }
51
+                    while ($r = mysql_fetch_array($tampil)) {
52
+                        if ($r[tipe] == 'R') {
53
+                            $tipe = 'RS/Klinik';
54
+                        } else {
55
+                            $tipe = 'Lab';
56
+                        }
57 57
 
58
-                echo'<tr>';
59
-                echo"<td>$tipe</td>";
60
-                echo"<td>$r[rujukan]</td>";
61
-                echo"<td style='text-align:center;'>$r[aktif]</td>";
62
-                echo" <td  style='text-align:center;'>";
58
+                        echo'<tr>';
59
+                        echo"<td>$tipe</td>";
60
+                        echo"<td>$r[rujukan]</td>";
61
+                        echo"<td style='text-align:center;'>$r[aktif]</td>";
62
+                        echo" <td  style='text-align:center;'>";
63 63
 
64
-                if ($r_edit == 'Y') {
65
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_rujukan=$r[id_rujukan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
66
-                }
64
+                        if ($r_edit == 'Y') {
65
+                            echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_rujukan=$r[id_rujukan]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
66
+                        }
67 67
 
68
-                // if($r_delete == 'Y') {
69
-                // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
70
-                // }
71
-                echo'</td>';
72
-                echo'</tr>';
73
-                $no++;
74
-            }
75
-                                ?>
68
+                        // if($r_delete == 'Y') {
69
+                        // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
70
+                        // }
71
+                        echo'</td>';
72
+                        echo'</tr>';
73
+                        $no++;
74
+                    }
75
+                                        ?>
76 76
                          </tbody>
77 77
                     </table>
78 78
                   </div>
Please login to merge, or discard this patch.
modul/mod_rujukan_pasien/rujukan_pasien.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 echo"<td>$r[rujukan_lab]</td>";
79 79
                 echo" <td  style='text-align:center;'>";
80 80
 
81
-                if ($r_edit == 'Y') {
81
+                if ($r_edit=='Y') {
82 82
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
83 83
                 }
84 84
 
Please login to merge, or discard this patch.
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 switch ($_GET[act]) {
3 3
 
4
-default:
5
-  ?>
4
+        default:
5
+          ?>
6 6
 
7 7
  <div class="">
8 8
                    
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                             
47 47
                          <?php
48 48
 
49
-            $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
49
+                    $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
50 50
                                     ,e.rujukan as rujukan_rs
51 51
                                     ,f.rujukan as rujukan_lab                              
52 52
                                 FROM kunjungan_berobat a left join pasien b 
@@ -62,31 +62,31 @@  discard block
 block discarded – undo
62 62
                                  WHERE a.rujukan = 'Y'                    
63 63
                                  ORDER BY a.tanggal,a.id_poli,a.no_urut ASC");
64 64
 
65
-            $no = 1;
65
+                    $no = 1;
66 66
 
67
-            while ($r = mysql_fetch_array($tampil)) {
68
-                $tgl = date('d/m/Y', strtotime($r[tanggal]));
69
-                $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
67
+                    while ($r = mysql_fetch_array($tampil)) {
68
+                        $tgl = date('d/m/Y', strtotime($r[tanggal]));
69
+                        $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
70 70
 
71
-                echo'<tr>';
72
-                echo"<td>$tgl</td>";
73
-                echo"<td>$r[poli]</td>";
74
-                echo"<td>$r[no_urut]</td>";
75
-                echo"<td>$r[nama]</td>";
76
-                echo"<td>$r[kategori]</td>";
77
-                echo"<td>$r[rujukan_rs]</td>";
78
-                echo"<td>$r[rujukan_lab]</td>";
79
-                echo" <td  style='text-align:center;'>";
71
+                        echo'<tr>';
72
+                        echo"<td>$tgl</td>";
73
+                        echo"<td>$r[poli]</td>";
74
+                        echo"<td>$r[no_urut]</td>";
75
+                        echo"<td>$r[nama]</td>";
76
+                        echo"<td>$r[kategori]</td>";
77
+                        echo"<td>$r[rujukan_rs]</td>";
78
+                        echo"<td>$r[rujukan_lab]</td>";
79
+                        echo" <td  style='text-align:center;'>";
80 80
 
81
-                if ($r_edit == 'Y') {
82
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
83
-                }
81
+                        if ($r_edit == 'Y') {
82
+                            echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
83
+                        }
84 84
 
85
-                echo'</td>';
86
-                echo'</tr>';
87
-                $no++;
88
-            }
89
-                                ?>
85
+                        echo'</td>';
86
+                        echo'</tr>';
87
+                        $no++;
88
+                    }
89
+                                        ?>
90 90
                          </tbody>
91 91
                     </table>
92 92
                   </div>
@@ -131,4 +131,4 @@  discard block
 block discarded – undo
131 131
 
132 132
     <?php
133 133
 }
134
-?>
134
+    ?>
Please login to merge, or discard this patch.
modul/mod_rekam_medis/rekam_medis.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 echo"<td>$r[tindakan]</td>";
76 76
                 echo" <td  style='text-align:center;'>";
77 77
 
78
-                if ($r_edit == 'Y') {
78
+                if ($r_edit=='Y') {
79 79
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
80 80
                 }
81 81
 
Please login to merge, or discard this patch.
Switch Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 switch ($_GET[act]) {
3 3
 
4
-default:
5
-  ?>
4
+        default:
5
+          ?>
6 6
 
7 7
  <div class="">
8 8
                    
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                             
49 49
                          <?php
50 50
 
51
-            $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
51
+                    $tampil = mysql_query('SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
52 52
                                 FROM kunjungan_berobat a left join pasien b 
53 53
                                  ON a.id_pasien = b.id_pasien
54 54
                                  left join poli c 
@@ -57,33 +57,33 @@  discard block
 block discarded – undo
57 57
                                  ON b.id_kategori = d.id_kategori                                
58 58
                                  ORDER BY a.tanggal,a.id_poli,a.no_urut ASC');
59 59
 
60
-            $no = 1;
60
+                    $no = 1;
61 61
 
62
-            while ($r = mysql_fetch_array($tampil)) {
63
-                $tgl = date('d/m/Y', strtotime($r[tanggal]));
64
-                $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
62
+                    while ($r = mysql_fetch_array($tampil)) {
63
+                        $tgl = date('d/m/Y', strtotime($r[tanggal]));
64
+                        $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
65 65
 
66
-                echo'<tr>';
67
-                echo"<td>$tgl</td>";
68
-                echo"<td>$r[poli]</td>";
69
-                echo"<td>$r[no_urut]</td>";
70
-                echo"<td>$r[nama]</td>";
71
-                echo"<td>$r[kategori]</td>";
72
-                echo"<td>$r[keluhan]</td>";
73
-                echo"<td>$r[diagnosa]</td>";
74
-                echo"<td>$r[pemeriksaan]</td>";
75
-                echo"<td>$r[tindakan]</td>";
76
-                echo" <td  style='text-align:center;'>";
66
+                        echo'<tr>';
67
+                        echo"<td>$tgl</td>";
68
+                        echo"<td>$r[poli]</td>";
69
+                        echo"<td>$r[no_urut]</td>";
70
+                        echo"<td>$r[nama]</td>";
71
+                        echo"<td>$r[kategori]</td>";
72
+                        echo"<td>$r[keluhan]</td>";
73
+                        echo"<td>$r[diagnosa]</td>";
74
+                        echo"<td>$r[pemeriksaan]</td>";
75
+                        echo"<td>$r[tindakan]</td>";
76
+                        echo" <td  style='text-align:center;'>";
77 77
 
78
-                if ($r_edit == 'Y') {
79
-                    echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
80
-                }
78
+                        if ($r_edit == 'Y') {
79
+                            echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
80
+                        }
81 81
 
82
-                echo'</td>';
83
-                echo'</tr>';
84
-                $no++;
85
-            }
86
-                                ?>
82
+                        echo'</td>';
83
+                        echo'</tr>';
84
+                        $no++;
85
+                    }
86
+                                        ?>
87 87
                          </tbody>
88 88
                     </table>
89 89
                   </div>
@@ -128,4 +128,4 @@  discard block
 block discarded – undo
128 128
 
129 129
     <?php
130 130
 }
131
-?>
131
+    ?>
Please login to merge, or discard this patch.