Passed
Push — master ( 3d9c29...b0d6c4 )
by Saepul
04:54
created
modul/mod_rekam_medis/aksi_rekam_medis.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     $userid = $_SESSION['userid'];
17 17
     $business_type = $_SESSION['business_type'];
18 18
 
19
-    if ($module == 'rekam_medis' and $act == 'update') {
19
+    if ($module=='rekam_medis' and $act=='update') {
20 20
         $id_module = $_POST['id_module'];
21 21
 
22 22
         mysql_query("UPDATE kunjungan_berobat SET keluhan   = '$_POST[keluhan]'
Please login to merge, or discard this patch.
modul/mod_report_list_pasien/print_report_list_pasien.php 1 patch
Spacing   +5 added lines, -5 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';
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
 <!--<body onload="cetakspk()">-->
137 137
 
138
-<?php if ($_GET['printto'] == '2') {
138
+<?php if ($_GET['printto']=='2') {
139 139
     ?>
140 140
 <body onload="icetak()">
141 141
 <?php
@@ -227,14 +227,14 @@  discard block
 block discarded – undo
227 227
                             while ($r = mysql_fetch_array($tampil)) {
228 228
                                 $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
229 229
 
230
-                                if ($r['gender'] == 'L') {
230
+                                if ($r['gender']=='L') {
231 231
                                     $gender = 'Laki-laki';
232 232
                                 } else {
233 233
                                     $gender = 'Perempuan';
234 234
                                 }
235 235
 
236
-                                $ktp = ($r['ktp'] != '') ? $r['ktp'] : '-';
237
-                                $bpjs = ($r['bpjs'] != '') ? $r['bpjs'] : '-';
236
+                                $ktp = ($r['ktp']!='') ? $r['ktp'] : '-';
237
+                                $bpjs = ($r['bpjs']!='') ? $r['bpjs'] : '-';
238 238
 
239 239
                                 echo'<tr>';
240 240
                                 echo"<td>$r[nama]</td>";
Please login to merge, or discard this patch.
modul/mod_obat/obat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
             while ($r = mysql_fetch_array($tampil)) {
57 57
                 $jumlah = number_format($r[jumlah], 0, '', '.');
58
-                $kadaluwarsa = ($r[kadaluwarsa] != '') ? date('d/m/Y', strtotime($r[kadaluwarsa])) : '-';
58
+                $kadaluwarsa = ($r[kadaluwarsa]!='') ? date('d/m/Y', strtotime($r[kadaluwarsa])) : '-';
59 59
 
60 60
                 echo'<tr>';
61 61
                 echo"<td>$r[obat]</td>";
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 echo"<td style='text-align:center;'>$r[aktif]</td>";
66 66
                 echo" <td  style='text-align:center;'>";
67 67
 
68
-                if ($r_edit == 'Y') {
68
+                if ($r_edit=='Y') {
69 69
                     echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&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>";
70 70
                 }
71 71
 
Please login to merge, or discard this patch.
modul/mod_obat/form_obat.php 1 patch
Spacing   +4 added lines, -4 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 obat WHERE id_obat = "'.$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');
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
                     <select name="satuan" class="form-control">
85 85
                         <?php
86 86
                         $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
87
-        if ($query && mysql_num_rows($query) > 0) {
87
+        if ($query && mysql_num_rows($query)>0) {
88 88
             while ($row = mysql_fetch_object($query)) {
89 89
                 echo '<option value="'.$row->id_satuan.'"';
90
-                if ($row->id_satuan == @$data->id_satuan) {
90
+                if ($row->id_satuan==@$data->id_satuan) {
91 91
                     echo ' selected';
92 92
                 }
93 93
                 echo '>'.$row->satuan.'</option>';
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 <?php if ($id) {
117 117
             ?>
118 118
 
119
-                <?php if (@$data->aktif == 'Y') {
119
+                <?php if (@$data->aktif=='Y') {
120 120
                 ?>
121 121
 
122 122
                 <div class="form-group">
Please login to merge, or discard this patch.
modul/mod_kunjungan_berobat/form_kunjungan_berobat.php 1 patch
Spacing   +6 added lines, -6 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 kunjungan_berobat WHERE id_kunjungan_berobat = "'.$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');
@@ -92,16 +92,16 @@  discard block
 block discarded – undo
92 92
                  <option>--Pilih Pasien--</option>                
93 93
                     <?php
94 94
                         $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
95
-        if ($query && mysql_num_rows($query) > 0) {
95
+        if ($query && mysql_num_rows($query)>0) {
96 96
             while ($row = mysql_fetch_object($query)) {
97
-                if ($row->ktp != '') {
97
+                if ($row->ktp!='') {
98 98
                     $pasien = sprintf('%s - %s', $row->ktp, ($row->nama));
99 99
                 } else {
100 100
                     $pasien = ($row->nama);
101 101
                 }
102 102
 
103 103
                 echo '<option value="'.$row->id_pasien.'"';
104
-                if ($row->id_pasien == @$data->id_pasien) {
104
+                if ($row->id_pasien==@$data->id_pasien) {
105 105
                     echo ' selected';
106 106
                 }
107 107
                 echo '>'.$pasien.'</option>';
@@ -117,10 +117,10 @@  discard block
 block discarded – undo
117 117
                  <option>--Pilih Poliklinik --</option>                          
118 118
                     <?php
119 119
                         $query = mysql_query('SELECT * FROM poli ORDER BY poli');
120
-        if ($query && mysql_num_rows($query) > 0) {
120
+        if ($query && mysql_num_rows($query)>0) {
121 121
             while ($row = mysql_fetch_object($query)) {
122 122
                 echo '<option value="'.$row->id_poli.'"';
123
-                if ($row->id_poli == @$data->id_poli) {
123
+                if ($row->id_poli==@$data->id_poli) {
124 124
                     echo ' selected';
125 125
                 }
126 126
                 echo '>'.$row->poli.'</option>';
Please login to merge, or discard this patch.
modul/mod_pasien/pasien.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
                             while ($r = mysql_fetch_array($tampil)) {
65 65
                                 $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
66 66
 
67
-                                if ($r['gender'] == 'L') {
67
+                                if ($r['gender']=='L') {
68 68
                                     $gender = 'Laki-laki';
69 69
                                 } else {
70 70
                                     $gender = 'Perempuan';
71 71
                                 }
72 72
 
73
-                                $ktp = ($r['ktp'] != '') ? $r['ktp'] : '-';
74
-                                $bpjs = ($r['bpjs'] != '') ? $r['bpjs'] : '-';
73
+                                $ktp = ($r['ktp']!='') ? $r['ktp'] : '-';
74
+                                $bpjs = ($r['bpjs']!='') ? $r['bpjs'] : '-';
75 75
 
76 76
                                 echo'<tr>';
77 77
                                 echo"<td>$r[nama]</td>";
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
                             <?php
95 95
 
96
-                            if ($r_edit == 'Y') {
96
+                            if ($r_edit=='Y') {
97 97
                                 echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_pasien=$r[id_pasien]&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>";
98 98
                             }
99 99
 
Please login to merge, or discard this patch.
modul/mod_pasien/cetak_pasien.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 
388 388
 $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
389 389
 
390
-if ($r['gender'] == 'L') {
390
+if ($r['gender']=='L') {
391 391
     $gender = 'Laki-laki';
392 392
 } else {
393 393
     $gender = 'Perempuan';
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 <tr>
400 400
     <td width='30%'>NIP</td>
401 401
     <td width='1%'>:</td>
402
-    <td><?php echo ($r['ktp'] != '') ? $r['ktp'] : '-'; ?></td>
402
+    <td><?php echo ($r['ktp']!='') ? $r['ktp'] : '-'; ?></td>
403 403
 </tr>
404 404
 <tr>
405 405
     <td width='30%'>Nama</td>
@@ -416,11 +416,11 @@  discard block
 block discarded – undo
416 416
     <td width='1%'>:</td>
417 417
     <td><?=$r['kategori']; ?></td>
418 418
 </tr>
419
-<?php if (strtolower($r['kategori']) == 'bpjs'):?>
419
+<?php if (strtolower($r['kategori'])=='bpjs'):?>
420 420
 <tr>
421 421
     <td width='30%'>No. BPJS</td>
422 422
     <td width='1%'>:</td>
423
-    <td><?php echo ($r['bpjs'] != '') ? $r['bpjs'] : '-'; ?></td>
423
+    <td><?php echo ($r['bpjs']!='') ? $r['bpjs'] : '-'; ?></td>
424 424
 </tr>
425 425
 <?php endif; ?>
426 426
 </table>    
Please login to merge, or discard this patch.
modul/mod_rekam_medis/form_rekam_medis.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         if ($id) {
47 47
             $query = mysql_query('SELECT * FROM kunjungan_berobat WHERE id_kunjungan_berobat = "'.$id.'"');
48
-            if ($query && mysql_num_rows($query) == 1) {
48
+            if ($query && mysql_num_rows($query)==1) {
49 49
                 $data = mysql_fetch_object($query);
50 50
             } else {
51 51
                 die('Data modul tidak ditemukan');
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
                         <option>--Pilih Pasien --</option>
93 93
                         <?php
94 94
                             $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
95
-        if ($query && mysql_num_rows($query) > 0) {
95
+        if ($query && mysql_num_rows($query)>0) {
96 96
             while ($row = mysql_fetch_object($query)) {
97 97
                 $pasien = $row->ktp.'-'.$row->nama;
98
-                $selected = ($row->id_pasien == @$data->id_pasien) ? 'selected' : '';
98
+                $selected = ($row->id_pasien==@$data->id_pasien) ? 'selected' : '';
99 99
                 printf('<option value="%s" %s>%s</option>', $row->id_pasien, $selected, $pasien);
100 100
             }
101 101
         } ?>
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
                         <option>--Pilih Poliklinik --</option>
111 111
                         <?php
112 112
                             $query = mysql_query('SELECT * FROM poli ORDER BY poli');
113
-        if ($query && mysql_num_rows($query) > 0) {
113
+        if ($query && mysql_num_rows($query)>0) {
114 114
             while ($row = mysql_fetch_object($query)) {
115
-                $selected = ($row->id_poli == @$data->id_poli) ? 'selected' : '';
115
+                $selected = ($row->id_poli==@$data->id_poli) ? 'selected' : '';
116 116
                 printf('<option value="%s" %s>%s</option>', $row->id_poli, $selected, $row->poli);
117 117
             }
118 118
         } ?>
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
                         <option>--Pilih Penyakit --</option>
128 128
                         <?php
129 129
                             $query = mysql_query('SELECT * FROM penyakit ORDER BY penyakit');
130
-        if ($query && mysql_num_rows($query) > 0) {
130
+        if ($query && mysql_num_rows($query)>0) {
131 131
             while ($row = mysql_fetch_object($query)) {
132
-                $selected = ($row->id_penyakit == @$data->id_penyakit) ? 'selected' : '';
132
+                $selected = ($row->id_penyakit==@$data->id_penyakit) ? 'selected' : '';
133 133
                 printf('<option value="%s" %s>%s</option>', $row->id_penyakit, $selected, $row->penyakit);
134 134
             }
135 135
         } ?>
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                 </div>
168 168
             </div>
169 169
 
170
-            <?php if (@$data->rujukan == 'Y') {
170
+            <?php if (@$data->rujukan=='Y') {
171 171
             ?>
172 172
             <div class="form-group">
173 173
                 <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Rujukan
Please login to merge, or discard this patch.
modul/mod_report_stok/print_report_stok.php 1 patch
Spacing   +3 added lines, -3 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
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
                     $stok = $r[jumlah] + $r[keluar];
236 236
 
237
-                    $kadaluwarsa = ($r[kadaluwarsa] != '') ? date('d/m/Y', strtotime($r[kadaluwarsa])) : '-';
237
+                    $kadaluwarsa = ($r[kadaluwarsa]!='') ? date('d/m/Y', strtotime($r[kadaluwarsa])) : '-';
238 238
 
239 239
                     echo'<tr>';
240 240
                     echo"<td style='text-align:center;'>$no</td>";
Please login to merge, or discard this patch.