@@ -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 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - error_reporting(0);session_start(); |
|
| 3 | + error_reporting(0); session_start(); |
|
| 4 | 4 | |
| 5 | 5 | include './../../config/koneksi.php'; |
| 6 | 6 | |
@@ -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;"> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -error_reporting(0);session_start(); |
|
| 3 | +error_reporting(0); session_start(); |
|
| 4 | 4 | |
| 5 | 5 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
|
| 6 | 6 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
|
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | |
| 428 | 428 | |
| 429 | 429 | |
| 430 | - <?php if ($size == '10') {
|
|
| 430 | + <?php if ($size=='10') {
|
|
| 431 | 431 | ?> |
| 432 | 432 | |
| 433 | 433 | <option value="10" selected="selected">10</option> |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | |
| 444 | 444 | |
| 445 | 445 | |
| 446 | - <?php if ($size == '15') {
|
|
| 446 | + <?php if ($size=='15') {
|
|
| 447 | 447 | ?> |
| 448 | 448 | |
| 449 | 449 | <option value="15" selected="selected">15</option> |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | |
| 460 | 460 | |
| 461 | 461 | |
| 462 | - <?php if ($size == '20') {
|
|
| 462 | + <?php if ($size=='20') {
|
|
| 463 | 463 | ?> |
| 464 | 464 | |
| 465 | 465 | <option value="20" selected="selected">20</option> |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | |
| 477 | 477 | |
| 478 | - <?php if ($size == '50') {
|
|
| 478 | + <?php if ($size=='50') {
|
|
| 479 | 479 | ?> |
| 480 | 480 | |
| 481 | 481 | <option value="50" selected="selected">20</option> |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | |
| 492 | 492 | |
| 493 | 493 | |
| 494 | - <?php if ($size == '100') {
|
|
| 494 | + <?php if ($size=='100') {
|
|
| 495 | 495 | ?> |
| 496 | 496 | |
| 497 | 497 | <option value="100" selected="selected">100</option> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -error_reporting(0);session_start(); |
|
| 3 | +error_reporting(0); session_start(); |
|
| 4 | 4 | |
| 5 | 5 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
|
| 6 | 6 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
|
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | // Hapus modul |
| 27 | 27 | |
| 28 | - if ($module == 'kasir' and $act == 'hapus') {
|
|
| 28 | + if ($module=='kasir' and $act=='hapus') {
|
|
| 29 | 29 | $id = $_GET['id']; |
| 30 | 30 | |
| 31 | 31 | $id_module = $_GET['id_module']; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | // Input group |
| 55 | 55 | |
| 56 | - elseif ($module == 'kasir' and $act == 'input') {
|
|
| 56 | + elseif ($module=='kasir' and $act=='input') {
|
|
| 57 | 57 | $id_module = $_POST['id_module']; |
| 58 | 58 | |
| 59 | 59 | if ($_POST['ID']) {
|
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | <?php |
| 125 | - } elseif ($module == 'kasir' and $act == 'add') {
|
|
| 125 | + } elseif ($module=='kasir' and $act=='add') {
|
|
| 126 | 126 | $id_module = $_POST['id_module']; |
| 127 | 127 | |
| 128 | 128 | $k_ID = $_POST['k_ID']; |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | |
| 243 | 243 | |
| 244 | 244 | <?php |
| 245 | - } elseif ($module == 'kasir' and $act == 'dhapus') {
|
|
| 245 | + } elseif ($module=='kasir' and $act=='dhapus') {
|
|
| 246 | 246 | $id = $_GET['id']; |
| 247 | 247 | |
| 248 | 248 | $id_module = $_GET['id_module']; |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | WHERE id_kasir_detail = '$id'"); |
| 259 | 259 | |
| 260 | 260 | header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&ID='.$k_ID);
|
| 261 | - } elseif ($module == 'kasir' and $act == 'verified') {
|
|
| 261 | + } elseif ($module=='kasir' and $act=='verified') {
|
|
| 262 | 262 | $id = $_GET['id']; |
| 263 | 263 | |
| 264 | 264 | $id_module = $_GET['id_module']; |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | "); |
| 311 | 311 | |
| 312 | 312 | header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save¬rans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet);
|
| 313 | - } elseif ($module == 'kasir' and $act == 'reset') {
|
|
| 313 | + } elseif ($module=='kasir' and $act=='reset') {
|
|
| 314 | 314 | $id = $_GET['id']; |
| 315 | 315 | |
| 316 | 316 | $id_module = $_GET['id_module']; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - error_reporting(0);session_start(); |
|
| 3 | + error_reporting(0); session_start(); |
|
| 4 | 4 | |
| 5 | 5 | include '../../config/koneksi.php'; |
| 6 | 6 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 17 | 17 | $business_type = $_SESSION['business_type']; |
| 18 | 18 | |
| 19 | 19 | // Hapus modul |
| 20 | - if ($module == 'groupmodul' and $act == 'hapus') { |
|
| 20 | + if ($module=='groupmodul' and $act=='hapus') { |
|
| 21 | 21 | $id = $_GET['id']; |
| 22 | 22 | |
| 23 | 23 | mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id"); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | // Input groupmodul |
| 31 | - elseif ($module == 'groupmodul' and $act == 'input') { |
|
| 31 | + elseif ($module=='groupmodul' and $act=='input') { |
|
| 32 | 32 | $jum = $_POST['jum']; |
| 33 | 33 | |
| 34 | 34 | mysql_query("DELETE FROM groupmodul WHERE id_groups = '$_POST[groups]' AND id_modul = '$_POST[imenu]'"); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | ,'$userid' |
| 49 | 49 | ,'Y')"); |
| 50 | 50 | |
| 51 | - for ($i = 1; $i <= $jum; $i++) { |
|
| 51 | + for ($i = 1; $i<=$jum; $i++) { |
|
| 52 | 52 | $id = $_POST['id'.$i]; |
| 53 | 53 | $modul = $_POST['modul'.$i]; |
| 54 | 54 | |
@@ -1,5 +1,5 @@ discard block |
||
| 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 {
|
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | if ($id) {
|
| 45 | 45 | $query = mysql_query('SELECT * FROM groupmodul WHERE id_groupmodul = "'.$id.'"');
|
| 46 | - if ($query && mysql_num_rows($query) == 1) {
|
|
| 46 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 47 | 47 | $data = mysql_fetch_object($query); |
| 48 | 48 | } else {
|
| 49 | 49 | die('Data groupmodul tidak ditemukan');
|
@@ -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; |
@@ -57,11 +57,11 @@ discard block |
||
| 57 | 57 | echo"<td><b>$r[nama_modul]</b></td>"; |
| 58 | 58 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 59 | 59 | echo" <td style='text-align:center;'>"; |
| 60 | - if ($r_edit == 'Y') {
|
|
| 60 | + if ($r_edit=='Y') {
|
|
| 61 | 61 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&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>"; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - if ($r_delete == 'Y') {
|
|
| 64 | + if ($r_delete=='Y') {
|
|
| 65 | 65 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 66 | 66 | } |
| 67 | 67 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
| 86 | 86 | echo"<td style='text-align:right;'>"; |
| 87 | - if ($r_delete == 'Y') {
|
|
| 87 | + if ($r_delete=='Y') {
|
|
| 88 | 88 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 89 | 89 | } |
| 90 | 90 | echo'</td>'; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | echo"<td>$r[kategori]</td>"; |
| 74 | 74 | echo" <td style='text-align:center;'>"; |
| 75 | 75 | |
| 76 | - if ($r_edit == 'Y') {
|
|
| 76 | + if ($r_edit=='Y') {
|
|
| 77 | 77 | //if ($status == '0') {
|
| 78 | 78 | 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>"; |
| 79 | 79 | // } else {
|
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | // } |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - if ($r_delete == 'Y') {
|
|
| 84 | + if ($r_delete=='Y') {
|
|
| 85 | 85 | //if ($status == '0') {
|
| 86 | 86 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_kunjungan_berobat]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 87 | 87 | |