@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'");
|
| 172 | 172 | $r = mysql_fetch_array($tampil); |
| 173 | 173 | |
| 174 | - if ($r['orientation'] == 'P') {
|
|
| 174 | + if ($r['orientation']=='P') {
|
|
| 175 | 175 | ?> |
| 176 | 176 | |
| 177 | 177 | <SCRIPT TYPE="text/javascript"> |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | </SCRIPT> |
| 188 | 188 | |
| 189 | 189 | <?php |
| 190 | - } elseif ($r['orientation'] == 'A') {
|
|
| 190 | + } elseif ($r['orientation']=='A') {
|
|
| 191 | 191 | ?> |
| 192 | 192 | |
| 193 | 193 | <SCRIPT TYPE="text/javascript"> |
@@ -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 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) {
|
| 5 | 5 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
|
| 6 | 6 | } else {
|
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | $prd = $p['periode']; |
| 25 | 25 | |
| 26 | - if ($module == 'pengaturan_sistem' and $act == 'ip') {
|
|
| 26 | + if ($module=='pengaturan_sistem' and $act=='ip') {
|
|
| 27 | 27 | $id_module = $_POST['id_module']; |
| 28 | 28 | |
| 29 | 29 | $lokasi_file = $_FILES['fupload']['tmp_name']; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $id = $_POST['ID']; |
| 63 | 63 | |
| 64 | 64 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
|
| 65 | - } elseif ($module == 'pengaturan_sistem' and $act == 'sa') {
|
|
| 65 | + } elseif ($module=='pengaturan_sistem' and $act=='sa') {
|
|
| 66 | 66 | mysql_query("UPDATE pg_setoran_awal SET jenis = '$_POST[jenis]'
|
| 67 | 67 | ,nilai = '$_POST[nilai]' |
| 68 | 68 | ,id_jenis_posting = '$_POST[jenis_posting]' |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | AND prd = '$prd' |
| 75 | 75 | "); |
| 76 | 76 | |
| 77 | - if ($_POST['u_tab'] == '1') {
|
|
| 77 | + if ($_POST['u_tab']=='1') {
|
|
| 78 | 78 | mysql_query("DELETE FROM pembukaan_tabungan
|
| 79 | 79 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
| 80 | 80 | AND status = '2' |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | "); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - if ($_POST['u_tab'] == '2') {
|
|
| 119 | + if ($_POST['u_tab']=='2') {
|
|
| 120 | 120 | mysql_query("DELETE FROM pembukaan_tabungan
|
| 121 | 121 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
| 122 | 122 | AND status = '2' |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | $id = $_POST['ID']; |
| 161 | 161 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
|
| 162 | - } elseif ($module == 'pengaturan_sistem' and $act == 'pd') {
|
|
| 162 | + } elseif ($module=='pengaturan_sistem' and $act=='pd') {
|
|
| 163 | 163 | mysql_query("UPDATE pg_penarikan_dana SET max_pencairan = '$_POST[max_pencairan]'
|
| 164 | 164 | ,max_penarikan = '$_POST[max_penarikan]' |
| 165 | 165 | ,jeda_waktu = '$_POST[jeda_waktu]' |
@@ -174,8 +174,8 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | $id = $_POST['ID']; |
| 176 | 176 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
|
| 177 | - } elseif ($module == 'pengaturan_sistem' and $act == 'pm') {
|
|
| 178 | - if ($_POST[stab] == 'tunai') {
|
|
| 177 | + } elseif ($module=='pengaturan_sistem' and $act=='pm') {
|
|
| 178 | + if ($_POST[stab]=='tunai') {
|
|
| 179 | 179 | mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_k]'
|
| 180 | 180 | ,max_tenor = '$_POST[max_tenor_k]' |
| 181 | 181 | ,max_pinjaman = '$_POST[max_pinjaman_k]' |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | $stab = $_POST['stab']; |
| 273 | 273 | |
| 274 | 274 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule.'&stab='.$stab);
|
| 275 | - } elseif ($module == 'pengaturan_sistem' and $act == 'ln') {
|
|
| 275 | + } elseif ($module=='pengaturan_sistem' and $act=='ln') {
|
|
| 276 | 276 | mysql_query("UPDATE pg_lainnya SET harga_saham = '$_POST[harga_saham]'
|
| 277 | 277 | ,rek_shu = '$_POST[rek_shu]' |
| 278 | 278 | ,ftgl = '$_POST[ftgl]' |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | $id = $_POST['ID']; |
| 289 | 289 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
|
| 290 | - } elseif ($module == 'pengaturan_sistem' and $act == 'jr') {
|
|
| 290 | + } elseif ($module=='pengaturan_sistem' and $act=='jr') {
|
|
| 291 | 291 | mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi = '$_POST[jenis_transaksi]'
|
| 292 | 292 | ,id_modul = '$_POST[modul]' |
| 293 | 293 | ,upddt = '$datetime' |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | |
| 299 | 299 | $id = $_POST['ID']; |
| 300 | 300 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule);
|
| 301 | - } elseif ($module == 'pengaturan_sistem' and $act == 'pl') {
|
|
| 301 | + } elseif ($module=='pengaturan_sistem' and $act=='pl') {
|
|
| 302 | 302 | mysql_query("UPDATE pg_plafon SET plafon = '$_POST[plafon]'
|
| 303 | 303 | ,upddt = '$datetime' |
| 304 | 304 | ,updby = '$userid' |
@@ -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 {
|
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | <ul class="nav nav-tabs"> |
| 112 | 112 | |
| 113 | - <li <?php if ($tab == 'ip') {
|
|
| 113 | + <li <?php if ($tab=='ip') {
|
|
| 114 | 114 | echo 'class="active"'; |
| 115 | 115 | } ?> ><a data-toggle="tab" href="#home">Informasi Perusahaan</a> |
| 116 | 116 | </li> |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | <div class="tab-content"> |
| 126 | 126 | |
| 127 | - <div id="home" class="tab-pane fade <?php if ($tab == 'ip') {
|
|
| 127 | + <div id="home" class="tab-pane fade <?php if ($tab=='ip') {
|
|
| 128 | 128 | echo 'in active primary'; |
| 129 | 129 | } ?>"> |
| 130 | 130 | <br> |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | if ($id) {
|
| 140 | 140 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"');
|
| 141 | - if ($query && mysql_num_rows($query) == 1) {
|
|
| 141 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 142 | 142 | $data = mysql_fetch_object($query); |
| 143 | 143 | } else {
|
| 144 | 144 | die('Data general_setting tidak ditemukan');
|
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | |
| 224 | 224 | </div> |
| 225 | 225 | |
| 226 | - <div id="menu1" class="tab-pane fade <?php if ($tab == 'sa') {
|
|
| 226 | + <div id="menu1" class="tab-pane fade <?php if ($tab=='sa') {
|
|
| 227 | 227 | echo 'in active primary'; |
| 228 | 228 | } ?>"> |
| 229 | 229 | <br> |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $no = 1; |
| 262 | 262 | |
| 263 | 263 | while ($r = mysql_fetch_array($tampil)) {
|
| 264 | - if ($r['nilai'] == '0') {
|
|
| 264 | + if ($r['nilai']=='0') {
|
|
| 265 | 265 | $disabled = 'readonly'; |
| 266 | 266 | } else {
|
| 267 | 267 | $disabled = ''; |
@@ -287,10 +287,10 @@ discard block |
||
| 287 | 287 | <select name="jenis_posting" class="form-control" required > |
| 288 | 288 | <?php |
| 289 | 289 | $query = mysql_query('SELECT * FROM jenis_posting ORDER BY jenis_posting');
|
| 290 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 290 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 291 | 291 | while ($row = mysql_fetch_object($query)) {
|
| 292 | 292 | echo '<option value="'.$row->id_jenis_posting.'"'; |
| 293 | - if ($row->id_jenis_posting == $r['id_jenis_posting']) {
|
|
| 293 | + if ($row->id_jenis_posting==$r['id_jenis_posting']) {
|
|
| 294 | 294 | echo ' selected'; |
| 295 | 295 | } |
| 296 | 296 | echo '>'.$row->jenis_posting.'</option>'; |
@@ -308,10 +308,10 @@ discard block |
||
| 308 | 308 | WHERE parentid != "0" |
| 309 | 309 | |
| 310 | 310 | ORDER BY norek'); |
| 311 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 311 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 312 | 312 | while ($row = mysql_fetch_object($query)) {
|
| 313 | 313 | echo '<option value="'.$row->id_rekening.'"'; |
| 314 | - if ($row->id_rekening == $r['rek_debet']) {
|
|
| 314 | + if ($row->id_rekening==$r['rek_debet']) {
|
|
| 315 | 315 | echo ' selected'; |
| 316 | 316 | } |
| 317 | 317 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -329,10 +329,10 @@ discard block |
||
| 329 | 329 | WHERE parentid != "0" |
| 330 | 330 | |
| 331 | 331 | ORDER BY norek'); |
| 332 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 332 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 333 | 333 | while ($row = mysql_fetch_object($query)) {
|
| 334 | 334 | echo '<option value="'.$row->id_rekening.'"'; |
| 335 | - if ($row->id_rekening == $r['rek_kredit']) {
|
|
| 335 | + if ($row->id_rekening==$r['rek_kredit']) {
|
|
| 336 | 336 | echo ' selected'; |
| 337 | 337 | } |
| 338 | 338 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | |
| 376 | 376 | </div> |
| 377 | 377 | |
| 378 | - <div id="menu2" class="tab-pane fade <?php if ($tab == 'pd') {
|
|
| 378 | + <div id="menu2" class="tab-pane fade <?php if ($tab=='pd') {
|
|
| 379 | 379 | echo 'in active primary'; |
| 380 | 380 | } ?>"> |
| 381 | 381 | <br> |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | if ($id) {
|
| 389 | 389 | $query = mysql_query('SELECT * FROM pg_penarikan_dana
|
| 390 | 390 | WHERE prd = "'.$prd.'" '); |
| 391 | - if ($query && mysql_num_rows($query) == 1) {
|
|
| 391 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 392 | 392 | $data = mysql_fetch_object($query); |
| 393 | 393 | } else {
|
| 394 | 394 | die('Data pg_penarikan_dana tidak ditemukan');
|
@@ -455,10 +455,10 @@ discard block |
||
| 455 | 455 | WHERE parentid != "0" |
| 456 | 456 | |
| 457 | 457 | ORDER BY norek'); |
| 458 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 458 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 459 | 459 | while ($row = mysql_fetch_object($query)) {
|
| 460 | 460 | echo '<option value="'.$row->id_rekening.'"'; |
| 461 | - if ($row->id_rekening == $data->rek_debet) {
|
|
| 461 | + if ($row->id_rekening==$data->rek_debet) {
|
|
| 462 | 462 | echo ' selected'; |
| 463 | 463 | } |
| 464 | 464 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -477,10 +477,10 @@ discard block |
||
| 477 | 477 | WHERE parentid != "0" |
| 478 | 478 | |
| 479 | 479 | ORDER BY norek'); |
| 480 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 480 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 481 | 481 | while ($row = mysql_fetch_object($query)) {
|
| 482 | 482 | echo '<option value="'.$row->id_rekening.'"'; |
| 483 | - if ($row->id_rekening == $data->rek_kredit) {
|
|
| 483 | + if ($row->id_rekening==$data->rek_kredit) {
|
|
| 484 | 484 | echo ' selected'; |
| 485 | 485 | } |
| 486 | 486 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -511,7 +511,7 @@ discard block |
||
| 511 | 511 | |
| 512 | 512 | </div> |
| 513 | 513 | |
| 514 | - <div id="menu3" class="tab-pane fade <?php if ($tab == 'pm') {
|
|
| 514 | + <div id="menu3" class="tab-pane fade <?php if ($tab=='pm') {
|
|
| 515 | 515 | echo 'in active primary'; |
| 516 | 516 | } ?>"> |
| 517 | 517 | <br> |
@@ -519,11 +519,11 @@ discard block |
||
| 519 | 519 | |
| 520 | 520 | <ul class="nav nav-tabs" > |
| 521 | 521 | |
| 522 | - <li <?php if ($stab == 'tunai') {
|
|
| 522 | + <li <?php if ($stab=='tunai') {
|
|
| 523 | 523 | echo 'class="active"'; |
| 524 | 524 | } ?> ><a data-toggle="tab" href="#tunai">Dana Tunai</a> |
| 525 | 525 | </li> |
| 526 | - <li <?php if ($stab == 'barang') {
|
|
| 526 | + <li <?php if ($stab=='barang') {
|
|
| 527 | 527 | echo 'class="active"'; |
| 528 | 528 | } ?> ><a data-toggle="tab" href="#barang">Barang</a> |
| 529 | 529 | </li> |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | |
| 532 | 532 | <div class="tab-content"> |
| 533 | 533 | |
| 534 | - <div id="tunai" class="tab-pane fade <?php if ($stab == 'tunai') {
|
|
| 534 | + <div id="tunai" class="tab-pane fade <?php if ($stab=='tunai') {
|
|
| 535 | 535 | echo 'in active primary'; |
| 536 | 536 | } ?>"> |
| 537 | 537 | <br> |
@@ -604,10 +604,10 @@ discard block |
||
| 604 | 604 | $query = mysql_query('SELECT * FROM rekening
|
| 605 | 605 | WHERE parentid != "0" |
| 606 | 606 | ORDER BY norek'); |
| 607 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 607 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 608 | 608 | while ($row = mysql_fetch_object($query)) {
|
| 609 | 609 | echo '<option value="'.$row->id_rekening.'"'; |
| 610 | - if ($row->id_rekening == $k['rek_debet']) {
|
|
| 610 | + if ($row->id_rekening==$k['rek_debet']) {
|
|
| 611 | 611 | echo ' selected'; |
| 612 | 612 | } |
| 613 | 613 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -623,10 +623,10 @@ discard block |
||
| 623 | 623 | $query = mysql_query('SELECT * FROM rekening
|
| 624 | 624 | WHERE parentid != "0" |
| 625 | 625 | ORDER BY norek'); |
| 626 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 626 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 627 | 627 | while ($row = mysql_fetch_object($query)) {
|
| 628 | 628 | echo '<option value="'.$row->id_rekening.'"'; |
| 629 | - if ($row->id_rekening == $k['rek_kredit']) {
|
|
| 629 | + if ($row->id_rekening==$k['rek_kredit']) {
|
|
| 630 | 630 | echo ' selected'; |
| 631 | 631 | } |
| 632 | 632 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -654,10 +654,10 @@ discard block |
||
| 654 | 654 | $query = mysql_query('SELECT * FROM rekening
|
| 655 | 655 | WHERE parentid != "0" |
| 656 | 656 | ORDER BY norek'); |
| 657 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 657 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 658 | 658 | while ($row = mysql_fetch_object($query)) {
|
| 659 | 659 | echo '<option value="'.$row->id_rekening.'"'; |
| 660 | - if ($row->id_rekening == $k['rek_debet_pelunasan']) {
|
|
| 660 | + if ($row->id_rekening==$k['rek_debet_pelunasan']) {
|
|
| 661 | 661 | echo ' selected'; |
| 662 | 662 | } |
| 663 | 663 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -673,10 +673,10 @@ discard block |
||
| 673 | 673 | $query = mysql_query('SELECT * FROM rekening
|
| 674 | 674 | WHERE parentid != "0" |
| 675 | 675 | ORDER BY norek'); |
| 676 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 676 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 677 | 677 | while ($row = mysql_fetch_object($query)) {
|
| 678 | 678 | echo '<option value="'.$row->id_rekening.'"'; |
| 679 | - if ($row->id_rekening == $k['rek_kredit_pelunasan']) {
|
|
| 679 | + if ($row->id_rekening==$k['rek_kredit_pelunasan']) {
|
|
| 680 | 680 | echo ' selected'; |
| 681 | 681 | } |
| 682 | 682 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -832,10 +832,10 @@ discard block |
||
| 832 | 832 | WHERE parentid != "0" |
| 833 | 833 | |
| 834 | 834 | ORDER BY norek'); |
| 835 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 835 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 836 | 836 | while ($row = mysql_fetch_object($query)) {
|
| 837 | 837 | echo '<option value="'.$row->id_rekening.'"'; |
| 838 | - if ($row->id_rekening == $k['rek_debet_bunga']) {
|
|
| 838 | + if ($row->id_rekening==$k['rek_debet_bunga']) {
|
|
| 839 | 839 | echo ' selected'; |
| 840 | 840 | } |
| 841 | 841 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -851,10 +851,10 @@ discard block |
||
| 851 | 851 | $query = mysql_query('SELECT * FROM rekening
|
| 852 | 852 | WHERE parentid != "0" |
| 853 | 853 | ORDER BY norek'); |
| 854 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 854 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 855 | 855 | while ($row = mysql_fetch_object($query)) {
|
| 856 | 856 | echo '<option value="'.$row->id_rekening.'"'; |
| 857 | - if ($row->id_rekening == $k['rek_kredit_bunga']) {
|
|
| 857 | + if ($row->id_rekening==$k['rek_kredit_bunga']) {
|
|
| 858 | 858 | echo ' selected'; |
| 859 | 859 | } |
| 860 | 860 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -898,10 +898,10 @@ discard block |
||
| 898 | 898 | $query = mysql_query('SELECT * FROM rekening
|
| 899 | 899 | WHERE parentid != "0" |
| 900 | 900 | ORDER BY norek'); |
| 901 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 901 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 902 | 902 | while ($row = mysql_fetch_object($query)) {
|
| 903 | 903 | echo '<option value="'.$row->id_rekening.'"'; |
| 904 | - if ($row->id_rekening == $k['rek_debet_ipoint']) {
|
|
| 904 | + if ($row->id_rekening==$k['rek_debet_ipoint']) {
|
|
| 905 | 905 | echo ' selected'; |
| 906 | 906 | } |
| 907 | 907 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -917,10 +917,10 @@ discard block |
||
| 917 | 917 | $query = mysql_query('SELECT * FROM rekening
|
| 918 | 918 | WHERE parentid != "0" |
| 919 | 919 | ORDER BY norek'); |
| 920 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 920 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 921 | 921 | while ($row = mysql_fetch_object($query)) {
|
| 922 | 922 | echo '<option value="'.$row->id_rekening.'"'; |
| 923 | - if ($row->id_rekening == $k['rek_kredit_ipoint']) {
|
|
| 923 | + if ($row->id_rekening==$k['rek_kredit_ipoint']) {
|
|
| 924 | 924 | echo ' selected'; |
| 925 | 925 | } |
| 926 | 926 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1040,7 +1040,7 @@ discard block |
||
| 1040 | 1040 | |
| 1041 | 1041 | </div> |
| 1042 | 1042 | |
| 1043 | - <div id="barang" class="tab-pane fade <?php if ($stab == 'barang') {
|
|
| 1043 | + <div id="barang" class="tab-pane fade <?php if ($stab=='barang') {
|
|
| 1044 | 1044 | echo 'in active primary'; |
| 1045 | 1045 | } ?>"> |
| 1046 | 1046 | <br> |
@@ -1109,10 +1109,10 @@ discard block |
||
| 1109 | 1109 | $query = mysql_query('SELECT * FROM rekening
|
| 1110 | 1110 | WHERE parentid != "0" |
| 1111 | 1111 | ORDER BY norek'); |
| 1112 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1112 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1113 | 1113 | while ($row = mysql_fetch_object($query)) {
|
| 1114 | 1114 | echo '<option value="'.$row->id_rekening.'"'; |
| 1115 | - if ($row->id_rekening == $k['rek_debet']) {
|
|
| 1115 | + if ($row->id_rekening==$k['rek_debet']) {
|
|
| 1116 | 1116 | echo ' selected'; |
| 1117 | 1117 | } |
| 1118 | 1118 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1128,10 +1128,10 @@ discard block |
||
| 1128 | 1128 | $query = mysql_query('SELECT * FROM rekening
|
| 1129 | 1129 | WHERE parentid != "0" |
| 1130 | 1130 | ORDER BY norek'); |
| 1131 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1131 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1132 | 1132 | while ($row = mysql_fetch_object($query)) {
|
| 1133 | 1133 | echo '<option value="'.$row->id_rekening.'"'; |
| 1134 | - if ($row->id_rekening == $k['rek_kredit']) {
|
|
| 1134 | + if ($row->id_rekening==$k['rek_kredit']) {
|
|
| 1135 | 1135 | echo ' selected'; |
| 1136 | 1136 | } |
| 1137 | 1137 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1160,10 +1160,10 @@ discard block |
||
| 1160 | 1160 | $query = mysql_query('SELECT * FROM rekening
|
| 1161 | 1161 | WHERE parentid != "0" |
| 1162 | 1162 | ORDER BY norek'); |
| 1163 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1163 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1164 | 1164 | while ($row = mysql_fetch_object($query)) {
|
| 1165 | 1165 | echo '<option value="'.$row->id_rekening.'"'; |
| 1166 | - if ($row->id_rekening == $k['rek_debet_pelunasan']) {
|
|
| 1166 | + if ($row->id_rekening==$k['rek_debet_pelunasan']) {
|
|
| 1167 | 1167 | echo ' selected'; |
| 1168 | 1168 | } |
| 1169 | 1169 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1179,10 +1179,10 @@ discard block |
||
| 1179 | 1179 | $query = mysql_query('SELECT * FROM rekening
|
| 1180 | 1180 | WHERE parentid != "0" |
| 1181 | 1181 | ORDER BY norek'); |
| 1182 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1182 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1183 | 1183 | while ($row = mysql_fetch_object($query)) {
|
| 1184 | 1184 | echo '<option value="'.$row->id_rekening.'"'; |
| 1185 | - if ($row->id_rekening == $k['rek_kredit_pelunasan']) {
|
|
| 1185 | + if ($row->id_rekening==$k['rek_kredit_pelunasan']) {
|
|
| 1186 | 1186 | echo ' selected'; |
| 1187 | 1187 | } |
| 1188 | 1188 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1338,10 +1338,10 @@ discard block |
||
| 1338 | 1338 | WHERE parentid != "0" |
| 1339 | 1339 | |
| 1340 | 1340 | ORDER BY norek'); |
| 1341 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1341 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1342 | 1342 | while ($row = mysql_fetch_object($query)) {
|
| 1343 | 1343 | echo '<option value="'.$row->id_rekening.'"'; |
| 1344 | - if ($row->id_rekening == $k['rek_debet_bunga']) {
|
|
| 1344 | + if ($row->id_rekening==$k['rek_debet_bunga']) {
|
|
| 1345 | 1345 | echo ' selected'; |
| 1346 | 1346 | } |
| 1347 | 1347 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1357,10 +1357,10 @@ discard block |
||
| 1357 | 1357 | $query = mysql_query('SELECT * FROM rekening
|
| 1358 | 1358 | WHERE parentid != "0" |
| 1359 | 1359 | ORDER BY norek'); |
| 1360 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1360 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1361 | 1361 | while ($row = mysql_fetch_object($query)) {
|
| 1362 | 1362 | echo '<option value="'.$row->id_rekening.'"'; |
| 1363 | - if ($row->id_rekening == $k['rek_kredit_bunga']) {
|
|
| 1363 | + if ($row->id_rekening==$k['rek_kredit_bunga']) {
|
|
| 1364 | 1364 | echo ' selected'; |
| 1365 | 1365 | } |
| 1366 | 1366 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1404,10 +1404,10 @@ discard block |
||
| 1404 | 1404 | $query = mysql_query('SELECT * FROM rekening
|
| 1405 | 1405 | WHERE parentid != "0" |
| 1406 | 1406 | ORDER BY norek'); |
| 1407 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1407 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1408 | 1408 | while ($row = mysql_fetch_object($query)) {
|
| 1409 | 1409 | echo '<option value="'.$row->id_rekening.'"'; |
| 1410 | - if ($row->id_rekening == $k['rek_debet_ipoint']) {
|
|
| 1410 | + if ($row->id_rekening==$k['rek_debet_ipoint']) {
|
|
| 1411 | 1411 | echo ' selected'; |
| 1412 | 1412 | } |
| 1413 | 1413 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1423,10 +1423,10 @@ discard block |
||
| 1423 | 1423 | $query = mysql_query('SELECT * FROM rekening
|
| 1424 | 1424 | WHERE parentid != "0" |
| 1425 | 1425 | ORDER BY norek'); |
| 1426 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1426 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1427 | 1427 | while ($row = mysql_fetch_object($query)) {
|
| 1428 | 1428 | echo '<option value="'.$row->id_rekening.'"'; |
| 1429 | - if ($row->id_rekening == $k['rek_kredit_ipoint']) {
|
|
| 1429 | + if ($row->id_rekening==$k['rek_kredit_ipoint']) {
|
|
| 1430 | 1430 | echo ' selected'; |
| 1431 | 1431 | } |
| 1432 | 1432 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1552,7 +1552,7 @@ discard block |
||
| 1552 | 1552 | |
| 1553 | 1553 | </div> |
| 1554 | 1554 | |
| 1555 | - <div id="menu4" class="tab-pane fade <?php if ($tab == 'pl') {
|
|
| 1555 | + <div id="menu4" class="tab-pane fade <?php if ($tab=='pl') {
|
|
| 1556 | 1556 | echo 'in active primary'; |
| 1557 | 1557 | } ?>"> |
| 1558 | 1558 | <br> |
@@ -1593,10 +1593,10 @@ discard block |
||
| 1593 | 1593 | <select name="jenis_pinjaman" class="form-control" disabled> |
| 1594 | 1594 | <?php |
| 1595 | 1595 | $query = mysql_query('SELECT * FROM jenis_pinjaman ORDER BY jenis_pinjaman');
|
| 1596 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1596 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1597 | 1597 | while ($row = mysql_fetch_object($query)) {
|
| 1598 | 1598 | echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
| 1599 | - if ($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) {
|
|
| 1599 | + if ($row->id_jenis_pinjaman==$r['id_jenis_pinjaman']) {
|
|
| 1600 | 1600 | echo ' selected'; |
| 1601 | 1601 | } |
| 1602 | 1602 | echo '>'.$row->jenis_pinjaman.'</option>'; |
@@ -1645,7 +1645,7 @@ discard block |
||
| 1645 | 1645 | |
| 1646 | 1646 | </div> |
| 1647 | 1647 | |
| 1648 | - <div id="menu5" class="tab-pane fade <?php if ($tab == 'jr') {
|
|
| 1648 | + <div id="menu5" class="tab-pane fade <?php if ($tab=='jr') {
|
|
| 1649 | 1649 | echo 'in active primary'; |
| 1650 | 1650 | } ?>"> |
| 1651 | 1651 | <br> |
@@ -1683,10 +1683,10 @@ discard block |
||
| 1683 | 1683 | <select name="modul" class="form-control" required > |
| 1684 | 1684 | <?php |
| 1685 | 1685 | $query = mysql_query('SELECT * FROM modul WHERE jurnal = "Y" and aktif = "Y" ORDER BY nama_modul');
|
| 1686 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1686 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1687 | 1687 | while ($row = mysql_fetch_object($query)) {
|
| 1688 | 1688 | echo '<option value="'.$row->id_modul.'"'; |
| 1689 | - if ($row->id_modul == $r['id_modul']) {
|
|
| 1689 | + if ($row->id_modul==$r['id_modul']) {
|
|
| 1690 | 1690 | echo ' selected'; |
| 1691 | 1691 | } |
| 1692 | 1692 | echo '>'.$row->nama_modul.'</option>'; |
@@ -1704,10 +1704,10 @@ discard block |
||
| 1704 | 1704 | FROM jenis_transaksi a inner join tipe_transaksi b |
| 1705 | 1705 | ON a.id_tipe_transaksi = b.id_tipe_transaksi |
| 1706 | 1706 | ORDER BY a.id_tipe_transaksi,a.id_jenis_transaksi'); |
| 1707 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1707 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1708 | 1708 | while ($row = mysql_fetch_object($query)) {
|
| 1709 | 1709 | echo '<option value="'.$row->id_jenis_transaksi.'"'; |
| 1710 | - if ($row->id_jenis_transaksi == $r['id_jenis_transaksi']) {
|
|
| 1710 | + if ($row->id_jenis_transaksi==$r['id_jenis_transaksi']) {
|
|
| 1711 | 1711 | echo ' selected'; |
| 1712 | 1712 | } |
| 1713 | 1713 | echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
@@ -1752,7 +1752,7 @@ discard block |
||
| 1752 | 1752 | |
| 1753 | 1753 | |
| 1754 | 1754 | |
| 1755 | - <div id="menu6" class="tab-pane fade <?php if ($tab == 'ln') {
|
|
| 1755 | + <div id="menu6" class="tab-pane fade <?php if ($tab=='ln') {
|
|
| 1756 | 1756 | echo 'in active primary'; |
| 1757 | 1757 | } ?>"> |
| 1758 | 1758 | <br> |
@@ -1769,7 +1769,7 @@ discard block |
||
| 1769 | 1769 | WHERE prd = "'.$prd.'" |
| 1770 | 1770 | '); |
| 1771 | 1771 | |
| 1772 | - if ($query && mysql_num_rows($query) == 1) {
|
|
| 1772 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 1773 | 1773 | $data = mysql_fetch_object($query); |
| 1774 | 1774 | } else {
|
| 1775 | 1775 | die('Data general_setting tidak ditemukan');
|
@@ -1804,10 +1804,10 @@ discard block |
||
| 1804 | 1804 | $query = mysql_query('SELECT * FROM rekening
|
| 1805 | 1805 | WHERE parentid != "0" |
| 1806 | 1806 | ORDER BY norek'); |
| 1807 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 1807 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 1808 | 1808 | while ($row = mysql_fetch_object($query)) {
|
| 1809 | 1809 | echo '<option value="'.$row->id_rekening.'"'; |
| 1810 | - if ($row->id_rekening == $data->rek_shu) {
|
|
| 1810 | + if ($row->id_rekening==$data->rek_shu) {
|
|
| 1811 | 1811 | echo ' selected'; |
| 1812 | 1812 | } |
| 1813 | 1813 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -2083,7 +2083,7 @@ discard block |
||
| 2083 | 2083 | |
| 2084 | 2084 | if ($id) {
|
| 2085 | 2085 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"');
|
| 2086 | - if ($query && mysql_num_rows($query) == 1) {
|
|
| 2086 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 2087 | 2087 | $data = mysql_fetch_object($query); |
| 2088 | 2088 | } else {
|
| 2089 | 2089 | die('Data general_setting tidak ditemukan');
|
@@ -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 == 'groups' and $act == 'hapus') { |
|
| 20 | + if ($module=='groups' 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 == 'groups' and $act == 'input') { |
|
| 37 | + elseif ($module=='groups' and $act=='input') { |
|
| 38 | 38 | $id_module = $_POST['id_module']; |
| 39 | 39 | |
| 40 | 40 | if ($_POST['ID']) { |
@@ -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 {
|
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | if ($id) {
|
| 46 | 46 | $query = mysql_query('SELECT * FROM groups WHERE id_groups = "'.$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');
|
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | <?php if ($id) {
|
| 89 | 89 | ?> |
| 90 | 90 | |
| 91 | - <?php if (@$data->aktif == 'Y') {
|
|
| 91 | + <?php if (@$data->aktif=='Y') {
|
|
| 92 | 92 | ?> |
| 93 | 93 | |
| 94 | 94 | <div class="form-group"> |
@@ -58,11 +58,11 @@ |
||
| 58 | 58 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 59 | 59 | echo" <td style='text-align:center;'>"; |
| 60 | 60 | |
| 61 | - if ($r_edit == 'Y') {
|
|
| 61 | + if ($r_edit=='Y') {
|
|
| 62 | 62 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groups=$r[id_groups]&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>"; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - if ($r_delete == 'Y') {
|
|
| 65 | + if ($r_delete=='Y') {
|
|
| 66 | 66 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groups]&id_module=$id' onClick=\"return confirm('Delete this record ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 67 | 67 | } |
| 68 | 68 | echo'</td>'; |
@@ -94,12 +94,12 @@ discard block |
||
| 94 | 94 | <option>--Pilih Pasien--</option> |
| 95 | 95 | <?php |
| 96 | 96 | $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
|
| 97 | - if ($query && mysql_num_rows($query) > 0) {
|
|
| 97 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 98 | 98 | while ($row = mysql_fetch_object($query)) {
|
| 99 | 99 | $pasien = $row->ktp.'-'.$row->nama; |
| 100 | 100 | |
| 101 | 101 | echo '<option value="'.$row->id_pasien.'"'; |
| 102 | - if ($row->id_pasien == @$data->id_pasien) {
|
|
| 102 | + if ($row->id_pasien==@$data->id_pasien) {
|
|
| 103 | 103 | echo ' selected'; |
| 104 | 104 | } |
| 105 | 105 | echo '>'.$pasien.'</option>'; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | </form> |
| 149 | 149 | |
| 150 | 150 | </div> |
| 151 | - <?php for ($i = 0; $i <= 20; $i++) {
|
|
| 151 | + <?php for ($i = 0; $i<=20; $i++) {
|
|
| 152 | 152 | ?> |
| 153 | 153 | <br /> |
| 154 | 154 | <?php |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | $nmmodule = ucwords($r['nama_modul']); |
| 12 | 12 | $id = $r['id_modul']; |
| 13 | 13 | |
| 14 | -if ($r['orientation'] == 'P') {
|
|
| 14 | +if ($r['orientation']=='P') {
|
|
| 15 | 15 | $orientation = 'portrait'; |
| 16 | 16 | } else {
|
| 17 | 17 | $orientation = 'landscape'; |
@@ -139,7 +139,7 @@ discard block |
||
| 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 |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | $tgl_lahir = date('d/m/Y', strtotime($r['tgl_lahir']));
|
| 208 | 208 | |
| 209 | -if ($r['gender'] == 'L') {
|
|
| 209 | +if ($r['gender']=='L') {
|
|
| 210 | 210 | $gender = 'Laki-laki'; |
| 211 | 211 | } else {
|
| 212 | 212 | $gender = 'Perempuan'; |
@@ -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 | |