@@ -330,13 +330,13 @@ discard block |
||
| 330 | 330 | while ($r = mysql_fetch_array($tampil)) { |
| 331 | 331 | $tgl = date('d/m/Y', strtotime($r['tanggal'])); |
| 332 | 332 | |
| 333 | - if ($r['status'] == '0') { |
|
| 333 | + if ($r['status']=='0') { |
|
| 334 | 334 | $istatus = 'Baru'; |
| 335 | - } elseif ($r['status'] == '1') { |
|
| 335 | + } elseif ($r['status']=='1') { |
|
| 336 | 336 | $istatus = 'Disetujui'; |
| 337 | - } elseif ($r['status'] == '2') { |
|
| 337 | + } elseif ($r['status']=='2') { |
|
| 338 | 338 | $istatus = 'Ditolak'; |
| 339 | - } elseif ($r['status'] == '9') { |
|
| 339 | + } elseif ($r['status']=='9') { |
|
| 340 | 340 | $istatus = 'Posting'; |
| 341 | 341 | } else { |
| 342 | 342 | $istatus = 'Dibatalkan'; |
@@ -358,11 +358,11 @@ discard block |
||
| 358 | 358 | |
| 359 | 359 | echo"<td style='text-align:center;'>"; |
| 360 | 360 | |
| 361 | - if ($r_edit == 'Y') { |
|
| 361 | + if ($r_edit=='Y') { |
|
| 362 | 362 | echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 363 | 363 | } |
| 364 | 364 | |
| 365 | - if ($r_delete == 'Y' and $r['status'] == '0') { |
|
| 365 | + if ($r_delete=='Y' and $r['status']=='0') { |
|
| 366 | 366 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
| 367 | 367 | } else { |
| 368 | 368 | echo"<i class='fa fa-trash'></i></span>"; |
@@ -748,7 +748,7 @@ discard block |
||
| 748 | 748 | |
| 749 | 749 | <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID"; ?>'" |
| 750 | 750 | |
| 751 | - class="btn btn-success" <?php if ($status != '0') { |
|
| 751 | + class="btn btn-success" <?php if ($status!='0') { |
|
| 752 | 752 | echo 'disabled'; |
| 753 | 753 | } ?>>Ubah</button> |
| 754 | 754 | |
@@ -1133,11 +1133,11 @@ discard block |
||
| 1133 | 1133 | |
| 1134 | 1134 | echo" <td style='text-align:center;'>"; |
| 1135 | 1135 | |
| 1136 | - if ($r_edit == 'Y') { |
|
| 1136 | + if ($r_edit=='Y') { |
|
| 1137 | 1137 | echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>"; |
| 1138 | 1138 | } |
| 1139 | 1139 | |
| 1140 | - if ($r_delete == 'Y') { |
|
| 1140 | + if ($r_delete=='Y') { |
|
| 1141 | 1141 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>"; |
| 1142 | 1142 | } |
| 1143 | 1143 | |
@@ -1748,7 +1748,7 @@ discard block |
||
| 1748 | 1748 | |
| 1749 | 1749 | $jumlah = number_format($d['jumlah'], 0, '.', ''); |
| 1750 | 1750 | |
| 1751 | - if ($jid == $d_id) { |
|
| 1751 | + if ($jid==$d_id) { |
|
| 1752 | 1752 | echo '<form action="modul/mod_'.$module.'/aksi_'.$module.'.php?module='.$module.'&act=add method="post" name="formData" enctype="multipart/form-data">'; |
| 1753 | 1753 | |
| 1754 | 1754 | echo '<input type="hidden" name="module" value="'.$module.'" />'; |
@@ -1781,9 +1781,9 @@ discard block |
||
| 1781 | 1781 | |
| 1782 | 1782 | $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi'); |
| 1783 | 1783 | |
| 1784 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 1784 | + if ($query && mysql_num_rows($query)>0) { |
|
| 1785 | 1785 | while ($row = mysql_fetch_object($query)) { |
| 1786 | - $selected = ($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) ? 'selected' : ''; |
|
| 1786 | + $selected = ($row->id_jenis_transaksi==@$d['id_jenis_transaksi']) ? 'selected' : ''; |
|
| 1787 | 1787 | printf('<option value="%s" %s>%s</option>', $row->id_jenis_transaksi, $selected, $row->jenis_transaksi); |
| 1788 | 1788 | } |
| 1789 | 1789 | } |
@@ -1806,9 +1806,9 @@ discard block |
||
| 1806 | 1806 | |
| 1807 | 1807 | $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran'); |
| 1808 | 1808 | |
| 1809 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 1809 | + if ($query && mysql_num_rows($query)>0) { |
|
| 1810 | 1810 | while ($row = mysql_fetch_object($query)) { |
| 1811 | - $selected = ($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) ? 'selected' : ''; |
|
| 1811 | + $selected = ($row->id_jenis_pembayaran==@$d['id_jenis_pembayaran']) ? 'selected' : ''; |
|
| 1812 | 1812 | printf('<option value="%s" %s>%s</option>', $row->id_jenis_pembayaran, $selected, $row->jenis_pembayaran); |
| 1813 | 1813 | } |
| 1814 | 1814 | } |
@@ -1824,9 +1824,9 @@ discard block |
||
| 1824 | 1824 | |
| 1825 | 1825 | $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin'); |
| 1826 | 1826 | |
| 1827 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 1827 | + if ($query && mysql_num_rows($query)>0) { |
|
| 1828 | 1828 | while ($row = mysql_fetch_object($query)) { |
| 1829 | - $selected = ($row->id_penjamin == @$d['id_penjamin']) ? 'selected' : ''; |
|
| 1829 | + $selected = ($row->id_penjamin==@$d['id_penjamin']) ? 'selected' : ''; |
|
| 1830 | 1830 | printf('<option value="%s" %s>%s</option>', $row->id_penjamin, $selected, $row->penjamin); |
| 1831 | 1831 | } |
| 1832 | 1832 | } |
@@ -1901,11 +1901,11 @@ discard block |
||
| 1901 | 1901 | |
| 1902 | 1902 | echo" <td style='text-align:center;'>"; |
| 1903 | 1903 | |
| 1904 | - if ($r_edit == 'Y') { |
|
| 1904 | + if ($r_edit=='Y') { |
|
| 1905 | 1905 | echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>"; |
| 1906 | 1906 | } |
| 1907 | 1907 | |
| 1908 | - if ($r_delete == 'Y') { |
|
| 1908 | + if ($r_delete=='Y') { |
|
| 1909 | 1909 | echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>"; |
| 1910 | 1910 | } |
| 1911 | 1911 | |
@@ -389,7 +389,7 @@ discard block |
||
| 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 |
||
| 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> |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | <?php |
| 477 | 477 | |
| 478 | - if ($r[id_shift] == '1') { |
|
| 478 | + if ($r[id_shift]=='1') { |
|
| 479 | 479 | $id_shift = '1'; |
| 480 | 480 | } else { |
| 481 | 481 | $id_shift = '%'; |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | |
| 587 | 587 | ?> |
| 588 | 588 | |
| 589 | - <?php if ($id_shift == '%') { |
|
| 589 | + <?php if ($id_shift=='%') { |
|
| 590 | 590 | ?> |
| 591 | 591 | <tr> |
| 592 | 592 | <th></th> |
@@ -286,21 +286,21 @@ discard block |
||
| 286 | 286 | { |
| 287 | 287 | $abil = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas']; |
| 288 | 288 | |
| 289 | - if ($x < 12) { |
|
| 289 | + if ($x<12) { |
|
| 290 | 290 | return ' '.$abil[$x]; |
| 291 | - } elseif ($x < 20) { |
|
| 291 | + } elseif ($x<20) { |
|
| 292 | 292 | return Terbilang($x - 10).'belas'; |
| 293 | - } elseif ($x < 100) { |
|
| 293 | + } elseif ($x<100) { |
|
| 294 | 294 | return Terbilang($x / 10).' puluh'.Terbilang($x % 10); |
| 295 | - } elseif ($x < 200) { |
|
| 295 | + } elseif ($x<200) { |
|
| 296 | 296 | return ' seratus'.Terbilang($x - 100); |
| 297 | - } elseif ($x < 1000) { |
|
| 297 | + } elseif ($x<1000) { |
|
| 298 | 298 | return Terbilang($x / 100).' ratus'.Terbilang($x % 100); |
| 299 | - } elseif ($x < 2000) { |
|
| 299 | + } elseif ($x<2000) { |
|
| 300 | 300 | return ' seribu'.Terbilang($x - 1000); |
| 301 | - } elseif ($x < 1000000) { |
|
| 301 | + } elseif ($x<1000000) { |
|
| 302 | 302 | return Terbilang($x / 1000).' ribu'.Terbilang($x % 1000); |
| 303 | - } elseif ($x < 1000000000) { |
|
| 303 | + } elseif ($x<1000000000) { |
|
| 304 | 304 | return Terbilang($x / 1000000).' juta'.Terbilang($x % 1000000); |
| 305 | 305 | } |
| 306 | 306 | } |
@@ -469,13 +469,13 @@ discard block |
||
| 469 | 469 | |
| 470 | 470 | $tgl = date('d/m/Y', strtotime($r['tanggal'])); |
| 471 | 471 | |
| 472 | - if ($r['status'] == '0') { |
|
| 472 | + if ($r['status']=='0') { |
|
| 473 | 473 | $istatus = 'Baru'; |
| 474 | -} elseif ($r['status'] == '1') { |
|
| 474 | +} elseif ($r['status']=='1') { |
|
| 475 | 475 | $istatus = 'Disetujui'; |
| 476 | -} elseif ($r['status'] == '2') { |
|
| 476 | +} elseif ($r['status']=='2') { |
|
| 477 | 477 | $istatus = 'Ditolak'; |
| 478 | -} elseif ($r['status'] == '9') { |
|
| 478 | +} elseif ($r['status']=='9') { |
|
| 479 | 479 | $istatus = 'Posting'; |
| 480 | 480 | } else { |
| 481 | 481 | $istatus = 'Dibatalkan'; |
@@ -739,7 +739,7 @@ discard block |
||
| 739 | 739 | |
| 740 | 740 | <th width='15%' class="iborder" style="text-align: right">Harga</th> |
| 741 | 741 | |
| 742 | - <?php if ($mata_uang == '1') { |
|
| 742 | + <?php if ($mata_uang=='1') { |
|
| 743 | 743 | ?> |
| 744 | 744 | |
| 745 | 745 | <th width='15%' class="lborder" style="text-align: right">Total</th> |
@@ -834,7 +834,7 @@ discard block |
||
| 834 | 834 | |
| 835 | 835 | echo'</td>'; |
| 836 | 836 | |
| 837 | - if ($mata_uang == '1') { |
|
| 837 | + if ($mata_uang=='1') { |
|
| 838 | 838 | echo" <td class='border' style='text-align:right;'>"; |
| 839 | 839 | |
| 840 | 840 | echo $total; |
@@ -857,8 +857,8 @@ discard block |
||
| 857 | 857 | $no++; |
| 858 | 858 | } |
| 859 | 859 | |
| 860 | - if ($no < 10) { |
|
| 861 | - while ($no < 10) { |
|
| 860 | + if ($no<10) { |
|
| 861 | + while ($no<10) { |
|
| 862 | 862 | echo '<tr>'; |
| 863 | 863 | |
| 864 | 864 | echo'<td colspan=4> </td>'; |
@@ -895,7 +895,7 @@ discard block |
||
| 895 | 895 | |
| 896 | 896 | $icgtotal = $r['cgtotal']; |
| 897 | 897 | |
| 898 | - if ($mata_uang == '1') { |
|
| 898 | + if ($mata_uang=='1') { |
|
| 899 | 899 | $rterbilang = ucwords(Terbilang($igtotal)).' Rupiah'; |
| 900 | 900 | } else { |
| 901 | 901 | $rterbilang = ucwords(Terbilang($icgtotal)).' '.$cnote; |
@@ -925,7 +925,7 @@ discard block |
||
| 925 | 925 | |
| 926 | 926 | </td> |
| 927 | 927 | |
| 928 | -<?php if ($mata_uang != '1') { |
|
| 928 | +<?php if ($mata_uang!='1') { |
|
| 929 | 929 | ?> |
| 930 | 930 | |
| 931 | 931 | <td style="text-align:right;border-bottom:1px black solid;"> |
@@ -965,7 +965,7 @@ discard block |
||
| 965 | 965 | |
| 966 | 966 | </td> |
| 967 | 967 | |
| 968 | -<?php if ($mata_uang != '1') { |
|
| 968 | +<?php if ($mata_uang!='1') { |
|
| 969 | 969 | ?> |
| 970 | 970 | |
| 971 | 971 | <td style="text-align:right;border-bottom:1px black solid;"> |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | |
| 996 | 996 | </td> |
| 997 | 997 | |
| 998 | -<?php if ($mata_uang != '1') { |
|
| 998 | +<?php if ($mata_uang!='1') { |
|
| 999 | 999 | ?> |
| 1000 | 1000 | |
| 1001 | 1001 | <td style="text-align:right;border-bottom:1px black solid;"> |
@@ -122,10 +122,10 @@ |
||
| 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>'; |
@@ -161,10 +161,10 @@ |
||
| 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>'; |
@@ -92,12 +92,12 @@ 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 | 97 | $pasien = $row->ktp.'-'.$row->nama; |
| 98 | 98 | |
| 99 | 99 | echo '<option value="'.$row->id_pasien.'"'; |
| 100 | - if ($row->id_pasien == @$data->id_pasien) { |
|
| 100 | + if ($row->id_pasien==@$data->id_pasien) { |
|
| 101 | 101 | echo ' selected'; |
| 102 | 102 | } |
| 103 | 103 | echo '>'.$pasien.'</option>'; |
@@ -113,10 +113,10 @@ discard block |
||
| 113 | 113 | <option>--Pilih Poliklinik --</option> |
| 114 | 114 | <?php |
| 115 | 115 | $query = mysql_query('SELECT * FROM poli ORDER BY poli'); |
| 116 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 116 | + if ($query && mysql_num_rows($query)>0) { |
|
| 117 | 117 | while ($row = mysql_fetch_object($query)) { |
| 118 | 118 | echo '<option value="'.$row->id_poli.'"'; |
| 119 | - if ($row->id_poli == @$data->id_poli) { |
|
| 119 | + if ($row->id_poli==@$data->id_poli) { |
|
| 120 | 120 | echo ' selected'; |
| 121 | 121 | } |
| 122 | 122 | echo '>'.$row->poli.'</option>'; |
@@ -74,10 +74,10 @@ discard block |
||
| 74 | 74 | <select name="igroup" class="form-control" autofocus > |
| 75 | 75 | <?php |
| 76 | 76 | $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
| 77 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 77 | + if ($query && mysql_num_rows($query)>0) { |
|
| 78 | 78 | while ($row = mysql_fetch_object($query)) { |
| 79 | 79 | echo '<option value="'.$row->id_groups.'"'; |
| 80 | - if ($row->id_groups == @$data->id_groups) { |
|
| 80 | + if ($row->id_groups==@$data->id_groups) { |
|
| 81 | 81 | echo ' selected'; |
| 82 | 82 | } |
| 83 | 83 | echo '>'.$row->groups.'</option>'; |
@@ -97,10 +97,10 @@ discard block |
||
| 97 | 97 | <option value=''></option> |
| 98 | 98 | <?php |
| 99 | 99 | $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' AND aktif = 'Y' ORDER BY urutan ASC"); |
| 100 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 100 | + if ($query && mysql_num_rows($query)>0) { |
|
| 101 | 101 | while ($row = mysql_fetch_object($query)) { |
| 102 | 102 | echo '<option value="'.$row->id_modul.'"'; |
| 103 | - if ($imenu == $row->id_modul) { |
|
| 103 | + if ($imenu==$row->id_modul) { |
|
| 104 | 104 | echo ' selected'; |
| 105 | 105 | } |
| 106 | 106 | echo '>'.$row->nama_modul.'</option>'; |
@@ -137,12 +137,12 @@ discard block |
||
| 137 | 137 | WHERE a.status_menu = 'C' AND a.aktif = 'Y' AND a.parentid = '$imenu' |
| 138 | 138 | ORDER BY a.urutan ASC"); |
| 139 | 139 | |
| 140 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 140 | + if ($query && mysql_num_rows($query)>0) { |
|
| 141 | 141 | $no = 1; |
| 142 | 142 | while ($row = mysql_fetch_object($query)) { |
| 143 | 143 | $status = $row->status_menu; |
| 144 | 144 | |
| 145 | - if ($row->flag == '1') { |
|
| 145 | + if ($row->flag=='1') { |
|
| 146 | 146 | echo"<input checked type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
| 147 | 147 | } else { |
| 148 | 148 | echo"<input type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | } else { |
| 157 | 157 | $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'C' AND aktif = 'Y' AND parentid= '$imenu' ORDER BY urutan ASC"); |
| 158 | 158 | |
| 159 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 159 | + if ($query && mysql_num_rows($query)>0) { |
|
| 160 | 160 | $no = 1; |
| 161 | 161 | while ($row = mysql_fetch_object($query)) { |
| 162 | 162 | $status = $row->status_menu; |
@@ -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>'; |