Passed
Pull Request — master (#7)
by Saepul
05:30 queued 01:00
created
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.
modul/mod_kasir/aksi_kasir.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     // Hapus modul
27 27
 
28
-    if ($module == 'kasir' and $act == 'hapus') {
28
+    if ($module=='kasir' and $act=='hapus') {
29 29
         $id = $_GET['id'];
30 30
 
31 31
         $id_module = $_GET['id_module'];
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     // Input group
55 55
 
56
-    elseif ($module == 'kasir' and $act == 'input') {
56
+    elseif ($module=='kasir' and $act=='input') {
57 57
         $id_module = $_POST['id_module'];
58 58
 
59 59
         if ($_POST['ID']) {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
   
123 123
 
124 124
   <?php
125
-    } elseif ($module == 'kasir' and $act == 'add') {
125
+    } elseif ($module=='kasir' and $act=='add') {
126 126
         $id_module = $_POST['id_module'];
127 127
 
128 128
         $k_ID = $_POST['k_ID'];
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
   
243 243
 
244 244
   <?php
245
-    } elseif ($module == 'kasir' and $act == 'dhapus') {
245
+    } elseif ($module=='kasir' and $act=='dhapus') {
246 246
         $id = $_GET['id'];
247 247
 
248 248
         $id_module = $_GET['id_module'];
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
                               WHERE id_kasir_detail = '$id'");
259 259
 
260 260
         header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&ID='.$k_ID);
261
-    } elseif ($module == 'kasir' and $act == 'verified') {
261
+    } elseif ($module=='kasir' and $act=='verified') {
262 262
         $id = $_GET['id'];
263 263
 
264 264
         $id_module = $_GET['id_module'];
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                               ");
311 311
 
312 312
         header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&notrans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet);
313
-    } elseif ($module == 'kasir' and $act == 'reset') {
313
+    } elseif ($module=='kasir' and $act=='reset') {
314 314
         $id = $_GET['id'];
315 315
 
316 316
         $id_module = $_GET['id_module'];
Please login to merge, or discard this patch.
modul/mod_kasir/ecetak_kasir.php 2 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.
modul/mod_report_rujukan_pasien/print_report_rujukan_pasien.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'];
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                          <?php
214 214
 
215 215
 
216
-                         $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
216
+                            $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori    
217 217
                                                 ,e.rujukan as rujukan_rs
218 218
                                                 ,f.rujukan as rujukan_lab                              
219 219
                                             FROM kunjungan_berobat a left join pasien b 
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_user/xform_user.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
                  <select name="groups" class="form-control" required >
122 122
                           <option value=''></option>
123 123
                     <?php
124
-                      $query = mysql_query('SELECT * FROM groups ORDER BY groups');
124
+                        $query = mysql_query('SELECT * FROM groups ORDER BY groups');
125 125
     if ($query && mysql_num_rows($query) > 0) {
126 126
         while ($row = mysql_fetch_object($query)) {
127 127
             echo '<option value="'.$row->id_groups.'"';
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     if ($id) {
63 63
         $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"');
64
-        if ($query && mysql_num_rows($query) == 1) {
64
+        if ($query && mysql_num_rows($query)==1) {
65 65
             $data = mysql_fetch_object($query);
66 66
         } else {
67 67
             die('Data user tidak ditemukan');
@@ -122,10 +122,10 @@  discard block
 block discarded – undo
122 122
                           <option value=''></option>
123 123
                     <?php
124 124
                       $query = mysql_query('SELECT * FROM groups ORDER BY groups');
125
-    if ($query && mysql_num_rows($query) > 0) {
125
+    if ($query && mysql_num_rows($query)>0) {
126 126
         while ($row = mysql_fetch_object($query)) {
127 127
             echo '<option value="'.$row->id_groups.'"';
128
-            if ($row->id_groups == @$data->id_groups) {
128
+            if ($row->id_groups==@$data->id_groups) {
129 129
                 echo ' selected';
130 130
             }
131 131
             echo '>'.$row->groups.'</option>';
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 <?php if ($data->id_user) {
143 143
         ?>
144 144
 
145
-                    <?php if ($data->r_input == 'Y') {
145
+                    <?php if ($data->r_input=='Y') {
146 146
             ?>  
147 147
                         <input checked type='checkbox' class='flat' value='Y' name='r_input' >&nbsp;<label>Input</label>  &nbsp; 
148 148
                     <?php
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                     <?php
153 153
         } ?>  
154 154
                     
155
-                    <?php if ($data->r_edit == 'Y') {
155
+                    <?php if ($data->r_edit=='Y') {
156 156
             ?>  
157 157
                         <input checked type='checkbox' class='flat' value='Y' name='r_edit' >&nbsp;<label>Edit</label>  &nbsp; 
158 158
                     <?php
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                     <?php
163 163
         } ?>         
164 164
                     
165
-                    <?php if ($data->r_delete == 'Y') {
165
+                    <?php if ($data->r_delete=='Y') {
166 166
             ?>  
167 167
                         <input checked type='checkbox' class='flat' value='Y' name='r_delete' >&nbsp;<label>Delete</label>  &nbsp; 
168 168
                     <?php
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
           <?php if ($id) {
188 188
         ?>  
189 189
     
190
-            <?php if (@$data->aktif == 'Y') {
190
+            <?php if (@$data->aktif=='Y') {
191 191
             ?>
192 192
           
193 193
                 <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label>
Please login to merge, or discard this patch.
modul/mod_user/aksi_user.php 1 patch
Spacing   +6 added lines, -6 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 == 'user' and $act == 'hapus') {
19
+    if ($module=='user' and $act=='hapus') {
20 20
         $id = $_GET['id'];
21 21
         $id_module = $_GET['id_module'];
22 22
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     // Input group
29
-    elseif ($module == 'user' and $act == 'input') {
29
+    elseif ($module=='user' and $act=='input') {
30 30
         $id_module = $_POST['id_module'];
31 31
 
32 32
         $lokasi_file = $_FILES['fupload']['tmp_name'];
@@ -37,25 +37,25 @@  discard block
 block discarded – undo
37 37
 
38 38
         $pass = $_POST[password];
39 39
 
40
-        if ($_POST['r_input'] == 'Y') {
40
+        if ($_POST['r_input']=='Y') {
41 41
             $r_input = 'Y';
42 42
         } else {
43 43
             $r_input = 'N';
44 44
         }
45 45
 
46
-        if ($_POST['r_edit'] == 'Y') {
46
+        if ($_POST['r_edit']=='Y') {
47 47
             $r_edit = 'Y';
48 48
         } else {
49 49
             $r_edit = 'N';
50 50
         }
51 51
 
52
-        if ($_POST['r_delete'] == 'Y') {
52
+        if ($_POST['r_delete']=='Y') {
53 53
             $r_delete = 'Y';
54 54
         } else {
55 55
             $r_delete = 'N';
56 56
         }
57 57
 
58
-        if ($_POST['r_admin'] == 'Y') {
58
+        if ($_POST['r_admin']=='Y') {
59 59
             $r_admin = 'Y';
60 60
         } else {
61 61
             $r_admin = 'N';
Please login to merge, or discard this patch.
modul/mod_user/form_user.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                  <select name="groups" class="form-control" required >
161 161
                           <option value=''></option>
162 162
                     <?php
163
-                      $query = mysql_query('SELECT * FROM groups ORDER BY groups');
163
+                        $query = mysql_query('SELECT * FROM groups ORDER BY groups');
164 164
     if ($query && mysql_num_rows($query) > 0) {
165 165
         while ($row = mysql_fetch_object($query)) {
166 166
             echo '<option value="'.$row->id_groups.'"';
@@ -492,11 +492,11 @@  discard block
 block discarded – undo
492 492
         <!-- /editor -->
493 493
 
494 494
          <?php 
495
-         if (empty($pict)) {
496
-             $ipict = 'male.png';
497
-         } else {
498
-             $ipict = $pict;
499
-         } ?>
495
+            if (empty($pict)) {
496
+                $ipict = 'male.png';
497
+            } else {
498
+                $ipict = $pict;
499
+            } ?>
500 500
 
501 501
         <script>
502 502
           var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
     if ($id) {
82 82
         $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"');
83
-        if ($query && mysql_num_rows($query) == 1) {
83
+        if ($query && mysql_num_rows($query)==1) {
84 84
             $data = mysql_fetch_object($query);
85 85
         } else {
86 86
             die('Data user tidak ditemukan');
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
                           <option value=''></option>
162 162
                     <?php
163 163
                       $query = mysql_query('SELECT * FROM groups ORDER BY groups');
164
-    if ($query && mysql_num_rows($query) > 0) {
164
+    if ($query && mysql_num_rows($query)>0) {
165 165
         while ($row = mysql_fetch_object($query)) {
166 166
             echo '<option value="'.$row->id_groups.'"';
167
-            if ($row->id_groups == @$data->id_groups) {
167
+            if ($row->id_groups==@$data->id_groups) {
168 168
                 echo ' selected';
169 169
             }
170 170
             echo '>'.$row->groups.'</option>';
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 <?php if ($data->id_user) {
182 182
         ?>
183 183
 
184
-                    <?php if ($data->r_input == 'Y') {
184
+                    <?php if ($data->r_input=='Y') {
185 185
             ?>  
186 186
                         <input checked type='checkbox' class='flat' value='Y' name='r_input' >&nbsp;<label>Input</label>  &nbsp; 
187 187
                     <?php
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
                     <?php
192 192
         } ?>  
193 193
                     
194
-                    <?php if ($data->r_edit == 'Y') {
194
+                    <?php if ($data->r_edit=='Y') {
195 195
             ?>  
196 196
                         <input checked type='checkbox' class='flat' value='Y' name='r_edit' >&nbsp;<label>Ubah</label>  &nbsp; 
197 197
                     <?php
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                     <?php
202 202
         } ?>         
203 203
                     
204
-                    <?php if ($data->r_delete == 'Y') {
204
+                    <?php if ($data->r_delete=='Y') {
205 205
             ?>  
206 206
                         <input checked type='checkbox' class='flat' value='Y' name='r_delete' >&nbsp;<label>Hapus</label>   &nbsp; 
207 207
                     <?php
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
                     <?php
212 212
         } ?> 
213 213
 
214
-                     <?php if ($data->r_admin == 'Y') {
214
+                     <?php if ($data->r_admin=='Y') {
215 215
             ?>  
216 216
                         <input checked type='checkbox' class='flat' value='Y' name='r_admin' >&nbsp;<label>Grup Admin</label>   &nbsp; 
217 217
                     <?php
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
           <?php if ($id) {
238 238
         ?>  
239 239
     
240
-            <?php if (@$data->aktif == 'Y') {
240
+            <?php if (@$data->aktif=='Y') {
241 241
             ?>
242 242
           
243 243
                 <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label>
Please login to merge, or discard this patch.