Passed
Push — master ( b0d6c4...cca21a )
by Saepul
05:20
created
modul/mod_rekam_medis/rekam_medis.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
                 echo"<td>$r[tindakan]</td>";
80 80
                 echo" <td  style='text-align:center;'>";
81 81
 
82
-                if ($r_edit == 'Y') {
82
+                if ($r_edit=='Y') {
83 83
                     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>";
84 84
                 }
85 85
 
Please login to merge, or discard this patch.
menu.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 include 'config/koneksi.php';
3 3
 
4
-    if ($_SESSION['role'] == 'SA') {
4
+    if ($_SESSION['role']=='SA') {
5 5
         $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
6 6
 
7 7
         $gjml = '1';
@@ -22,15 +22,15 @@  discard block
 block discarded – undo
22 22
     }
23 23
 
24 24
                                 while ($r = mysql_fetch_array($sql)) {
25
-                                    if ($r['status_menu'] == 'M' and !empty($r['link'])) {
25
+                                    if ($r['status_menu']=='M' and !empty($r['link'])) {
26 26
                                         echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>";
27
-                                    } elseif ($r['status_menu'] == 'M' and empty($r['link'])) {
27
+                                    } elseif ($r['status_menu']=='M' and empty($r['link'])) {
28 28
                                         echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
29 29
                                     }
30 30
 
31 31
                                     echo'<ul class="nav child_menu" style="display: none">';
32 32
 
33
-                                    if ($_SESSION['role'] == 'SA') {
33
+                                    if ($_SESSION['role']=='SA') {
34 34
                                         $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
35 35
                                     } else {
36 36
                                         $detil = mysql_query("select distinct c.* 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                                                          order by c.urutan");
45 45
                                     }
46 46
                                     while ($d = mysql_fetch_array($detil)) {
47
-                                        if ($d['is_form'] == 'Y') {
47
+                                        if ($d['is_form']=='Y') {
48 48
                                             $imenu = '';
49 49
                                             $isub = '';
50 50
                                             $fa_icon = (isset($d['fa_icon'])) ? $d['fa_icon'] : '';
Please login to merge, or discard this patch.
main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'");
172 172
     $r = mysql_fetch_array($tampil);
173 173
 
174
-    if ($r['orientation'] == 'P') {
174
+    if ($r['orientation']=='P') {
175 175
         ?>
176 176
         
177 177
 <SCRIPT TYPE="text/javascript">
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 </SCRIPT>
188 188
 
189 189
 <?php
190
-    } elseif ($r['orientation'] == 'A') {
190
+    } elseif ($r['orientation']=='A') {
191 191
         ?>
192 192
 
193 193
 <SCRIPT TYPE="text/javascript">
Please login to merge, or discard this patch.
modul/mod_pengaturan_sistem/aksi_pengaturan_sistem.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-error_reporting(0);session_start();
3
+error_reporting(0); session_start();
4 4
 if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
5 5
     echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
6 6
 } else {
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     $prd = $p['periode'];
25 25
 
26
-    if ($module == 'pengaturan_sistem' and $act == 'ip') {
26
+    if ($module=='pengaturan_sistem' and $act=='ip') {
27 27
         $id_module = $_POST['id_module'];
28 28
 
29 29
         $lokasi_file = $_FILES['fupload']['tmp_name'];
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $id = $_POST['ID'];
63 63
 
64 64
         header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
65
-    } elseif ($module == 'pengaturan_sistem' and $act == 'sa') {
65
+    } elseif ($module=='pengaturan_sistem' and $act=='sa') {
66 66
         mysql_query("UPDATE pg_setoran_awal SET jenis    = '$_POST[jenis]'
67 67
                           ,nilai   = '$_POST[nilai]'
68 68
                           ,id_jenis_posting      = '$_POST[jenis_posting]'
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                        AND prd = '$prd'
75 75
                        ");
76 76
 
77
-        if ($_POST['u_tab'] == '1') {
77
+        if ($_POST['u_tab']=='1') {
78 78
             mysql_query("DELETE FROM pembukaan_tabungan 
79 79
                        WHERE id_pg_setoran_awal     = '$_POST[ID]'
80 80
                        AND status    = '2' 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                           ");
117 117
         }
118 118
 
119
-        if ($_POST['u_tab'] == '2') {
119
+        if ($_POST['u_tab']=='2') {
120 120
             mysql_query("DELETE FROM pembukaan_tabungan 
121 121
                        WHERE id_pg_setoran_awal     = '$_POST[ID]'
122 122
                        AND status    = '2' 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
         $id = $_POST['ID'];
161 161
         header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
162
-    } elseif ($module == 'pengaturan_sistem' and $act == 'pd') {
162
+    } elseif ($module=='pengaturan_sistem' and $act=='pd') {
163 163
         mysql_query("UPDATE pg_penarikan_dana SET max_pencairan   = '$_POST[max_pencairan]'
164 164
                                       ,max_penarikan         = '$_POST[max_penarikan]'
165 165
                                       ,jeda_waktu      = '$_POST[jeda_waktu]'
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
 
175 175
         $id = $_POST['ID'];
176 176
         header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
177
-    } elseif ($module == 'pengaturan_sistem' and $act == 'pm') {
178
-        if ($_POST[stab] == 'tunai') {
177
+    } elseif ($module=='pengaturan_sistem' and $act=='pm') {
178
+        if ($_POST[stab]=='tunai') {
179 179
             mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor     = '$_POST[min_tenor_k]'
180 180
                                                 ,max_tenor     = '$_POST[max_tenor_k]'
181 181
                                                 ,max_pinjaman  = '$_POST[max_pinjaman_k]'      
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         $stab = $_POST['stab'];
273 273
 
274 274
         header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule.'&stab='.$stab);
275
-    } elseif ($module == 'pengaturan_sistem' and $act == 'ln') {
275
+    } elseif ($module=='pengaturan_sistem' and $act=='ln') {
276 276
         mysql_query("UPDATE pg_lainnya SET harga_saham    = '$_POST[harga_saham]'
277 277
                                      ,rek_shu        = '$_POST[rek_shu]'
278 278
                                      ,ftgl           = '$_POST[ftgl]'
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 
288 288
         $id = $_POST['ID'];
289 289
         header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
290
-    } elseif ($module == 'pengaturan_sistem' and $act == 'jr') {
290
+    } elseif ($module=='pengaturan_sistem' and $act=='jr') {
291 291
         mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi    = '$_POST[jenis_transaksi]'
292 292
                           ,id_modul      = '$_POST[modul]'
293 293
                          ,upddt     = '$datetime' 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 
299 299
         $id = $_POST['ID'];
300 300
         header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
301
-    } elseif ($module == 'pengaturan_sistem' and $act == 'pl') {
301
+    } elseif ($module=='pengaturan_sistem' and $act=='pl') {
302 302
         mysql_query("UPDATE pg_plafon SET plafon    = '$_POST[plafon]'
303 303
                                      ,upddt     = '$datetime' 
304 304
                                      ,updby     = '$userid'    
Please login to merge, or discard this patch.
modul/mod_pengaturan_sistem/form_pengaturan_sistem.php 1 patch
Spacing   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
     <?php
2
-    error_reporting(0);session_start();
2
+    error_reporting(0); session_start();
3 3
     if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
4 4
         echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
     } else {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
       <ul class="nav nav-tabs">
112 112
 
113
-       <li <?php if ($tab == 'ip') {
113
+       <li <?php if ($tab=='ip') {
114 114
             echo 'class="active"';
115 115
         } ?> ><a data-toggle="tab" href="#home">Informasi Perusahaan</a>
116 116
         </li>
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
       <div class="tab-content">
126 126
 
127
-          <div id="home" class="tab-pane fade <?php if ($tab == 'ip') {
127
+          <div id="home" class="tab-pane fade <?php if ($tab=='ip') {
128 128
             echo 'in active primary';
129 129
         } ?>">
130 130
           <br>
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
         if ($id) {
140 140
             $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"');
141
-            if ($query && mysql_num_rows($query) == 1) {
141
+            if ($query && mysql_num_rows($query)==1) {
142 142
                 $data = mysql_fetch_object($query);
143 143
             } else {
144 144
                 die('Data general_setting tidak ditemukan');
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
           </div>
225 225
 
226
-          <div id="menu1" class="tab-pane fade <?php if ($tab == 'sa') {
226
+          <div id="menu1" class="tab-pane fade <?php if ($tab=='sa') {
227 227
             echo 'in active primary';
228 228
         } ?>">
229 229
               <br>
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         $no = 1;
262 262
 
263 263
         while ($r = mysql_fetch_array($tampil)) {
264
-            if ($r['nilai'] == '0') {
264
+            if ($r['nilai']=='0') {
265 265
                 $disabled = 'readonly';
266 266
             } else {
267 267
                 $disabled = '';
@@ -287,10 +287,10 @@  discard block
 block discarded – undo
287 287
                                          <select name="jenis_posting" class="form-control" required >
288 288
                                           <?php
289 289
                                             $query = mysql_query('SELECT * FROM jenis_posting ORDER BY jenis_posting');
290
-            if ($query && mysql_num_rows($query) > 0) {
290
+            if ($query && mysql_num_rows($query)>0) {
291 291
                 while ($row = mysql_fetch_object($query)) {
292 292
                     echo '<option value="'.$row->id_jenis_posting.'"';
293
-                    if ($row->id_jenis_posting == $r['id_jenis_posting']) {
293
+                    if ($row->id_jenis_posting==$r['id_jenis_posting']) {
294 294
                         echo ' selected';
295 295
                     }
296 296
                     echo '>'.$row->jenis_posting.'</option>';
@@ -308,10 +308,10 @@  discard block
 block discarded – undo
308 308
                                                                   WHERE parentid != "0" 
309 309
                                                                   
310 310
                                                                   ORDER BY norek');
311
-            if ($query && mysql_num_rows($query) > 0) {
311
+            if ($query && mysql_num_rows($query)>0) {
312 312
                 while ($row = mysql_fetch_object($query)) {
313 313
                     echo '<option value="'.$row->id_rekening.'"';
314
-                    if ($row->id_rekening == $r['rek_debet']) {
314
+                    if ($row->id_rekening==$r['rek_debet']) {
315 315
                         echo ' selected';
316 316
                     }
317 317
                     echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -329,10 +329,10 @@  discard block
 block discarded – undo
329 329
                                                                   WHERE parentid !=  "0"  
330 330
                                                                   
331 331
                                                                   ORDER BY norek');
332
-            if ($query && mysql_num_rows($query) > 0) {
332
+            if ($query && mysql_num_rows($query)>0) {
333 333
                 while ($row = mysql_fetch_object($query)) {
334 334
                     echo '<option value="'.$row->id_rekening.'"';
335
-                    if ($row->id_rekening == $r['rek_kredit']) {
335
+                    if ($row->id_rekening==$r['rek_kredit']) {
336 336
                         echo ' selected';
337 337
                     }
338 338
                     echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
           </div>    
377 377
 
378
-          <div id="menu2" class="tab-pane fade <?php if ($tab == 'pd') {
378
+          <div id="menu2" class="tab-pane fade <?php if ($tab=='pd') {
379 379
             echo 'in active primary';
380 380
         } ?>">
381 381
               <br>
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         if ($id) {
389 389
             $query = mysql_query('SELECT * FROM pg_penarikan_dana
390 390
                                              WHERE  prd = "'.$prd.'" ');
391
-            if ($query && mysql_num_rows($query) == 1) {
391
+            if ($query && mysql_num_rows($query)==1) {
392 392
                 $data = mysql_fetch_object($query);
393 393
             } else {
394 394
                 die('Data pg_penarikan_dana tidak ditemukan');
@@ -455,10 +455,10 @@  discard block
 block discarded – undo
455 455
                                WHERE parentid != "0" 
456 456
                                
457 457
                                ORDER BY norek');
458
-        if ($query && mysql_num_rows($query) > 0) {
458
+        if ($query && mysql_num_rows($query)>0) {
459 459
             while ($row = mysql_fetch_object($query)) {
460 460
                 echo '<option value="'.$row->id_rekening.'"';
461
-                if ($row->id_rekening == $data->rek_debet) {
461
+                if ($row->id_rekening==$data->rek_debet) {
462 462
                     echo ' selected';
463 463
                 }
464 464
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -477,10 +477,10 @@  discard block
 block discarded – undo
477 477
                                WHERE parentid != "0" 
478 478
                                
479 479
                                ORDER BY norek');
480
-        if ($query && mysql_num_rows($query) > 0) {
480
+        if ($query && mysql_num_rows($query)>0) {
481 481
             while ($row = mysql_fetch_object($query)) {
482 482
                 echo '<option value="'.$row->id_rekening.'"';
483
-                if ($row->id_rekening == $data->rek_kredit) {
483
+                if ($row->id_rekening==$data->rek_kredit) {
484 484
                     echo ' selected';
485 485
                 }
486 486
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
 
512 512
           </div>    
513 513
 
514
-          <div id="menu3" class="tab-pane fade <?php if ($tab == 'pm') {
514
+          <div id="menu3" class="tab-pane fade <?php if ($tab=='pm') {
515 515
             echo 'in active primary';
516 516
         } ?>">
517 517
               <br>
@@ -519,11 +519,11 @@  discard block
 block discarded – undo
519 519
 
520 520
                   <ul class="nav nav-tabs" >
521 521
 
522
-                   <li <?php if ($stab == 'tunai') {
522
+                   <li <?php if ($stab=='tunai') {
523 523
             echo 'class="active"';
524 524
         } ?> ><a data-toggle="tab" href="#tunai">Dana Tunai</a>
525 525
                     </li>
526
-                    <li <?php if ($stab == 'barang') {
526
+                    <li <?php if ($stab=='barang') {
527 527
             echo 'class="active"';
528 528
         } ?> ><a data-toggle="tab" href="#barang">Barang</a>
529 529
                     </li>
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 
532 532
                   <div class="tab-content">
533 533
 
534
-                      <div id="tunai" class="tab-pane fade <?php if ($stab == 'tunai') {
534
+                      <div id="tunai" class="tab-pane fade <?php if ($stab=='tunai') {
535 535
             echo 'in active primary';
536 536
         } ?>">
537 537
                       <br>
@@ -604,10 +604,10 @@  discard block
 block discarded – undo
604 604
                                             $query = mysql_query('SELECT * FROM rekening 
605 605
                                                                   WHERE parentid != "0"         
606 606
                                                                   ORDER BY norek');
607
-        if ($query && mysql_num_rows($query) > 0) {
607
+        if ($query && mysql_num_rows($query)>0) {
608 608
             while ($row = mysql_fetch_object($query)) {
609 609
                 echo '<option value="'.$row->id_rekening.'"';
610
-                if ($row->id_rekening == $k['rek_debet']) {
610
+                if ($row->id_rekening==$k['rek_debet']) {
611 611
                     echo ' selected';
612 612
                 }
613 613
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -623,10 +623,10 @@  discard block
 block discarded – undo
623 623
                                             $query = mysql_query('SELECT * FROM rekening 
624 624
                                                                   WHERE parentid != "0" 
625 625
                                                                   ORDER BY norek');
626
-        if ($query && mysql_num_rows($query) > 0) {
626
+        if ($query && mysql_num_rows($query)>0) {
627 627
             while ($row = mysql_fetch_object($query)) {
628 628
                 echo '<option value="'.$row->id_rekening.'"';
629
-                if ($row->id_rekening == $k['rek_kredit']) {
629
+                if ($row->id_rekening==$k['rek_kredit']) {
630 630
                     echo ' selected';
631 631
                 }
632 632
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -654,10 +654,10 @@  discard block
 block discarded – undo
654 654
                                             $query = mysql_query('SELECT * FROM rekening 
655 655
                                                                   WHERE parentid != "0"         
656 656
                                                                   ORDER BY norek');
657
-        if ($query && mysql_num_rows($query) > 0) {
657
+        if ($query && mysql_num_rows($query)>0) {
658 658
             while ($row = mysql_fetch_object($query)) {
659 659
                 echo '<option value="'.$row->id_rekening.'"';
660
-                if ($row->id_rekening == $k['rek_debet_pelunasan']) {
660
+                if ($row->id_rekening==$k['rek_debet_pelunasan']) {
661 661
                     echo ' selected';
662 662
                 }
663 663
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -673,10 +673,10 @@  discard block
 block discarded – undo
673 673
                                             $query = mysql_query('SELECT * FROM rekening 
674 674
                                                                   WHERE parentid != "0" 
675 675
                                                                   ORDER BY norek');
676
-        if ($query && mysql_num_rows($query) > 0) {
676
+        if ($query && mysql_num_rows($query)>0) {
677 677
             while ($row = mysql_fetch_object($query)) {
678 678
                 echo '<option value="'.$row->id_rekening.'"';
679
-                if ($row->id_rekening == $k['rek_kredit_pelunasan']) {
679
+                if ($row->id_rekening==$k['rek_kredit_pelunasan']) {
680 680
                     echo ' selected';
681 681
                 }
682 682
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -832,10 +832,10 @@  discard block
 block discarded – undo
832 832
                                                                   WHERE parentid != "0" 
833 833
                                                                   
834 834
                                                                   ORDER BY norek');
835
-        if ($query && mysql_num_rows($query) > 0) {
835
+        if ($query && mysql_num_rows($query)>0) {
836 836
             while ($row = mysql_fetch_object($query)) {
837 837
                 echo '<option value="'.$row->id_rekening.'"';
838
-                if ($row->id_rekening == $k['rek_debet_bunga']) {
838
+                if ($row->id_rekening==$k['rek_debet_bunga']) {
839 839
                     echo ' selected';
840 840
                 }
841 841
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -851,10 +851,10 @@  discard block
 block discarded – undo
851 851
                                             $query = mysql_query('SELECT * FROM rekening 
852 852
                                                                   WHERE parentid != "0"                                                                   
853 853
                                                                   ORDER BY norek');
854
-        if ($query && mysql_num_rows($query) > 0) {
854
+        if ($query && mysql_num_rows($query)>0) {
855 855
             while ($row = mysql_fetch_object($query)) {
856 856
                 echo '<option value="'.$row->id_rekening.'"';
857
-                if ($row->id_rekening == $k['rek_kredit_bunga']) {
857
+                if ($row->id_rekening==$k['rek_kredit_bunga']) {
858 858
                     echo ' selected';
859 859
                 }
860 860
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -898,10 +898,10 @@  discard block
 block discarded – undo
898 898
                                             $query = mysql_query('SELECT * FROM rekening 
899 899
                                                                   WHERE parentid != "0" 
900 900
                                                                   ORDER BY norek');
901
-        if ($query && mysql_num_rows($query) > 0) {
901
+        if ($query && mysql_num_rows($query)>0) {
902 902
             while ($row = mysql_fetch_object($query)) {
903 903
                 echo '<option value="'.$row->id_rekening.'"';
904
-                if ($row->id_rekening == $k['rek_debet_ipoint']) {
904
+                if ($row->id_rekening==$k['rek_debet_ipoint']) {
905 905
                     echo ' selected';
906 906
                 }
907 907
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -917,10 +917,10 @@  discard block
 block discarded – undo
917 917
                                             $query = mysql_query('SELECT * FROM rekening 
918 918
                                                                   WHERE parentid != "0" 
919 919
                                                                   ORDER BY norek');
920
-        if ($query && mysql_num_rows($query) > 0) {
920
+        if ($query && mysql_num_rows($query)>0) {
921 921
             while ($row = mysql_fetch_object($query)) {
922 922
                 echo '<option value="'.$row->id_rekening.'"';
923
-                if ($row->id_rekening == $k['rek_kredit_ipoint']) {
923
+                if ($row->id_rekening==$k['rek_kredit_ipoint']) {
924 924
                     echo ' selected';
925 925
                 }
926 926
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1040,7 +1040,7 @@  discard block
 block discarded – undo
1040 1040
                        
1041 1041
                        </div>
1042 1042
 
1043
-                        <div id="barang" class="tab-pane fade <?php if ($stab == 'barang') {
1043
+                        <div id="barang" class="tab-pane fade <?php if ($stab=='barang') {
1044 1044
             echo 'in active primary';
1045 1045
         } ?>">
1046 1046
                       <br>
@@ -1109,10 +1109,10 @@  discard block
 block discarded – undo
1109 1109
                                             $query = mysql_query('SELECT * FROM rekening 
1110 1110
                                                                   WHERE parentid != "0"         
1111 1111
                                                                   ORDER BY norek');
1112
-        if ($query && mysql_num_rows($query) > 0) {
1112
+        if ($query && mysql_num_rows($query)>0) {
1113 1113
             while ($row = mysql_fetch_object($query)) {
1114 1114
                 echo '<option value="'.$row->id_rekening.'"';
1115
-                if ($row->id_rekening == $k['rek_debet']) {
1115
+                if ($row->id_rekening==$k['rek_debet']) {
1116 1116
                     echo ' selected';
1117 1117
                 }
1118 1118
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1128,10 +1128,10 @@  discard block
 block discarded – undo
1128 1128
                                             $query = mysql_query('SELECT * FROM rekening 
1129 1129
                                                                   WHERE parentid != "0" 
1130 1130
                                                                   ORDER BY norek');
1131
-        if ($query && mysql_num_rows($query) > 0) {
1131
+        if ($query && mysql_num_rows($query)>0) {
1132 1132
             while ($row = mysql_fetch_object($query)) {
1133 1133
                 echo '<option value="'.$row->id_rekening.'"';
1134
-                if ($row->id_rekening == $k['rek_kredit']) {
1134
+                if ($row->id_rekening==$k['rek_kredit']) {
1135 1135
                     echo ' selected';
1136 1136
                 }
1137 1137
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1160,10 +1160,10 @@  discard block
 block discarded – undo
1160 1160
                                             $query = mysql_query('SELECT * FROM rekening 
1161 1161
                                                                   WHERE parentid != "0"         
1162 1162
                                                                   ORDER BY norek');
1163
-        if ($query && mysql_num_rows($query) > 0) {
1163
+        if ($query && mysql_num_rows($query)>0) {
1164 1164
             while ($row = mysql_fetch_object($query)) {
1165 1165
                 echo '<option value="'.$row->id_rekening.'"';
1166
-                if ($row->id_rekening == $k['rek_debet_pelunasan']) {
1166
+                if ($row->id_rekening==$k['rek_debet_pelunasan']) {
1167 1167
                     echo ' selected';
1168 1168
                 }
1169 1169
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1179,10 +1179,10 @@  discard block
 block discarded – undo
1179 1179
                                             $query = mysql_query('SELECT * FROM rekening 
1180 1180
                                                                   WHERE parentid != "0" 
1181 1181
                                                                   ORDER BY norek');
1182
-        if ($query && mysql_num_rows($query) > 0) {
1182
+        if ($query && mysql_num_rows($query)>0) {
1183 1183
             while ($row = mysql_fetch_object($query)) {
1184 1184
                 echo '<option value="'.$row->id_rekening.'"';
1185
-                if ($row->id_rekening == $k['rek_kredit_pelunasan']) {
1185
+                if ($row->id_rekening==$k['rek_kredit_pelunasan']) {
1186 1186
                     echo ' selected';
1187 1187
                 }
1188 1188
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1338,10 +1338,10 @@  discard block
 block discarded – undo
1338 1338
                                                                   WHERE parentid != "0" 
1339 1339
                                                                   
1340 1340
                                                                   ORDER BY norek');
1341
-        if ($query && mysql_num_rows($query) > 0) {
1341
+        if ($query && mysql_num_rows($query)>0) {
1342 1342
             while ($row = mysql_fetch_object($query)) {
1343 1343
                 echo '<option value="'.$row->id_rekening.'"';
1344
-                if ($row->id_rekening == $k['rek_debet_bunga']) {
1344
+                if ($row->id_rekening==$k['rek_debet_bunga']) {
1345 1345
                     echo ' selected';
1346 1346
                 }
1347 1347
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1357,10 +1357,10 @@  discard block
 block discarded – undo
1357 1357
                                             $query = mysql_query('SELECT * FROM rekening 
1358 1358
                                                                   WHERE parentid != "0"                                                                   
1359 1359
                                                                   ORDER BY norek');
1360
-        if ($query && mysql_num_rows($query) > 0) {
1360
+        if ($query && mysql_num_rows($query)>0) {
1361 1361
             while ($row = mysql_fetch_object($query)) {
1362 1362
                 echo '<option value="'.$row->id_rekening.'"';
1363
-                if ($row->id_rekening == $k['rek_kredit_bunga']) {
1363
+                if ($row->id_rekening==$k['rek_kredit_bunga']) {
1364 1364
                     echo ' selected';
1365 1365
                 }
1366 1366
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1404,10 +1404,10 @@  discard block
 block discarded – undo
1404 1404
                                             $query = mysql_query('SELECT * FROM rekening 
1405 1405
                                                                   WHERE parentid != "0" 
1406 1406
                                                                   ORDER BY norek');
1407
-        if ($query && mysql_num_rows($query) > 0) {
1407
+        if ($query && mysql_num_rows($query)>0) {
1408 1408
             while ($row = mysql_fetch_object($query)) {
1409 1409
                 echo '<option value="'.$row->id_rekening.'"';
1410
-                if ($row->id_rekening == $k['rek_debet_ipoint']) {
1410
+                if ($row->id_rekening==$k['rek_debet_ipoint']) {
1411 1411
                     echo ' selected';
1412 1412
                 }
1413 1413
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1423,10 +1423,10 @@  discard block
 block discarded – undo
1423 1423
                                             $query = mysql_query('SELECT * FROM rekening 
1424 1424
                                                                   WHERE parentid != "0" 
1425 1425
                                                                   ORDER BY norek');
1426
-        if ($query && mysql_num_rows($query) > 0) {
1426
+        if ($query && mysql_num_rows($query)>0) {
1427 1427
             while ($row = mysql_fetch_object($query)) {
1428 1428
                 echo '<option value="'.$row->id_rekening.'"';
1429
-                if ($row->id_rekening == $k['rek_kredit_ipoint']) {
1429
+                if ($row->id_rekening==$k['rek_kredit_ipoint']) {
1430 1430
                     echo ' selected';
1431 1431
                 }
1432 1432
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -1552,7 +1552,7 @@  discard block
 block discarded – undo
1552 1552
 
1553 1553
           </div>       
1554 1554
 
1555
-          <div id="menu4" class="tab-pane fade <?php if ($tab == 'pl') {
1555
+          <div id="menu4" class="tab-pane fade <?php if ($tab=='pl') {
1556 1556
             echo 'in active primary';
1557 1557
         } ?>">
1558 1558
              <br>
@@ -1593,10 +1593,10 @@  discard block
 block discarded – undo
1593 1593
                                          <select name="jenis_pinjaman" class="form-control" disabled>
1594 1594
                                           <?php
1595 1595
                                             $query = mysql_query('SELECT * FROM jenis_pinjaman ORDER BY jenis_pinjaman');
1596
-            if ($query && mysql_num_rows($query) > 0) {
1596
+            if ($query && mysql_num_rows($query)>0) {
1597 1597
                 while ($row = mysql_fetch_object($query)) {
1598 1598
                     echo '<option value="'.$row->id_jenis_pinjaman.'"';
1599
-                    if ($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) {
1599
+                    if ($row->id_jenis_pinjaman==$r['id_jenis_pinjaman']) {
1600 1600
                         echo ' selected';
1601 1601
                     }
1602 1602
                     echo '>'.$row->jenis_pinjaman.'</option>';
@@ -1645,7 +1645,7 @@  discard block
 block discarded – undo
1645 1645
 
1646 1646
           </div>   
1647 1647
 
1648
-          <div id="menu5" class="tab-pane fade <?php if ($tab == 'jr') {
1648
+          <div id="menu5" class="tab-pane fade <?php if ($tab=='jr') {
1649 1649
             echo 'in active primary';
1650 1650
         } ?>">
1651 1651
               <br>
@@ -1683,10 +1683,10 @@  discard block
 block discarded – undo
1683 1683
                                          <select name="modul" class="form-control" required >
1684 1684
                                           <?php
1685 1685
                                             $query = mysql_query('SELECT * FROM modul WHERE jurnal = "Y" and aktif = "Y" ORDER BY nama_modul');
1686
-            if ($query && mysql_num_rows($query) > 0) {
1686
+            if ($query && mysql_num_rows($query)>0) {
1687 1687
                 while ($row = mysql_fetch_object($query)) {
1688 1688
                     echo '<option value="'.$row->id_modul.'"';
1689
-                    if ($row->id_modul == $r['id_modul']) {
1689
+                    if ($row->id_modul==$r['id_modul']) {
1690 1690
                         echo ' selected';
1691 1691
                     }
1692 1692
                     echo '>'.$row->nama_modul.'</option>';
@@ -1704,10 +1704,10 @@  discard block
 block discarded – undo
1704 1704
                                                                   FROM jenis_transaksi a inner join tipe_transaksi b
1705 1705
                                                                   ON a.id_tipe_transaksi = b.id_tipe_transaksi
1706 1706
                                                                   ORDER BY a.id_tipe_transaksi,a.id_jenis_transaksi');
1707
-            if ($query && mysql_num_rows($query) > 0) {
1707
+            if ($query && mysql_num_rows($query)>0) {
1708 1708
                 while ($row = mysql_fetch_object($query)) {
1709 1709
                     echo '<option value="'.$row->id_jenis_transaksi.'"';
1710
-                    if ($row->id_jenis_transaksi == $r['id_jenis_transaksi']) {
1710
+                    if ($row->id_jenis_transaksi==$r['id_jenis_transaksi']) {
1711 1711
                         echo ' selected';
1712 1712
                     }
1713 1713
                     echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>';
@@ -1752,7 +1752,7 @@  discard block
 block discarded – undo
1752 1752
 
1753 1753
 
1754 1754
 
1755
-           <div id="menu6" class="tab-pane fade <?php if ($tab == 'ln') {
1755
+           <div id="menu6" class="tab-pane fade <?php if ($tab=='ln') {
1756 1756
             echo 'in active primary';
1757 1757
         } ?>">
1758 1758
              <br>
@@ -1769,7 +1769,7 @@  discard block
 block discarded – undo
1769 1769
                                                 WHERE prd =  "'.$prd.'"
1770 1770
                                                 ');
1771 1771
 
1772
-            if ($query && mysql_num_rows($query) == 1) {
1772
+            if ($query && mysql_num_rows($query)==1) {
1773 1773
                 $data = mysql_fetch_object($query);
1774 1774
             } else {
1775 1775
                 die('Data general_setting tidak ditemukan');
@@ -1804,10 +1804,10 @@  discard block
 block discarded – undo
1804 1804
                                             $query = mysql_query('SELECT * FROM rekening 
1805 1805
                                                                   WHERE parentid != "0" 
1806 1806
                                                                   ORDER BY norek');
1807
-        if ($query && mysql_num_rows($query) > 0) {
1807
+        if ($query && mysql_num_rows($query)>0) {
1808 1808
             while ($row = mysql_fetch_object($query)) {
1809 1809
                 echo '<option value="'.$row->id_rekening.'"';
1810
-                if ($row->id_rekening == $data->rek_shu) {
1810
+                if ($row->id_rekening==$data->rek_shu) {
1811 1811
                     echo ' selected';
1812 1812
                 }
1813 1813
                 echo '>'.$row->norek.' - '.$row->rekening.'</option>';
@@ -2083,7 +2083,7 @@  discard block
 block discarded – undo
2083 2083
 
2084 2084
         if ($id) {
2085 2085
             $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"');
2086
-            if ($query && mysql_num_rows($query) == 1) {
2086
+            if ($query && mysql_num_rows($query)==1) {
2087 2087
                 $data = mysql_fetch_object($query);
2088 2088
             } else {
2089 2089
                 die('Data general_setting tidak ditemukan');
Please login to merge, or discard this patch.
modul/mod_groups/aksi_groups.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-error_reporting(0);session_start();
2
+error_reporting(0); session_start();
3 3
 if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
4 4
     echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
 } else {
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     $business_type = $_SESSION['business_type'];
18 18
 
19 19
     // Hapus modul
20
-    if ($module == 'groups' and $act == 'hapus') {
20
+    if ($module=='groups' and $act=='hapus') {
21 21
         $id = $_GET['id'];
22 22
         $id_module = $_GET['id_module'];
23 23
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     // Input group
37
-    elseif ($module == 'groups' and $act == 'input') {
37
+    elseif ($module=='groups' and $act=='input') {
38 38
         $id_module = $_POST['id_module'];
39 39
 
40 40
         if ($_POST['ID']) {
Please login to merge, or discard this patch.
modul/mod_groups/form_groups.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
     <?php
2
-    error_reporting(0);session_start();
2
+    error_reporting(0); session_start();
3 3
     if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
4 4
         echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5 5
     } else {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         if ($id) {
46 46
             $query = mysql_query('SELECT * FROM groups WHERE id_groups = "'.$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');
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
           <?php if ($id) {
89 89
             ?>  
90 90
     
91
-            <?php if (@$data->aktif == 'Y') {
91
+            <?php if (@$data->aktif=='Y') {
92 92
                 ?>
93 93
               
94 94
                 <div class="form-group">
Please login to merge, or discard this patch.
modul/mod_groups/groups.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@
 block discarded – undo
58 58
                 echo"<td style='text-align:center;'>$r[aktif]</td>";
59 59
                 echo" <td  style='text-align:center;'>";
60 60
 
61
-                if ($r_edit == 'Y') {
61
+                if ($r_edit=='Y') {
62 62
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&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>";
63 63
                 }
64 64
 
65
-                if ($r_delete == 'Y') {
65
+                if ($r_delete=='Y') {
66 66
                     echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
67 67
                 }
68 68
                 echo'</td>';
Please login to merge, or discard this patch.
modul/mod_report_rekam_medis/report_rekam_medis.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
                      <option>--Pilih Pasien--</option>                
95 95
                         <?php
96 96
                             $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
97
-                            if ($query && mysql_num_rows($query) > 0) {
97
+                            if ($query && mysql_num_rows($query)>0) {
98 98
                                 while ($row = mysql_fetch_object($query)) {
99 99
                                     $pasien = $row->ktp.'-'.$row->nama;
100 100
 
101 101
                                     echo '<option value="'.$row->id_pasien.'"';
102
-                                    if ($row->id_pasien == @$data->id_pasien) {
102
+                                    if ($row->id_pasien==@$data->id_pasien) {
103 103
                                         echo ' selected';
104 104
                                     }
105 105
                                     echo '>'.$pasien.'</option>';
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             </form>    
149 149
                    
150 150
                 </div>
151
-                <?php for ($i = 0; $i <= 20; $i++) {
151
+                <?php for ($i = 0; $i<=20; $i++) {
152 152
                 ?>
153 153
                     <br />
154 154
                     <?php
Please login to merge, or discard this patch.