@@ -125,7 +125,7 @@ |
||
| 125 | 125 | </form> |
| 126 | 126 | |
| 127 | 127 | </div> |
| 128 | - <?php for ($i = 0; $i <= 20; $i++) { |
|
| 128 | + <?php for ($i = 0; $i<=20; $i++) { |
|
| 129 | 129 | ?> |
| 130 | 130 | <br /> |
| 131 | 131 | <?php |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | </form> |
| 126 | 126 | |
| 127 | 127 | </div> |
| 128 | - <?php for ($i = 0; $i <= 20; $i++) { |
|
| 128 | + <?php for ($i = 0; $i<=20; $i++) { |
|
| 129 | 129 | ?> |
| 130 | 130 | <br /> |
| 131 | 131 | <?php |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $business_type = $_SESSION['business_type']; |
| 18 | 18 | |
| 19 | 19 | // Hapus modul |
| 20 | - if ($module == 'resep_obat' and $act == 'dhapus') { |
|
| 20 | + if ($module=='resep_obat' and $act=='dhapus') { |
|
| 21 | 21 | $id = $_GET['id']; |
| 22 | 22 | $id_module = $_GET['id_module']; |
| 23 | 23 | $id_kunjungan_berobat = $_GET['id_kunjungan_berobat']; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Input group |
| 36 | - elseif ($module == 'resep_obat' and $act == 'input') { |
|
| 36 | + elseif ($module=='resep_obat' and $act=='input') { |
|
| 37 | 37 | $id_module = $_POST['id_module']; |
| 38 | 38 | $id_kunjungan_berobat = $_POST['id_kunjungan_berobat']; |
| 39 | 39 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | header('location:form_'.$module.'.php?id_kunjungan_berobat='.$id_kunjungan_berobat.'&module='.$module.'&id_module='.$id_modul); |
| 81 | 81 | } // Input group |
| 82 | - elseif ($module == 'resep_obat' and $act == 'close') { |
|
| 82 | + elseif ($module=='resep_obat' and $act=='close') { |
|
| 83 | 83 | $id_module = $_POST['id_module']; ?> |
| 84 | 84 | |
| 85 | 85 | <script language="javascript"> |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | echo'</td>'; |
| 94 | 94 | echo" <td style='text-align:center;'>"; |
| 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_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=620&module=$module&TB_iframe=true' title='Tambah $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 98 | 98 | } |
| 99 | 99 | |
@@ -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>"; |
@@ -503,13 +503,13 @@ discard block |
||
| 503 | 503 | |
| 504 | 504 | <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd¬rans=$notrans&kode=$kode&outlet=$outlet"; ?>'" |
| 505 | 505 | |
| 506 | - class="btn btn-success" <?php if ($status != '0') { |
|
| 506 | + class="btn btn-success" <?php if ($status!='0') { |
|
| 507 | 507 | echo 'disabled'; |
| 508 | 508 | } ?>>Ubah</button> |
| 509 | 509 | |
| 510 | 510 | |
| 511 | 511 | |
| 512 | - <?php if ($status == '0') { |
|
| 512 | + <?php if ($status=='0') { |
|
| 513 | 513 | ?> |
| 514 | 514 | |
| 515 | 515 | <?php |
@@ -591,11 +591,11 @@ discard block |
||
| 591 | 591 | |
| 592 | 592 | $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY id_shift'); |
| 593 | 593 | |
| 594 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 594 | + if ($query && mysql_num_rows($query)>0) { |
|
| 595 | 595 | while ($row = mysql_fetch_object($query)) { |
| 596 | 596 | echo '<option value="'.$row->id_shift.'"'; |
| 597 | 597 | |
| 598 | - if ($row->id_shift == $shift) { |
|
| 598 | + if ($row->id_shift==$shift) { |
|
| 599 | 599 | echo ' selected'; |
| 600 | 600 | } |
| 601 | 601 | |
@@ -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 | |
@@ -815,11 +815,11 @@ discard block |
||
| 815 | 815 | |
| 816 | 816 | $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift'); |
| 817 | 817 | |
| 818 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 818 | + if ($query && mysql_num_rows($query)>0) { |
|
| 819 | 819 | while ($row = mysql_fetch_object($query)) { |
| 820 | 820 | echo '<option value="'.$row->id_shift.'"'; |
| 821 | 821 | |
| 822 | - if ($row->id_shift == $shift) { |
|
| 822 | + if ($row->id_shift==$shift) { |
|
| 823 | 823 | echo ' selected'; |
| 824 | 824 | } |
| 825 | 825 | |
@@ -925,11 +925,11 @@ discard block |
||
| 925 | 925 | |
| 926 | 926 | $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi'); |
| 927 | 927 | |
| 928 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 928 | + if ($query && mysql_num_rows($query)>0) { |
|
| 929 | 929 | while ($row = mysql_fetch_object($query)) { |
| 930 | 930 | echo '<option value="'.$row->id_jenis_transaksi.'"'; |
| 931 | 931 | |
| 932 | - if ($row->id_jenis_transaksi == @$data->id_jenis_transaksi) { |
|
| 932 | + if ($row->id_jenis_transaksi==@$data->id_jenis_transaksi) { |
|
| 933 | 933 | echo ' selected'; |
| 934 | 934 | } |
| 935 | 935 | |
@@ -970,11 +970,11 @@ discard block |
||
| 970 | 970 | |
| 971 | 971 | $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran'); |
| 972 | 972 | |
| 973 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 973 | + if ($query && mysql_num_rows($query)>0) { |
|
| 974 | 974 | while ($row = mysql_fetch_object($query)) { |
| 975 | 975 | echo '<option value="'.$row->id_jenis_pembayaran.'"'; |
| 976 | 976 | |
| 977 | - if ($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) { |
|
| 977 | + if ($row->id_jenis_pembayaran==@$data->id_jenis_pembayaran) { |
|
| 978 | 978 | echo ' selected'; |
| 979 | 979 | } |
| 980 | 980 | |
@@ -997,11 +997,11 @@ discard block |
||
| 997 | 997 | |
| 998 | 998 | $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin'); |
| 999 | 999 | |
| 1000 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 1000 | + if ($query && mysql_num_rows($query)>0) { |
|
| 1001 | 1001 | while ($row = mysql_fetch_object($query)) { |
| 1002 | 1002 | echo '<option value="'.$row->id_penjamin.'"'; |
| 1003 | 1003 | |
| 1004 | - if ($row->id_penjamin == @$data->id_penjamin) { |
|
| 1004 | + if ($row->id_penjamin==@$data->id_penjamin) { |
|
| 1005 | 1005 | echo ' selected'; |
| 1006 | 1006 | } |
| 1007 | 1007 | |
@@ -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 | |
@@ -1217,7 +1217,7 @@ discard block |
||
| 1217 | 1217 | |
| 1218 | 1218 | $jml = mysql_num_rows($dsql); |
| 1219 | 1219 | |
| 1220 | -if ($jml > 0) { |
|
| 1220 | +if ($jml>0) { |
|
| 1221 | 1221 | |
| 1222 | 1222 | // $readonly = 'readonly'; |
| 1223 | 1223 | |
@@ -1341,11 +1341,11 @@ discard block |
||
| 1341 | 1341 | |
| 1342 | 1342 | $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift'); |
| 1343 | 1343 | |
| 1344 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 1344 | + if ($query && mysql_num_rows($query)>0) { |
|
| 1345 | 1345 | while ($row = mysql_fetch_object($query)) { |
| 1346 | 1346 | echo '<option value="'.$row->id_shift.'"'; |
| 1347 | 1347 | |
| 1348 | - if ($row->id_shift == $shift) { |
|
| 1348 | + if ($row->id_shift==$shift) { |
|
| 1349 | 1349 | echo ' selected'; |
| 1350 | 1350 | } |
| 1351 | 1351 | |
@@ -1635,11 +1635,11 @@ discard block |
||
| 1635 | 1635 | |
| 1636 | 1636 | $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift'); |
| 1637 | 1637 | |
| 1638 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 1638 | + if ($query && mysql_num_rows($query)>0) { |
|
| 1639 | 1639 | while ($row = mysql_fetch_object($query)) { |
| 1640 | 1640 | echo '<option value="'.$row->id_shift.'"'; |
| 1641 | 1641 | |
| 1642 | - if ($row->id_shift == $shift) { |
|
| 1642 | + if ($row->id_shift==$shift) { |
|
| 1643 | 1643 | echo ' selected'; |
| 1644 | 1644 | } |
| 1645 | 1645 | |
@@ -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 | |
@@ -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;"> |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $jml = ($lday - $fday) + 1; |
| 92 | 92 | |
| 93 | 93 | if ($_GET['ldate']) { |
| 94 | - if ($lmonth == $fmonth and $lyear == $fyear) { |
|
| 94 | + if ($lmonth==$fmonth and $lyear==$fyear) { |
|
| 95 | 95 | $jcol = $jml; |
| 96 | 96 | } else { |
| 97 | 97 | $jcol = $f_jml + $l_jml; |
@@ -120,10 +120,10 @@ discard block |
||
| 120 | 120 | <option value="">--------- Room Type ---------</option> |
| 121 | 121 | <?php |
| 122 | 122 | $query = mysql_query('SELECT * FROM room_type ORDER BY room_type'); |
| 123 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 123 | + if ($query && mysql_num_rows($query)>0) { |
|
| 124 | 124 | while ($row = mysql_fetch_object($query)) { |
| 125 | 125 | echo '<option value="'.$row->id_room_type.'"'; |
| 126 | - if ($row->id_room_type == $_GET['room_type']) { |
|
| 126 | + if ($row->id_room_type==$_GET['room_type']) { |
|
| 127 | 127 | echo ' selected'; |
| 128 | 128 | } |
| 129 | 129 | echo '>'.$row->room_type.'</option>'; |
@@ -156,9 +156,9 @@ discard block |
||
| 156 | 156 | <?php |
| 157 | 157 | $col = (83 / $jcol); |
| 158 | 158 | |
| 159 | - if ($lmonth == $fmonth and $lyear == $fyear) { |
|
| 160 | - for ($i = $fday; $i <= $lday; $i++) { |
|
| 161 | - if (strlen($i) == '1') { |
|
| 159 | + if ($lmonth==$fmonth and $lyear==$fyear) { |
|
| 160 | + for ($i = $fday; $i<=$lday; $i++) { |
|
| 161 | + if (strlen($i)=='1') { |
|
| 162 | 162 | $tgl = '0'.$i; |
| 163 | 163 | } else { |
| 164 | 164 | $tgl = $i; |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | if ($s['sdate']) { |
| 178 | 178 | $bg = '#eba51c'; |
| 179 | - } elseif ($nday == '6' or $nday == '7') { |
|
| 179 | + } elseif ($nday=='6' or $nday=='7') { |
|
| 180 | 180 | $bg = '#eb1c41'; |
| 181 | 181 | } else { |
| 182 | 182 | $bg = ''; |
@@ -191,8 +191,8 @@ discard block |
||
| 191 | 191 | </th>"; |
| 192 | 192 | } |
| 193 | 193 | } else { |
| 194 | - for ($i = $fday; $i <= $f_lastday; $i++) { |
|
| 195 | - if (strlen($i) == '1') { |
|
| 194 | + for ($i = $fday; $i<=$f_lastday; $i++) { |
|
| 195 | + if (strlen($i)=='1') { |
|
| 196 | 196 | $tgl = '0'.$i; |
| 197 | 197 | } else { |
| 198 | 198 | $tgl = $i; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | if ($s['sdate']) { |
| 212 | 212 | $bg = '#eba51c'; |
| 213 | - } elseif ($nday == '6' or $nday == '7') { |
|
| 213 | + } elseif ($nday=='6' or $nday=='7') { |
|
| 214 | 214 | $bg = '#eb1c41'; |
| 215 | 215 | } else { |
| 216 | 216 | $bg = ''; |
@@ -225,8 +225,8 @@ discard block |
||
| 225 | 225 | </th>"; |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - for ($i = 1; $i <= $lday; $i++) { |
|
| 229 | - if (strlen($i) == '1') { |
|
| 228 | + for ($i = 1; $i<=$lday; $i++) { |
|
| 229 | + if (strlen($i)=='1') { |
|
| 230 | 230 | $tgl = '0'.$i; |
| 231 | 231 | } else { |
| 232 | 232 | $tgl = $i; |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | if ($s['sdate']) { |
| 246 | 246 | $bg = '#eba51c'; |
| 247 | - } elseif ($nday == '6' or $nday == '7') { |
|
| 247 | + } elseif ($nday=='6' or $nday=='7') { |
|
| 248 | 248 | $bg = '#eb1c41'; |
| 249 | 249 | } else { |
| 250 | 250 | $bg = ''; |
@@ -286,9 +286,9 @@ discard block |
||
| 286 | 286 | echo'<tr>'; |
| 287 | 287 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type'].'</td>'; |
| 288 | 288 | |
| 289 | - if ($lmonth == $fmonth and $lyear == $fyear) { |
|
| 290 | - for ($i = $fday; $i <= $lday; $i++) { |
|
| 291 | - if (strlen($i) == '1') { |
|
| 289 | + if ($lmonth==$fmonth and $lyear==$fyear) { |
|
| 290 | + for ($i = $fday; $i<=$lday; $i++) { |
|
| 291 | + if (strlen($i)=='1') { |
|
| 292 | 292 | $tgl = '0'.$i; |
| 293 | 293 | } else { |
| 294 | 294 | $tgl = $i; |
@@ -300,8 +300,8 @@ discard block |
||
| 300 | 300 | </td>"; |
| 301 | 301 | } |
| 302 | 302 | } else { |
| 303 | - for ($i = $fday; $i <= $f_lastday; $i++) { |
|
| 304 | - if (strlen($i) == '1') { |
|
| 303 | + for ($i = $fday; $i<=$f_lastday; $i++) { |
|
| 304 | + if (strlen($i)=='1') { |
|
| 305 | 305 | $tgl = '0'.$i; |
| 306 | 306 | } else { |
| 307 | 307 | $tgl = $i; |
@@ -315,8 +315,8 @@ discard block |
||
| 315 | 315 | </td>"; |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - for ($i = 1; $i <= $lday; $i++) { |
|
| 319 | - if (strlen($i) == '1') { |
|
| 318 | + for ($i = 1; $i<=$lday; $i++) { |
|
| 319 | + if (strlen($i)=='1') { |
|
| 320 | 320 | $tgl = '0'.$i; |
| 321 | 321 | } else { |
| 322 | 322 | $tgl = $i; |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | while ($r = mysql_fetch_array($room)) { |
| 342 | 342 | $aktif = $r['aktif']; |
| 343 | 343 | |
| 344 | - if (($no % 2) == 0) { |
|
| 344 | + if (($no % 2)==0) { |
|
| 345 | 345 | $sty = 'ftd'; |
| 346 | 346 | } else { |
| 347 | 347 | $sty = 'ltd'; |
@@ -352,9 +352,9 @@ discard block |
||
| 352 | 352 | echo'<tr>'; |
| 353 | 353 | echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no'].'</td>'; |
| 354 | 354 | |
| 355 | - if ($lmonth == $fmonth and $lyear == $fyear) { |
|
| 356 | - for ($i = $fday; $i <= $lday; $i++) { |
|
| 357 | - if (strlen($i) == '1') { |
|
| 355 | + if ($lmonth==$fmonth and $lyear==$fyear) { |
|
| 356 | + for ($i = $fday; $i<=$lday; $i++) { |
|
| 357 | + if (strlen($i)=='1') { |
|
| 358 | 358 | $tgl = '0'.$i; |
| 359 | 359 | } else { |
| 360 | 360 | $tgl = $i; |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | |
| 365 | 365 | echo"<td class=$sty style='padding:0;'>"; |
| 366 | 366 | |
| 367 | - if ($aktif == 'T') { |
|
| 367 | + if ($aktif=='T') { |
|
| 368 | 368 | echo" |
| 369 | 369 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
| 370 | 370 | "; |
@@ -434,15 +434,15 @@ discard block |
||
| 434 | 434 | $legend = $c['legend']; |
| 435 | 435 | $status = $c['status']; |
| 436 | 436 | |
| 437 | - if ($status == 0) { |
|
| 437 | + if ($status==0) { |
|
| 438 | 438 | $icolor = '#fff'; |
| 439 | 439 | } else { |
| 440 | 440 | $icolor = '#fff'; |
| 441 | 441 | } |
| 442 | 442 | |
| 443 | - if ($status == 0) { |
|
| 443 | + if ($status==0) { |
|
| 444 | 444 | $istatus = 'Reserved'; |
| 445 | - } elseif ($status == 1) { |
|
| 445 | + } elseif ($status==1) { |
|
| 446 | 446 | $istatus = 'Check In'; |
| 447 | 447 | } else { |
| 448 | 448 | $istatus = 'Check Out'; |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | |
| 451 | 451 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
| 452 | 452 | |
| 453 | - if ($c['initial'] == 'Mr ') { |
|
| 453 | + if ($c['initial']=='Mr ') { |
|
| 454 | 454 | $icon = 'fa fa-male'; |
| 455 | 455 | } else { |
| 456 | 456 | $icon = 'fa fa-female'; |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | |
| 461 | 461 | //if ($jml == '1') { |
| 462 | 462 | |
| 463 | - if ($ljml == '0' and $jml == '1' and $njml == '1') { |
|
| 463 | + if ($ljml=='0' and $jml=='1' and $njml=='1') { |
|
| 464 | 464 | echo"<td width='50%'> |
| 465 | 465 | </td>"; |
| 466 | 466 | } |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | } |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | - if ($ljml != '0' and $jml == '1') { |
|
| 480 | + if ($ljml!='0' and $jml=='1') { |
|
| 481 | 481 | echo"<td width='50%'> |
| 482 | 482 | </td>"; |
| 483 | 483 | } |
@@ -489,8 +489,8 @@ discard block |
||
| 489 | 489 | echo'</td>'; |
| 490 | 490 | } |
| 491 | 491 | } else { |
| 492 | - for ($i = $fday; $i <= $f_lastday; $i++) { |
|
| 493 | - if (strlen($i) == '1') { |
|
| 492 | + for ($i = $fday; $i<=$f_lastday; $i++) { |
|
| 493 | + if (strlen($i)=='1') { |
|
| 494 | 494 | $tgl = '0'.$i; |
| 495 | 495 | } else { |
| 496 | 496 | $tgl = $i; |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | |
| 501 | 501 | echo"<td class=$sty style='padding:0;'>"; |
| 502 | 502 | |
| 503 | - if ($aktif == 'T') { |
|
| 503 | + if ($aktif=='T') { |
|
| 504 | 504 | echo" |
| 505 | 505 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
| 506 | 506 | "; |
@@ -532,15 +532,15 @@ discard block |
||
| 532 | 532 | $legend = $c['legend']; |
| 533 | 533 | $status = $c['status']; |
| 534 | 534 | |
| 535 | - if ($status == 0) { |
|
| 535 | + if ($status==0) { |
|
| 536 | 536 | $icolor = '#fff'; |
| 537 | 537 | } else { |
| 538 | 538 | $icolor = '#fff'; |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | - if ($status == 0) { |
|
| 541 | + if ($status==0) { |
|
| 542 | 542 | $istatus = 'Reserved'; |
| 543 | - } elseif ($status == 1) { |
|
| 543 | + } elseif ($status==1) { |
|
| 544 | 544 | $istatus = 'Check In'; |
| 545 | 545 | } else { |
| 546 | 546 | $istatus = 'Check Out'; |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | |
| 549 | 549 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
| 550 | 550 | |
| 551 | - if ($c['initial'] == 'Mr ') { |
|
| 551 | + if ($c['initial']=='Mr ') { |
|
| 552 | 552 | $icon = 'fa fa-male'; |
| 553 | 553 | } else { |
| 554 | 554 | $icon = 'fa fa-female'; |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | } |
| 567 | 567 | } |
| 568 | 568 | |
| 569 | - if ($jml == '1') { |
|
| 569 | + if ($jml=='1') { |
|
| 570 | 570 | echo"<td width='50%'> |
| 571 | 571 | </td>"; |
| 572 | 572 | } |
@@ -576,8 +576,8 @@ discard block |
||
| 576 | 576 | echo'</td>'; |
| 577 | 577 | } |
| 578 | 578 | |
| 579 | - for ($i = 1; $i <= $lday; $i++) { |
|
| 580 | - if (strlen($i) == '1') { |
|
| 579 | + for ($i = 1; $i<=$lday; $i++) { |
|
| 580 | + if (strlen($i)=='1') { |
|
| 581 | 581 | $tgl = '0'.$i; |
| 582 | 582 | } else { |
| 583 | 583 | $tgl = $i; |
@@ -587,7 +587,7 @@ discard block |
||
| 587 | 587 | |
| 588 | 588 | echo"<td class=$sty style='padding:0;'>"; |
| 589 | 589 | |
| 590 | - if ($aktif == 'T') { |
|
| 590 | + if ($aktif=='T') { |
|
| 591 | 591 | echo" |
| 592 | 592 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
| 593 | 593 | "; |
@@ -619,15 +619,15 @@ discard block |
||
| 619 | 619 | $legend = $c['legend']; |
| 620 | 620 | $status = $c['status']; |
| 621 | 621 | |
| 622 | - if ($status == 0) { |
|
| 622 | + if ($status==0) { |
|
| 623 | 623 | $icolor = '#fff'; |
| 624 | 624 | } else { |
| 625 | 625 | $icolor = '#fff'; |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | - if ($status == 0) { |
|
| 628 | + if ($status==0) { |
|
| 629 | 629 | $istatus = 'Reserved'; |
| 630 | - } elseif ($status == 1) { |
|
| 630 | + } elseif ($status==1) { |
|
| 631 | 631 | $istatus = 'Check In'; |
| 632 | 632 | } else { |
| 633 | 633 | $istatus = 'Check Out'; |
@@ -635,7 +635,7 @@ discard block |
||
| 635 | 635 | |
| 636 | 636 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
| 637 | 637 | |
| 638 | - if ($c['initial'] == 'Mr ') { |
|
| 638 | + if ($c['initial']=='Mr ') { |
|
| 639 | 639 | $icon = 'fa fa-male'; |
| 640 | 640 | } else { |
| 641 | 641 | $icon = 'fa fa-female'; |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | } |
| 654 | 654 | } |
| 655 | 655 | |
| 656 | - if ($jml == '1') { |
|
| 656 | + if ($jml=='1') { |
|
| 657 | 657 | echo"<td width='50%'> |
| 658 | 658 | </td>"; |
| 659 | 659 | } |