@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM satuan WHERE id_satuan = "'.$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'); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | <?php if ($id) { |
82 | 82 | ?> |
83 | 83 | |
84 | - <?php if (@$data->aktif == 'Y') { |
|
84 | + <?php if (@$data->aktif=='Y') { |
|
85 | 85 | ?> |
86 | 86 | |
87 | 87 | <div class="form-group"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | -<?php |
|
2 | -session_start(); |
|
3 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
1 | + <?php |
|
2 | + session_start(); |
|
3 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else { |
6 | - include './../../config/koneksi.php'; ?> |
|
6 | + include './../../config/koneksi.php'; ?> |
|
7 | 7 | <!doctype html> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -33,35 +33,35 @@ discard block |
||
33 | 33 | <body style='background-color:#fff;'> |
34 | 34 | <?php |
35 | 35 | |
36 | -$modul = $_GET['module']; |
|
37 | - $title = $_GET['title']; |
|
36 | + $modul = $_GET['module']; |
|
37 | + $title = $_GET['title']; |
|
38 | 38 | |
39 | - $role = $_SESSION['role']; |
|
39 | + $role = $_SESSION['role']; |
|
40 | 40 | |
41 | - $id_module = $_GET['id_module']; |
|
41 | + $id_module = $_GET['id_module']; |
|
42 | 42 | |
43 | - $id = isset($_GET['id_satuan']) ? intval($_GET['id_satuan']) : false; |
|
43 | + $id = isset($_GET['id_satuan']) ? intval($_GET['id_satuan']) : false; |
|
44 | 44 | |
45 | - if ($id) { |
|
46 | - $query = mysql_query('SELECT * FROM satuan WHERE id_satuan = "'.$id.'"'); |
|
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
48 | - $data = mysql_fetch_object($query); |
|
49 | - } else { |
|
50 | - die('Data modul tidak ditemukan'); |
|
45 | + if ($id) { |
|
46 | + $query = mysql_query('SELECT * FROM satuan WHERE id_satuan = "'.$id.'"'); |
|
47 | + if ($query && mysql_num_rows($query) == 1) { |
|
48 | + $data = mysql_fetch_object($query); |
|
49 | + } else { |
|
50 | + die('Data modul tidak ditemukan'); |
|
51 | + } |
|
51 | 52 | } |
52 | - } |
|
53 | 53 | |
54 | - if ($_GET['igroup']) { |
|
55 | - $group = $_GET['igroup']; |
|
56 | - } else { |
|
57 | - $group = $data->id_satuan; |
|
58 | - } |
|
54 | + if ($_GET['igroup']) { |
|
55 | + $group = $_GET['igroup']; |
|
56 | + } else { |
|
57 | + $group = $data->id_satuan; |
|
58 | + } |
|
59 | 59 | |
60 | - if ($_GET['imenu']) { |
|
61 | - $imenu = $_GET['imenu']; |
|
62 | - } else { |
|
63 | - $imenu = $data->id_modul; |
|
64 | - } ?> |
|
60 | + if ($_GET['imenu']) { |
|
61 | + $imenu = $_GET['imenu']; |
|
62 | + } else { |
|
63 | + $imenu = $data->id_modul; |
|
64 | + } ?> |
|
65 | 65 | |
66 | 66 | |
67 | 67 | <div class="ix_panel"> |
@@ -79,10 +79,10 @@ discard block |
||
79 | 79 | |
80 | 80 | |
81 | 81 | <?php if ($id) { |
82 | - ?> |
|
82 | + ?> |
|
83 | 83 | |
84 | 84 | <?php if (@$data->aktif == 'Y') { |
85 | - ?> |
|
85 | + ?> |
|
86 | 86 | |
87 | 87 | <div class="form-group"> |
88 | 88 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | </div> |
93 | 93 | </div> |
94 | 94 | <?php |
95 | - } else { |
|
96 | - ?> |
|
95 | + } else { |
|
96 | + ?> |
|
97 | 97 | |
98 | 98 | <div class="form-group"> |
99 | 99 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -103,11 +103,11 @@ discard block |
||
103 | 103 | </div> |
104 | 104 | </div> |
105 | 105 | <?php |
106 | - } ?> |
|
107 | - |
|
106 | + } ?> |
|
107 | + |
|
108 | 108 | <?php |
109 | - } else { |
|
110 | - ?> |
|
109 | + } else { |
|
110 | + ?> |
|
111 | 111 | |
112 | 112 | |
113 | 113 | <div class="form-group"> |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | </div> |
120 | 120 | |
121 | 121 | <?php |
122 | - } ?> |
|
122 | + } ?> |
|
123 | 123 | |
124 | 124 | |
125 | 125 |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | <?php |
136 | 136 | |
137 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
137 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
138 | 138 | |
139 | 139 | if ($id) { |
140 | 140 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | <tbody> |
254 | 254 | <?php |
255 | 255 | |
256 | - $SQL = "SELECT* FROM pg_setoran_awal |
|
256 | + $SQL = "SELECT* FROM pg_setoran_awal |
|
257 | 257 | WHERE prd = '$prd' order by id_pg_setoran_awal"; |
258 | 258 | |
259 | 259 | $tampil = mysql_query($SQL); |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
361 | 361 | |
362 | 362 | <?php |
363 | - echo'</form>'; |
|
363 | + echo'</form>'; |
|
364 | 364 | } ?> |
365 | 365 | |
366 | 366 | |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | |
384 | 384 | <?php |
385 | 385 | |
386 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
386 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
387 | 387 | |
388 | 388 | if ($id) { |
389 | 389 | $query = mysql_query('SELECT * FROM pg_penarikan_dana |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | <select name="rek_debet" class="form-control" required > |
452 | 452 | <option value='0'></option> |
453 | 453 | <?php |
454 | - $query = mysql_query('SELECT * FROM rekening |
|
454 | + $query = mysql_query('SELECT * FROM rekening |
|
455 | 455 | WHERE parentid != "0" |
456 | 456 | |
457 | 457 | ORDER BY norek'); |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | <select name="rek_kredit" class="form-control" required > |
474 | 474 | <option value='0'></option> |
475 | 475 | <?php |
476 | - $query = mysql_query('SELECT * FROM rekening |
|
476 | + $query = mysql_query('SELECT * FROM rekening |
|
477 | 477 | WHERE parentid != "0" |
478 | 478 | |
479 | 479 | ORDER BY norek'); |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | |
578 | 578 | <?php |
579 | 579 | |
580 | - $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
580 | + $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
581 | 581 | |
582 | 582 | $ktampil = mysql_query($kSQL); |
583 | 583 | |
@@ -1082,7 +1082,7 @@ discard block |
||
1082 | 1082 | |
1083 | 1083 | <?php |
1084 | 1084 | |
1085 | - $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1085 | + $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1086 | 1086 | |
1087 | 1087 | $ktampil = mysql_query($kSQL); |
1088 | 1088 | |
@@ -1575,7 +1575,7 @@ discard block |
||
1575 | 1575 | <tbody> |
1576 | 1576 | <?php |
1577 | 1577 | |
1578 | - $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1578 | + $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1579 | 1579 | ON a.id_jenis_pinjaman = b.id_jenis_pinjaman |
1580 | 1580 | WHERE a.prd = '$prd'"; |
1581 | 1581 | |
@@ -1627,7 +1627,7 @@ discard block |
||
1627 | 1627 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1628 | 1628 | |
1629 | 1629 | <?php |
1630 | - echo'</form>'; |
|
1630 | + echo'</form>'; |
|
1631 | 1631 | } ?> |
1632 | 1632 | |
1633 | 1633 | |
@@ -1667,7 +1667,7 @@ discard block |
||
1667 | 1667 | <tbody> |
1668 | 1668 | <?php |
1669 | 1669 | |
1670 | - $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1670 | + $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1671 | 1671 | |
1672 | 1672 | $tampil = mysql_query($SQL); |
1673 | 1673 | |
@@ -1734,7 +1734,7 @@ discard block |
||
1734 | 1734 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1735 | 1735 | |
1736 | 1736 | <?php |
1737 | - echo'</form>'; |
|
1737 | + echo'</form>'; |
|
1738 | 1738 | } ?> |
1739 | 1739 | |
1740 | 1740 | |
@@ -1762,7 +1762,7 @@ discard block |
||
1762 | 1762 | |
1763 | 1763 | <?php |
1764 | 1764 | |
1765 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1765 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1766 | 1766 | |
1767 | 1767 | if ($id) { |
1768 | 1768 | $query = mysql_query('SELECT * FROM pg_lainnya |
@@ -2079,7 +2079,7 @@ discard block |
||
2079 | 2079 | |
2080 | 2080 | <?php |
2081 | 2081 | |
2082 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2082 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2083 | 2083 | |
2084 | 2084 | if ($id) { |
2085 | 2085 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
@@ -2122,11 +2122,11 @@ discard block |
||
2122 | 2122 | </script> |
2123 | 2123 | |
2124 | 2124 | <?php |
2125 | - if (empty($pict)) { |
|
2126 | - $ipict = 'logo.png'; |
|
2127 | - } else { |
|
2128 | - $ipict = $pict; |
|
2129 | - } ?> |
|
2125 | + if (empty($pict)) { |
|
2126 | + $ipict = 'logo.png'; |
|
2127 | + } else { |
|
2128 | + $ipict = $pict; |
|
2129 | + } ?> |
|
2130 | 2130 | |
2131 | 2131 | <script> |
2132 | 2132 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -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,32 +1,32 @@ discard block |
||
1 | -<?php |
|
2 | -session_start(); |
|
3 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
1 | + <?php |
|
2 | + session_start(); |
|
3 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else { |
6 | - include './../../config/koneksi.php'; |
|
7 | - include './../../config/fungsi_thumb.php'; ?> |
|
8 | -<?php |
|
6 | + include './../../config/koneksi.php'; |
|
7 | + include './../../config/fungsi_thumb.php'; ?> |
|
8 | + <?php |
|
9 | 9 | |
10 | 10 | |
11 | -$modul = $_GET['module']; |
|
12 | - $imodule = $_GET['imodule']; |
|
13 | - $title = $_GET['title']; |
|
11 | + $modul = $_GET['module']; |
|
12 | + $imodule = $_GET['imodule']; |
|
13 | + $title = $_GET['title']; |
|
14 | 14 | |
15 | - $role = $_SESSION['role']; |
|
15 | + $role = $_SESSION['role']; |
|
16 | 16 | |
17 | - $id_module = $_GET['id_module']; |
|
17 | + $id_module = $_GET['id_module']; |
|
18 | 18 | |
19 | - if ($_GET['tab']) { |
|
20 | - $tab = $_GET['tab']; |
|
21 | - } else { |
|
22 | - $tab = 'ip'; |
|
23 | - } |
|
19 | + if ($_GET['tab']) { |
|
20 | + $tab = $_GET['tab']; |
|
21 | + } else { |
|
22 | + $tab = 'ip'; |
|
23 | + } |
|
24 | 24 | |
25 | - if ($_GET['stab']) { |
|
26 | - $stab = $_GET['stab']; |
|
27 | - } else { |
|
28 | - $stab = 'tunai'; |
|
29 | - } ?> |
|
25 | + if ($_GET['stab']) { |
|
26 | + $stab = $_GET['stab']; |
|
27 | + } else { |
|
28 | + $stab = 'tunai'; |
|
29 | + } ?> |
|
30 | 30 | <!doctype html> |
31 | 31 | <html> |
32 | 32 | <head> |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | <ul class="nav nav-tabs"> |
112 | 112 | |
113 | 113 | <li <?php if ($tab == 'ip') { |
114 | - echo 'class="active"'; |
|
115 | - } ?> ><a data-toggle="tab" href="#home">Informasi Perusahaan</a> |
|
114 | + echo 'class="active"'; |
|
115 | + } ?> ><a data-toggle="tab" href="#home">Informasi Perusahaan</a> |
|
116 | 116 | </li> |
117 | 117 | |
118 | 118 | <li class="pull-right"> |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | <div class="tab-content"> |
126 | 126 | |
127 | 127 | <div id="home" class="tab-pane fade <?php if ($tab == 'ip') { |
128 | - echo 'in active primary'; |
|
129 | - } ?>"> |
|
128 | + echo 'in active primary'; |
|
129 | + } ?>"> |
|
130 | 130 | <br> |
131 | 131 | |
132 | 132 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -134,18 +134,18 @@ discard block |
||
134 | 134 | |
135 | 135 | <?php |
136 | 136 | |
137 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
137 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
138 | 138 | |
139 | - if ($id) { |
|
140 | - $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
141 | - if ($query && mysql_num_rows($query) == 1) { |
|
142 | - $data = mysql_fetch_object($query); |
|
143 | - } else { |
|
144 | - die('Data general_setting tidak ditemukan'); |
|
139 | + if ($id) { |
|
140 | + $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
141 | + if ($query && mysql_num_rows($query) == 1) { |
|
142 | + $data = mysql_fetch_object($query); |
|
143 | + } else { |
|
144 | + die('Data general_setting tidak ditemukan'); |
|
145 | + } |
|
145 | 146 | } |
146 | - } |
|
147 | 147 | |
148 | - $pict = $data->pict; ?> |
|
148 | + $pict = $data->pict; ?> |
|
149 | 149 | <!-- start form for validation --> |
150 | 150 | <form action="<?php echo"../../modul/mod_$modul/aksi_$modul.php?module=$modul&act=ip"; ?>" method="post" name="formData" enctype="multipart/form-data" > |
151 | 151 | |
@@ -224,8 +224,8 @@ discard block |
||
224 | 224 | </div> |
225 | 225 | |
226 | 226 | <div id="menu1" class="tab-pane fade <?php if ($tab == 'sa') { |
227 | - echo 'in active primary'; |
|
228 | - } ?>"> |
|
227 | + echo 'in active primary'; |
|
228 | + } ?>"> |
|
229 | 229 | <br> |
230 | 230 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
231 | 231 | <div class="x_content"> |
@@ -253,21 +253,21 @@ discard block |
||
253 | 253 | <tbody> |
254 | 254 | <?php |
255 | 255 | |
256 | - $SQL = "SELECT* FROM pg_setoran_awal |
|
256 | + $SQL = "SELECT* FROM pg_setoran_awal |
|
257 | 257 | WHERE prd = '$prd' order by id_pg_setoran_awal"; |
258 | 258 | |
259 | - $tampil = mysql_query($SQL); |
|
259 | + $tampil = mysql_query($SQL); |
|
260 | 260 | |
261 | - $no = 1; |
|
261 | + $no = 1; |
|
262 | 262 | |
263 | - while ($r = mysql_fetch_array($tampil)) { |
|
264 | - if ($r['nilai'] == '0') { |
|
265 | - $disabled = 'readonly'; |
|
266 | - } else { |
|
267 | - $disabled = ''; |
|
268 | - } |
|
263 | + while ($r = mysql_fetch_array($tampil)) { |
|
264 | + if ($r['nilai'] == '0') { |
|
265 | + $disabled = 'readonly'; |
|
266 | + } else { |
|
267 | + $disabled = ''; |
|
268 | + } |
|
269 | 269 | |
270 | - echo'<tr>'; ?> |
|
270 | + echo'<tr>'; ?> |
|
271 | 271 | |
272 | 272 | <form action="<?php echo"../../modul/mod_$modul/aksi_$modul.php?module=$modul&act=sa"; ?>" method="post" name="formData" enctype="multipart/form-data" > |
273 | 273 | |
@@ -286,16 +286,16 @@ discard block |
||
286 | 286 | <td> |
287 | 287 | <select name="jenis_posting" class="form-control" required > |
288 | 288 | <?php |
289 | - $query = mysql_query('SELECT * FROM jenis_posting ORDER BY jenis_posting'); |
|
290 | - if ($query && mysql_num_rows($query) > 0) { |
|
291 | - while ($row = mysql_fetch_object($query)) { |
|
292 | - echo '<option value="'.$row->id_jenis_posting.'"'; |
|
293 | - if ($row->id_jenis_posting == $r['id_jenis_posting']) { |
|
294 | - echo ' selected'; |
|
289 | + $query = mysql_query('SELECT * FROM jenis_posting ORDER BY jenis_posting'); |
|
290 | + if ($query && mysql_num_rows($query) > 0) { |
|
291 | + while ($row = mysql_fetch_object($query)) { |
|
292 | + echo '<option value="'.$row->id_jenis_posting.'"'; |
|
293 | + if ($row->id_jenis_posting == $r['id_jenis_posting']) { |
|
294 | + echo ' selected'; |
|
295 | + } |
|
296 | + echo '>'.$row->jenis_posting.'</option>'; |
|
295 | 297 | } |
296 | - echo '>'.$row->jenis_posting.'</option>'; |
|
297 | - } |
|
298 | - } ?> |
|
298 | + } ?> |
|
299 | 299 | </select> |
300 | 300 | |
301 | 301 | </td> |
@@ -304,19 +304,19 @@ discard block |
||
304 | 304 | <select name="rek_debet" class="form-control" required > |
305 | 305 | <option value='0'></option> |
306 | 306 | <?php |
307 | - $query = mysql_query('SELECT * FROM rekening |
|
307 | + $query = mysql_query('SELECT * FROM rekening |
|
308 | 308 | WHERE parentid != "0" |
309 | 309 | |
310 | 310 | ORDER BY norek'); |
311 | - if ($query && mysql_num_rows($query) > 0) { |
|
312 | - while ($row = mysql_fetch_object($query)) { |
|
313 | - echo '<option value="'.$row->id_rekening.'"'; |
|
314 | - if ($row->id_rekening == $r['rek_debet']) { |
|
315 | - echo ' selected'; |
|
311 | + if ($query && mysql_num_rows($query) > 0) { |
|
312 | + while ($row = mysql_fetch_object($query)) { |
|
313 | + echo '<option value="'.$row->id_rekening.'"'; |
|
314 | + if ($row->id_rekening == $r['rek_debet']) { |
|
315 | + echo ' selected'; |
|
316 | + } |
|
317 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
316 | 318 | } |
317 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
318 | - } |
|
319 | - } ?> |
|
319 | + } ?> |
|
320 | 320 | </select> |
321 | 321 | |
322 | 322 | </td> |
@@ -325,19 +325,19 @@ discard block |
||
325 | 325 | <select name="rek_kredit" class="form-control" required > |
326 | 326 | <option value='0'></option> |
327 | 327 | <?php |
328 | - $query = mysql_query('SELECT * FROM rekening |
|
328 | + $query = mysql_query('SELECT * FROM rekening |
|
329 | 329 | WHERE parentid != "0" |
330 | 330 | |
331 | 331 | ORDER BY norek'); |
332 | - if ($query && mysql_num_rows($query) > 0) { |
|
333 | - while ($row = mysql_fetch_object($query)) { |
|
334 | - echo '<option value="'.$row->id_rekening.'"'; |
|
335 | - if ($row->id_rekening == $r['rek_kredit']) { |
|
336 | - echo ' selected'; |
|
332 | + if ($query && mysql_num_rows($query) > 0) { |
|
333 | + while ($row = mysql_fetch_object($query)) { |
|
334 | + echo '<option value="'.$row->id_rekening.'"'; |
|
335 | + if ($row->id_rekening == $r['rek_kredit']) { |
|
336 | + echo ' selected'; |
|
337 | + } |
|
338 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
337 | 339 | } |
338 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
339 | - } |
|
340 | - } ?> |
|
340 | + } ?> |
|
341 | 341 | </select> |
342 | 342 | |
343 | 343 | </td> |
@@ -345,14 +345,14 @@ discard block |
||
345 | 345 | |
346 | 346 | |
347 | 347 | <?php |
348 | - echo" <td style='text-align:center;'>"; ?> |
|
348 | + echo" <td style='text-align:center;'>"; ?> |
|
349 | 349 | <button type="submit" class="btn btn-primary btn-sm"> |
350 | 350 | <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span> |
351 | 351 | </button> |
352 | 352 | <?php |
353 | - echo'</td>'; |
|
354 | - echo'</tr>'; |
|
355 | - $no++; ?> |
|
353 | + echo'</td>'; |
|
354 | + echo'</tr>'; |
|
355 | + $no++; ?> |
|
356 | 356 | |
357 | 357 | <input type="hidden" name="ID" value="<?php echo $r['id_pg_setoran_awal']?>" /> |
358 | 358 | <input type="hidden" name="u_tab" value="<?php echo $r['u_tab']?>" /> |
@@ -360,8 +360,8 @@ discard block |
||
360 | 360 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
361 | 361 | |
362 | 362 | <?php |
363 | - echo'</form>'; |
|
364 | - } ?> |
|
363 | + echo'</form>'; |
|
364 | + } ?> |
|
365 | 365 | |
366 | 366 | |
367 | 367 | |
@@ -376,24 +376,24 @@ discard block |
||
376 | 376 | </div> |
377 | 377 | |
378 | 378 | <div id="menu2" class="tab-pane fade <?php if ($tab == 'pd') { |
379 | - echo 'in active primary'; |
|
380 | - } ?>"> |
|
379 | + echo 'in active primary'; |
|
380 | + } ?>"> |
|
381 | 381 | <br> |
382 | 382 | <div class="row"> |
383 | 383 | |
384 | 384 | <?php |
385 | 385 | |
386 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
386 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
387 | 387 | |
388 | - if ($id) { |
|
389 | - $query = mysql_query('SELECT * FROM pg_penarikan_dana |
|
388 | + if ($id) { |
|
389 | + $query = mysql_query('SELECT * FROM pg_penarikan_dana |
|
390 | 390 | WHERE prd = "'.$prd.'" '); |
391 | - if ($query && mysql_num_rows($query) == 1) { |
|
392 | - $data = mysql_fetch_object($query); |
|
393 | - } else { |
|
394 | - die('Data pg_penarikan_dana tidak ditemukan'); |
|
395 | - } |
|
396 | - } ?> |
|
391 | + if ($query && mysql_num_rows($query) == 1) { |
|
392 | + $data = mysql_fetch_object($query); |
|
393 | + } else { |
|
394 | + die('Data pg_penarikan_dana tidak ditemukan'); |
|
395 | + } |
|
396 | + } ?> |
|
397 | 397 | <!-- start form for validation --> |
398 | 398 | <form action="<?php echo"../../modul/mod_$modul/aksi_$modul.php?module=$modul&act=pd"; ?>" method="post" name="formData" enctype="multipart/form-data" > |
399 | 399 | |
@@ -451,19 +451,19 @@ discard block |
||
451 | 451 | <select name="rek_debet" class="form-control" required > |
452 | 452 | <option value='0'></option> |
453 | 453 | <?php |
454 | - $query = mysql_query('SELECT * FROM rekening |
|
454 | + $query = mysql_query('SELECT * FROM rekening |
|
455 | 455 | WHERE parentid != "0" |
456 | 456 | |
457 | 457 | ORDER BY norek'); |
458 | - if ($query && mysql_num_rows($query) > 0) { |
|
459 | - while ($row = mysql_fetch_object($query)) { |
|
460 | - echo '<option value="'.$row->id_rekening.'"'; |
|
461 | - if ($row->id_rekening == $data->rek_debet) { |
|
462 | - echo ' selected'; |
|
458 | + if ($query && mysql_num_rows($query) > 0) { |
|
459 | + while ($row = mysql_fetch_object($query)) { |
|
460 | + echo '<option value="'.$row->id_rekening.'"'; |
|
461 | + if ($row->id_rekening == $data->rek_debet) { |
|
462 | + echo ' selected'; |
|
463 | + } |
|
464 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
463 | 465 | } |
464 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
465 | - } |
|
466 | - } ?> |
|
466 | + } ?> |
|
467 | 467 | </select> |
468 | 468 | </div> |
469 | 469 | <div class="col-md-1 col-sm-1 col-xs-1 form-group"> |
@@ -473,19 +473,19 @@ discard block |
||
473 | 473 | <select name="rek_kredit" class="form-control" required > |
474 | 474 | <option value='0'></option> |
475 | 475 | <?php |
476 | - $query = mysql_query('SELECT * FROM rekening |
|
476 | + $query = mysql_query('SELECT * FROM rekening |
|
477 | 477 | WHERE parentid != "0" |
478 | 478 | |
479 | 479 | ORDER BY norek'); |
480 | - if ($query && mysql_num_rows($query) > 0) { |
|
481 | - while ($row = mysql_fetch_object($query)) { |
|
482 | - echo '<option value="'.$row->id_rekening.'"'; |
|
483 | - if ($row->id_rekening == $data->rek_kredit) { |
|
484 | - echo ' selected'; |
|
480 | + if ($query && mysql_num_rows($query) > 0) { |
|
481 | + while ($row = mysql_fetch_object($query)) { |
|
482 | + echo '<option value="'.$row->id_rekening.'"'; |
|
483 | + if ($row->id_rekening == $data->rek_kredit) { |
|
484 | + echo ' selected'; |
|
485 | + } |
|
486 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
485 | 487 | } |
486 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
487 | - } |
|
488 | - } ?> |
|
488 | + } ?> |
|
489 | 489 | </select> |
490 | 490 | </div> |
491 | 491 | <div class="col-md-1 col-sm-1 col-xs-1 form-group"> |
@@ -512,28 +512,28 @@ discard block |
||
512 | 512 | </div> |
513 | 513 | |
514 | 514 | <div id="menu3" class="tab-pane fade <?php if ($tab == 'pm') { |
515 | - echo 'in active primary'; |
|
516 | - } ?>"> |
|
515 | + echo 'in active primary'; |
|
516 | + } ?>"> |
|
517 | 517 | <br> |
518 | 518 | <div class="row" style="padding: 0px 10px 0px 10px;"> |
519 | 519 | |
520 | 520 | <ul class="nav nav-tabs" > |
521 | 521 | |
522 | 522 | <li <?php if ($stab == 'tunai') { |
523 | - echo 'class="active"'; |
|
524 | - } ?> ><a data-toggle="tab" href="#tunai">Dana Tunai</a> |
|
523 | + echo 'class="active"'; |
|
524 | + } ?> ><a data-toggle="tab" href="#tunai">Dana Tunai</a> |
|
525 | 525 | </li> |
526 | 526 | <li <?php if ($stab == 'barang') { |
527 | - echo 'class="active"'; |
|
528 | - } ?> ><a data-toggle="tab" href="#barang">Barang</a> |
|
527 | + echo 'class="active"'; |
|
528 | + } ?> ><a data-toggle="tab" href="#barang">Barang</a> |
|
529 | 529 | </li> |
530 | 530 | </ul> |
531 | 531 | |
532 | 532 | <div class="tab-content"> |
533 | 533 | |
534 | 534 | <div id="tunai" class="tab-pane fade <?php if ($stab == 'tunai') { |
535 | - echo 'in active primary'; |
|
536 | - } ?>"> |
|
535 | + echo 'in active primary'; |
|
536 | + } ?>"> |
|
537 | 537 | <br> |
538 | 538 | |
539 | 539 | |
@@ -577,17 +577,17 @@ discard block |
||
577 | 577 | |
578 | 578 | <?php |
579 | 579 | |
580 | - $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
580 | + $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
581 | 581 | |
582 | - $ktampil = mysql_query($kSQL); |
|
582 | + $ktampil = mysql_query($kSQL); |
|
583 | 583 | |
584 | - $k = mysql_fetch_array($ktampil); |
|
584 | + $k = mysql_fetch_array($ktampil); |
|
585 | 585 | |
586 | - $sSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'S' AND prd = '$prd'"; |
|
586 | + $sSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'S' AND prd = '$prd'"; |
|
587 | 587 | |
588 | - $stampil = mysql_query($sSQL); |
|
588 | + $stampil = mysql_query($sSQL); |
|
589 | 589 | |
590 | - $s = mysql_fetch_array($stampil); ?> |
|
590 | + $s = mysql_fetch_array($stampil); ?> |
|
591 | 591 | |
592 | 592 | <tr> |
593 | 593 | <td><label class="control-label" style="padding-top:8px;">Rekening</label></td> |
@@ -601,18 +601,18 @@ discard block |
||
601 | 601 | <select name="rek_debet_k" class="form-control" required > |
602 | 602 | <option value='0'></option> |
603 | 603 | <?php |
604 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
608 | - while ($row = mysql_fetch_object($query)) { |
|
609 | - echo '<option value="'.$row->id_rekening.'"'; |
|
610 | - if ($row->id_rekening == $k['rek_debet']) { |
|
611 | - echo ' selected'; |
|
607 | + if ($query && mysql_num_rows($query) > 0) { |
|
608 | + while ($row = mysql_fetch_object($query)) { |
|
609 | + echo '<option value="'.$row->id_rekening.'"'; |
|
610 | + if ($row->id_rekening == $k['rek_debet']) { |
|
611 | + echo ' selected'; |
|
612 | + } |
|
613 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
612 | 614 | } |
613 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
614 | - } |
|
615 | - } ?> |
|
615 | + } ?> |
|
616 | 616 | </select> |
617 | 617 | |
618 | 618 | </td> |
@@ -620,18 +620,18 @@ discard block |
||
620 | 620 | <select name="rek_kredit_k" class="form-control" required > |
621 | 621 | <option value='0'></option> |
622 | 622 | <?php |
623 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
627 | - while ($row = mysql_fetch_object($query)) { |
|
628 | - echo '<option value="'.$row->id_rekening.'"'; |
|
629 | - if ($row->id_rekening == $k['rek_kredit']) { |
|
630 | - echo ' selected'; |
|
626 | + if ($query && mysql_num_rows($query) > 0) { |
|
627 | + while ($row = mysql_fetch_object($query)) { |
|
628 | + echo '<option value="'.$row->id_rekening.'"'; |
|
629 | + if ($row->id_rekening == $k['rek_kredit']) { |
|
630 | + echo ' selected'; |
|
631 | + } |
|
632 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
631 | 633 | } |
632 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
633 | - } |
|
634 | - } ?> |
|
634 | + } ?> |
|
635 | 635 | </select> |
636 | 636 | |
637 | 637 | |
@@ -651,18 +651,18 @@ discard block |
||
651 | 651 | <select name="rek_debet_pelunasan_k" class="form-control" required > |
652 | 652 | <option value='0'></option> |
653 | 653 | <?php |
654 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
658 | - while ($row = mysql_fetch_object($query)) { |
|
659 | - echo '<option value="'.$row->id_rekening.'"'; |
|
660 | - if ($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
661 | - echo ' selected'; |
|
657 | + if ($query && mysql_num_rows($query) > 0) { |
|
658 | + while ($row = mysql_fetch_object($query)) { |
|
659 | + echo '<option value="'.$row->id_rekening.'"'; |
|
660 | + if ($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
661 | + echo ' selected'; |
|
662 | + } |
|
663 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
662 | 664 | } |
663 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
664 | - } |
|
665 | - } ?> |
|
665 | + } ?> |
|
666 | 666 | </select> |
667 | 667 | |
668 | 668 | </td> |
@@ -670,18 +670,18 @@ discard block |
||
670 | 670 | <select name="rek_kredit_pelunasan_k" class="form-control" required > |
671 | 671 | <option value='0'></option> |
672 | 672 | <?php |
673 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
677 | - while ($row = mysql_fetch_object($query)) { |
|
678 | - echo '<option value="'.$row->id_rekening.'"'; |
|
679 | - if ($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
680 | - echo ' selected'; |
|
676 | + if ($query && mysql_num_rows($query) > 0) { |
|
677 | + while ($row = mysql_fetch_object($query)) { |
|
678 | + echo '<option value="'.$row->id_rekening.'"'; |
|
679 | + if ($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
680 | + echo ' selected'; |
|
681 | + } |
|
682 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
681 | 683 | } |
682 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
683 | - } |
|
684 | - } ?> |
|
684 | + } ?> |
|
685 | 685 | </select> |
686 | 686 | |
687 | 687 | |
@@ -828,19 +828,19 @@ discard block |
||
828 | 828 | <select name="rek_debet_bunga_k" class="form-control" required > |
829 | 829 | <option value='0'></option> |
830 | 830 | <?php |
831 | - $query = mysql_query('SELECT * FROM rekening |
|
831 | + $query = mysql_query('SELECT * FROM rekening |
|
832 | 832 | WHERE parentid != "0" |
833 | 833 | |
834 | 834 | ORDER BY norek'); |
835 | - if ($query && mysql_num_rows($query) > 0) { |
|
836 | - while ($row = mysql_fetch_object($query)) { |
|
837 | - echo '<option value="'.$row->id_rekening.'"'; |
|
838 | - if ($row->id_rekening == $k['rek_debet_bunga']) { |
|
839 | - echo ' selected'; |
|
835 | + if ($query && mysql_num_rows($query) > 0) { |
|
836 | + while ($row = mysql_fetch_object($query)) { |
|
837 | + echo '<option value="'.$row->id_rekening.'"'; |
|
838 | + if ($row->id_rekening == $k['rek_debet_bunga']) { |
|
839 | + echo ' selected'; |
|
840 | + } |
|
841 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
840 | 842 | } |
841 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
842 | - } |
|
843 | - } ?> |
|
843 | + } ?> |
|
844 | 844 | </select> |
845 | 845 | |
846 | 846 | </td> |
@@ -848,18 +848,18 @@ discard block |
||
848 | 848 | <select name="rek_kredit_bunga_k" class="form-control" required > |
849 | 849 | <option value='0'></option> |
850 | 850 | <?php |
851 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
855 | - while ($row = mysql_fetch_object($query)) { |
|
856 | - echo '<option value="'.$row->id_rekening.'"'; |
|
857 | - if ($row->id_rekening == $k['rek_kredit_bunga']) { |
|
858 | - echo ' selected'; |
|
854 | + if ($query && mysql_num_rows($query) > 0) { |
|
855 | + while ($row = mysql_fetch_object($query)) { |
|
856 | + echo '<option value="'.$row->id_rekening.'"'; |
|
857 | + if ($row->id_rekening == $k['rek_kredit_bunga']) { |
|
858 | + echo ' selected'; |
|
859 | + } |
|
860 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
859 | 861 | } |
860 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
861 | - } |
|
862 | - } ?> |
|
862 | + } ?> |
|
863 | 863 | </select> |
864 | 864 | |
865 | 865 | |
@@ -895,18 +895,18 @@ discard block |
||
895 | 895 | <select name="rek_debet_ipoint_k" class="form-control" required > |
896 | 896 | <option value='0'></option> |
897 | 897 | <?php |
898 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
902 | - while ($row = mysql_fetch_object($query)) { |
|
903 | - echo '<option value="'.$row->id_rekening.'"'; |
|
904 | - if ($row->id_rekening == $k['rek_debet_ipoint']) { |
|
905 | - echo ' selected'; |
|
901 | + if ($query && mysql_num_rows($query) > 0) { |
|
902 | + while ($row = mysql_fetch_object($query)) { |
|
903 | + echo '<option value="'.$row->id_rekening.'"'; |
|
904 | + if ($row->id_rekening == $k['rek_debet_ipoint']) { |
|
905 | + echo ' selected'; |
|
906 | + } |
|
907 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
906 | 908 | } |
907 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
908 | - } |
|
909 | - } ?> |
|
909 | + } ?> |
|
910 | 910 | </select> |
911 | 911 | |
912 | 912 | </td> |
@@ -914,18 +914,18 @@ discard block |
||
914 | 914 | <select name="rek_kredit_ipoint_k" class="form-control" required > |
915 | 915 | <option value='0'></option> |
916 | 916 | <?php |
917 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
921 | - while ($row = mysql_fetch_object($query)) { |
|
922 | - echo '<option value="'.$row->id_rekening.'"'; |
|
923 | - if ($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
924 | - echo ' selected'; |
|
920 | + if ($query && mysql_num_rows($query) > 0) { |
|
921 | + while ($row = mysql_fetch_object($query)) { |
|
922 | + echo '<option value="'.$row->id_rekening.'"'; |
|
923 | + if ($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
924 | + echo ' selected'; |
|
925 | + } |
|
926 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
925 | 927 | } |
926 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
927 | - } |
|
928 | - } ?> |
|
928 | + } ?> |
|
929 | 929 | </select> |
930 | 930 | |
931 | 931 | |
@@ -1041,8 +1041,8 @@ discard block |
||
1041 | 1041 | </div> |
1042 | 1042 | |
1043 | 1043 | <div id="barang" class="tab-pane fade <?php if ($stab == 'barang') { |
1044 | - echo 'in active primary'; |
|
1045 | - } ?>"> |
|
1044 | + echo 'in active primary'; |
|
1045 | + } ?>"> |
|
1046 | 1046 | <br> |
1047 | 1047 | |
1048 | 1048 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -1082,17 +1082,17 @@ discard block |
||
1082 | 1082 | |
1083 | 1083 | <?php |
1084 | 1084 | |
1085 | - $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1085 | + $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1086 | 1086 | |
1087 | - $ktampil = mysql_query($kSQL); |
|
1087 | + $ktampil = mysql_query($kSQL); |
|
1088 | 1088 | |
1089 | - $k = mysql_fetch_array($ktampil); |
|
1089 | + $k = mysql_fetch_array($ktampil); |
|
1090 | 1090 | |
1091 | - $sSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'S' AND prd = '$prd' "; |
|
1091 | + $sSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'S' AND prd = '$prd' "; |
|
1092 | 1092 | |
1093 | - $stampil = mysql_query($sSQL); |
|
1093 | + $stampil = mysql_query($sSQL); |
|
1094 | 1094 | |
1095 | - $s = mysql_fetch_array($stampil); ?> |
|
1095 | + $s = mysql_fetch_array($stampil); ?> |
|
1096 | 1096 | |
1097 | 1097 | <tr> |
1098 | 1098 | <td><label class="control-label" style="padding-top:8px;">Rekening</label></td> |
@@ -1106,18 +1106,18 @@ discard block |
||
1106 | 1106 | <select name="rek_debet_k" class="form-control" required > |
1107 | 1107 | <option value='0'></option> |
1108 | 1108 | <?php |
1109 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1113 | - while ($row = mysql_fetch_object($query)) { |
|
1114 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1115 | - if ($row->id_rekening == $k['rek_debet']) { |
|
1116 | - echo ' selected'; |
|
1112 | + if ($query && mysql_num_rows($query) > 0) { |
|
1113 | + while ($row = mysql_fetch_object($query)) { |
|
1114 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1115 | + if ($row->id_rekening == $k['rek_debet']) { |
|
1116 | + echo ' selected'; |
|
1117 | + } |
|
1118 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1117 | 1119 | } |
1118 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1119 | - } |
|
1120 | - } ?> |
|
1120 | + } ?> |
|
1121 | 1121 | </select> |
1122 | 1122 | |
1123 | 1123 | </td> |
@@ -1125,18 +1125,18 @@ discard block |
||
1125 | 1125 | <select name="rek_kredit_k" class="form-control" required > |
1126 | 1126 | <option value='0'></option> |
1127 | 1127 | <?php |
1128 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1132 | - while ($row = mysql_fetch_object($query)) { |
|
1133 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1134 | - if ($row->id_rekening == $k['rek_kredit']) { |
|
1135 | - echo ' selected'; |
|
1131 | + if ($query && mysql_num_rows($query) > 0) { |
|
1132 | + while ($row = mysql_fetch_object($query)) { |
|
1133 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1134 | + if ($row->id_rekening == $k['rek_kredit']) { |
|
1135 | + echo ' selected'; |
|
1136 | + } |
|
1137 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1136 | 1138 | } |
1137 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1138 | - } |
|
1139 | - } ?> |
|
1139 | + } ?> |
|
1140 | 1140 | </select> |
1141 | 1141 | |
1142 | 1142 | |
@@ -1157,18 +1157,18 @@ discard block |
||
1157 | 1157 | <select name="rek_debet_pelunasan_k" class="form-control" required > |
1158 | 1158 | <option value='0'></option> |
1159 | 1159 | <?php |
1160 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1164 | - while ($row = mysql_fetch_object($query)) { |
|
1165 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1166 | - if ($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
1167 | - echo ' selected'; |
|
1163 | + if ($query && mysql_num_rows($query) > 0) { |
|
1164 | + while ($row = mysql_fetch_object($query)) { |
|
1165 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1166 | + if ($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
1167 | + echo ' selected'; |
|
1168 | + } |
|
1169 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1168 | 1170 | } |
1169 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1170 | - } |
|
1171 | - } ?> |
|
1171 | + } ?> |
|
1172 | 1172 | </select> |
1173 | 1173 | |
1174 | 1174 | </td> |
@@ -1176,18 +1176,18 @@ discard block |
||
1176 | 1176 | <select name="rek_kredit_pelunasan_k" class="form-control" required > |
1177 | 1177 | <option value='0'></option> |
1178 | 1178 | <?php |
1179 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1183 | - while ($row = mysql_fetch_object($query)) { |
|
1184 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1185 | - if ($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
1186 | - echo ' selected'; |
|
1182 | + if ($query && mysql_num_rows($query) > 0) { |
|
1183 | + while ($row = mysql_fetch_object($query)) { |
|
1184 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1185 | + if ($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
1186 | + echo ' selected'; |
|
1187 | + } |
|
1188 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1187 | 1189 | } |
1188 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1189 | - } |
|
1190 | - } ?> |
|
1190 | + } ?> |
|
1191 | 1191 | </select> |
1192 | 1192 | |
1193 | 1193 | |
@@ -1334,19 +1334,19 @@ discard block |
||
1334 | 1334 | <select name="rek_debet_bunga_k" class="form-control" required > |
1335 | 1335 | <option value='0'></option> |
1336 | 1336 | <?php |
1337 | - $query = mysql_query('SELECT * FROM rekening |
|
1337 | + $query = mysql_query('SELECT * FROM rekening |
|
1338 | 1338 | WHERE parentid != "0" |
1339 | 1339 | |
1340 | 1340 | ORDER BY norek'); |
1341 | - if ($query && mysql_num_rows($query) > 0) { |
|
1342 | - while ($row = mysql_fetch_object($query)) { |
|
1343 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1344 | - if ($row->id_rekening == $k['rek_debet_bunga']) { |
|
1345 | - echo ' selected'; |
|
1341 | + if ($query && mysql_num_rows($query) > 0) { |
|
1342 | + while ($row = mysql_fetch_object($query)) { |
|
1343 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1344 | + if ($row->id_rekening == $k['rek_debet_bunga']) { |
|
1345 | + echo ' selected'; |
|
1346 | + } |
|
1347 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1346 | 1348 | } |
1347 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1348 | - } |
|
1349 | - } ?> |
|
1349 | + } ?> |
|
1350 | 1350 | </select> |
1351 | 1351 | |
1352 | 1352 | </td> |
@@ -1354,18 +1354,18 @@ discard block |
||
1354 | 1354 | <select name="rek_kredit_bunga_k" class="form-control" required > |
1355 | 1355 | <option value='0'></option> |
1356 | 1356 | <?php |
1357 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1361 | - while ($row = mysql_fetch_object($query)) { |
|
1362 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1363 | - if ($row->id_rekening == $k['rek_kredit_bunga']) { |
|
1364 | - echo ' selected'; |
|
1360 | + if ($query && mysql_num_rows($query) > 0) { |
|
1361 | + while ($row = mysql_fetch_object($query)) { |
|
1362 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1363 | + if ($row->id_rekening == $k['rek_kredit_bunga']) { |
|
1364 | + echo ' selected'; |
|
1365 | + } |
|
1366 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1365 | 1367 | } |
1366 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1367 | - } |
|
1368 | - } ?> |
|
1368 | + } ?> |
|
1369 | 1369 | </select> |
1370 | 1370 | |
1371 | 1371 | |
@@ -1401,18 +1401,18 @@ discard block |
||
1401 | 1401 | <select name="rek_debet_ipoint_k" class="form-control" required > |
1402 | 1402 | <option value='0'></option> |
1403 | 1403 | <?php |
1404 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1408 | - while ($row = mysql_fetch_object($query)) { |
|
1409 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1410 | - if ($row->id_rekening == $k['rek_debet_ipoint']) { |
|
1411 | - echo ' selected'; |
|
1407 | + if ($query && mysql_num_rows($query) > 0) { |
|
1408 | + while ($row = mysql_fetch_object($query)) { |
|
1409 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1410 | + if ($row->id_rekening == $k['rek_debet_ipoint']) { |
|
1411 | + echo ' selected'; |
|
1412 | + } |
|
1413 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1412 | 1414 | } |
1413 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1414 | - } |
|
1415 | - } ?> |
|
1415 | + } ?> |
|
1416 | 1416 | </select> |
1417 | 1417 | |
1418 | 1418 | </td> |
@@ -1420,18 +1420,18 @@ discard block |
||
1420 | 1420 | <select name="rek_kredit_ipoint_k" class="form-control" required > |
1421 | 1421 | <option value='0'></option> |
1422 | 1422 | <?php |
1423 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1427 | - while ($row = mysql_fetch_object($query)) { |
|
1428 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1429 | - if ($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
1430 | - echo ' selected'; |
|
1426 | + if ($query && mysql_num_rows($query) > 0) { |
|
1427 | + while ($row = mysql_fetch_object($query)) { |
|
1428 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1429 | + if ($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
1430 | + echo ' selected'; |
|
1431 | + } |
|
1432 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1431 | 1433 | } |
1432 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1433 | - } |
|
1434 | - } ?> |
|
1434 | + } ?> |
|
1435 | 1435 | </select> |
1436 | 1436 | |
1437 | 1437 | |
@@ -1553,8 +1553,8 @@ discard block |
||
1553 | 1553 | </div> |
1554 | 1554 | |
1555 | 1555 | <div id="menu4" class="tab-pane fade <?php if ($tab == 'pl') { |
1556 | - echo 'in active primary'; |
|
1557 | - } ?>"> |
|
1556 | + echo 'in active primary'; |
|
1557 | + } ?>"> |
|
1558 | 1558 | <br> |
1559 | 1559 | |
1560 | 1560 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -1575,16 +1575,16 @@ discard block |
||
1575 | 1575 | <tbody> |
1576 | 1576 | <?php |
1577 | 1577 | |
1578 | - $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1578 | + $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1579 | 1579 | ON a.id_jenis_pinjaman = b.id_jenis_pinjaman |
1580 | 1580 | WHERE a.prd = '$prd'"; |
1581 | 1581 | |
1582 | - $tampil = mysql_query($SQL); |
|
1582 | + $tampil = mysql_query($SQL); |
|
1583 | 1583 | |
1584 | - $no = 1; |
|
1584 | + $no = 1; |
|
1585 | 1585 | |
1586 | - while ($r = mysql_fetch_array($tampil)) { |
|
1587 | - echo'<tr>'; ?> |
|
1586 | + while ($r = mysql_fetch_array($tampil)) { |
|
1587 | + echo'<tr>'; ?> |
|
1588 | 1588 | |
1589 | 1589 | <form action="<?php echo"../../modul/mod_$modul/aksi_$modul.php?module=$modul&act=pl"; ?>" method="post" name="formData" enctype="multipart/form-data" > |
1590 | 1590 | |
@@ -1592,16 +1592,16 @@ discard block |
||
1592 | 1592 | <td> |
1593 | 1593 | <select name="jenis_pinjaman" class="form-control" disabled> |
1594 | 1594 | <?php |
1595 | - $query = mysql_query('SELECT * FROM jenis_pinjaman ORDER BY jenis_pinjaman'); |
|
1596 | - if ($query && mysql_num_rows($query) > 0) { |
|
1597 | - while ($row = mysql_fetch_object($query)) { |
|
1598 | - echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
|
1599 | - if ($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) { |
|
1600 | - echo ' selected'; |
|
1595 | + $query = mysql_query('SELECT * FROM jenis_pinjaman ORDER BY jenis_pinjaman'); |
|
1596 | + if ($query && mysql_num_rows($query) > 0) { |
|
1597 | + while ($row = mysql_fetch_object($query)) { |
|
1598 | + echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
|
1599 | + if ($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) { |
|
1600 | + echo ' selected'; |
|
1601 | + } |
|
1602 | + echo '>'.$row->jenis_pinjaman.'</option>'; |
|
1601 | 1603 | } |
1602 | - echo '>'.$row->jenis_pinjaman.'</option>'; |
|
1603 | - } |
|
1604 | - } ?> |
|
1604 | + } ?> |
|
1605 | 1605 | </select> |
1606 | 1606 | |
1607 | 1607 | </td> |
@@ -1613,22 +1613,22 @@ discard block |
||
1613 | 1613 | </td> |
1614 | 1614 | |
1615 | 1615 | <?php |
1616 | - echo" <td style='text-align:center;'>"; ?> |
|
1616 | + echo" <td style='text-align:center;'>"; ?> |
|
1617 | 1617 | <button type="submit" class="btn btn-primary btn-sm"> |
1618 | 1618 | <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span> |
1619 | 1619 | </button> |
1620 | 1620 | <?php |
1621 | - echo'</td>'; |
|
1622 | - echo'</tr>'; |
|
1623 | - $no++; ?> |
|
1621 | + echo'</td>'; |
|
1622 | + echo'</tr>'; |
|
1623 | + $no++; ?> |
|
1624 | 1624 | |
1625 | 1625 | <input type="hidden" name="ID" value="<?php echo $r['id_pg_plafon']?>" /> |
1626 | 1626 | <input type="hidden" name="id_module" value="<?php echo $id_module?>" /> |
1627 | 1627 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1628 | 1628 | |
1629 | 1629 | <?php |
1630 | - echo'</form>'; |
|
1631 | - } ?> |
|
1630 | + echo'</form>'; |
|
1631 | + } ?> |
|
1632 | 1632 | |
1633 | 1633 | |
1634 | 1634 | |
@@ -1646,8 +1646,8 @@ discard block |
||
1646 | 1646 | </div> |
1647 | 1647 | |
1648 | 1648 | <div id="menu5" class="tab-pane fade <?php if ($tab == 'jr') { |
1649 | - echo 'in active primary'; |
|
1650 | - } ?>"> |
|
1649 | + echo 'in active primary'; |
|
1650 | + } ?>"> |
|
1651 | 1651 | <br> |
1652 | 1652 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
1653 | 1653 | <div class="x_content"> |
@@ -1667,14 +1667,14 @@ discard block |
||
1667 | 1667 | <tbody> |
1668 | 1668 | <?php |
1669 | 1669 | |
1670 | - $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1670 | + $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1671 | 1671 | |
1672 | - $tampil = mysql_query($SQL); |
|
1672 | + $tampil = mysql_query($SQL); |
|
1673 | 1673 | |
1674 | - $no = 1; |
|
1674 | + $no = 1; |
|
1675 | 1675 | |
1676 | - while ($r = mysql_fetch_array($tampil)) { |
|
1677 | - echo'<tr>'; ?> |
|
1676 | + while ($r = mysql_fetch_array($tampil)) { |
|
1677 | + echo'<tr>'; ?> |
|
1678 | 1678 | |
1679 | 1679 | <form action="<?php echo"../../modul/mod_$modul/aksi_$modul.php?module=$modul&act=jr"; ?>" method="post" name="formData" enctype="multipart/form-data" > |
1680 | 1680 | |
@@ -1682,16 +1682,16 @@ discard block |
||
1682 | 1682 | <td> |
1683 | 1683 | <select name="modul" class="form-control" required > |
1684 | 1684 | <?php |
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) { |
|
1687 | - while ($row = mysql_fetch_object($query)) { |
|
1688 | - echo '<option value="'.$row->id_modul.'"'; |
|
1689 | - if ($row->id_modul == $r['id_modul']) { |
|
1690 | - echo ' selected'; |
|
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) { |
|
1687 | + while ($row = mysql_fetch_object($query)) { |
|
1688 | + echo '<option value="'.$row->id_modul.'"'; |
|
1689 | + if ($row->id_modul == $r['id_modul']) { |
|
1690 | + echo ' selected'; |
|
1691 | + } |
|
1692 | + echo '>'.$row->nama_modul.'</option>'; |
|
1691 | 1693 | } |
1692 | - echo '>'.$row->nama_modul.'</option>'; |
|
1693 | - } |
|
1694 | - } ?> |
|
1694 | + } ?> |
|
1695 | 1695 | </select> |
1696 | 1696 | |
1697 | 1697 | </td> |
@@ -1700,19 +1700,19 @@ discard block |
||
1700 | 1700 | <td> |
1701 | 1701 | <select name="jenis_transaksi" class="form-control" required > |
1702 | 1702 | <?php |
1703 | - $query = mysql_query('SELECT a.*,b.kode,b.tipe_transaksi |
|
1703 | + $query = mysql_query('SELECT a.*,b.kode,b.tipe_transaksi |
|
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) { |
|
1708 | - while ($row = mysql_fetch_object($query)) { |
|
1709 | - echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
1710 | - if ($row->id_jenis_transaksi == $r['id_jenis_transaksi']) { |
|
1711 | - echo ' selected'; |
|
1707 | + if ($query && mysql_num_rows($query) > 0) { |
|
1708 | + while ($row = mysql_fetch_object($query)) { |
|
1709 | + echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
1710 | + if ($row->id_jenis_transaksi == $r['id_jenis_transaksi']) { |
|
1711 | + echo ' selected'; |
|
1712 | + } |
|
1713 | + echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
|
1712 | 1714 | } |
1713 | - echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
|
1714 | - } |
|
1715 | - } ?> |
|
1715 | + } ?> |
|
1716 | 1716 | </select> |
1717 | 1717 | |
1718 | 1718 | </td> |
@@ -1720,22 +1720,22 @@ discard block |
||
1720 | 1720 | |
1721 | 1721 | |
1722 | 1722 | <?php |
1723 | - echo" <td style='text-align:center;'>"; ?> |
|
1723 | + echo" <td style='text-align:center;'>"; ?> |
|
1724 | 1724 | <button type="submit" class="btn btn-primary btn-sm"> |
1725 | 1725 | <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span> |
1726 | 1726 | </button> |
1727 | 1727 | <?php |
1728 | - echo'</td>'; |
|
1729 | - echo'</tr>'; |
|
1730 | - $no++; ?> |
|
1728 | + echo'</td>'; |
|
1729 | + echo'</tr>'; |
|
1730 | + $no++; ?> |
|
1731 | 1731 | |
1732 | 1732 | <input type="hidden" name="ID" value="<?php echo $r['id_pg_jurnal']?>" /> |
1733 | 1733 | <input type="hidden" name="id_module" value="<?php echo $id_module?>" /> |
1734 | 1734 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1735 | 1735 | |
1736 | 1736 | <?php |
1737 | - echo'</form>'; |
|
1738 | - } ?> |
|
1737 | + echo'</form>'; |
|
1738 | + } ?> |
|
1739 | 1739 | |
1740 | 1740 | |
1741 | 1741 | |
@@ -1753,8 +1753,8 @@ discard block |
||
1753 | 1753 | |
1754 | 1754 | |
1755 | 1755 | <div id="menu6" class="tab-pane fade <?php if ($tab == 'ln') { |
1756 | - echo 'in active primary'; |
|
1757 | - } ?>"> |
|
1756 | + echo 'in active primary'; |
|
1757 | + } ?>"> |
|
1758 | 1758 | <br> |
1759 | 1759 | |
1760 | 1760 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -1762,19 +1762,19 @@ discard block |
||
1762 | 1762 | |
1763 | 1763 | <?php |
1764 | 1764 | |
1765 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1765 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1766 | 1766 | |
1767 | - if ($id) { |
|
1768 | - $query = mysql_query('SELECT * FROM pg_lainnya |
|
1767 | + if ($id) { |
|
1768 | + $query = mysql_query('SELECT * FROM pg_lainnya |
|
1769 | 1769 | WHERE prd = "'.$prd.'" |
1770 | 1770 | '); |
1771 | 1771 | |
1772 | - if ($query && mysql_num_rows($query) == 1) { |
|
1773 | - $data = mysql_fetch_object($query); |
|
1774 | - } else { |
|
1775 | - die('Data general_setting tidak ditemukan'); |
|
1776 | - } |
|
1777 | - } ?> |
|
1772 | + if ($query && mysql_num_rows($query) == 1) { |
|
1773 | + $data = mysql_fetch_object($query); |
|
1774 | + } else { |
|
1775 | + die('Data general_setting tidak ditemukan'); |
|
1776 | + } |
|
1777 | + } ?> |
|
1778 | 1778 | <!-- start form for validation --> |
1779 | 1779 | <form action="<?php echo"../../modul/mod_$modul/aksi_$modul.php?module=$modul&act=ln"; ?>" method="post" name="formData" enctype="multipart/form-data" > |
1780 | 1780 | |
@@ -1801,18 +1801,18 @@ discard block |
||
1801 | 1801 | <select name="rek_shu" class="form-control" required > |
1802 | 1802 | <option value='0'></option> |
1803 | 1803 | <?php |
1804 | - $query = mysql_query('SELECT * FROM rekening |
|
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) { |
|
1808 | - while ($row = mysql_fetch_object($query)) { |
|
1809 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1810 | - if ($row->id_rekening == $data->rek_shu) { |
|
1811 | - echo ' selected'; |
|
1807 | + if ($query && mysql_num_rows($query) > 0) { |
|
1808 | + while ($row = mysql_fetch_object($query)) { |
|
1809 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1810 | + if ($row->id_rekening == $data->rek_shu) { |
|
1811 | + echo ' selected'; |
|
1812 | + } |
|
1813 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1812 | 1814 | } |
1813 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1814 | - } |
|
1815 | - } ?> |
|
1815 | + } ?> |
|
1816 | 1816 | </select> |
1817 | 1817 | </div> |
1818 | 1818 | |
@@ -2079,24 +2079,24 @@ discard block |
||
2079 | 2079 | |
2080 | 2080 | <?php |
2081 | 2081 | |
2082 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2082 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2083 | 2083 | |
2084 | - if ($id) { |
|
2085 | - $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
2086 | - if ($query && mysql_num_rows($query) == 1) { |
|
2087 | - $data = mysql_fetch_object($query); |
|
2088 | - } else { |
|
2089 | - die('Data general_setting tidak ditemukan'); |
|
2084 | + if ($id) { |
|
2085 | + $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
2086 | + if ($query && mysql_num_rows($query) == 1) { |
|
2087 | + $data = mysql_fetch_object($query); |
|
2088 | + } else { |
|
2089 | + die('Data general_setting tidak ditemukan'); |
|
2090 | + } |
|
2090 | 2091 | } |
2091 | - } |
|
2092 | 2092 | |
2093 | - $pict = $data->pict; |
|
2093 | + $pict = $data->pict; |
|
2094 | 2094 | |
2095 | - if (empty($pict)) { |
|
2096 | - $ipict = 'logo.png'; |
|
2097 | - } else { |
|
2098 | - $ipict = $pict; |
|
2099 | - } ?> |
|
2095 | + if (empty($pict)) { |
|
2096 | + $ipict = 'logo.png'; |
|
2097 | + } else { |
|
2098 | + $ipict = $pict; |
|
2099 | + } ?> |
|
2100 | 2100 | |
2101 | 2101 | <script> |
2102 | 2102 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -2122,11 +2122,11 @@ discard block |
||
2122 | 2122 | </script> |
2123 | 2123 | |
2124 | 2124 | <?php |
2125 | - if (empty($pict)) { |
|
2126 | - $ipict = 'logo.png'; |
|
2127 | - } else { |
|
2128 | - $ipict = $pict; |
|
2129 | - } ?> |
|
2125 | + if (empty($pict)) { |
|
2126 | + $ipict = 'logo.png'; |
|
2127 | + } else { |
|
2128 | + $ipict = $pict; |
|
2129 | + } ?> |
|
2130 | 2130 | |
2131 | 2131 | <script> |
2132 | 2132 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -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,39 +1,39 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -session_start(); |
|
4 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
5 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
3 | + session_start(); |
|
4 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
5 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
6 | 6 | } else { |
7 | - include './../../config/koneksi.php'; |
|
8 | - include './../../config/fungsi_thumb.php'; |
|
7 | + include './../../config/koneksi.php'; |
|
8 | + include './../../config/fungsi_thumb.php'; |
|
9 | 9 | |
10 | - $imodule = $_POST[imodule]; |
|
11 | - $module = $_GET[module]; |
|
12 | - $act = $_GET[act]; |
|
10 | + $imodule = $_POST[imodule]; |
|
11 | + $module = $_GET[module]; |
|
12 | + $act = $_GET[act]; |
|
13 | 13 | |
14 | - $date = date('d/m/Y'); |
|
15 | - $idate = date('Y-m-d'); |
|
16 | - $hour = time() - (1 * 1 * 60 * 60); |
|
17 | - $datetime = date('Y-m-d G:i:s', $hour); |
|
18 | - $userid = $_SESSION['userid']; |
|
14 | + $date = date('d/m/Y'); |
|
15 | + $idate = date('Y-m-d'); |
|
16 | + $hour = time() - (1 * 1 * 60 * 60); |
|
17 | + $datetime = date('Y-m-d G:i:s', $hour); |
|
18 | + $userid = $_SESSION['userid']; |
|
19 | 19 | |
20 | - $SQL = 'SELECT* FROM periode '; |
|
21 | - $tampil = mysql_query($SQL); |
|
22 | - $p = mysql_fetch_array($tampil); |
|
20 | + $SQL = 'SELECT* FROM periode '; |
|
21 | + $tampil = mysql_query($SQL); |
|
22 | + $p = mysql_fetch_array($tampil); |
|
23 | 23 | |
24 | - $prd = $p['periode']; |
|
24 | + $prd = $p['periode']; |
|
25 | 25 | |
26 | - if ($module == 'pengaturan_sistem' and $act == 'ip') { |
|
27 | - $id_module = $_POST['id_module']; |
|
26 | + if ($module == 'pengaturan_sistem' and $act == 'ip') { |
|
27 | + $id_module = $_POST['id_module']; |
|
28 | 28 | |
29 | - $lokasi_file = $_FILES['fupload']['tmp_name']; |
|
30 | - $tipe_file = $_FILES['fupload']['type']; |
|
31 | - $nama_file = $_FILES['fupload']['name']; |
|
32 | - $acak = rand(1, 99); |
|
33 | - $nama_file_unik = $acak.$nama_file; |
|
29 | + $lokasi_file = $_FILES['fupload']['tmp_name']; |
|
30 | + $tipe_file = $_FILES['fupload']['type']; |
|
31 | + $nama_file = $_FILES['fupload']['name']; |
|
32 | + $acak = rand(1, 99); |
|
33 | + $nama_file_unik = $acak.$nama_file; |
|
34 | 34 | |
35 | - if (empty($lokasi_file)) { |
|
36 | - mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
35 | + if (empty($lokasi_file)) { |
|
36 | + mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
37 | 37 | ,address = '$_POST[address]' |
38 | 38 | ,city = '$_POST[city]' |
39 | 39 | ,zip = '$_POST[zip]' |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | ,upddt = '$datetime' |
44 | 44 | ,updby = '$userid' |
45 | 45 | WHERE id_informasi_perusahaan = '$_POST[ID]'"); |
46 | - } else { |
|
47 | - LogoImage($nama_file_unik); |
|
48 | - mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
46 | + } else { |
|
47 | + LogoImage($nama_file_unik); |
|
48 | + mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
49 | 49 | ,address = '$_POST[address]' |
50 | 50 | ,city = '$_POST[city]' |
51 | 51 | ,zip = '$_POST[zip]' |
@@ -57,13 +57,13 @@ discard block |
||
57 | 57 | ,upddt = '$datetime' |
58 | 58 | ,updby = '$userid' |
59 | 59 | WHERE id_informasi_perusahaan = '$_POST[ID]'"); |
60 | - } |
|
60 | + } |
|
61 | 61 | |
62 | - $id = $_POST['ID']; |
|
62 | + $id = $_POST['ID']; |
|
63 | 63 | |
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') { |
|
66 | - mysql_query("UPDATE pg_setoran_awal SET jenis = '$_POST[jenis]' |
|
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') { |
|
66 | + mysql_query("UPDATE pg_setoran_awal SET jenis = '$_POST[jenis]' |
|
67 | 67 | ,nilai = '$_POST[nilai]' |
68 | 68 | ,id_jenis_posting = '$_POST[jenis_posting]' |
69 | 69 | ,rek_debet = '$_POST[rek_debet]' |
@@ -74,13 +74,13 @@ discard block |
||
74 | 74 | AND prd = '$prd' |
75 | 75 | "); |
76 | 76 | |
77 | - if ($_POST['u_tab'] == '1') { |
|
78 | - mysql_query("DELETE FROM pembukaan_tabungan |
|
77 | + if ($_POST['u_tab'] == '1') { |
|
78 | + mysql_query("DELETE FROM pembukaan_tabungan |
|
79 | 79 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
80 | 80 | AND status = '2' |
81 | 81 | "); |
82 | 82 | |
83 | - mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
83 | + mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
84 | 84 | ,upddt = '$datetime' |
85 | 85 | ,updby = '$userid' |
86 | 86 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | AND posting = '0' |
89 | 89 | "); |
90 | 90 | |
91 | - mysql_query("INSERT INTO pembukaan_tabungan ( |
|
91 | + mysql_query("INSERT INTO pembukaan_tabungan ( |
|
92 | 92 | nik |
93 | 93 | , tanggal |
94 | 94 | , id_pg_setoran_awal |
@@ -114,22 +114,22 @@ discard block |
||
114 | 114 | where tipe = 'A' |
115 | 115 | AND tab = '1' |
116 | 116 | "); |
117 | - } |
|
117 | + } |
|
118 | 118 | |
119 | - if ($_POST['u_tab'] == '2') { |
|
120 | - mysql_query("DELETE FROM pembukaan_tabungan |
|
119 | + if ($_POST['u_tab'] == '2') { |
|
120 | + mysql_query("DELETE FROM pembukaan_tabungan |
|
121 | 121 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
122 | 122 | AND status = '2' |
123 | 123 | "); |
124 | 124 | |
125 | - mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
125 | + mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
126 | 126 | ,upddt = '$datetime' |
127 | 127 | ,updby = '$userid' |
128 | 128 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
129 | 129 | AND status = '0' |
130 | 130 | "); |
131 | 131 | |
132 | - mysql_query("INSERT INTO pembukaan_tabungan ( |
|
132 | + mysql_query("INSERT INTO pembukaan_tabungan ( |
|
133 | 133 | nik |
134 | 134 | , tanggal |
135 | 135 | , id_pg_setoran_awal |
@@ -155,12 +155,12 @@ discard block |
||
155 | 155 | where tipe = 'A' |
156 | 156 | AND tab = '1' |
157 | 157 | "); |
158 | - } |
|
158 | + } |
|
159 | 159 | |
160 | - $id = $_POST['ID']; |
|
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') { |
|
163 | - mysql_query("UPDATE pg_penarikan_dana SET max_pencairan = '$_POST[max_pencairan]' |
|
160 | + $id = $_POST['ID']; |
|
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') { |
|
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]' |
166 | 166 | ,rek_debet = '$_POST[rek_debet]' |
@@ -172,11 +172,11 @@ discard block |
||
172 | 172 | AND prd = '$prd' |
173 | 173 | "); |
174 | 174 | |
175 | - $id = $_POST['ID']; |
|
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') { |
|
179 | - mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_k]' |
|
175 | + $id = $_POST['ID']; |
|
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') { |
|
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]' |
182 | 182 | ,max_angsuran = '$_POST[max_angsuran_k]' |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | AND prd = '$prd' |
200 | 200 | "); |
201 | 201 | |
202 | - mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_s]' |
|
202 | + mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_s]' |
|
203 | 203 | ,max_tenor = '$_POST[max_tenor_s]' |
204 | 204 | ,max_pinjaman = '$_POST[max_pinjaman_s]' |
205 | 205 | ,max_angsuran = '$_POST[max_angsuran_s]' |
@@ -221,8 +221,8 @@ discard block |
||
221 | 221 | WHERE tipe = 'S' |
222 | 222 | AND prd = '$prd' |
223 | 223 | "); |
224 | - } else { |
|
225 | - mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_k]' |
|
224 | + } else { |
|
225 | + mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_k]' |
|
226 | 226 | ,max_tenor = '$_POST[max_tenor_k]' |
227 | 227 | ,max_pinjaman = '$_POST[max_pinjaman_k]' |
228 | 228 | ,max_angsuran = '$_POST[max_angsuran_k]' |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | AND prd = '$prd' |
246 | 246 | "); |
247 | 247 | |
248 | - mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_s]' |
|
248 | + mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_s]' |
|
249 | 249 | ,max_tenor = '$_POST[max_tenor_s]' |
250 | 250 | ,max_pinjaman = '$_POST[max_pinjaman_s]' |
251 | 251 | ,max_angsuran = '$_POST[max_angsuran_s]' |
@@ -267,13 +267,13 @@ discard block |
||
267 | 267 | WHERE tipe = 'S' |
268 | 268 | AND prd = '$prd' |
269 | 269 | "); |
270 | - } |
|
270 | + } |
|
271 | 271 | |
272 | - $stab = $_POST['stab']; |
|
272 | + $stab = $_POST['stab']; |
|
273 | 273 | |
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') { |
|
276 | - mysql_query("UPDATE pg_lainnya SET harga_saham = '$_POST[harga_saham]' |
|
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') { |
|
276 | + mysql_query("UPDATE pg_lainnya SET harga_saham = '$_POST[harga_saham]' |
|
277 | 277 | ,rek_shu = '$_POST[rek_shu]' |
278 | 278 | ,ftgl = '$_POST[ftgl]' |
279 | 279 | ,fbln = '$_POST[fbln]' |
@@ -285,10 +285,10 @@ discard block |
||
285 | 285 | AND prd = '$prd' |
286 | 286 | "); |
287 | 287 | |
288 | - $id = $_POST['ID']; |
|
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') { |
|
291 | - mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi = '$_POST[jenis_transaksi]' |
|
288 | + $id = $_POST['ID']; |
|
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') { |
|
291 | + mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi = '$_POST[jenis_transaksi]' |
|
292 | 292 | ,id_modul = '$_POST[modul]' |
293 | 293 | ,upddt = '$datetime' |
294 | 294 | ,updby = '$userid' |
@@ -296,17 +296,17 @@ discard block |
||
296 | 296 | AND prd = '$prd' |
297 | 297 | "); |
298 | 298 | |
299 | - $id = $_POST['ID']; |
|
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') { |
|
302 | - mysql_query("UPDATE pg_plafon SET plafon = '$_POST[plafon]' |
|
299 | + $id = $_POST['ID']; |
|
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') { |
|
302 | + mysql_query("UPDATE pg_plafon SET plafon = '$_POST[plafon]' |
|
303 | 303 | ,upddt = '$datetime' |
304 | 304 | ,updby = '$userid' |
305 | 305 | WHERE id_pg_plafon = '$_POST[ID]' |
306 | 306 | AND prd = '$prd' |
307 | 307 | "); |
308 | 308 | |
309 | - $id = $_POST['ID']; |
|
310 | - header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
|
311 | - } |
|
309 | + $id = $_POST['ID']; |
|
310 | + header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
|
311 | + } |
|
312 | 312 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | <div class="col-md-6 col-sm-6 col-xs-12" > |
143 | 143 | <select name="agama" class="form-control"> |
144 | 144 | <?php |
145 | - $query = mysql_query('SELECT * FROM agama ORDER BY agama'); |
|
145 | + $query = mysql_query('SELECT * FROM agama ORDER BY agama'); |
|
146 | 146 | if ($query && mysql_num_rows($query) > 0) { |
147 | 147 | while ($row = mysql_fetch_object($query)) { |
148 | 148 | echo '<option value="'.$row->id_agama.'"'; |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | <div class="col-md-6 col-sm-6 col-xs-12" > |
161 | 161 | <select name="kategori" class="form-control"> |
162 | 162 | <?php |
163 | - $query = mysql_query('SELECT * FROM kategori ORDER BY kategori'); |
|
163 | + $query = mysql_query('SELECT * FROM kategori ORDER BY kategori'); |
|
164 | 164 | if ($query && mysql_num_rows($query) > 0) { |
165 | 165 | while ($row = mysql_fetch_object($query)) { |
166 | 166 | echo '<option value="'.$row->id_kategori.'"'; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM pasien WHERE id_pasien = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | <?php if ($id) { |
95 | 95 | ?> |
96 | 96 | |
97 | - <?php if (@$data->gender == 'L') { |
|
97 | + <?php if (@$data->gender=='L') { |
|
98 | 98 | ?> |
99 | 99 | |
100 | 100 | <div class="form-group"> |
@@ -143,10 +143,10 @@ discard block |
||
143 | 143 | <select name="agama" class="form-control"> |
144 | 144 | <?php |
145 | 145 | $query = mysql_query('SELECT * FROM agama ORDER BY agama'); |
146 | - if ($query && mysql_num_rows($query) > 0) { |
|
146 | + if ($query && mysql_num_rows($query)>0) { |
|
147 | 147 | while ($row = mysql_fetch_object($query)) { |
148 | 148 | echo '<option value="'.$row->id_agama.'"'; |
149 | - if ($row->id_agama == @$data->id_agama) { |
|
149 | + if ($row->id_agama==@$data->id_agama) { |
|
150 | 150 | echo ' selected'; |
151 | 151 | } |
152 | 152 | echo '>'.$row->agama.'</option>'; |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | <select name="kategori" class="form-control"> |
162 | 162 | <?php |
163 | 163 | $query = mysql_query('SELECT * FROM kategori ORDER BY kategori'); |
164 | - if ($query && mysql_num_rows($query) > 0) { |
|
164 | + if ($query && mysql_num_rows($query)>0) { |
|
165 | 165 | while ($row = mysql_fetch_object($query)) { |
166 | 166 | echo '<option value="'.$row->id_kategori.'"'; |
167 | - if ($row->id_kategori == @$data->id_kategori) { |
|
167 | + if ($row->id_kategori==@$data->id_kategori) { |
|
168 | 168 | echo ' selected'; |
169 | 169 | } |
170 | 170 | echo '>'.$row->kategori.'</option>'; |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | <?php if ($id) { |
192 | 192 | ?> |
193 | 193 | |
194 | - <?php if (@$data->aktif == 'Y') { |
|
194 | + <?php if (@$data->aktif=='Y') { |
|
195 | 195 | ?> |
196 | 196 | |
197 | 197 | <div class="form-group"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | -<?php |
|
2 | -session_start(); |
|
3 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
1 | + <?php |
|
2 | + session_start(); |
|
3 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else { |
6 | - include './../../config/koneksi.php'; ?> |
|
6 | + include './../../config/koneksi.php'; ?> |
|
7 | 7 | <!doctype html> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -33,35 +33,35 @@ discard block |
||
33 | 33 | <body style='background-color:#fff;'> |
34 | 34 | <?php |
35 | 35 | |
36 | -$modul = $_GET['module']; |
|
37 | - $title = $_GET['title']; |
|
38 | - $business_type = $_SESSION['business_type']; |
|
39 | - $role = $_SESSION['role']; |
|
36 | + $modul = $_GET['module']; |
|
37 | + $title = $_GET['title']; |
|
38 | + $business_type = $_SESSION['business_type']; |
|
39 | + $role = $_SESSION['role']; |
|
40 | 40 | |
41 | - $id_module = $_GET['id_module']; |
|
41 | + $id_module = $_GET['id_module']; |
|
42 | 42 | |
43 | - $id = isset($_GET['id_pasien']) ? intval($_GET['id_pasien']) : false; |
|
43 | + $id = isset($_GET['id_pasien']) ? intval($_GET['id_pasien']) : false; |
|
44 | 44 | |
45 | - if ($id) { |
|
46 | - $query = mysql_query('SELECT * FROM pasien WHERE id_pasien = "'.$id.'"'); |
|
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
48 | - $data = mysql_fetch_object($query); |
|
49 | - } else { |
|
50 | - die('Data modul tidak ditemukan'); |
|
45 | + if ($id) { |
|
46 | + $query = mysql_query('SELECT * FROM pasien WHERE id_pasien = "'.$id.'"'); |
|
47 | + if ($query && mysql_num_rows($query) == 1) { |
|
48 | + $data = mysql_fetch_object($query); |
|
49 | + } else { |
|
50 | + die('Data modul tidak ditemukan'); |
|
51 | + } |
|
51 | 52 | } |
52 | - } |
|
53 | 53 | |
54 | - if ($_GET['igroup']) { |
|
55 | - $group = $_GET['igroup']; |
|
56 | - } else { |
|
57 | - $group = $data->id_pasien; |
|
58 | - } |
|
54 | + if ($_GET['igroup']) { |
|
55 | + $group = $_GET['igroup']; |
|
56 | + } else { |
|
57 | + $group = $data->id_pasien; |
|
58 | + } |
|
59 | 59 | |
60 | - if ($_GET['imenu']) { |
|
61 | - $imenu = $_GET['imenu']; |
|
62 | - } else { |
|
63 | - $imenu = $data->id_modul; |
|
64 | - } ?> |
|
60 | + if ($_GET['imenu']) { |
|
61 | + $imenu = $_GET['imenu']; |
|
62 | + } else { |
|
63 | + $imenu = $data->id_modul; |
|
64 | + } ?> |
|
65 | 65 | |
66 | 66 | |
67 | 67 | <div class="ix_panel"> |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | </div> |
93 | 93 | |
94 | 94 | <?php if ($id) { |
95 | - ?> |
|
95 | + ?> |
|
96 | 96 | |
97 | 97 | <?php if (@$data->gender == 'L') { |
98 | - ?> |
|
98 | + ?> |
|
99 | 99 | |
100 | 100 | <div class="form-group"> |
101 | 101 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Jenis Kelamin</label> |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | </div> |
106 | 106 | </div> |
107 | 107 | <?php |
108 | - } else { |
|
109 | - ?> |
|
108 | + } else { |
|
109 | + ?> |
|
110 | 110 | |
111 | 111 | <div class="form-group"> |
112 | 112 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Jenis Kelamin</label> |
@@ -116,11 +116,11 @@ discard block |
||
116 | 116 | </div> |
117 | 117 | </div> |
118 | 118 | <?php |
119 | - } ?> |
|
120 | - |
|
119 | + } ?> |
|
120 | + |
|
121 | 121 | <?php |
122 | - } else { |
|
123 | - ?> |
|
122 | + } else { |
|
123 | + ?> |
|
124 | 124 | |
125 | 125 | |
126 | 126 | <div class="form-group"> |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | </div> |
133 | 133 | |
134 | 134 | <?php |
135 | - } ?> |
|
135 | + } ?> |
|
136 | 136 | |
137 | 137 | |
138 | 138 | |
@@ -142,16 +142,16 @@ discard block |
||
142 | 142 | <div class="col-md-6 col-sm-6 col-xs-12" > |
143 | 143 | <select name="agama" class="form-control"> |
144 | 144 | <?php |
145 | - $query = mysql_query('SELECT * FROM agama ORDER BY agama'); |
|
146 | - if ($query && mysql_num_rows($query) > 0) { |
|
147 | - while ($row = mysql_fetch_object($query)) { |
|
148 | - echo '<option value="'.$row->id_agama.'"'; |
|
149 | - if ($row->id_agama == @$data->id_agama) { |
|
150 | - echo ' selected'; |
|
145 | + $query = mysql_query('SELECT * FROM agama ORDER BY agama'); |
|
146 | + if ($query && mysql_num_rows($query) > 0) { |
|
147 | + while ($row = mysql_fetch_object($query)) { |
|
148 | + echo '<option value="'.$row->id_agama.'"'; |
|
149 | + if ($row->id_agama == @$data->id_agama) { |
|
150 | + echo ' selected'; |
|
151 | + } |
|
152 | + echo '>'.$row->agama.'</option>'; |
|
151 | 153 | } |
152 | - echo '>'.$row->agama.'</option>'; |
|
153 | - } |
|
154 | - } ?> |
|
154 | + } ?> |
|
155 | 155 | </select> |
156 | 156 | </div> |
157 | 157 | |
@@ -160,16 +160,16 @@ discard block |
||
160 | 160 | <div class="col-md-6 col-sm-6 col-xs-12" > |
161 | 161 | <select name="kategori" class="form-control"> |
162 | 162 | <?php |
163 | - $query = mysql_query('SELECT * FROM kategori ORDER BY kategori'); |
|
164 | - if ($query && mysql_num_rows($query) > 0) { |
|
165 | - while ($row = mysql_fetch_object($query)) { |
|
166 | - echo '<option value="'.$row->id_kategori.'"'; |
|
167 | - if ($row->id_kategori == @$data->id_kategori) { |
|
168 | - echo ' selected'; |
|
163 | + $query = mysql_query('SELECT * FROM kategori ORDER BY kategori'); |
|
164 | + if ($query && mysql_num_rows($query) > 0) { |
|
165 | + while ($row = mysql_fetch_object($query)) { |
|
166 | + echo '<option value="'.$row->id_kategori.'"'; |
|
167 | + if ($row->id_kategori == @$data->id_kategori) { |
|
168 | + echo ' selected'; |
|
169 | + } |
|
170 | + echo '>'.$row->kategori.'</option>'; |
|
169 | 171 | } |
170 | - echo '>'.$row->kategori.'</option>'; |
|
171 | - } |
|
172 | - } ?> |
|
172 | + } ?> |
|
173 | 173 | </select> |
174 | 174 | </div> |
175 | 175 | |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | |
190 | 190 | |
191 | 191 | <?php if ($id) { |
192 | - ?> |
|
192 | + ?> |
|
193 | 193 | |
194 | 194 | <?php if (@$data->aktif == 'Y') { |
195 | - ?> |
|
195 | + ?> |
|
196 | 196 | |
197 | 197 | <div class="form-group"> |
198 | 198 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif:</label> |
@@ -202,8 +202,8 @@ discard block |
||
202 | 202 | </div> |
203 | 203 | </div> |
204 | 204 | <?php |
205 | - } else { |
|
206 | - ?> |
|
205 | + } else { |
|
206 | + ?> |
|
207 | 207 | |
208 | 208 | <div class="form-group"> |
209 | 209 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif:</label> |
@@ -213,11 +213,11 @@ discard block |
||
213 | 213 | </div> |
214 | 214 | </div> |
215 | 215 | <?php |
216 | - } ?> |
|
217 | - |
|
216 | + } ?> |
|
217 | + |
|
218 | 218 | <?php |
219 | - } else { |
|
220 | - ?> |
|
219 | + } else { |
|
220 | + ?> |
|
221 | 221 | |
222 | 222 | |
223 | 223 | <div class="form-group"> |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | </div> |
230 | 230 | |
231 | 231 | <?php |
232 | - } ?> |
|
232 | + } ?> |
|
233 | 233 | |
234 | 234 | |
235 | 235 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | 19 | // Hapus modul |
20 | - if ($module == 'pasien' and $act == 'hapus') { |
|
20 | + if ($module=='pasien' and $act=='hapus') { |
|
21 | 21 | $id = $_GET['id']; |
22 | 22 | $id_module = $_GET['id_module']; |
23 | 23 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | // Input group |
37 | - elseif ($module == 'pasien' and $act == 'input') { |
|
37 | + elseif ($module=='pasien' and $act=='input') { |
|
38 | 38 | $id_module = $_POST['id_module']; |
39 | 39 | |
40 | 40 | if ($_POST['ID']) { |
@@ -1,29 +1,29 @@ discard block |
||
1 | -<?php |
|
2 | -session_start(); |
|
3 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
1 | + <?php |
|
2 | + session_start(); |
|
3 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else { |
6 | - include './../../config/koneksi.php'; |
|
7 | - include './../../config/fungsi_thumb.php'; |
|
6 | + include './../../config/koneksi.php'; |
|
7 | + include './../../config/fungsi_thumb.php'; |
|
8 | 8 | |
9 | - $module = $_GET[module]; |
|
10 | - $act = $_GET[act]; |
|
9 | + $module = $_GET[module]; |
|
10 | + $act = $_GET[act]; |
|
11 | 11 | |
12 | - $date = date('d/m/Y'); |
|
13 | - $idate = date('Y-m-d'); |
|
14 | - $hour = time() - (1 * 1 * 60 * 60); |
|
15 | - $datetime = date('Y-m-d G:i:s', $hour); |
|
16 | - $userid = $_SESSION['userid']; |
|
17 | - $business_type = $_SESSION['business_type']; |
|
12 | + $date = date('d/m/Y'); |
|
13 | + $idate = date('Y-m-d'); |
|
14 | + $hour = time() - (1 * 1 * 60 * 60); |
|
15 | + $datetime = date('Y-m-d G:i:s', $hour); |
|
16 | + $userid = $_SESSION['userid']; |
|
17 | + $business_type = $_SESSION['business_type']; |
|
18 | 18 | |
19 | - // Hapus modul |
|
20 | - if ($module == 'pasien' and $act == 'hapus') { |
|
21 | - $id = $_GET['id']; |
|
22 | - $id_module = $_GET['id_module']; |
|
19 | + // Hapus modul |
|
20 | + if ($module == 'pasien' and $act == 'hapus') { |
|
21 | + $id = $_GET['id']; |
|
22 | + $id_module = $_GET['id_module']; |
|
23 | 23 | |
24 | - mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id"); |
|
24 | + mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id"); |
|
25 | 25 | |
26 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
26 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
27 | 27 | |
28 | 28 | <script language="javascript"> |
29 | 29 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
@@ -31,14 +31,14 @@ discard block |
||
31 | 31 | </script> |
32 | 32 | |
33 | 33 | <?php |
34 | - } |
|
34 | + } |
|
35 | 35 | |
36 | - // Input group |
|
37 | - elseif ($module == 'pasien' and $act == 'input') { |
|
38 | - $id_module = $_POST['id_module']; |
|
36 | + // Input group |
|
37 | + elseif ($module == 'pasien' and $act == 'input') { |
|
38 | + $id_module = $_POST['id_module']; |
|
39 | 39 | |
40 | - if ($_POST['ID']) { |
|
41 | - mysql_query("UPDATE pasien SET ktp = '$_POST[ktp]' |
|
40 | + if ($_POST['ID']) { |
|
41 | + mysql_query("UPDATE pasien SET ktp = '$_POST[ktp]' |
|
42 | 42 | ,nama = '$_POST[nama]' |
43 | 43 | ,gender = '$_POST[gender]' |
44 | 44 | ,tgl_lahir = '$_POST[tgl_lahir]' |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | ,updby = '$userid' |
51 | 51 | ,aktif = '$_POST[aktif]' |
52 | 52 | WHERE id_pasien = '$_POST[ID]'"); |
53 | - } else { |
|
54 | - mysql_query("INSERT INTO pasien(ktp |
|
53 | + } else { |
|
54 | + mysql_query("INSERT INTO pasien(ktp |
|
55 | 55 | ,nama |
56 | 56 | ,gender |
57 | 57 | ,tgl_lahir |
@@ -77,9 +77,9 @@ discard block |
||
77 | 77 | ,'$datetime' |
78 | 78 | ,'$userid' |
79 | 79 | ,'$_POST[aktif]')"); |
80 | - } |
|
80 | + } |
|
81 | 81 | |
82 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
82 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
83 | 83 | |
84 | 84 | <script language="javascript"> |
85 | 85 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
@@ -87,6 +87,6 @@ discard block |
||
87 | 87 | </script> |
88 | 88 | |
89 | 89 | <?php |
90 | - } |
|
90 | + } |
|
91 | 91 | } |
92 | -?> |
|
92 | + ?> |
@@ -345,9 +345,9 @@ discard block |
||
345 | 345 | |
346 | 346 | $id_pasien = $_GET['id_pasien']; |
347 | 347 | |
348 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
348 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
349 | 349 | |
350 | - $g = mysql_fetch_array($gtampil); |
|
350 | + $g = mysql_fetch_array($gtampil); |
|
351 | 351 | |
352 | 352 | if ($g['pict']) { |
353 | 353 | $pict = $g['pict']; |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | |
358 | 358 | $company = ucwords($g['company']); |
359 | 359 | |
360 | - ?> |
|
360 | + ?> |
|
361 | 361 | |
362 | 362 | <div style='border:1px solid black;'> |
363 | 363 | |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | |
377 | 377 | |
378 | 378 | <?php |
379 | - $tampil = mysql_query("SELECT a.*,b.agama,c.kategori |
|
379 | + $tampil = mysql_query("SELECT a.*,b.agama,c.kategori |
|
380 | 380 | FROM pasien a left join agama b |
381 | 381 | ON a.id_agama = b.id_agama |
382 | 382 | left join kategori c |
@@ -387,7 +387,7 @@ |
||
387 | 387 | |
388 | 388 | $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
389 | 389 | |
390 | -if ($r['gender'] == 'L') { |
|
390 | +if ($r['gender']=='L') { |
|
391 | 391 | $gender = 'Laki-laki'; |
392 | 392 | } else { |
393 | 393 | $gender = 'Perempuan'; |
@@ -1,41 +1,41 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -session_start(); |
|
3 | + session_start(); |
|
4 | 4 | |
5 | -include './../../config/koneksi.php'; |
|
6 | -include './../../config/fungsi_indobulan.php'; |
|
7 | -include './../../config/barcode_gen.php'; |
|
8 | -include './../../config/qrcode/qrlib.php'; |
|
5 | + include './../../config/koneksi.php'; |
|
6 | + include './../../config/fungsi_indobulan.php'; |
|
7 | + include './../../config/barcode_gen.php'; |
|
8 | + include './../../config/qrcode/qrlib.php'; |
|
9 | 9 | |
10 | -$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
10 | + $tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
11 | 11 | |
12 | -$r = mysql_fetch_array($tampil); |
|
12 | + $r = mysql_fetch_array($tampil); |
|
13 | 13 | |
14 | -$module = $_GET['module']; |
|
14 | + $module = $_GET['module']; |
|
15 | 15 | |
16 | -$imodule = ucwords($r['nama_modul']); |
|
16 | + $imodule = ucwords($r['nama_modul']); |
|
17 | 17 | |
18 | -$nmmodule = ucwords($r['nama_modul']); |
|
18 | + $nmmodule = ucwords($r['nama_modul']); |
|
19 | 19 | |
20 | -$id = $r['id_modul']; |
|
20 | + $id = $r['id_modul']; |
|
21 | 21 | |
22 | -$fa_icon = $r['fa_icon']; |
|
22 | + $fa_icon = $r['fa_icon']; |
|
23 | 23 | |
24 | -// if($r[orientation] == 'P') { |
|
24 | + // if($r[orientation] == 'P') { |
|
25 | 25 | |
26 | -// $orientation = 'portrait'; |
|
26 | + // $orientation = 'portrait'; |
|
27 | 27 | |
28 | -// } else { |
|
28 | + // } else { |
|
29 | 29 | |
30 | -// $orientation = 'landscape'; |
|
30 | + // $orientation = 'landscape'; |
|
31 | 31 | |
32 | -// } |
|
32 | + // } |
|
33 | 33 | |
34 | -$orientation = 'portrait'; |
|
34 | + $orientation = 'portrait'; |
|
35 | 35 | |
36 | -$status = $_GET['status']; |
|
36 | + $status = $_GET['status']; |
|
37 | 37 | |
38 | -?> |
|
38 | + ?> |
|
39 | 39 | |
40 | 40 | |
41 | 41 | |
@@ -337,27 +337,27 @@ discard block |
||
337 | 337 | |
338 | 338 | <?php |
339 | 339 | |
340 | -$time = time() - (1 * 1 * 60 * 60); |
|
340 | + $time = time() - (1 * 1 * 60 * 60); |
|
341 | 341 | |
342 | -$datetime = date('d/m/Y G:i:s', $time); |
|
342 | + $datetime = date('d/m/Y G:i:s', $time); |
|
343 | 343 | |
344 | -$tgl = tgl_indo(date('Y-m-d', $time)); |
|
344 | + $tgl = tgl_indo(date('Y-m-d', $time)); |
|
345 | 345 | |
346 | -$id_pasien = $_GET['id_pasien']; |
|
346 | + $id_pasien = $_GET['id_pasien']; |
|
347 | 347 | |
348 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
348 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
349 | 349 | |
350 | - $g = mysql_fetch_array($gtampil); |
|
350 | + $g = mysql_fetch_array($gtampil); |
|
351 | 351 | |
352 | -if ($g['pict']) { |
|
353 | - $pict = $g['pict']; |
|
352 | + if ($g['pict']) { |
|
353 | + $pict = $g['pict']; |
|
354 | 354 | } else { |
355 | - $pict = ''; |
|
355 | + $pict = ''; |
|
356 | 356 | } |
357 | 357 | |
358 | -$company = ucwords($g['company']); |
|
358 | + $company = ucwords($g['company']); |
|
359 | 359 | |
360 | - ?> |
|
360 | + ?> |
|
361 | 361 | |
362 | 362 | <div style='border:1px solid black;'> |
363 | 363 | |
@@ -376,23 +376,23 @@ discard block |
||
376 | 376 | |
377 | 377 | |
378 | 378 | <?php |
379 | - $tampil = mysql_query("SELECT a.*,b.agama,c.kategori |
|
379 | + $tampil = mysql_query("SELECT a.*,b.agama,c.kategori |
|
380 | 380 | FROM pasien a left join agama b |
381 | 381 | ON a.id_agama = b.id_agama |
382 | 382 | left join kategori c |
383 | 383 | ON a.id_kategori = c.id_kategori |
384 | 384 | WHERE a.id_pasien = '$id_pasien' "); |
385 | 385 | |
386 | -$r = mysql_fetch_array($tampil); |
|
386 | + $r = mysql_fetch_array($tampil); |
|
387 | 387 | |
388 | -$tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
388 | + $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
|
389 | 389 | |
390 | -if ($r['gender'] == 'L') { |
|
391 | - $gender = 'Laki-laki'; |
|
390 | + if ($r['gender'] == 'L') { |
|
391 | + $gender = 'Laki-laki'; |
|
392 | 392 | } else { |
393 | - $gender = 'Perempuan'; |
|
393 | + $gender = 'Perempuan'; |
|
394 | 394 | } |
395 | -?> |
|
395 | + ?> |
|
396 | 396 | <table> |
397 | 397 | |
398 | 398 | <table width='100%' border='0'> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | // Hapus modul |
19 | - if ($module == 'rujukan' and $act == 'hapus') { |
|
19 | + if ($module=='rujukan' and $act=='hapus') { |
|
20 | 20 | $id = $_GET['id']; |
21 | 21 | $id_module = $_GET['id_module']; |
22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | // Input group |
36 | - elseif ($module == 'rujukan' and $act == 'input') { |
|
36 | + elseif ($module=='rujukan' and $act=='input') { |
|
37 | 37 | $id_module = $_POST['id_module']; |
38 | 38 | |
39 | 39 | if ($_POST['ID']) { |
@@ -1,28 +1,28 @@ discard block |
||
1 | -<?php |
|
2 | -session_start(); |
|
3 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
1 | + <?php |
|
2 | + session_start(); |
|
3 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else { |
6 | - include './../../config/koneksi.php'; |
|
7 | - include './../../config/fungsi_thumb.php'; |
|
6 | + include './../../config/koneksi.php'; |
|
7 | + include './../../config/fungsi_thumb.php'; |
|
8 | 8 | |
9 | - $module = $_GET[module]; |
|
10 | - $act = $_GET[act]; |
|
9 | + $module = $_GET[module]; |
|
10 | + $act = $_GET[act]; |
|
11 | 11 | |
12 | - $date = date('d/m/Y'); |
|
13 | - $idate = date('Y-m-d'); |
|
14 | - $hour = time() - (1 * 1 * 60 * 60); |
|
15 | - $datetime = date('Y-m-d G:i:s', $hour); |
|
16 | - $userid = $_SESSION['userid']; |
|
12 | + $date = date('d/m/Y'); |
|
13 | + $idate = date('Y-m-d'); |
|
14 | + $hour = time() - (1 * 1 * 60 * 60); |
|
15 | + $datetime = date('Y-m-d G:i:s', $hour); |
|
16 | + $userid = $_SESSION['userid']; |
|
17 | 17 | |
18 | - // Hapus modul |
|
19 | - if ($module == 'rujukan' and $act == 'hapus') { |
|
20 | - $id = $_GET['id']; |
|
21 | - $id_module = $_GET['id_module']; |
|
18 | + // Hapus modul |
|
19 | + if ($module == 'rujukan' and $act == 'hapus') { |
|
20 | + $id = $_GET['id']; |
|
21 | + $id_module = $_GET['id_module']; |
|
22 | 22 | |
23 | - mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id"); |
|
23 | + mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id"); |
|
24 | 24 | |
25 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
25 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
26 | 26 | |
27 | 27 | <script language="javascript"> |
28 | 28 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
@@ -30,21 +30,21 @@ discard block |
||
30 | 30 | </script> |
31 | 31 | |
32 | 32 | <?php |
33 | - } |
|
33 | + } |
|
34 | 34 | |
35 | - // Input group |
|
36 | - elseif ($module == 'rujukan' and $act == 'input') { |
|
37 | - $id_module = $_POST['id_module']; |
|
35 | + // Input group |
|
36 | + elseif ($module == 'rujukan' and $act == 'input') { |
|
37 | + $id_module = $_POST['id_module']; |
|
38 | 38 | |
39 | - if ($_POST['ID']) { |
|
40 | - mysql_query("UPDATE rujukan SET tipe = '$_POST[tipe]' |
|
39 | + if ($_POST['ID']) { |
|
40 | + mysql_query("UPDATE rujukan SET tipe = '$_POST[tipe]' |
|
41 | 41 | ,rujukan = '$_POST[rujukan]' |
42 | 42 | ,upddt = '$datetime' |
43 | 43 | ,updby = '$userid' |
44 | 44 | ,aktif = '$_POST[aktif]' |
45 | 45 | WHERE id_rujukan = '$_POST[ID]'"); |
46 | - } else { |
|
47 | - mysql_query("INSERT INTO rujukan(tipe |
|
46 | + } else { |
|
47 | + mysql_query("INSERT INTO rujukan(tipe |
|
48 | 48 | ,rujukan |
49 | 49 | ,crtdt |
50 | 50 | ,crtby |
@@ -58,9 +58,9 @@ discard block |
||
58 | 58 | ,'$datetime' |
59 | 59 | ,'$userid' |
60 | 60 | ,'$_POST[aktif]')"); |
61 | - } |
|
61 | + } |
|
62 | 62 | |
63 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
63 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
64 | 64 | |
65 | 65 | <script language="javascript"> |
66 | 66 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
@@ -68,6 +68,6 @@ discard block |
||
68 | 68 | </script> |
69 | 69 | |
70 | 70 | <?php |
71 | - } |
|
71 | + } |
|
72 | 72 | } |
73 | -?> |
|
73 | + ?> |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM rujukan WHERE id_rujukan = "'.$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'); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <?php if ($id) { |
74 | 74 | ?> |
75 | 75 | |
76 | - <?php if (@$data->tipe == 'R') { |
|
76 | + <?php if (@$data->tipe=='R') { |
|
77 | 77 | ?> |
78 | 78 | |
79 | 79 | <div class="form-group"> |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | <?php if ($id) { |
126 | 126 | ?> |
127 | 127 | |
128 | - <?php if (@$data->aktif == 'Y') { |
|
128 | + <?php if (@$data->aktif=='Y') { |
|
129 | 129 | ?> |
130 | 130 | |
131 | 131 | <div class="form-group"> |
@@ -1,9 +1,9 @@ discard block |
||
1 | -<?php |
|
2 | -session_start(); |
|
3 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
1 | + <?php |
|
2 | + session_start(); |
|
3 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else { |
6 | - include './../../config/koneksi.php'; ?> |
|
6 | + include './../../config/koneksi.php'; ?> |
|
7 | 7 | <!doctype html> |
8 | 8 | <html> |
9 | 9 | <head> |
@@ -33,35 +33,35 @@ discard block |
||
33 | 33 | <body style='background-color:#fff;'> |
34 | 34 | <?php |
35 | 35 | |
36 | -$modul = $_GET['module']; |
|
37 | - $title = $_GET['title']; |
|
36 | + $modul = $_GET['module']; |
|
37 | + $title = $_GET['title']; |
|
38 | 38 | |
39 | - $role = $_SESSION['role']; |
|
39 | + $role = $_SESSION['role']; |
|
40 | 40 | |
41 | - $id_module = $_GET['id_module']; |
|
41 | + $id_module = $_GET['id_module']; |
|
42 | 42 | |
43 | - $id = isset($_GET['id_rujukan']) ? intval($_GET['id_rujukan']) : false; |
|
43 | + $id = isset($_GET['id_rujukan']) ? intval($_GET['id_rujukan']) : false; |
|
44 | 44 | |
45 | - if ($id) { |
|
46 | - $query = mysql_query('SELECT * FROM rujukan WHERE id_rujukan = "'.$id.'"'); |
|
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
48 | - $data = mysql_fetch_object($query); |
|
49 | - } else { |
|
50 | - die('Data modul tidak ditemukan'); |
|
45 | + if ($id) { |
|
46 | + $query = mysql_query('SELECT * FROM rujukan WHERE id_rujukan = "'.$id.'"'); |
|
47 | + if ($query && mysql_num_rows($query) == 1) { |
|
48 | + $data = mysql_fetch_object($query); |
|
49 | + } else { |
|
50 | + die('Data modul tidak ditemukan'); |
|
51 | + } |
|
51 | 52 | } |
52 | - } |
|
53 | 53 | |
54 | - if ($_GET['igroup']) { |
|
55 | - $group = $_GET['igroup']; |
|
56 | - } else { |
|
57 | - $group = $data->id_rujukan; |
|
58 | - } |
|
54 | + if ($_GET['igroup']) { |
|
55 | + $group = $_GET['igroup']; |
|
56 | + } else { |
|
57 | + $group = $data->id_rujukan; |
|
58 | + } |
|
59 | 59 | |
60 | - if ($_GET['imenu']) { |
|
61 | - $imenu = $_GET['imenu']; |
|
62 | - } else { |
|
63 | - $imenu = $data->id_modul; |
|
64 | - } ?> |
|
60 | + if ($_GET['imenu']) { |
|
61 | + $imenu = $_GET['imenu']; |
|
62 | + } else { |
|
63 | + $imenu = $data->id_modul; |
|
64 | + } ?> |
|
65 | 65 | |
66 | 66 | |
67 | 67 | <div class="ix_panel"> |
@@ -71,10 +71,10 @@ discard block |
||
71 | 71 | |
72 | 72 | |
73 | 73 | <?php if ($id) { |
74 | - ?> |
|
74 | + ?> |
|
75 | 75 | |
76 | 76 | <?php if (@$data->tipe == 'R') { |
77 | - ?> |
|
77 | + ?> |
|
78 | 78 | |
79 | 79 | <div class="form-group"> |
80 | 80 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Tipe :</label> |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | </div> |
85 | 85 | </div> |
86 | 86 | <?php |
87 | - } else { |
|
88 | - ?> |
|
87 | + } else { |
|
88 | + ?> |
|
89 | 89 | |
90 | 90 | <div class="form-group"> |
91 | 91 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Tipe :</label> |
@@ -95,11 +95,11 @@ discard block |
||
95 | 95 | </div> |
96 | 96 | </div> |
97 | 97 | <?php |
98 | - } ?> |
|
99 | - |
|
98 | + } ?> |
|
99 | + |
|
100 | 100 | <?php |
101 | - } else { |
|
102 | - ?> |
|
101 | + } else { |
|
102 | + ?> |
|
103 | 103 | |
104 | 104 | |
105 | 105 | <div class="form-group"> |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | </div> |
112 | 112 | |
113 | 113 | <?php |
114 | - } ?> |
|
114 | + } ?> |
|
115 | 115 | |
116 | 116 | |
117 | 117 | <div class="form-group"> |
@@ -123,10 +123,10 @@ discard block |
||
123 | 123 | |
124 | 124 | |
125 | 125 | <?php if ($id) { |
126 | - ?> |
|
126 | + ?> |
|
127 | 127 | |
128 | 128 | <?php if (@$data->aktif == 'Y') { |
129 | - ?> |
|
129 | + ?> |
|
130 | 130 | |
131 | 131 | <div class="form-group"> |
132 | 132 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -136,8 +136,8 @@ discard block |
||
136 | 136 | </div> |
137 | 137 | </div> |
138 | 138 | <?php |
139 | - } else { |
|
140 | - ?> |
|
139 | + } else { |
|
140 | + ?> |
|
141 | 141 | |
142 | 142 | <div class="form-group"> |
143 | 143 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -147,11 +147,11 @@ discard block |
||
147 | 147 | </div> |
148 | 148 | </div> |
149 | 149 | <?php |
150 | - } ?> |
|
151 | - |
|
150 | + } ?> |
|
151 | + |
|
152 | 152 | <?php |
153 | - } else { |
|
154 | - ?> |
|
153 | + } else { |
|
154 | + ?> |
|
155 | 155 | |
156 | 156 | |
157 | 157 | <div class="form-group"> |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | </div> |
164 | 164 | |
165 | 165 | <?php |
166 | - } ?> |
|
166 | + } ?> |
|
167 | 167 | |
168 | 168 | |
169 | 169 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | - if ($module == 'rujukan_pasien' and $act == 'update') { |
|
19 | + if ($module=='rujukan_pasien' and $act=='update') { |
|
20 | 20 | $id_module = $_POST['id_module']; |
21 | 21 | |
22 | 22 | mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs = '$_POST[rujukan_rs]' |
@@ -1,32 +1,32 @@ discard block |
||
1 | -<?php |
|
2 | -session_start(); |
|
3 | -if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
1 | + <?php |
|
2 | + session_start(); |
|
3 | + if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else { |
6 | - include './../../config/koneksi.php'; |
|
7 | - include './../../config/fungsi_thumb.php'; |
|
6 | + include './../../config/koneksi.php'; |
|
7 | + include './../../config/fungsi_thumb.php'; |
|
8 | 8 | |
9 | - $module = $_GET[module]; |
|
10 | - $act = $_GET[act]; |
|
9 | + $module = $_GET[module]; |
|
10 | + $act = $_GET[act]; |
|
11 | 11 | |
12 | - $date = date('d/m/Y'); |
|
13 | - $idate = date('Y-m-d'); |
|
14 | - $hour = time() - (1 * 1 * 60 * 60); |
|
15 | - $datetime = date('Y-m-d G:i:s', $hour); |
|
16 | - $userid = $_SESSION['userid']; |
|
17 | - $business_type = $_SESSION['business_type']; |
|
12 | + $date = date('d/m/Y'); |
|
13 | + $idate = date('Y-m-d'); |
|
14 | + $hour = time() - (1 * 1 * 60 * 60); |
|
15 | + $datetime = date('Y-m-d G:i:s', $hour); |
|
16 | + $userid = $_SESSION['userid']; |
|
17 | + $business_type = $_SESSION['business_type']; |
|
18 | 18 | |
19 | - if ($module == 'rujukan_pasien' and $act == 'update') { |
|
20 | - $id_module = $_POST['id_module']; |
|
19 | + if ($module == 'rujukan_pasien' and $act == 'update') { |
|
20 | + $id_module = $_POST['id_module']; |
|
21 | 21 | |
22 | - mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs = '$_POST[rujukan_rs]' |
|
22 | + mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs = '$_POST[rujukan_rs]' |
|
23 | 23 | ,id_rujukan_lab = '$_POST[rujukan_lab]' |
24 | 24 | ,upddt = '$datetime' |
25 | 25 | ,updby = '$userid' |
26 | 26 | ,status = '1' |
27 | 27 | WHERE id_kunjungan_berobat = '$_POST[ID]'"); |
28 | 28 | |
29 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
29 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module);?> |
|
30 | 30 | |
31 | 31 | <script language="javascript"> |
32 | 32 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
@@ -34,6 +34,6 @@ discard block |
||
34 | 34 | </script> |
35 | 35 | |
36 | 36 | <?php |
37 | - } |
|
37 | + } |
|
38 | 38 | } |
39 | -?> |
|
39 | + ?> |