@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $business_type = $_SESSION['business_type']; |
| 18 | 18 | |
| 19 | 19 | // Hapus modul |
| 20 | - if ($module == 'pasien' and $act == 'hapus') { |
|
| 20 | + if ($module=='pasien' and $act=='hapus') { |
|
| 21 | 21 | $id = $_GET['id']; |
| 22 | 22 | $id_module = $_GET['id_module']; |
| 23 | 23 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | // Input group |
| 37 | - elseif ($module == 'pasien' and $act == 'input') { |
|
| 37 | + elseif ($module=='pasien' and $act=='input') { |
|
| 38 | 38 | $id_module = $_POST['id_module']; |
| 39 | 39 | |
| 40 | 40 | if ($_POST['ID']) { |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | echo"<td>$r[tindakan]</td>"; |
| 76 | 76 | echo" <td style='text-align:center;'>"; |
| 77 | 77 | |
| 78 | - if ($r_edit == 'Y') { |
|
| 78 | + if ($r_edit=='Y') { |
|
| 79 | 79 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | if ($id) { |
| 46 | 46 | $query = mysql_query('SELECT * FROM pasien WHERE id_pasien = "'.$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'); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | <?php if ($id) { |
| 95 | 95 | ?> |
| 96 | 96 | |
| 97 | - <?php if (@$data->gender == 'L') { |
|
| 97 | + <?php if (@$data->gender=='L') { |
|
| 98 | 98 | ?> |
| 99 | 99 | |
| 100 | 100 | <div class="form-group"> |
@@ -143,10 +143,10 @@ discard block |
||
| 143 | 143 | <select name="agama" class="form-control"> |
| 144 | 144 | <?php |
| 145 | 145 | $query = mysql_query('SELECT * FROM agama ORDER BY agama'); |
| 146 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 146 | + if ($query && mysql_num_rows($query)>0) { |
|
| 147 | 147 | while ($row = mysql_fetch_object($query)) { |
| 148 | 148 | echo '<option value="'.$row->id_agama.'"'; |
| 149 | - if ($row->id_agama == @$data->id_agama) { |
|
| 149 | + if ($row->id_agama==@$data->id_agama) { |
|
| 150 | 150 | echo ' selected'; |
| 151 | 151 | } |
| 152 | 152 | echo '>'.$row->agama.'</option>'; |
@@ -161,10 +161,10 @@ discard block |
||
| 161 | 161 | <select name="kategori" class="form-control"> |
| 162 | 162 | <?php |
| 163 | 163 | $query = mysql_query('SELECT * FROM kategori ORDER BY kategori'); |
| 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_kategori.'"'; |
| 167 | - if ($row->id_kategori == @$data->id_kategori) { |
|
| 167 | + if ($row->id_kategori==@$data->id_kategori) { |
|
| 168 | 168 | echo ' selected'; |
| 169 | 169 | } |
| 170 | 170 | echo '>'.$row->kategori.'</option>'; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | <?php if ($id) { |
| 192 | 192 | ?> |
| 193 | 193 | |
| 194 | - <?php if (@$data->aktif == 'Y') { |
|
| 194 | + <?php if (@$data->aktif=='Y') { |
|
| 195 | 195 | ?> |
| 196 | 196 | |
| 197 | 197 | <div class="form-group"> |
@@ -12,7 +12,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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>"; |
@@ -55,7 +55,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -44,7 +44,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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"> |
@@ -44,7 +44,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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>'; |
@@ -64,14 +64,14 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -387,7 +387,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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> |