Passed
Push — master ( d91862...237c42 )
by Saepul
04:48
created
modul/mod_report_revenue/print_report_revenue.php 2 patches
Indentation   +98 added lines, -98 removed lines patch added patch discarded remove patch
@@ -244,50 +244,50 @@  discard block
 block discarded – undo
244 244
 
245 245
       <?php
246 246
 
247
-       $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
247
+        $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
248 248
 
249
-       $g = mysql_fetch_array($gtampil);
249
+        $g = mysql_fetch_array($gtampil);
250 250
 
251
-      if ($g['pict']) {
252
-          $pict = $g['pict'];
253
-      } else {
254
-          $pict = '';
255
-      }
251
+        if ($g['pict']) {
252
+            $pict = $g['pict'];
253
+        } else {
254
+            $pict = '';
255
+        }
256 256
 
257
-      $company = ucwords($g['company']);
257
+        $company = ucwords($g['company']);
258 258
 
259
-      $jsql = mysql_query("SELECT * FROM jenis_transaksi
259
+        $jsql = mysql_query("SELECT * FROM jenis_transaksi
260 260
                             WHERE id_jenis_transaksi = '$jenis_transaksi' 
261 261
 								
262 262
 
263 263
                            ");
264 264
 
265
-      $j = mysql_fetch_array($jsql);
265
+        $j = mysql_fetch_array($jsql);
266 266
 
267
-      $jenis_transaksi = $j['jenis_transaksi'];
267
+        $jenis_transaksi = $j['jenis_transaksi'];
268 268
 
269
-      $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
269
+        $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
270 270
                             ON a.id_shift = b.id_shift
271 271
                             WHERE a.id_kasir = '$k_ID' 
272 272
 
273 273
                            ");
274 274
 
275
-      $r = mysql_fetch_array($sql);
275
+        $r = mysql_fetch_array($sql);
276 276
 
277
-      $penjualan_barang = $r['id_kasir'];
277
+        $penjualan_barang = $r['id_kasir'];
278 278
 
279
-      $shift = $r['shift'];
279
+        $shift = $r['shift'];
280 280
 
281
-      $petugas = $r['petugas'];
281
+        $petugas = $r['petugas'];
282 282
 
283
-      $status = $r['status'];
283
+        $status = $r['status'];
284 284
 
285
-      $tanggal = date('d/m/Y', strtotime($r['tanggal']));
285
+        $tanggal = date('d/m/Y', strtotime($r['tanggal']));
286 286
 
287
-      ?>
287
+        ?>
288 288
 
289 289
       <?php if ($tipe == 'R') {
290
-          ?>
290
+            ?>
291 291
 
292 292
 
293 293
         <table width="100%">
@@ -314,14 +314,14 @@  discard block
 block discarded – undo
314 314
             <?php
315 315
             $htampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' AND id_jenis_transaksi != '6' ORDER BY id_jenis_transaksi");
316 316
 
317
-          $hjml = mysql_num_rows($htampil);
317
+            $hjml = mysql_num_rows($htampil);
318 318
 
319
-          while ($h = mysql_fetch_array($htampil)) {
320
-              echo '<tr>';
321
-              echo '<td>'.$h['jenis_transaksi'].'</td>';
319
+            while ($h = mysql_fetch_array($htampil)) {
320
+                echo '<tr>';
321
+                echo '<td>'.$h['jenis_transaksi'].'</td>';
322 322
 
323
-              //transaksi umum tunai
324
-              $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
323
+                //transaksi umum tunai
324
+                $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
325 325
                             , IFNULL(SUM(c.jumlah),0) as rp  
326 326
                           FROM kasir b LEFT JOIN kasir_detail c
327 327
                           ON  b.id_kasir = c.id_kasir
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
                           AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
331 331
                           AND b.status != '4'");
332 332
 
333
-              $d = mysql_fetch_array($dtampil);
333
+                $d = mysql_fetch_array($dtampil);
334 334
 
335
-              echo '<th>'.$d['jml'].'</th>';
336
-              echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
335
+                echo '<th>'.$d['jml'].'</th>';
336
+                echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
337 337
 
338
-              echo '</tr>';
339
-          } ?>        
338
+                echo '</tr>';
339
+            } ?>        
340 340
 
341 341
             </tbody>
342 342
 
@@ -351,10 +351,10 @@  discard block
 block discarded – undo
351 351
                                 WHERE b.tanggal like '$prd%'
352 352
                                 AND b.status != '4'");
353 353
 
354
-          $d = mysql_fetch_array($dtampil);
354
+            $d = mysql_fetch_array($dtampil);
355 355
 
356
-          echo '<th>'.$d['jml'].'</th>';
357
-          echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>'; ?>        
356
+            echo '<th>'.$d['jml'].'</th>';
357
+            echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>'; ?>        
358 358
 
359 359
               </tr>  
360 360
 
@@ -382,8 +382,8 @@  discard block
 block discarded – undo
382 382
 
383 383
 
384 384
       <?php
385
-      } else {
386
-          ?>
385
+        } else {
386
+            ?>
387 387
 
388 388
           <table width="100%">
389 389
           <tr>
@@ -404,11 +404,11 @@  discard block
 block discarded – undo
404 404
 
405 405
                     $htampil = mysql_query("SELECT * FROM penjamin where aktif = 'Y' ORDER BY id_penjamin");
406 406
 
407
-          $hjml = mysql_num_rows($htampil);
407
+            $hjml = mysql_num_rows($htampil);
408 408
 
409
-          while ($h = mysql_fetch_array($htampil)) {
410
-              echo "<th colspan='2' rowspan='2'>".$h['penjamin'].'</th>';
411
-          } ?> 	
409
+            while ($h = mysql_fetch_array($htampil)) {
410
+                echo "<th colspan='2' rowspan='2'>".$h['penjamin'].'</th>';
411
+            } ?> 	
412 412
                  
413 413
                    <th colspan ="4" >UMUM</th>  
414 414
                    <th colspan ="2" rowspan='2'>TOTAL</th>  
@@ -425,10 +425,10 @@  discard block
 block discarded – undo
425 425
 
426 426
 
427 427
                    <?php 
428
-                       for ($j = 1; $j <= $hjml; $j++) {
429
-                           echo '<th>KUNJ</th>';
430
-                           echo '<th>REV</th>';
431
-                       } ?>	
428
+                        for ($j = 1; $j <= $hjml; $j++) {
429
+                            echo '<th>KUNJ</th>';
430
+                            echo '<th>REV</th>';
431
+                        } ?>	
432 432
 
433 433
 
434 434
                    <th>KUNJ</th>  
@@ -448,15 +448,15 @@  discard block
 block discarded – undo
448 448
 
449 449
                 $htampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
450 450
 
451
-          $hjml = mysql_num_rows($htampil);
451
+            $hjml = mysql_num_rows($htampil);
452 452
 
453
-          while ($h = mysql_fetch_array($htampil)) {
454
-              echo'<tr>';
453
+            while ($h = mysql_fetch_array($htampil)) {
454
+                echo'<tr>';
455 455
 
456
-              echo'<td>'.$h['jenis_transaksi'].'</td>';
456
+                echo'<td>'.$h['jenis_transaksi'].'</td>';
457 457
 
458
-              //transaksi asuransi
459
-              $dtampil1 = mysql_query("SELECT a.id_penjamin
458
+                //transaksi asuransi
459
+                $dtampil1 = mysql_query("SELECT a.id_penjamin
460 460
                           , COUNT(c.jumlah) as jml 
461 461
                           , IFNULL(SUM(c.jumlah),0) as rp  
462 462
                         FROM penjamin a LEFT JOIN kasir b
@@ -472,12 +472,12 @@  discard block
 block discarded – undo
472 472
                         GROUP BY a.id_penjamin
473 473
                         ORDER BY a.id_penjamin");
474 474
 
475
-              while ($d1 = mysql_fetch_array($dtampil1)) {
476
-                  echo "<td style='text-align:center;'>".$d1['jml'].'</td>';
477
-                  echo "<td style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</td>';
478
-              }
475
+                while ($d1 = mysql_fetch_array($dtampil1)) {
476
+                    echo "<td style='text-align:center;'>".$d1['jml'].'</td>';
477
+                    echo "<td style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</td>';
478
+                }
479 479
 
480
-              $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
480
+                $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
481 481
                                             ,   IFNULL(SUM(c.jumlah),0) as rp  
482 482
                                         FROM kasir b LEFT JOIN kasir_detail c
483 483
                                         ON  b.id_kasir = c.id_kasir
@@ -487,12 +487,12 @@  discard block
 block discarded – undo
487 487
                       AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
488 488
                                         AND b.status != '4'");
489 489
 
490
-              $d2 = mysql_fetch_array($dtampil2);
490
+                $d2 = mysql_fetch_array($dtampil2);
491 491
 
492
-              echo "<td style='text-align:center;'>".$d2['jml'].'</td>';
493
-              echo "<td style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</td>';
492
+                echo "<td style='text-align:center;'>".$d2['jml'].'</td>';
493
+                echo "<td style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</td>';
494 494
 
495
-              $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
495
+                $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
496 496
                         , IFNULL(SUM(c.jumlah),0) as rp  
497 497
                       FROM kasir b LEFT JOIN kasir_detail c
498 498
                       ON  b.id_kasir = c.id_kasir
@@ -502,12 +502,12 @@  discard block
 block discarded – undo
502 502
                       AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
503 503
                       AND b.status != '4'");
504 504
 
505
-              $d3 = mysql_fetch_array($dtampil3);
505
+                $d3 = mysql_fetch_array($dtampil3);
506 506
 
507
-              echo "<td style='text-align:center;'>".$d3['jml'].'</td>';
508
-              echo "<td style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</td>';
507
+                echo "<td style='text-align:center;'>".$d3['jml'].'</td>';
508
+                echo "<td style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</td>';
509 509
 
510
-              $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
510
+                $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
511 511
                             , IFNULL(SUM(c.jumlah),0) as rp  
512 512
                           FROM kasir b LEFT JOIN kasir_detail c
513 513
                           ON  b.id_kasir = c.id_kasir
@@ -516,13 +516,13 @@  discard block
 block discarded – undo
516 516
                           AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
517 517
                           AND b.status != '4'");
518 518
 
519
-              $d = mysql_fetch_array($dtampil);
519
+                $d = mysql_fetch_array($dtampil);
520 520
 
521
-              echo "<td style='text-align:center;'>".$d['jml'].'</td>';
522
-              echo "<td style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</td>';
521
+                echo "<td style='text-align:center;'>".$d['jml'].'</td>';
522
+                echo "<td style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</td>';
523 523
 
524
-              echo'</tr>';
525
-          } ?>
524
+                echo'</tr>';
525
+            } ?>
526 526
 
527 527
             </tbody>
528 528
 
@@ -530,12 +530,12 @@  discard block
 block discarded – undo
530 530
 
531 531
               <?php 
532 532
 
533
-                 echo'<tr>';
533
+                    echo'<tr>';
534 534
 
535
-          echo'<th>TOTAL</th>';
535
+            echo'<th>TOTAL</th>';
536 536
 
537
-          //transaksi asuransi
538
-          $dtampil1 = mysql_query("SELECT a.id_penjamin
537
+            //transaksi asuransi
538
+            $dtampil1 = mysql_query("SELECT a.id_penjamin
539 539
                           , COUNT(c.jumlah) as jml 
540 540
                           , IFNULL(SUM(c.jumlah),0) as rp  
541 541
                         FROM penjamin a LEFT JOIN kasir b
@@ -550,12 +550,12 @@  discard block
 block discarded – undo
550 550
                         GROUP BY a.id_penjamin
551 551
                         ORDER BY a.id_penjamin");
552 552
 
553
-          while ($d1 = mysql_fetch_array($dtampil1)) {
554
-              echo '<th>'.$d1['jml'].'</th>';
555
-              echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
556
-          }
553
+            while ($d1 = mysql_fetch_array($dtampil1)) {
554
+                echo '<th>'.$d1['jml'].'</th>';
555
+                echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
556
+            }
557 557
 
558
-          $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
558
+            $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
559 559
                                             ,   IFNULL(SUM(c.jumlah),0) as rp  
560 560
                                         FROM kasir b LEFT JOIN kasir_detail c
561 561
                                         ON  b.id_kasir = c.id_kasir
@@ -564,12 +564,12 @@  discard block
 block discarded – undo
564 564
                                         WHERE b.tanggal LIKE '$prd%'
565 565
                                         AND b.status != '4'");
566 566
 
567
-          $d2 = mysql_fetch_array($dtampil2);
567
+            $d2 = mysql_fetch_array($dtampil2);
568 568
 
569
-          echo '<th>'.$d2['jml'].'</th>';
570
-          echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
569
+            echo '<th>'.$d2['jml'].'</th>';
570
+            echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
571 571
 
572
-          $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
572
+            $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
573 573
                         , IFNULL(SUM(c.jumlah),0) as rp  
574 574
                       FROM kasir b LEFT JOIN kasir_detail c
575 575
                       ON  b.id_kasir = c.id_kasir
@@ -578,12 +578,12 @@  discard block
 block discarded – undo
578 578
                       WHERE b.tanggal LIKE '$prd%'
579 579
                       AND b.status != '4'");
580 580
 
581
-          $d3 = mysql_fetch_array($dtampil3);
581
+            $d3 = mysql_fetch_array($dtampil3);
582 582
 
583
-          echo '<th>'.$d3['jml'].'</th>';
584
-          echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
583
+            echo '<th>'.$d3['jml'].'</th>';
584
+            echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
585 585
 
586
-          $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
586
+            $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
587 587
                             , IFNULL(SUM(c.jumlah),0) as rp  
588 588
                           FROM kasir b LEFT JOIN kasir_detail c
589 589
                           ON  b.id_kasir = c.id_kasir
@@ -591,12 +591,12 @@  discard block
 block discarded – undo
591 591
                           WHERE b.tanggal like '$prd%'
592 592
                           AND b.status != '4'");
593 593
 
594
-          $d = mysql_fetch_array($dtampil);
594
+            $d = mysql_fetch_array($dtampil);
595 595
 
596
-          echo '<th>'.$d['jml'].'</th>';
597
-          echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
596
+            echo '<th>'.$d['jml'].'</th>';
597
+            echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
598 598
 
599
-          echo'</tr>'; ?>
599
+            echo'</tr>'; ?>
600 600
 
601 601
       
602 602
 
@@ -610,17 +610,17 @@  discard block
 block discarded – undo
610 610
 
611 611
         $lastday = date('t', strtotime($iprd));
612 612
 
613
-          $year = date('Y', strtotime($iprd));
613
+            $year = date('Y', strtotime($iprd));
614 614
 
615
-          $month = date('m', strtotime($iprd)) * 1;
615
+            $month = date('m', strtotime($iprd)) * 1;
616 616
 
617
-          if ($month == '1') {
618
-              $imonth = 12;
619
-          } else {
620
-              $imonth = $month - 1;
621
-          }
617
+            if ($month == '1') {
618
+                $imonth = 12;
619
+            } else {
620
+                $imonth = $month - 1;
621
+            }
622 622
 
623
-          $nprd = $lastday.' '.getBulan1($imonth).' '.$year; ?>
623
+            $nprd = $lastday.' '.getBulan1($imonth).' '.$year; ?>
624 624
 
625 625
       <table width="100%">
626 626
 
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
        
644 644
 
645 645
     <?php
646
-      } ?>
646
+        } ?>
647 647
 
648 648
 </body>
649 649
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 $jenis_transaksi = $_GET['jenis_transaksi'];
122 122
 
123
-if ($tipe == 'R') {
123
+if ($tipe=='R') {
124 124
     $kertas = 'portrait';
125 125
 } else {
126 126
     $kertas = 'landscape';
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
       ?>
288 288
 
289
-      <?php if ($tipe == 'R') {
289
+      <?php if ($tipe=='R') {
290 290
           ?>
291 291
 
292 292
 
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 
426 426
 
427 427
                    <?php 
428
-                       for ($j = 1; $j <= $hjml; $j++) {
428
+                       for ($j = 1; $j<=$hjml; $j++) {
429 429
                            echo '<th>KUNJ</th>';
430 430
                            echo '<th>REV</th>';
431 431
                        } ?>	
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 
615 615
           $month = date('m', strtotime($iprd)) * 1;
616 616
 
617
-          if ($month == '1') {
617
+          if ($month=='1') {
618 618
               $imonth = 12;
619 619
           } else {
620 620
               $imonth = $month - 1;
Please login to merge, or discard this patch.
modul/mod_report_pengeluaran_obat/print_report_pengeluaran_obat.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
 <?php
168 168
 $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
169
- $g = mysql_fetch_array($gtampil);
169
+    $g = mysql_fetch_array($gtampil);
170 170
 
171 171
 if ($g['pict']) {
172 172
     $pict = $g['pict'];
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                             
211 211
                          <?php
212 212
 
213
-             $tampil = mysql_query("SELECT b.obat
213
+                $tampil = mysql_query("SELECT b.obat
214 214
                                   , c.satuan
215 215
                                   , sum(a.qty) as jumlah
216 216
                                 FROM kunjungan_berobat h inner join kunjungan_berobat_detail  a 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $id = $r['id_modul'];
13 13
 $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
15
+if ($r[orientation]=='P') {
16 16
     $orientation = 'portrait';
17 17
 } else {
18 18
     $orientation = 'landscape';
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 <!--<body onload="cetakspk()">-->
141 141
 
142
-<?php if ($_GET['printto'] == '2') {
142
+<?php if ($_GET['printto']=='2') {
143 143
     ?>
144 144
 <body onload="icetak()">
145 145
 <?php
Please login to merge, or discard this patch.
modul/mod_general_setting/form_general_setting.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -371,11 +371,11 @@
 block discarded – undo
371 371
         <!-- /editor -->
372 372
 
373 373
          <?php 
374
-         if (empty($pict)) {
375
-             $ipict = 'logo.png';
376
-         } else {
377
-             $ipict = $pict;
378
-         } ?>
374
+            if (empty($pict)) {
375
+                $ipict = 'logo.png';
376
+            } else {
377
+                $ipict = $pict;
378
+            } ?>
379 379
 
380 380
         <script>
381 381
           var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
     if ($id) {
81 81
         $query = mysql_query('SELECT * FROM general_setting WHERE id_general_setting = "'.$id.'"');
82
-        if ($query && mysql_num_rows($query) == 1) {
82
+        if ($query && mysql_num_rows($query)==1) {
83 83
             $data = mysql_fetch_object($query);
84 84
         } else {
85 85
             die('Data general_setting tidak ditemukan');
Please login to merge, or discard this patch.
modul/mod_general_setting/aksi_general_setting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     $datetime = date('Y-m-d G:i:s', $hour);
18 18
     $userid = $_SESSION['userid'];
19 19
 
20
-    if ($module == 'general_setting' and $act == 'input') {
20
+    if ($module=='general_setting' and $act=='input') {
21 21
         $id_module = $_POST['id_module'];
22 22
 
23 23
         $lokasi_file = $_FILES['fupload']['tmp_name'];
Please login to merge, or discard this patch.
modul/mod_poli/form_poli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     if ($id) {
46 46
         $query = mysql_query('SELECT * FROM poli WHERE id_poli = "'.$id.'"');
47
-        if ($query && mysql_num_rows($query) == 1) {
47
+        if ($query && mysql_num_rows($query)==1) {
48 48
             $data = mysql_fetch_object($query);
49 49
         } else {
50 50
             die('Data modul tidak ditemukan');
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
           <?php if ($id) {
82 82
         ?>  
83 83
     
84
-            <?php if (@$data->aktif == 'Y') {
84
+            <?php if (@$data->aktif=='Y') {
85 85
             ?>
86 86
               
87 87
                 <div class="form-group">
Please login to merge, or discard this patch.
modul/mod_poli/aksi_poli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     $userid = $_SESSION['userid'];
17 17
 
18 18
     // Hapus modul
19
-    if ($module == 'poli' and $act == 'hapus') {
19
+    if ($module=='poli' and $act=='hapus') {
20 20
         $id = $_GET['id'];
21 21
         $id_module = $_GET['id_module'];
22 22
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     // Input group
36
-    elseif ($module == 'poli' and $act == 'input') {
36
+    elseif ($module=='poli' and $act=='input') {
37 37
         $id_module = $_POST['id_module'];
38 38
 
39 39
         if ($_POST['ID']) {
Please login to merge, or discard this patch.
modul/mod_kategori/aksi_kategori.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     $userid = $_SESSION['userid'];
17 17
 
18 18
     // Hapus modul
19
-    if ($module == 'kategori' and $act == 'hapus') {
19
+    if ($module=='kategori' and $act=='hapus') {
20 20
         $id = $_GET['id'];
21 21
         $id_module = $_GET['id_module'];
22 22
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     // Input group
36
-    elseif ($module == 'kategori' and $act == 'input') {
36
+    elseif ($module=='kategori' and $act=='input') {
37 37
         $id_module = $_POST['id_module'];
38 38
 
39 39
         if ($_POST['ID']) {
Please login to merge, or discard this patch.
modul/mod_kategori/form_kategori.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     if ($id) {
46 46
         $query = mysql_query('SELECT * FROM kategori WHERE id_kategori = "'.$id.'"');
47
-        if ($query && mysql_num_rows($query) == 1) {
47
+        if ($query && mysql_num_rows($query)==1) {
48 48
             $data = mysql_fetch_object($query);
49 49
         } else {
50 50
             die('Data modul tidak ditemukan');
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
           <?php if ($id) {
84 84
         ?>  
85 85
     
86
-            <?php if (@$data->aktif == 'Y') {
86
+            <?php if (@$data->aktif=='Y') {
87 87
             ?>
88 88
               
89 89
                 <div class="form-group">
Please login to merge, or discard this patch.
modul/mod_kasir/form_list_pemesanan.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         <?php
257 257
 
258 258
 
259
-      $SQL = "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang
259
+        $SQL = "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang
260 260
 
261 261
                   ,a.qty-a.qty_ps as iqty, b.id_merk, b.id_barang
262 262
                   ,ifnull((SELECT sum(saldo_akhir)
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 
315 315
     while ($r = mysql_fetch_array($tampil)) {
316 316
 
317
-          //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty)
317
+            //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty)
318 318
 
319 319
         $hsql = mysql_query("SELECT harga as last_price 
320 320
                                 FROM pemesanan_barang_detail
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
 
428 428
               
429 429
 
430
-    <?php if ($size == '10') {
430
+    <?php if ($size=='10') {
431 431
         ?>
432 432
 
433 433
     <option value="10" selected="selected">10</option>
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 
444 444
 
445 445
 
446
-     <?php if ($size == '15') {
446
+     <?php if ($size=='15') {
447 447
         ?>
448 448
 
449 449
     <option value="15" selected="selected">15</option>
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 
460 460
 
461 461
 
462
-    <?php if ($size == '20') {
462
+    <?php if ($size=='20') {
463 463
         ?>
464 464
 
465 465
     <option value="20" selected="selected">20</option>
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 
476 476
 
477 477
 
478
-    <?php if ($size == '50') {
478
+    <?php if ($size=='50') {
479 479
         ?>
480 480
 
481 481
     <option value="50" selected="selected">20</option>
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 
492 492
 
493 493
 
494
-    <?php if ($size == '100') {
494
+    <?php if ($size=='100') {
495 495
         ?>
496 496
 
497 497
     <option value="100" selected="selected">100</option>
Please login to merge, or discard this patch.