@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | $fa_icon = $r['fa_icon']; |
14 | 14 | |
15 | 15 | if($r[orientation] == 'P') { |
16 | - $orientation = 'portrait'; |
|
16 | + $orientation = 'portrait'; |
|
17 | 17 | } else { |
18 | - $orientation = 'landscape'; |
|
18 | + $orientation = 'landscape'; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | |
@@ -163,12 +163,12 @@ discard block |
||
163 | 163 | |
164 | 164 | <? |
165 | 165 | $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
166 | - $g=mysql_fetch_array($gtampil); |
|
166 | + $g=mysql_fetch_array($gtampil); |
|
167 | 167 | |
168 | 168 | if ($g['pict']) { |
169 | - $pict = $g['pict']; |
|
169 | + $pict = $g['pict']; |
|
170 | 170 | } else { |
171 | - $pict = ''; |
|
171 | + $pict = ''; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | $company = ucwords($g['company']); |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | <? |
209 | 209 | |
210 | - $tampil=mysql_query("SELECT b.obat |
|
210 | + $tampil=mysql_query("SELECT b.obat |
|
211 | 211 | , c.satuan |
212 | 212 | , sum(a.qty) as jumlah |
213 | 213 | FROM kunjungan_berobat h inner join kunjungan_berobat_detail a |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | echo"</tr>"; |
245 | 245 | $no++; |
246 | 246 | |
247 | - } |
|
247 | + } |
|
248 | 248 | ?> |
249 | 249 | |
250 | 250 | <tfoot> |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | include "./../../config/koneksi.php"; |
3 | 3 | include "./../../config/fungsi_indobulan.php"; |
4 | 4 | |
5 | -$tampil=mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
5 | +$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
6 | 6 | |
7 | -$r=mysql_fetch_array($tampil); |
|
7 | +$r = mysql_fetch_array($tampil); |
|
8 | 8 | |
9 | 9 | $module = $_GET['module']; |
10 | 10 | $imodule = ucwords($r['nama_modul']); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $id = $r['id_modul']; |
13 | 13 | $fa_icon = $r['fa_icon']; |
14 | 14 | |
15 | -if($r[orientation] == 'P') { |
|
15 | +if ($r[orientation]=='P') { |
|
16 | 16 | $orientation = 'portrait'; |
17 | 17 | } else { |
18 | 18 | $orientation = 'landscape'; |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | $fdate = $_GET['fdate']; |
23 | 23 | $ldate = $_GET['ldate']; |
24 | 24 | |
25 | -$ftgl = DATE('d/m/Y',strtotime($_GET['fdate'])); |
|
26 | -$ltgl = DATE('d/m/Y',strtotime($_GET['ldate'])); |
|
25 | +$ftgl = DATE('d/m/Y', strtotime($_GET['fdate'])); |
|
26 | +$ltgl = DATE('d/m/Y', strtotime($_GET['ldate'])); |
|
27 | 27 | |
28 | 28 | ?> |
29 | 29 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | <!--<body onload="cetakspk()">--> |
142 | 142 | |
143 | -<? if ($_GET['printto'] == '2') { ?> |
|
143 | +<? if ($_GET['printto']=='2') { ?> |
|
144 | 144 | <body onload="icetak()"> |
145 | 145 | <? } else { ?> |
146 | 146 | <body> |
@@ -162,8 +162,8 @@ discard block |
||
162 | 162 | |
163 | 163 | |
164 | 164 | <? |
165 | -$gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
166 | - $g=mysql_fetch_array($gtampil); |
|
165 | +$gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
166 | + $g = mysql_fetch_array($gtampil); |
|
167 | 167 | |
168 | 168 | if ($g['pict']) { |
169 | 169 | $pict = $g['pict']; |
@@ -177,12 +177,12 @@ discard block |
||
177 | 177 | <table width='100%' style="padding-top:10px;"> |
178 | 178 | <tr> |
179 | 179 | <td width='10%'> |
180 | -<!-- <img src="../../images/logo/<?=$pict;?>" width=100px> --> |
|
180 | +<!-- <img src="../../images/logo/<?=$pict; ?>" width=100px> --> |
|
181 | 181 | </td> |
182 | 182 | <td style="text-align:center;" width='80%'> |
183 | -<span class='h1'><?=$nmmodule;?></span> |
|
183 | +<span class='h1'><?=$nmmodule; ?></span> |
|
184 | 184 | <? echo "<span class='h2'>".$g['company']."</span><br>"; ?> |
185 | -<br>Periode : <?=$ftgl;?> - <?=$ltgl;?> |
|
185 | +<br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?> |
|
186 | 186 | </td> |
187 | 187 | <td width='10%'> |
188 | 188 |   |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | <? |
209 | 209 | |
210 | - $tampil=mysql_query("SELECT b.obat |
|
210 | + $tampil = mysql_query("SELECT b.obat |
|
211 | 211 | , c.satuan |
212 | 212 | , sum(a.qty) as jumlah |
213 | 213 | FROM kunjungan_berobat h inner join kunjungan_berobat_detail a |
@@ -229,11 +229,11 @@ discard block |
||
229 | 229 | |
230 | 230 | $no = 1; |
231 | 231 | |
232 | - while ($r=mysql_fetch_array($tampil)){ |
|
232 | + while ($r = mysql_fetch_array($tampil)) { |
|
233 | 233 | |
234 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal])); |
|
234 | + $tgl = DATE('d/m/Y', strtotime($r[tanggal])); |
|
235 | 235 | |
236 | - $id_pasien = $r[id_pasien]; |
|
236 | + $id_pasien = $r[id_pasien]; |
|
237 | 237 | |
238 | 238 | |
239 | 239 | echo"<tr>"; |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | <th colspan= '3'>TOTAL</th> |
253 | 253 | |
254 | 254 | <? |
255 | - $dtampil=mysql_query("SELECT sum(a.qty) as jumlah |
|
255 | + $dtampil = mysql_query("SELECT sum(a.qty) as jumlah |
|
256 | 256 | FROM kunjungan_berobat h inner join kunjungan_berobat_detail a |
257 | 257 | ON a.id_kunjungan_berobat = h.id_kunjungan_berobat |
258 | 258 | LEFT JOIN obat b |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | "); |
266 | 266 | |
267 | 267 | |
268 | - $d=mysql_fetch_array($dtampil); |
|
268 | + $d = mysql_fetch_array($dtampil); |
|
269 | 269 | |
270 | 270 | echo"<td>$d[jumlah]</td>"; |
271 | 271 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $prd = date("Y-m"); |
65 | 65 | |
66 | 66 | $userid = $_SESSION['userid']; |
67 | - ?> |
|
67 | + ?> |
|
68 | 68 | |
69 | 69 | <div class=""> |
70 | 70 | |
@@ -115,12 +115,12 @@ discard block |
||
115 | 115 | |
116 | 116 | <? |
117 | 117 | |
118 | - $module = '?module='.$_GET['module']; |
|
119 | - $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
120 | - $r=mysql_fetch_array($tampil); |
|
118 | + $module = '?module='.$_GET['module']; |
|
119 | + $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
120 | + $r=mysql_fetch_array($tampil); |
|
121 | 121 | |
122 | - echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
|
123 | - echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
|
122 | + echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
|
123 | + echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
|
124 | 124 | ?> |
125 | 125 | </form> |
126 | 126 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | } |
36 | 36 | |
37 | - xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true); |
|
37 | + xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true); |
|
38 | 38 | |
39 | 39 | xmlhttp.send(); |
40 | 40 | |
@@ -54,28 +54,28 @@ discard block |
||
54 | 54 | |
55 | 55 | |
56 | 56 | <?php |
57 | -switch($_GET[act]){ |
|
57 | +switch ($_GET[act]) { |
|
58 | 58 | |
59 | 59 | default: |
60 | 60 | |
61 | 61 | $fdate = date("Y-m-01"); |
62 | 62 | $ldate = date("Y-m-d"); |
63 | 63 | |
64 | -$prd = date("Y-m"); |
|
64 | +$prd = date("Y-m"); |
|
65 | 65 | |
66 | -$userid = $_SESSION['userid']; |
|
66 | +$userid = $_SESSION['userid']; |
|
67 | 67 | ?> |
68 | 68 | |
69 | 69 | <div class=""> |
70 | 70 | |
71 | 71 | <div class="row"> |
72 | 72 | |
73 | - <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
73 | + <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
74 | 74 | |
75 | 75 | <div class="col-md-12 col-sm-12 col-xs-12"> |
76 | 76 | <div class="x_panel"> |
77 | 77 | <div class="x_title"> |
78 | - <h2><?=$nmmodule;?></h2> |
|
78 | + <h2><?=$nmmodule; ?></h2> |
|
79 | 79 | <div class='pull-right'> |
80 | 80 | <Button type="submit" class="btn btn-primary"> |
81 | 81 | <span class="glyphicon glyphicon-print" style='color:#fff;'></span> |
@@ -116,8 +116,8 @@ discard block |
||
116 | 116 | <? |
117 | 117 | |
118 | 118 | $module = '?module='.$_GET['module']; |
119 | - $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
120 | - $r=mysql_fetch_array($tampil); |
|
119 | + $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
120 | + $r = mysql_fetch_array($tampil); |
|
121 | 121 | |
122 | 122 | echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
123 | 123 | echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | </form> |
126 | 126 | |
127 | 127 | </div> |
128 | - <?for($i = 0; $i <= 20; $i++) { |
|
128 | + <?for ($i = 0; $i<=20; $i++) { |
|
129 | 129 | ?> |
130 | 130 | <br /> |
131 | 131 | <? |
@@ -98,13 +98,13 @@ |
||
98 | 98 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
99 | 99 | echo" <td style='text-align:center;'>"; |
100 | 100 | if($r_edit == 'Y') { |
101 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
102 | - } |
|
101 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
102 | + } |
|
103 | 103 | |
104 | 104 | |
105 | - // if($r_delete == 'Y') { |
|
106 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
107 | - // } |
|
105 | + // if($r_delete == 'Y') { |
|
106 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
107 | + // } |
|
108 | 108 | echo"</td>"; |
109 | 109 | echo"</tr>"; |
110 | 110 | $no++; |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | switch($_GET[act]){ |
6 | 6 | |
7 | 7 | |
8 | -default: |
|
9 | - ?> |
|
8 | + default: |
|
9 | + ?> |
|
10 | 10 | |
11 | 11 | <div class=""> |
12 | 12 | |
@@ -53,64 +53,64 @@ discard block |
||
53 | 53 | <? |
54 | 54 | |
55 | 55 | |
56 | - $tampil=mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b |
|
56 | + $tampil=mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b |
|
57 | 57 | ON a.id_groups=b.id_groups |
58 | 58 | WHERE a.role != 'SA' |
59 | 59 | ORDER BY a.id_user DESC "); |
60 | 60 | |
61 | 61 | |
62 | - $no = 1; |
|
63 | - while ($r=mysql_fetch_array($tampil)){ |
|
62 | + $no = 1; |
|
63 | + while ($r=mysql_fetch_array($tampil)){ |
|
64 | 64 | |
65 | - if($r[r_input] == 'Y') { |
|
66 | - $input = "<img src='images/cek.png' border=0> Input"; |
|
67 | - } else { |
|
68 | - $input = "<img src='images/del.gif' width='20' border=0> Input"; |
|
69 | - } |
|
65 | + if($r[r_input] == 'Y') { |
|
66 | + $input = "<img src='images/cek.png' border=0> Input"; |
|
67 | + } else { |
|
68 | + $input = "<img src='images/del.gif' width='20' border=0> Input"; |
|
69 | + } |
|
70 | 70 | |
71 | - if($r[r_edit] == 'Y') { |
|
72 | - $edit = "<img src='images/cek.png' border=0> Edit"; |
|
73 | - } else { |
|
74 | - $edit = "<img src='images/del.gif' width='20' border=0> Edit"; |
|
75 | - } |
|
71 | + if($r[r_edit] == 'Y') { |
|
72 | + $edit = "<img src='images/cek.png' border=0> Edit"; |
|
73 | + } else { |
|
74 | + $edit = "<img src='images/del.gif' width='20' border=0> Edit"; |
|
75 | + } |
|
76 | 76 | |
77 | - if($r[r_delete] == 'Y') { |
|
78 | - $delete = "<img src='images/cek.png' border=0> Delete"; |
|
79 | - } else { |
|
80 | - $delete = "<img src='images/del.gif' width='20' border=0> Delete"; |
|
81 | - } |
|
77 | + if($r[r_delete] == 'Y') { |
|
78 | + $delete = "<img src='images/cek.png' border=0> Delete"; |
|
79 | + } else { |
|
80 | + $delete = "<img src='images/del.gif' width='20' border=0> Delete"; |
|
81 | + } |
|
82 | 82 | |
83 | - if($r[outlet] == '') { |
|
84 | - $outlet = "Semua Outlet"; |
|
85 | - } else { |
|
86 | - $outlet = $r['outlet']; |
|
87 | - } |
|
83 | + if($r[outlet] == '') { |
|
84 | + $outlet = "Semua Outlet"; |
|
85 | + } else { |
|
86 | + $outlet = $r['outlet']; |
|
87 | + } |
|
88 | 88 | |
89 | 89 | |
90 | - echo"<tr>"; |
|
91 | - echo"<td>$r[id_user]</td>"; |
|
92 | - echo"<td>$r[username]</td>"; |
|
93 | - echo"<td>$r[nik]</td>"; |
|
94 | - echo"<td>$r[groups]</td>"; |
|
95 | - echo"<td>$r[r_input]</td>"; |
|
96 | - echo"<td>$r[r_edit]</td>"; |
|
97 | - echo"<td>$r[r_delete]</td>"; |
|
98 | - echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
99 | - echo" <td style='text-align:center;'>"; |
|
100 | - if($r_edit == 'Y') { |
|
101 | - echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
102 | - } |
|
90 | + echo"<tr>"; |
|
91 | + echo"<td>$r[id_user]</td>"; |
|
92 | + echo"<td>$r[username]</td>"; |
|
93 | + echo"<td>$r[nik]</td>"; |
|
94 | + echo"<td>$r[groups]</td>"; |
|
95 | + echo"<td>$r[r_input]</td>"; |
|
96 | + echo"<td>$r[r_edit]</td>"; |
|
97 | + echo"<td>$r[r_delete]</td>"; |
|
98 | + echo"<td style='text-align:center;'>$r[aktif]</td>"; |
|
99 | + echo" <td style='text-align:center;'>"; |
|
100 | + if($r_edit == 'Y') { |
|
101 | + echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
|
102 | + } |
|
103 | 103 | |
104 | 104 | |
105 | - // if($r_delete == 'Y') { |
|
106 | - // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
107 | - // } |
|
108 | - echo"</td>"; |
|
109 | - echo"</tr>"; |
|
110 | - $no++; |
|
105 | + // if($r_delete == 'Y') { |
|
106 | + // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_user]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>"; |
|
107 | + // } |
|
108 | + echo"</td>"; |
|
109 | + echo"</tr>"; |
|
110 | + $no++; |
|
111 | 111 | |
112 | - } |
|
113 | - ?> |
|
112 | + } |
|
113 | + ?> |
|
114 | 114 | </tbody> |
115 | 115 | </table> |
116 | 116 | </div> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$outlet = $df_outlet ; |
|
3 | +$outlet = $df_outlet; |
|
4 | 4 | |
5 | -switch($_GET[act]){ |
|
5 | +switch ($_GET[act]) { |
|
6 | 6 | |
7 | 7 | |
8 | 8 | default: |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | <div class="col-md-12 col-sm-12 col-xs-12"> |
16 | 16 | <div class="x_panel"> |
17 | 17 | <div class="x_title"> |
18 | - <h2><?php echo $nmmodule;?></h2> |
|
19 | - <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=580&module=$module&id_module=$id_module&TB_iframe=true";?>' title='<?php echo $nmmodule;?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p> |
|
18 | + <h2><?php echo $nmmodule; ?></h2> |
|
19 | + <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=580&module=$module&id_module=$id_module&TB_iframe=true"; ?>' title='<?php echo $nmmodule; ?> Baru' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a></p> |
|
20 | 20 | <div class="clearfix"></div> |
21 | 21 | </div> |
22 | 22 | <div class="x_content"> |
@@ -53,37 +53,37 @@ discard block |
||
53 | 53 | <? |
54 | 54 | |
55 | 55 | |
56 | - $tampil=mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b |
|
56 | + $tampil = mysql_query("SELECT a.*,b.groups FROM user a INNER JOIN groups b |
|
57 | 57 | ON a.id_groups=b.id_groups |
58 | 58 | WHERE a.role != 'SA' |
59 | 59 | ORDER BY a.id_user DESC "); |
60 | 60 | |
61 | 61 | |
62 | 62 | $no = 1; |
63 | - while ($r=mysql_fetch_array($tampil)){ |
|
63 | + while ($r = mysql_fetch_array($tampil)) { |
|
64 | 64 | |
65 | - if($r[r_input] == 'Y') { |
|
66 | - $input = "<img src='images/cek.png' border=0> Input"; |
|
65 | + if ($r[r_input]=='Y') { |
|
66 | + $input = "<img src='images/cek.png' border=0> Input"; |
|
67 | 67 | } else { |
68 | - $input = "<img src='images/del.gif' width='20' border=0> Input"; |
|
68 | + $input = "<img src='images/del.gif' width='20' border=0> Input"; |
|
69 | 69 | } |
70 | 70 | |
71 | - if($r[r_edit] == 'Y') { |
|
71 | + if ($r[r_edit]=='Y') { |
|
72 | 72 | $edit = "<img src='images/cek.png' border=0> Edit"; |
73 | 73 | } else { |
74 | 74 | $edit = "<img src='images/del.gif' width='20' border=0> Edit"; |
75 | 75 | } |
76 | 76 | |
77 | - if($r[r_delete] == 'Y') { |
|
78 | - $delete = "<img src='images/cek.png' border=0> Delete"; |
|
77 | + if ($r[r_delete]=='Y') { |
|
78 | + $delete = "<img src='images/cek.png' border=0> Delete"; |
|
79 | 79 | } else { |
80 | - $delete = "<img src='images/del.gif' width='20' border=0> Delete"; |
|
80 | + $delete = "<img src='images/del.gif' width='20' border=0> Delete"; |
|
81 | 81 | } |
82 | 82 | |
83 | - if($r[outlet] == '') { |
|
84 | - $outlet = "Semua Outlet"; |
|
83 | + if ($r[outlet]=='') { |
|
84 | + $outlet = "Semua Outlet"; |
|
85 | 85 | } else { |
86 | - $outlet = $r['outlet']; |
|
86 | + $outlet = $r['outlet']; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | echo"<td>$r[r_delete]</td>"; |
98 | 98 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
99 | 99 | echo" <td style='text-align:center;'>"; |
100 | - if($r_edit == 'Y') { |
|
100 | + if ($r_edit=='Y') { |
|
101 | 101 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_user=$r[id_user]&id_module=$id&width=720&height=580&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
102 | 102 | } |
103 | 103 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
@@ -77,27 +77,27 @@ discard block |
||
77 | 77 | |
78 | 78 | $id_module = $_GET['id_module']; |
79 | 79 | |
80 | - $id = $_GET['id_user']; // isset($_GET['id_user']) ? intval($_GET['id_user']) : false; |
|
80 | + $id = $_GET['id_user']; // isset($_GET['id_user']) ? intval($_GET['id_user']) : false; |
|
81 | 81 | |
82 | 82 | if($id){ |
83 | - $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
|
84 | - if($query && mysql_num_rows($query) == 1){ |
|
85 | - $data = mysql_fetch_object($query); |
|
86 | - }else |
|
87 | - die('Data user tidak ditemukan'); |
|
83 | + $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
|
84 | + if($query && mysql_num_rows($query) == 1){ |
|
85 | + $data = mysql_fetch_object($query); |
|
86 | + }else |
|
87 | + die('Data user tidak ditemukan'); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | if ($_GET['igroup']) { |
91 | - $group = $_GET['igroup']; |
|
91 | + $group = $_GET['igroup']; |
|
92 | 92 | } else { |
93 | - $group = $data->id_groups; |
|
93 | + $group = $data->id_groups; |
|
94 | 94 | |
95 | 95 | } |
96 | 96 | |
97 | 97 | if ($_GET['imenu']) { |
98 | - $imenu = $_GET['imenu']; |
|
98 | + $imenu = $_GET['imenu']; |
|
99 | 99 | } else { |
100 | - $imenu = $data->id_modul; |
|
100 | + $imenu = $data->id_modul; |
|
101 | 101 | |
102 | 102 | } |
103 | 103 | |
@@ -161,14 +161,14 @@ discard block |
||
161 | 161 | <select name="groups" class="form-control" required > |
162 | 162 | <option value=''></option> |
163 | 163 | <? |
164 | - $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
165 | - if($query && mysql_num_rows($query) > 0){ |
|
166 | - while($row = mysql_fetch_object($query)){ |
|
167 | - echo '<option value="'.$row->id_groups.'"'; |
|
168 | - if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
169 | - echo '>'.$row->groups.'</option>'; |
|
170 | - } |
|
171 | - } |
|
164 | + $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
165 | + if($query && mysql_num_rows($query) > 0){ |
|
166 | + while($row = mysql_fetch_object($query)){ |
|
167 | + echo '<option value="'.$row->id_groups.'"'; |
|
168 | + if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
169 | + echo '>'.$row->groups.'</option>'; |
|
170 | + } |
|
171 | + } |
|
172 | 172 | ?> |
173 | 173 | </select> |
174 | 174 | </div> |
@@ -464,12 +464,12 @@ discard block |
||
464 | 464 | <!-- /editor --> |
465 | 465 | |
466 | 466 | <?php |
467 | - if(empty($pict)) { |
|
467 | + if(empty($pict)) { |
|
468 | 468 | $ipict = 'male.png'; |
469 | - } else { |
|
469 | + } else { |
|
470 | 470 | $ipict = $pict; |
471 | - } |
|
472 | - ?> |
|
471 | + } |
|
472 | + ?> |
|
473 | 473 | |
474 | 474 | <script> |
475 | 475 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
|
3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) { |
|
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | -} else{ |
|
5 | +} else { |
|
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
8 | 8 | |
9 | -$df_outlet = $_SESSION['outlet']; |
|
9 | +$df_outlet = $_SESSION['outlet']; |
|
10 | 10 | ?> |
11 | 11 | <!doctype html> |
12 | 12 | <html> |
@@ -73,17 +73,17 @@ discard block |
||
73 | 73 | $modul = $_GET['module']; |
74 | 74 | $title = $_GET['title']; |
75 | 75 | |
76 | -$role = $_SESSION['role']; |
|
76 | +$role = $_SESSION['role']; |
|
77 | 77 | |
78 | 78 | $id_module = $_GET['id_module']; |
79 | 79 | |
80 | 80 | $id = $_GET['id_user']; // isset($_GET['id_user']) ? intval($_GET['id_user']) : false; |
81 | 81 | |
82 | - if($id){ |
|
82 | + if ($id) { |
|
83 | 83 | $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
84 | - if($query && mysql_num_rows($query) == 1){ |
|
84 | + if ($query && mysql_num_rows($query)==1) { |
|
85 | 85 | $data = mysql_fetch_object($query); |
86 | - }else |
|
86 | + } else |
|
87 | 87 | die('Data user tidak ditemukan'); |
88 | 88 | } |
89 | 89 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | } |
103 | 103 | |
104 | -$pict = $data->pict; |
|
104 | +$pict = $data->pict; |
|
105 | 105 | |
106 | 106 | |
107 | 107 | ?> |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | <div class="form-group"> |
126 | 126 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Pengguna :</label> |
127 | 127 | <div class="col-md-6 col-sm-6 col-xs-12" > |
128 | - <?php if($data->id_user) { ?> |
|
128 | + <?php if ($data->id_user) { ?> |
|
129 | 129 | <input type="text" name="id_user" value="<?php echo @$data->id_user?>" autofocus readonly required="required" class="form-control"> |
130 | 130 | <?php } else { ?> |
131 | 131 | <input type="text" name="id_user" value="<?php echo @$data->id_user?>" autofocus required="required" class="form-control"> |
@@ -162,10 +162,10 @@ discard block |
||
162 | 162 | <option value=''></option> |
163 | 163 | <? |
164 | 164 | $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
165 | - if($query && mysql_num_rows($query) > 0){ |
|
166 | - while($row = mysql_fetch_object($query)){ |
|
165 | + if ($query && mysql_num_rows($query)>0) { |
|
166 | + while ($row = mysql_fetch_object($query)) { |
|
167 | 167 | echo '<option value="'.$row->id_groups.'"'; |
168 | - if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
168 | + if ($row->id_groups==@$data->id_groups) echo ' selected'; |
|
169 | 169 | echo '>'.$row->groups.'</option>'; |
170 | 170 | } |
171 | 171 | } |
@@ -178,29 +178,29 @@ discard block |
||
178 | 178 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Role :</label> |
179 | 179 | <div class="col-md-6 col-sm-6 col-xs-12" > |
180 | 180 | |
181 | - <?php if($data->id_user) { ?> |
|
181 | + <?php if ($data->id_user) { ?> |
|
182 | 182 | |
183 | - <?php if($data->r_input == 'Y') { ?> |
|
183 | + <?php if ($data->r_input=='Y') { ?> |
|
184 | 184 | <input checked type='checkbox' class='flat' value='Y' name='r_input' > <label>Input</label> |
185 | - <?php } else { ?> |
|
185 | + <?php } else { ?> |
|
186 | 186 | <input type='checkbox' class='flat'value='Y' name='r_input' > <label>Input</label> |
187 | 187 | <?php } ?> |
188 | 188 | |
189 | - <?php if($data->r_edit == 'Y') { ?> |
|
189 | + <?php if ($data->r_edit=='Y') { ?> |
|
190 | 190 | <input checked type='checkbox' class='flat' value='Y' name='r_edit' > <label>Ubah</label> |
191 | - <?php } else { ?> |
|
191 | + <?php } else { ?> |
|
192 | 192 | <input type='checkbox' class='flat' value='Y' name='r_edit' > <label>Ubah</label> |
193 | 193 | <?php } ?> |
194 | 194 | |
195 | - <?php if($data->r_delete == 'Y') { ?> |
|
195 | + <?php if ($data->r_delete=='Y') { ?> |
|
196 | 196 | <input checked type='checkbox' class='flat' value='Y' name='r_delete' > <label>Hapus</label> |
197 | - <?php } else { ?> |
|
197 | + <?php } else { ?> |
|
198 | 198 | <input type='checkbox' class='flat' value='Y' name='r_delete' > <label>Hapus</label> |
199 | 199 | <?php } ?> |
200 | 200 | |
201 | - <?php if($data->r_admin == 'Y') { ?> |
|
201 | + <?php if ($data->r_admin=='Y') { ?> |
|
202 | 202 | <input checked type='checkbox' class='flat' value='Y' name='r_admin' > <label>Grup Admin</label> |
203 | - <?php } else { ?> |
|
203 | + <?php } else { ?> |
|
204 | 204 | <input type='checkbox' class='flat' value='Y' name='r_admin' > <label>Grup Admin</label> |
205 | 205 | <?php } ?> |
206 | 206 | |
@@ -214,9 +214,9 @@ discard block |
||
214 | 214 | </div> |
215 | 215 | |
216 | 216 | |
217 | - <?php if ($id){ ?> |
|
217 | + <?php if ($id) { ?> |
|
218 | 218 | |
219 | - <?php if (@$data->aktif=='Y'){ ?> |
|
219 | + <?php if (@$data->aktif=='Y') { ?> |
|
220 | 220 | |
221 | 221 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
222 | 222 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | <input type=radio name='aktif' value='N' class="flat"> T |
225 | 225 | </div> |
226 | 226 | |
227 | - <?php }else{ ?> |
|
227 | + <?php } else { ?> |
|
228 | 228 | |
229 | 229 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
230 | 230 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | |
235 | 235 | <?php } ?> |
236 | 236 | |
237 | - <?php }else{ ?> |
|
237 | + <?php } else { ?> |
|
238 | 238 | |
239 | 239 | |
240 | 240 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | <!-- /editor --> |
465 | 465 | |
466 | 466 | <?php |
467 | - if(empty($pict)) { |
|
467 | + if (empty($pict)) { |
|
468 | 468 | $ipict = 'male.png'; |
469 | 469 | } else { |
470 | 470 | $ipict = $pict; |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | removeTitle: 'Cancel or reset changes', |
489 | 489 | elErrorContainer: '#kv-avatar-errors', |
490 | 490 | msgErrorClass: 'alert alert-block alert-danger', |
491 | - defaultPreviewContent: '<img src="../../images/profile/<?php echo $ipict;?>" alt="Your Avatar" style="width:160px">', |
|
491 | + defaultPreviewContent: '<img src="../../images/profile/<?php echo $ipict; ?>" alt="Your Avatar" style="width:160px">', |
|
492 | 492 | layoutTemplates: {main2: '{preview} ' + ' {remove} {browse}'}, |
493 | 493 | allowedFileExtensions: ["jpg"] |
494 | 494 | }); |
@@ -83,8 +83,9 @@ discard block |
||
83 | 83 | $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
84 | 84 | if($query && mysql_num_rows($query) == 1){ |
85 | 85 | $data = mysql_fetch_object($query); |
86 | - }else |
|
87 | - die('Data user tidak ditemukan'); |
|
86 | + } else { |
|
87 | + die('Data user tidak ditemukan'); |
|
88 | + } |
|
88 | 89 | } |
89 | 90 | |
90 | 91 | if ($_GET['igroup']) { |
@@ -165,7 +166,9 @@ discard block |
||
165 | 166 | if($query && mysql_num_rows($query) > 0){ |
166 | 167 | while($row = mysql_fetch_object($query)){ |
167 | 168 | echo '<option value="'.$row->id_groups.'"'; |
168 | - if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
169 | + if($row->id_groups == @$data->id_groups) { |
|
170 | + echo ' selected'; |
|
171 | + } |
|
169 | 172 | echo '>'.$row->groups.'</option>'; |
170 | 173 | } |
171 | 174 | } |
@@ -224,7 +227,7 @@ discard block |
||
224 | 227 | <input type=radio name='aktif' value='N' class="flat"> T |
225 | 228 | </div> |
226 | 229 | |
227 | - <?php }else{ ?> |
|
230 | + <?php } else{ ?> |
|
228 | 231 | |
229 | 232 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
230 | 233 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -234,7 +237,7 @@ discard block |
||
234 | 237 | |
235 | 238 | <?php } ?> |
236 | 239 | |
237 | - <?php }else{ ?> |
|
240 | + <?php } else{ ?> |
|
238 | 241 | |
239 | 242 | |
240 | 243 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
@@ -18,60 +18,60 @@ discard block |
||
18 | 18 | |
19 | 19 | // Hapus modul |
20 | 20 | if ($module=='user' AND $act=='hapus'){ |
21 | - $id = $_GET['id']; |
|
22 | - $id_module = $_GET['id_module']; |
|
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 | |
29 | - } |
|
29 | + } |
|
30 | 30 | |
31 | - // Input group |
|
31 | + // Input group |
|
32 | 32 | elseif ($module=='user' AND $act=='input'){ |
33 | 33 | |
34 | - $id_module = $_POST['id_module']; |
|
34 | + $id_module = $_POST['id_module']; |
|
35 | 35 | |
36 | - $lokasi_file = $_FILES['fupload']['tmp_name']; |
|
37 | - $tipe_file = $_FILES['fupload']['type']; |
|
38 | - $nama_file = $_FILES['fupload']['name']; |
|
39 | - $acak = rand(1,99); |
|
40 | - $nama_file_unik = $acak.$nama_file; |
|
36 | + $lokasi_file = $_FILES['fupload']['tmp_name']; |
|
37 | + $tipe_file = $_FILES['fupload']['type']; |
|
38 | + $nama_file = $_FILES['fupload']['name']; |
|
39 | + $acak = rand(1,99); |
|
40 | + $nama_file_unik = $acak.$nama_file; |
|
41 | 41 | |
42 | 42 | |
43 | - $pass=$_POST[password]; |
|
43 | + $pass=$_POST[password]; |
|
44 | 44 | |
45 | 45 | |
46 | - if($_POST['r_input'] == 'Y') { |
|
46 | + if($_POST['r_input'] == 'Y') { |
|
47 | 47 | $r_input = 'Y'; |
48 | - } else { |
|
48 | + } else { |
|
49 | 49 | $r_input = 'N'; |
50 | - } |
|
50 | + } |
|
51 | 51 | |
52 | - if($_POST['r_edit'] == 'Y') { |
|
52 | + if($_POST['r_edit'] == 'Y') { |
|
53 | 53 | $r_edit = 'Y'; |
54 | - } else { |
|
54 | + } else { |
|
55 | 55 | $r_edit = 'N'; |
56 | - } |
|
56 | + } |
|
57 | 57 | |
58 | - if($_POST['r_delete'] == 'Y') { |
|
58 | + if($_POST['r_delete'] == 'Y') { |
|
59 | 59 | $r_delete = 'Y'; |
60 | - } else { |
|
60 | + } else { |
|
61 | 61 | $r_delete = 'N'; |
62 | - } |
|
62 | + } |
|
63 | 63 | |
64 | - if($_POST['r_admin'] == 'Y') { |
|
64 | + if($_POST['r_admin'] == 'Y') { |
|
65 | 65 | $r_admin = 'Y'; |
66 | - } else { |
|
66 | + } else { |
|
67 | 67 | $r_admin = 'N'; |
68 | - } |
|
68 | + } |
|
69 | 69 | |
70 | - if($_POST['ID']){ |
|
70 | + if($_POST['ID']){ |
|
71 | 71 | |
72 | 72 | if (empty($_POST['password'])) { |
73 | 73 | |
74 | - if (empty($lokasi_file)){ |
|
74 | + if (empty($lokasi_file)){ |
|
75 | 75 | |
76 | 76 | mysql_query("UPDATE user SET username = '$_POST[username]' |
77 | 77 | ,id_groups = '$_POST[groups]' |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | ,updby = '$userid' |
85 | 85 | ,aktif = '$_POST[aktif]' |
86 | 86 | WHERE id_user = '$_POST[ID]'"); |
87 | - } else { |
|
87 | + } else { |
|
88 | 88 | |
89 | - ProfileImage($nama_file_unik); |
|
90 | - mysql_query("UPDATE user SET username = '$_POST[username]' |
|
89 | + ProfileImage($nama_file_unik); |
|
90 | + mysql_query("UPDATE user SET username = '$_POST[username]' |
|
91 | 91 | ,id_groups = '$_POST[groups]' |
92 | 92 | ,nik = '$_POST[nik]' |
93 | 93 | ,r_input = '$r_input' |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | ,aktif = '$_POST[aktif]' |
101 | 101 | WHERE id_user = '$_POST[ID]'"); |
102 | 102 | |
103 | - } |
|
103 | + } |
|
104 | 104 | |
105 | 105 | } |
106 | 106 | // Apabila password diubah |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | $pass=$_POST[password]; |
111 | 111 | |
112 | 112 | |
113 | - if (empty($lokasi_file)){ |
|
114 | - mysql_query("UPDATE user SET password = '$pass' |
|
113 | + if (empty($lokasi_file)){ |
|
114 | + mysql_query("UPDATE user SET password = '$pass' |
|
115 | 115 | ,username = '$_POST[username]' |
116 | 116 | ,id_groups = '$_POST[groups]' |
117 | 117 | ,nik = '$_POST[nik]' |
@@ -123,10 +123,10 @@ discard block |
||
123 | 123 | ,updby = '$userid' |
124 | 124 | ,aktif = '$_POST[aktif]' |
125 | 125 | WHERE id_user = '$_POST[ID]'"); |
126 | - } else { |
|
126 | + } else { |
|
127 | 127 | |
128 | - ProfileImage($nama_file_unik); |
|
129 | - mysql_query("UPDATE user SET password = '$pass' |
|
128 | + ProfileImage($nama_file_unik); |
|
129 | + mysql_query("UPDATE user SET password = '$pass' |
|
130 | 130 | ,username = '$_POST[username]' |
131 | 131 | ,id_groups = '$_POST[groups]' |
132 | 132 | ,nik = '$_POST[nik]' |
@@ -140,13 +140,13 @@ discard block |
||
140 | 140 | ,aktif = '$_POST[aktif]' |
141 | 141 | WHERE id_user = '$_POST[ID]'"); |
142 | 142 | |
143 | - } |
|
143 | + } |
|
144 | 144 | |
145 | 145 | } |
146 | 146 | |
147 | - } else { |
|
147 | + } else { |
|
148 | 148 | |
149 | - if (!empty($lokasi_file)){ |
|
149 | + if (!empty($lokasi_file)){ |
|
150 | 150 | |
151 | 151 | ProfileImage($nama_file_unik); |
152 | 152 | |
@@ -181,9 +181,9 @@ discard block |
||
181 | 181 | ,'$userid' |
182 | 182 | ,'$_POST[aktif]')"); |
183 | 183 | |
184 | - } else { |
|
184 | + } else { |
|
185 | 185 | |
186 | - mysql_query("INSERT INTO user (id_user |
|
186 | + mysql_query("INSERT INTO user (id_user |
|
187 | 187 | ,username |
188 | 188 | ,password |
189 | 189 | ,nik |
@@ -214,13 +214,13 @@ discard block |
||
214 | 214 | ,'$userid' |
215 | 215 | ,'$_POST[aktif]')"); |
216 | 216 | |
217 | - } |
|
217 | + } |
|
218 | 218 | |
219 | - } |
|
219 | + } |
|
220 | 220 | |
221 | - //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
221 | + //header('location:../../main.php?module='.$module.'&id_module='.$id_module); |
|
222 | 222 | |
223 | - ?> |
|
223 | + ?> |
|
224 | 224 | |
225 | 225 | <script language="javascript"> |
226 | 226 | window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
@@ -1,23 +1,23 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | session_start(); |
3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
|
3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) { |
|
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | -} else{ |
|
5 | +} else { |
|
6 | 6 | include "./../../config/koneksi.php"; |
7 | 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 | 12 | $date = date("d/m/Y"); |
13 | 13 | $idate = date("Y-m-d"); |
14 | 14 | $hour = time() - (1 * 1 * 60 * 60); |
15 | -$datetime = date("Y-m-d G:i:s", $hour); |
|
15 | +$datetime = date("Y-m-d G:i:s", $hour); |
|
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | |
19 | 19 | // Hapus modul |
20 | -if ($module=='user' AND $act=='hapus'){ |
|
20 | +if ($module=='user' AND $act=='hapus') { |
|
21 | 21 | $id = $_GET['id']; |
22 | 22 | $id_module = $_GET['id_module']; |
23 | 23 | |
@@ -29,49 +29,49 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | // Input group |
32 | -elseif ($module=='user' AND $act=='input'){ |
|
32 | +elseif ($module=='user' AND $act=='input') { |
|
33 | 33 | |
34 | 34 | $id_module = $_POST['id_module']; |
35 | 35 | |
36 | 36 | $lokasi_file = $_FILES['fupload']['tmp_name']; |
37 | 37 | $tipe_file = $_FILES['fupload']['type']; |
38 | 38 | $nama_file = $_FILES['fupload']['name']; |
39 | - $acak = rand(1,99); |
|
39 | + $acak = rand(1, 99); |
|
40 | 40 | $nama_file_unik = $acak.$nama_file; |
41 | 41 | |
42 | 42 | |
43 | - $pass=$_POST[password]; |
|
43 | + $pass = $_POST[password]; |
|
44 | 44 | |
45 | 45 | |
46 | - if($_POST['r_input'] == 'Y') { |
|
47 | - $r_input = 'Y'; |
|
46 | + if ($_POST['r_input']=='Y') { |
|
47 | + $r_input = 'Y'; |
|
48 | 48 | } else { |
49 | - $r_input = 'N'; |
|
49 | + $r_input = 'N'; |
|
50 | 50 | } |
51 | 51 | |
52 | - if($_POST['r_edit'] == 'Y') { |
|
52 | + if ($_POST['r_edit']=='Y') { |
|
53 | 53 | $r_edit = 'Y'; |
54 | 54 | } else { |
55 | 55 | $r_edit = 'N'; |
56 | 56 | } |
57 | 57 | |
58 | - if($_POST['r_delete'] == 'Y') { |
|
58 | + if ($_POST['r_delete']=='Y') { |
|
59 | 59 | $r_delete = 'Y'; |
60 | 60 | } else { |
61 | 61 | $r_delete = 'N'; |
62 | 62 | } |
63 | 63 | |
64 | - if($_POST['r_admin'] == 'Y') { |
|
64 | + if ($_POST['r_admin']=='Y') { |
|
65 | 65 | $r_admin = 'Y'; |
66 | 66 | } else { |
67 | 67 | $r_admin = 'N'; |
68 | 68 | } |
69 | 69 | |
70 | - if($_POST['ID']){ |
|
70 | + if ($_POST['ID']) { |
|
71 | 71 | |
72 | 72 | if (empty($_POST['password'])) { |
73 | 73 | |
74 | - if (empty($lokasi_file)){ |
|
74 | + if (empty($lokasi_file)) { |
|
75 | 75 | |
76 | 76 | mysql_query("UPDATE user SET username = '$_POST[username]' |
77 | 77 | ,id_groups = '$_POST[groups]' |
@@ -104,13 +104,13 @@ discard block |
||
104 | 104 | |
105 | 105 | } |
106 | 106 | // Apabila password diubah |
107 | - else{ |
|
107 | + else { |
|
108 | 108 | |
109 | 109 | //$pass=md5($_POST[password]); |
110 | - $pass=$_POST[password]; |
|
110 | + $pass = $_POST[password]; |
|
111 | 111 | |
112 | 112 | |
113 | - if (empty($lokasi_file)){ |
|
113 | + if (empty($lokasi_file)) { |
|
114 | 114 | mysql_query("UPDATE user SET password = '$pass' |
115 | 115 | ,username = '$_POST[username]' |
116 | 116 | ,id_groups = '$_POST[groups]' |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | } else { |
148 | 148 | |
149 | - if (!empty($lokasi_file)){ |
|
149 | + if (!empty($lokasi_file)) { |
|
150 | 150 | |
151 | 151 | ProfileImage($nama_file_unik); |
152 | 152 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | ?> |
224 | 224 | |
225 | 225 | <script language="javascript"> |
226 | - window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
|
226 | + window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
|
227 | 227 | window.parent.tb_remove(); |
228 | 228 | </script> |
229 | 229 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | ?> |
@@ -58,27 +58,27 @@ discard block |
||
58 | 58 | |
59 | 59 | $id_module = $_GET['id_module']; |
60 | 60 | |
61 | - $id = $_GET['id_user']; // isset($_GET['id_user']) ? intval($_GET['id_user']) : false; |
|
61 | + $id = $_GET['id_user']; // isset($_GET['id_user']) ? intval($_GET['id_user']) : false; |
|
62 | 62 | |
63 | 63 | if($id){ |
64 | - $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
|
65 | - if($query && mysql_num_rows($query) == 1){ |
|
66 | - $data = mysql_fetch_object($query); |
|
67 | - }else |
|
68 | - die('Data user tidak ditemukan'); |
|
64 | + $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
|
65 | + if($query && mysql_num_rows($query) == 1){ |
|
66 | + $data = mysql_fetch_object($query); |
|
67 | + }else |
|
68 | + die('Data user tidak ditemukan'); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | if ($_GET['igroup']) { |
72 | - $group = $_GET['igroup']; |
|
72 | + $group = $_GET['igroup']; |
|
73 | 73 | } else { |
74 | - $group = $data->id_groups; |
|
74 | + $group = $data->id_groups; |
|
75 | 75 | |
76 | 76 | } |
77 | 77 | |
78 | 78 | if ($_GET['imenu']) { |
79 | - $imenu = $_GET['imenu']; |
|
79 | + $imenu = $_GET['imenu']; |
|
80 | 80 | } else { |
81 | - $imenu = $data->id_modul; |
|
81 | + $imenu = $data->id_modul; |
|
82 | 82 | |
83 | 83 | } |
84 | 84 | |
@@ -122,14 +122,14 @@ discard block |
||
122 | 122 | <select name="groups" class="form-control" required > |
123 | 123 | <option value=''></option> |
124 | 124 | <? |
125 | - $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
126 | - if($query && mysql_num_rows($query) > 0){ |
|
127 | - while($row = mysql_fetch_object($query)){ |
|
128 | - echo '<option value="'.$row->id_groups.'"'; |
|
129 | - if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
130 | - echo '>'.$row->groups.'</option>'; |
|
131 | - } |
|
132 | - } |
|
125 | + $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
126 | + if($query && mysql_num_rows($query) > 0){ |
|
127 | + while($row = mysql_fetch_object($query)){ |
|
128 | + echo '<option value="'.$row->id_groups.'"'; |
|
129 | + if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
130 | + echo '>'.$row->groups.'</option>'; |
|
131 | + } |
|
132 | + } |
|
133 | 133 | ?> |
134 | 134 | </select> |
135 | 135 | </div> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
|
3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) { |
|
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | -} else{ |
|
5 | +} else { |
|
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | ?> |
8 | 8 | <!doctype html> |
@@ -54,17 +54,17 @@ discard block |
||
54 | 54 | $modul = $_GET['module']; |
55 | 55 | $title = $_GET['title']; |
56 | 56 | |
57 | -$role = $_SESSION['role']; |
|
57 | +$role = $_SESSION['role']; |
|
58 | 58 | |
59 | 59 | $id_module = $_GET['id_module']; |
60 | 60 | |
61 | 61 | $id = $_GET['id_user']; // isset($_GET['id_user']) ? intval($_GET['id_user']) : false; |
62 | 62 | |
63 | - if($id){ |
|
63 | + if ($id) { |
|
64 | 64 | $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
65 | - if($query && mysql_num_rows($query) == 1){ |
|
65 | + if ($query && mysql_num_rows($query)==1) { |
|
66 | 66 | $data = mysql_fetch_object($query); |
67 | - }else |
|
67 | + } else |
|
68 | 68 | die('Data user tidak ditemukan'); |
69 | 69 | } |
70 | 70 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>User ID :</label> |
96 | 96 | <div class="col-md-6 col-sm-6 col-xs-12" > |
97 | - <?php if($data->id_user) { ?> |
|
97 | + <?php if ($data->id_user) { ?> |
|
98 | 98 | <input type="text" name="id_user" value="<?php echo @$data->id_user?>" autofocus readonly required="required" class="form-control col-md-7 col-xs-12"> |
99 | 99 | <?php } else { ?> |
100 | 100 | <input type="text" name="id_user" value="<?php echo @$data->id_user?>" autofocus required="required" class="form-control col-md-7 col-xs-12"> |
@@ -123,10 +123,10 @@ discard block |
||
123 | 123 | <option value=''></option> |
124 | 124 | <? |
125 | 125 | $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
126 | - if($query && mysql_num_rows($query) > 0){ |
|
127 | - while($row = mysql_fetch_object($query)){ |
|
126 | + if ($query && mysql_num_rows($query)>0) { |
|
127 | + while ($row = mysql_fetch_object($query)) { |
|
128 | 128 | echo '<option value="'.$row->id_groups.'"'; |
129 | - if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
129 | + if ($row->id_groups==@$data->id_groups) echo ' selected'; |
|
130 | 130 | echo '>'.$row->groups.'</option>'; |
131 | 131 | } |
132 | 132 | } |
@@ -139,23 +139,23 @@ discard block |
||
139 | 139 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Role :</label> |
140 | 140 | <div class="col-md-6 col-sm-6 col-xs-12" > |
141 | 141 | |
142 | - <?php if($data->id_user) { ?> |
|
142 | + <?php if ($data->id_user) { ?> |
|
143 | 143 | |
144 | - <?php if($data->r_input == 'Y') { ?> |
|
144 | + <?php if ($data->r_input=='Y') { ?> |
|
145 | 145 | <input checked type='checkbox' class='flat' value='Y' name='r_input' > <label>Input</label> |
146 | - <?php } else { ?> |
|
146 | + <?php } else { ?> |
|
147 | 147 | <input type='checkbox' class='flat'value='Y' name='r_input' > <label>Input</label> |
148 | 148 | <?php } ?> |
149 | 149 | |
150 | - <?php if($data->r_edit == 'Y') { ?> |
|
150 | + <?php if ($data->r_edit=='Y') { ?> |
|
151 | 151 | <input checked type='checkbox' class='flat' value='Y' name='r_edit' > <label>Edit</label> |
152 | - <?php } else { ?> |
|
152 | + <?php } else { ?> |
|
153 | 153 | <input type='checkbox' class='flat' value='Y' name='r_edit' > <label>Edit</label> |
154 | 154 | <?php } ?> |
155 | 155 | |
156 | - <?php if($data->r_delete == 'Y') { ?> |
|
156 | + <?php if ($data->r_delete=='Y') { ?> |
|
157 | 157 | <input checked type='checkbox' class='flat' value='Y' name='r_delete' > <label>Delete</label> |
158 | - <?php } else { ?> |
|
158 | + <?php } else { ?> |
|
159 | 159 | <input type='checkbox' class='flat' value='Y' name='r_delete' > <label>Delete</label> |
160 | 160 | <?php } ?> |
161 | 161 | <?php } else { ?> |
@@ -168,9 +168,9 @@ discard block |
||
168 | 168 | </div> |
169 | 169 | |
170 | 170 | |
171 | - <?php if ($id){ ?> |
|
171 | + <?php if ($id) { ?> |
|
172 | 172 | |
173 | - <?php if (@$data->aktif=='Y'){ ?> |
|
173 | + <?php if (@$data->aktif=='Y') { ?> |
|
174 | 174 | |
175 | 175 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
176 | 176 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | <input type=radio name='aktif' value='N' class="flat"> T |
179 | 179 | </div> |
180 | 180 | |
181 | - <?php }else{ ?> |
|
181 | + <?php } else { ?> |
|
182 | 182 | |
183 | 183 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
184 | 184 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | <?php } ?> |
190 | 190 | |
191 | - <?php }else{ ?> |
|
191 | + <?php } else { ?> |
|
192 | 192 | |
193 | 193 | |
194 | 194 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -64,8 +64,9 @@ discard block |
||
64 | 64 | $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
65 | 65 | if($query && mysql_num_rows($query) == 1){ |
66 | 66 | $data = mysql_fetch_object($query); |
67 | - }else |
|
68 | - die('Data user tidak ditemukan'); |
|
67 | + } else { |
|
68 | + die('Data user tidak ditemukan'); |
|
69 | + } |
|
69 | 70 | } |
70 | 71 | |
71 | 72 | if ($_GET['igroup']) { |
@@ -126,7 +127,9 @@ discard block |
||
126 | 127 | if($query && mysql_num_rows($query) > 0){ |
127 | 128 | while($row = mysql_fetch_object($query)){ |
128 | 129 | echo '<option value="'.$row->id_groups.'"'; |
129 | - if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
130 | + if($row->id_groups == @$data->id_groups) { |
|
131 | + echo ' selected'; |
|
132 | + } |
|
130 | 133 | echo '>'.$row->groups.'</option>'; |
131 | 134 | } |
132 | 135 | } |
@@ -178,7 +181,7 @@ discard block |
||
178 | 181 | <input type=radio name='aktif' value='N' class="flat"> T |
179 | 182 | </div> |
180 | 183 | |
181 | - <?php }else{ ?> |
|
184 | + <?php } else{ ?> |
|
182 | 185 | |
183 | 186 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
184 | 187 | <div class="col-md-6 col-sm-6 col-xs-12"> |
@@ -188,7 +191,7 @@ discard block |
||
188 | 191 | |
189 | 192 | <?php } ?> |
190 | 193 | |
191 | - <?php }else{ ?> |
|
194 | + <?php } else{ ?> |
|
192 | 195 | |
193 | 196 | |
194 | 197 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
@@ -25,17 +25,17 @@ discard block |
||
25 | 25 | |
26 | 26 | if ($module=='pengaturan_sistem' AND $act=='ip'){ |
27 | 27 | |
28 | - $id_module = $_POST['id_module']; |
|
28 | + $id_module = $_POST['id_module']; |
|
29 | 29 | |
30 | - $lokasi_file = $_FILES['fupload']['tmp_name']; |
|
31 | - $tipe_file = $_FILES['fupload']['type']; |
|
32 | - $nama_file = $_FILES['fupload']['name']; |
|
33 | - $acak = rand(1,99); |
|
34 | - $nama_file_unik = $acak.$nama_file; |
|
30 | + $lokasi_file = $_FILES['fupload']['tmp_name']; |
|
31 | + $tipe_file = $_FILES['fupload']['type']; |
|
32 | + $nama_file = $_FILES['fupload']['name']; |
|
33 | + $acak = rand(1,99); |
|
34 | + $nama_file_unik = $acak.$nama_file; |
|
35 | 35 | |
36 | 36 | |
37 | - if (empty($lokasi_file)){ |
|
38 | - mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
37 | + if (empty($lokasi_file)){ |
|
38 | + mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
39 | 39 | ,address = '$_POST[address]' |
40 | 40 | ,city = '$_POST[city]' |
41 | 41 | ,zip = '$_POST[zip]' |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | ,upddt = '$datetime' |
46 | 46 | ,updby = '$userid' |
47 | 47 | WHERE id_informasi_perusahaan = '$_POST[ID]'"); |
48 | - } else { |
|
48 | + } else { |
|
49 | 49 | |
50 | - LogoImage($nama_file_unik); |
|
51 | - mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
50 | + LogoImage($nama_file_unik); |
|
51 | + mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
|
52 | 52 | ,address = '$_POST[address]' |
53 | 53 | ,city = '$_POST[city]' |
54 | 54 | ,zip = '$_POST[zip]' |
@@ -62,18 +62,18 @@ discard block |
||
62 | 62 | WHERE id_informasi_perusahaan = '$_POST[ID]'"); |
63 | 63 | |
64 | 64 | |
65 | - } |
|
65 | + } |
|
66 | 66 | |
67 | - $id = $_POST['ID']; |
|
67 | + $id = $_POST['ID']; |
|
68 | 68 | |
69 | - header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
|
69 | + header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
|
70 | 70 | |
71 | 71 | } |
72 | 72 | |
73 | 73 | elseif ($module=='pengaturan_sistem' AND $act=='sa'){ |
74 | 74 | |
75 | 75 | |
76 | - mysql_query("UPDATE pg_setoran_awal SET jenis = '$_POST[jenis]' |
|
76 | + mysql_query("UPDATE pg_setoran_awal SET jenis = '$_POST[jenis]' |
|
77 | 77 | ,nilai = '$_POST[nilai]' |
78 | 78 | ,id_jenis_posting = '$_POST[jenis_posting]' |
79 | 79 | ,rek_debet = '$_POST[rek_debet]' |
@@ -84,14 +84,14 @@ discard block |
||
84 | 84 | AND prd = '$prd' |
85 | 85 | "); |
86 | 86 | |
87 | - if ($_POST['u_tab'] == '1') { |
|
87 | + if ($_POST['u_tab'] == '1') { |
|
88 | 88 | |
89 | 89 | mysql_query("DELETE FROM pembukaan_tabungan |
90 | 90 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
91 | 91 | AND status = '2' |
92 | 92 | "); |
93 | 93 | |
94 | - mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
94 | + mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
95 | 95 | ,upddt = '$datetime' |
96 | 96 | ,updby = '$userid' |
97 | 97 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | AND posting = '0' |
100 | 100 | "); |
101 | 101 | |
102 | - mysql_query("INSERT INTO pembukaan_tabungan ( |
|
102 | + mysql_query("INSERT INTO pembukaan_tabungan ( |
|
103 | 103 | nik |
104 | 104 | , tanggal |
105 | 105 | , id_pg_setoran_awal |
@@ -125,23 +125,23 @@ discard block |
||
125 | 125 | where tipe = 'A' |
126 | 126 | AND tab = '1' |
127 | 127 | "); |
128 | - } |
|
128 | + } |
|
129 | 129 | |
130 | - if ($_POST['u_tab'] == '2') { |
|
130 | + if ($_POST['u_tab'] == '2') { |
|
131 | 131 | |
132 | 132 | mysql_query("DELETE FROM pembukaan_tabungan |
133 | 133 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
134 | 134 | AND status = '2' |
135 | 135 | "); |
136 | 136 | |
137 | - mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
137 | + mysql_query("UPDATE pembukaan_tabungan SET status = '2' |
|
138 | 138 | ,upddt = '$datetime' |
139 | 139 | ,updby = '$userid' |
140 | 140 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
141 | 141 | AND status = '0' |
142 | 142 | "); |
143 | 143 | |
144 | - mysql_query("INSERT INTO pembukaan_tabungan ( |
|
144 | + mysql_query("INSERT INTO pembukaan_tabungan ( |
|
145 | 145 | nik |
146 | 146 | , tanggal |
147 | 147 | , id_pg_setoran_awal |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | where tipe = 'A' |
168 | 168 | AND tab = '1' |
169 | 169 | "); |
170 | - } |
|
170 | + } |
|
171 | 171 | |
172 | 172 | |
173 | 173 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | elseif ($module=='pengaturan_sistem' AND $act=='pd'){ |
180 | 180 | |
181 | 181 | |
182 | - mysql_query("UPDATE pg_penarikan_dana SET max_pencairan = '$_POST[max_pencairan]' |
|
182 | + mysql_query("UPDATE pg_penarikan_dana SET max_pencairan = '$_POST[max_pencairan]' |
|
183 | 183 | ,max_penarikan = '$_POST[max_penarikan]' |
184 | 184 | ,jeda_waktu = '$_POST[jeda_waktu]' |
185 | 185 | ,rek_debet = '$_POST[rek_debet]' |
@@ -200,10 +200,10 @@ discard block |
||
200 | 200 | elseif ($module=='pengaturan_sistem' AND $act=='pm'){ |
201 | 201 | |
202 | 202 | |
203 | - if ($_POST[stab] == 'tunai') { |
|
203 | + if ($_POST[stab] == 'tunai') { |
|
204 | 204 | |
205 | 205 | |
206 | - mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_k]' |
|
206 | + mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_k]' |
|
207 | 207 | ,max_tenor = '$_POST[max_tenor_k]' |
208 | 208 | ,max_pinjaman = '$_POST[max_pinjaman_k]' |
209 | 209 | ,max_angsuran = '$_POST[max_angsuran_k]' |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | AND prd = '$prd' |
227 | 227 | "); |
228 | 228 | |
229 | - mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_s]' |
|
229 | + mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_s]' |
|
230 | 230 | ,max_tenor = '$_POST[max_tenor_s]' |
231 | 231 | ,max_pinjaman = '$_POST[max_pinjaman_s]' |
232 | 232 | ,max_angsuran = '$_POST[max_angsuran_s]' |
@@ -249,11 +249,11 @@ discard block |
||
249 | 249 | AND prd = '$prd' |
250 | 250 | "); |
251 | 251 | |
252 | - } else { |
|
252 | + } else { |
|
253 | 253 | |
254 | 254 | |
255 | 255 | |
256 | - mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_k]' |
|
256 | + mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_k]' |
|
257 | 257 | ,max_tenor = '$_POST[max_tenor_k]' |
258 | 258 | ,max_pinjaman = '$_POST[max_pinjaman_k]' |
259 | 259 | ,max_angsuran = '$_POST[max_angsuran_k]' |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | AND prd = '$prd' |
277 | 277 | "); |
278 | 278 | |
279 | - mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_s]' |
|
279 | + mysql_query("UPDATE pg_peminjaman_barang SET min_tenor = '$_POST[min_tenor_s]' |
|
280 | 280 | ,max_tenor = '$_POST[max_tenor_s]' |
281 | 281 | ,max_pinjaman = '$_POST[max_pinjaman_s]' |
282 | 282 | ,max_angsuran = '$_POST[max_angsuran_s]' |
@@ -301,9 +301,9 @@ discard block |
||
301 | 301 | |
302 | 302 | |
303 | 303 | |
304 | - } |
|
304 | + } |
|
305 | 305 | |
306 | - $stab = $_POST['stab']; |
|
306 | + $stab = $_POST['stab']; |
|
307 | 307 | |
308 | 308 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule.'&stab='.$stab); |
309 | 309 | |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | elseif ($module=='pengaturan_sistem' AND $act=='ln'){ |
313 | 313 | |
314 | 314 | |
315 | - mysql_query("UPDATE pg_lainnya SET harga_saham = '$_POST[harga_saham]' |
|
315 | + mysql_query("UPDATE pg_lainnya SET harga_saham = '$_POST[harga_saham]' |
|
316 | 316 | ,rek_shu = '$_POST[rek_shu]' |
317 | 317 | ,ftgl = '$_POST[ftgl]' |
318 | 318 | ,fbln = '$_POST[fbln]' |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | elseif ($module=='pengaturan_sistem' AND $act=='jr'){ |
334 | 334 | |
335 | 335 | |
336 | - mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi = '$_POST[jenis_transaksi]' |
|
336 | + mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi = '$_POST[jenis_transaksi]' |
|
337 | 337 | ,id_modul = '$_POST[modul]' |
338 | 338 | ,upddt = '$datetime' |
339 | 339 | ,updby = '$userid' |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | elseif ($module=='pengaturan_sistem' AND $act=='pl'){ |
351 | 351 | |
352 | 352 | |
353 | - mysql_query("UPDATE pg_plafon SET plafon = '$_POST[plafon]' |
|
353 | + mysql_query("UPDATE pg_plafon SET plafon = '$_POST[plafon]' |
|
354 | 354 | ,upddt = '$datetime' |
355 | 355 | ,updby = '$userid' |
356 | 356 | WHERE id_pg_plafon = '$_POST[ID]' |
@@ -1,40 +1,40 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | session_start(); |
3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
|
3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) { |
|
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | -} else{ |
|
5 | +} else { |
|
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
8 | 8 | |
9 | -$imodule=$_POST[imodule]; |
|
10 | -$module=$_GET[module]; |
|
11 | -$act=$_GET[act]; |
|
9 | +$imodule = $_POST[imodule]; |
|
10 | +$module = $_GET[module]; |
|
11 | +$act = $_GET[act]; |
|
12 | 12 | |
13 | 13 | $date = date("d/m/Y"); |
14 | 14 | $idate = date("Y-m-d"); |
15 | 15 | $hour = time() - (1 * 1 * 60 * 60); |
16 | -$datetime = date("Y-m-d G:i:s", $hour); |
|
16 | +$datetime = date("Y-m-d G:i:s", $hour); |
|
17 | 17 | $userid = $_SESSION['userid']; |
18 | 18 | |
19 | 19 | $SQL = "SELECT* FROM periode "; |
20 | -$tampil=mysql_query($SQL); |
|
21 | -$p=mysql_fetch_array($tampil); |
|
20 | +$tampil = mysql_query($SQL); |
|
21 | +$p = mysql_fetch_array($tampil); |
|
22 | 22 | |
23 | 23 | $prd = $p['periode']; |
24 | 24 | |
25 | 25 | |
26 | -if ($module=='pengaturan_sistem' AND $act=='ip'){ |
|
26 | +if ($module=='pengaturan_sistem' AND $act=='ip') { |
|
27 | 27 | |
28 | 28 | $id_module = $_POST['id_module']; |
29 | 29 | |
30 | 30 | $lokasi_file = $_FILES['fupload']['tmp_name']; |
31 | 31 | $tipe_file = $_FILES['fupload']['type']; |
32 | 32 | $nama_file = $_FILES['fupload']['name']; |
33 | - $acak = rand(1,99); |
|
33 | + $acak = rand(1, 99); |
|
34 | 34 | $nama_file_unik = $acak.$nama_file; |
35 | 35 | |
36 | 36 | |
37 | - if (empty($lokasi_file)){ |
|
37 | + if (empty($lokasi_file)) { |
|
38 | 38 | mysql_query("UPDATE informasi_perusahaan SET company = '$_POST[company]' |
39 | 39 | ,address = '$_POST[address]' |
40 | 40 | ,city = '$_POST[city]' |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | } |
72 | 72 | |
73 | -elseif ($module=='pengaturan_sistem' AND $act=='sa'){ |
|
73 | +elseif ($module=='pengaturan_sistem' AND $act=='sa') { |
|
74 | 74 | |
75 | 75 | |
76 | 76 | mysql_query("UPDATE pg_setoran_awal SET jenis = '$_POST[jenis]' |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | AND prd = '$prd' |
85 | 85 | "); |
86 | 86 | |
87 | - if ($_POST['u_tab'] == '1') { |
|
87 | + if ($_POST['u_tab']=='1') { |
|
88 | 88 | |
89 | 89 | mysql_query("DELETE FROM pembukaan_tabungan |
90 | 90 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | "); |
128 | 128 | } |
129 | 129 | |
130 | - if ($_POST['u_tab'] == '2') { |
|
130 | + if ($_POST['u_tab']=='2') { |
|
131 | 131 | |
132 | 132 | mysql_query("DELETE FROM pembukaan_tabungan |
133 | 133 | WHERE id_pg_setoran_awal = '$_POST[ID]' |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | |
177 | 177 | } |
178 | 178 | |
179 | -elseif ($module=='pengaturan_sistem' AND $act=='pd'){ |
|
179 | +elseif ($module=='pengaturan_sistem' AND $act=='pd') { |
|
180 | 180 | |
181 | 181 | |
182 | 182 | mysql_query("UPDATE pg_penarikan_dana SET max_pencairan = '$_POST[max_pencairan]' |
@@ -197,10 +197,10 @@ discard block |
||
197 | 197 | |
198 | 198 | } |
199 | 199 | |
200 | -elseif ($module=='pengaturan_sistem' AND $act=='pm'){ |
|
200 | +elseif ($module=='pengaturan_sistem' AND $act=='pm') { |
|
201 | 201 | |
202 | 202 | |
203 | - if ($_POST[stab] == 'tunai') { |
|
203 | + if ($_POST[stab]=='tunai') { |
|
204 | 204 | |
205 | 205 | |
206 | 206 | mysql_query("UPDATE pg_peminjaman_tunai SET min_tenor = '$_POST[min_tenor_k]' |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | AND prd = '$prd' |
250 | 250 | "); |
251 | 251 | |
252 | - } else { |
|
252 | + } else { |
|
253 | 253 | |
254 | 254 | |
255 | 255 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | |
310 | 310 | } |
311 | 311 | |
312 | -elseif ($module=='pengaturan_sistem' AND $act=='ln'){ |
|
312 | +elseif ($module=='pengaturan_sistem' AND $act=='ln') { |
|
313 | 313 | |
314 | 314 | |
315 | 315 | mysql_query("UPDATE pg_lainnya SET harga_saham = '$_POST[harga_saham]' |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | |
331 | 331 | } |
332 | 332 | |
333 | -elseif ($module=='pengaturan_sistem' AND $act=='jr'){ |
|
333 | +elseif ($module=='pengaturan_sistem' AND $act=='jr') { |
|
334 | 334 | |
335 | 335 | |
336 | 336 | mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi = '$_POST[jenis_transaksi]' |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | |
348 | 348 | } |
349 | 349 | |
350 | -elseif ($module=='pengaturan_sistem' AND $act=='pl'){ |
|
350 | +elseif ($module=='pengaturan_sistem' AND $act=='pl') { |
|
351 | 351 | |
352 | 352 | |
353 | 353 | mysql_query("UPDATE pg_plafon SET plafon = '$_POST[plafon]' |
@@ -68,9 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
70 | 70 | |
71 | -} |
|
72 | - |
|
73 | -elseif ($module=='pengaturan_sistem' AND $act=='sa'){ |
|
71 | +} elseif ($module=='pengaturan_sistem' AND $act=='sa'){ |
|
74 | 72 | |
75 | 73 | |
76 | 74 | mysql_query("UPDATE pg_setoran_awal SET jenis = '$_POST[jenis]' |
@@ -174,9 +172,7 @@ discard block |
||
174 | 172 | $id = $_POST['ID']; |
175 | 173 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
176 | 174 | |
177 | -} |
|
178 | - |
|
179 | -elseif ($module=='pengaturan_sistem' AND $act=='pd'){ |
|
175 | +} elseif ($module=='pengaturan_sistem' AND $act=='pd'){ |
|
180 | 176 | |
181 | 177 | |
182 | 178 | mysql_query("UPDATE pg_penarikan_dana SET max_pencairan = '$_POST[max_pencairan]' |
@@ -195,9 +191,7 @@ discard block |
||
195 | 191 | $id = $_POST['ID']; |
196 | 192 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
197 | 193 | |
198 | -} |
|
199 | - |
|
200 | -elseif ($module=='pengaturan_sistem' AND $act=='pm'){ |
|
194 | +} elseif ($module=='pengaturan_sistem' AND $act=='pm'){ |
|
201 | 195 | |
202 | 196 | |
203 | 197 | if ($_POST[stab] == 'tunai') { |
@@ -249,7 +243,7 @@ discard block |
||
249 | 243 | AND prd = '$prd' |
250 | 244 | "); |
251 | 245 | |
252 | - } else { |
|
246 | + } else { |
|
253 | 247 | |
254 | 248 | |
255 | 249 | |
@@ -307,9 +301,7 @@ discard block |
||
307 | 301 | |
308 | 302 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule.'&stab='.$stab); |
309 | 303 | |
310 | -} |
|
311 | - |
|
312 | -elseif ($module=='pengaturan_sistem' AND $act=='ln'){ |
|
304 | +} elseif ($module=='pengaturan_sistem' AND $act=='ln'){ |
|
313 | 305 | |
314 | 306 | |
315 | 307 | mysql_query("UPDATE pg_lainnya SET harga_saham = '$_POST[harga_saham]' |
@@ -328,9 +320,7 @@ discard block |
||
328 | 320 | $id = $_POST['ID']; |
329 | 321 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
330 | 322 | |
331 | -} |
|
332 | - |
|
333 | -elseif ($module=='pengaturan_sistem' AND $act=='jr'){ |
|
323 | +} elseif ($module=='pengaturan_sistem' AND $act=='jr'){ |
|
334 | 324 | |
335 | 325 | |
336 | 326 | mysql_query("UPDATE pg_jurnal SET id_jenis_transaksi = '$_POST[jenis_transaksi]' |
@@ -345,9 +335,7 @@ discard block |
||
345 | 335 | $id = $_POST['ID']; |
346 | 336 | header('location:form_'.$module.'.php?id='.$id.'&module='.$module.'&id_module='.$id_module.'&tab='.$act.'&imodule='.$imodule); |
347 | 337 | |
348 | -} |
|
349 | - |
|
350 | -elseif ($module=='pengaturan_sistem' AND $act=='pl'){ |
|
338 | +} elseif ($module=='pengaturan_sistem' AND $act=='pl'){ |
|
351 | 339 | |
352 | 340 | |
353 | 341 | mysql_query("UPDATE pg_plafon SET plafon = '$_POST[plafon]' |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | 3 | if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
4 | - echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
4 | + echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
|
5 | 5 | } else{ |
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
@@ -20,17 +20,17 @@ discard block |
||
20 | 20 | $id_module = $_GET['id_module']; |
21 | 21 | |
22 | 22 | |
23 | - if ($_GET['tab']) { |
|
24 | - $tab = $_GET['tab']; |
|
25 | - } else { |
|
26 | - $tab = 'ip'; |
|
27 | - } |
|
23 | + if ($_GET['tab']) { |
|
24 | + $tab = $_GET['tab']; |
|
25 | + } else { |
|
26 | + $tab = 'ip'; |
|
27 | + } |
|
28 | 28 | |
29 | - if ($_GET['stab']) { |
|
30 | - $stab = $_GET['stab']; |
|
31 | - } else { |
|
32 | - $stab = 'tunai'; |
|
33 | - } |
|
29 | + if ($_GET['stab']) { |
|
30 | + $stab = $_GET['stab']; |
|
31 | + } else { |
|
32 | + $stab = 'tunai'; |
|
33 | + } |
|
34 | 34 | |
35 | 35 | ?> |
36 | 36 | <!doctype html> |
@@ -136,14 +136,14 @@ discard block |
||
136 | 136 | |
137 | 137 | <? |
138 | 138 | |
139 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
139 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
140 | 140 | |
141 | 141 | if($id){ |
142 | - $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
143 | - if($query && mysql_num_rows($query) == 1){ |
|
144 | - $data = mysql_fetch_object($query); |
|
145 | - }else |
|
146 | - die('Data general_setting tidak ditemukan'); |
|
142 | + $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
143 | + if($query && mysql_num_rows($query) == 1){ |
|
144 | + $data = mysql_fetch_object($query); |
|
145 | + }else |
|
146 | + die('Data general_setting tidak ditemukan'); |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | $pict = $data->pict; |
@@ -257,20 +257,20 @@ discard block |
||
257 | 257 | <tbody> |
258 | 258 | <? |
259 | 259 | |
260 | - $SQL = "SELECT* FROM pg_setoran_awal |
|
260 | + $SQL = "SELECT* FROM pg_setoran_awal |
|
261 | 261 | WHERE prd = '$prd' order by id_pg_setoran_awal"; |
262 | 262 | |
263 | 263 | |
264 | - $tampil=mysql_query($SQL); |
|
264 | + $tampil=mysql_query($SQL); |
|
265 | 265 | |
266 | - $no = 1; |
|
266 | + $no = 1; |
|
267 | 267 | |
268 | 268 | while ($r=mysql_fetch_array($tampil)){ |
269 | 269 | |
270 | 270 | if ($r['nilai'] == '0') { |
271 | - $disabled = 'readonly'; |
|
271 | + $disabled = 'readonly'; |
|
272 | 272 | } else { |
273 | - $disabled = ''; |
|
273 | + $disabled = ''; |
|
274 | 274 | } |
275 | 275 | |
276 | 276 | |
@@ -297,14 +297,14 @@ discard block |
||
297 | 297 | <select name="jenis_posting" class="form-control" required > |
298 | 298 | <? |
299 | 299 | $query = mysql_query('SELECT * FROM jenis_posting ORDER BY jenis_posting'); |
300 | - if($query && mysql_num_rows($query) > 0){ |
|
300 | + if($query && mysql_num_rows($query) > 0){ |
|
301 | 301 | while($row = mysql_fetch_object($query)){ |
302 | - echo '<option value="'.$row->id_jenis_posting.'"'; |
|
303 | - if($row->id_jenis_posting == $r['id_jenis_posting']) echo ' selected'; |
|
304 | - echo '>'.$row->jenis_posting.'</option>'; |
|
302 | + echo '<option value="'.$row->id_jenis_posting.'"'; |
|
303 | + if($row->id_jenis_posting == $r['id_jenis_posting']) echo ' selected'; |
|
304 | + echo '>'.$row->jenis_posting.'</option>'; |
|
305 | 305 | } |
306 | - } |
|
307 | - ?> |
|
306 | + } |
|
307 | + ?> |
|
308 | 308 | </select> |
309 | 309 | |
310 | 310 | </td> |
@@ -317,14 +317,14 @@ discard block |
||
317 | 317 | WHERE parentid != "0" |
318 | 318 | |
319 | 319 | ORDER BY norek'); |
320 | - if($query && mysql_num_rows($query) > 0){ |
|
320 | + if($query && mysql_num_rows($query) > 0){ |
|
321 | 321 | while($row = mysql_fetch_object($query)){ |
322 | - echo '<option value="'.$row->id_rekening.'"'; |
|
323 | - if($row->id_rekening == $r['rek_debet']) echo ' selected'; |
|
324 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
322 | + echo '<option value="'.$row->id_rekening.'"'; |
|
323 | + if($row->id_rekening == $r['rek_debet']) echo ' selected'; |
|
324 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
325 | 325 | } |
326 | - } |
|
327 | - ?> |
|
326 | + } |
|
327 | + ?> |
|
328 | 328 | </select> |
329 | 329 | |
330 | 330 | </td> |
@@ -337,14 +337,14 @@ discard block |
||
337 | 337 | WHERE parentid != "0" |
338 | 338 | |
339 | 339 | ORDER BY norek'); |
340 | - if($query && mysql_num_rows($query) > 0){ |
|
340 | + if($query && mysql_num_rows($query) > 0){ |
|
341 | 341 | while($row = mysql_fetch_object($query)){ |
342 | - echo '<option value="'.$row->id_rekening.'"'; |
|
343 | - if($row->id_rekening == $r['rek_kredit']) echo ' selected'; |
|
344 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
342 | + echo '<option value="'.$row->id_rekening.'"'; |
|
343 | + if($row->id_rekening == $r['rek_kredit']) echo ' selected'; |
|
344 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
345 | 345 | } |
346 | - } |
|
347 | - ?> |
|
346 | + } |
|
347 | + ?> |
|
348 | 348 | </select> |
349 | 349 | |
350 | 350 | </td> |
@@ -369,11 +369,11 @@ discard block |
||
369 | 369 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
370 | 370 | |
371 | 371 | <? |
372 | - echo"</form>"; |
|
372 | + echo"</form>"; |
|
373 | 373 | |
374 | 374 | } |
375 | 375 | |
376 | - ?> |
|
376 | + ?> |
|
377 | 377 | |
378 | 378 | |
379 | 379 | |
@@ -393,15 +393,15 @@ discard block |
||
393 | 393 | |
394 | 394 | <? |
395 | 395 | |
396 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
396 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
397 | 397 | |
398 | 398 | if($id){ |
399 | - $query = mysql_query('SELECT * FROM pg_penarikan_dana |
|
399 | + $query = mysql_query('SELECT * FROM pg_penarikan_dana |
|
400 | 400 | WHERE prd = "'.$prd.'" '); |
401 | - if($query && mysql_num_rows($query) == 1){ |
|
402 | - $data = mysql_fetch_object($query); |
|
403 | - }else |
|
404 | - die('Data pg_penarikan_dana tidak ditemukan'); |
|
401 | + if($query && mysql_num_rows($query) == 1){ |
|
402 | + $data = mysql_fetch_object($query); |
|
403 | + }else |
|
404 | + die('Data pg_penarikan_dana tidak ditemukan'); |
|
405 | 405 | } |
406 | 406 | |
407 | 407 | |
@@ -464,18 +464,18 @@ discard block |
||
464 | 464 | <select name="rek_debet" class="form-control" required > |
465 | 465 | <option value='0'></option> |
466 | 466 | <? |
467 | - $query = mysql_query('SELECT * FROM rekening |
|
467 | + $query = mysql_query('SELECT * FROM rekening |
|
468 | 468 | WHERE parentid != "0" |
469 | 469 | |
470 | 470 | ORDER BY norek'); |
471 | 471 | if($query && mysql_num_rows($query) > 0){ |
472 | - while($row = mysql_fetch_object($query)){ |
|
473 | - echo '<option value="'.$row->id_rekening.'"'; |
|
474 | - if($row->id_rekening == $data->rek_debet) echo ' selected'; |
|
475 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
476 | - } |
|
472 | + while($row = mysql_fetch_object($query)){ |
|
473 | + echo '<option value="'.$row->id_rekening.'"'; |
|
474 | + if($row->id_rekening == $data->rek_debet) echo ' selected'; |
|
475 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
476 | + } |
|
477 | 477 | } |
478 | - ?> |
|
478 | + ?> |
|
479 | 479 | </select> |
480 | 480 | </div> |
481 | 481 | <div class="col-md-1 col-sm-1 col-xs-1 form-group"> |
@@ -485,18 +485,18 @@ discard block |
||
485 | 485 | <select name="rek_kredit" class="form-control" required > |
486 | 486 | <option value='0'></option> |
487 | 487 | <? |
488 | - $query = mysql_query('SELECT * FROM rekening |
|
488 | + $query = mysql_query('SELECT * FROM rekening |
|
489 | 489 | WHERE parentid != "0" |
490 | 490 | |
491 | 491 | ORDER BY norek'); |
492 | 492 | if($query && mysql_num_rows($query) > 0){ |
493 | - while($row = mysql_fetch_object($query)){ |
|
494 | - echo '<option value="'.$row->id_rekening.'"'; |
|
495 | - if($row->id_rekening == $data->rek_kredit) echo ' selected'; |
|
496 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
497 | - } |
|
493 | + while($row = mysql_fetch_object($query)){ |
|
494 | + echo '<option value="'.$row->id_rekening.'"'; |
|
495 | + if($row->id_rekening == $data->rek_kredit) echo ' selected'; |
|
496 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
497 | + } |
|
498 | 498 | } |
499 | - ?> |
|
499 | + ?> |
|
500 | 500 | </select> |
501 | 501 | </div> |
502 | 502 | <div class="col-md-1 col-sm-1 col-xs-1 form-group"> |
@@ -580,25 +580,25 @@ discard block |
||
580 | 580 | |
581 | 581 | <? |
582 | 582 | |
583 | - $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
583 | + $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
584 | 584 | |
585 | 585 | |
586 | - $ktampil=mysql_query($kSQL); |
|
586 | + $ktampil=mysql_query($kSQL); |
|
587 | 587 | |
588 | 588 | |
589 | - $k=mysql_fetch_array($ktampil); |
|
589 | + $k=mysql_fetch_array($ktampil); |
|
590 | 590 | |
591 | 591 | |
592 | - $sSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'S' AND prd = '$prd'"; |
|
592 | + $sSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'S' AND prd = '$prd'"; |
|
593 | 593 | |
594 | 594 | |
595 | - $stampil=mysql_query($sSQL); |
|
595 | + $stampil=mysql_query($sSQL); |
|
596 | 596 | |
597 | 597 | |
598 | - $s=mysql_fetch_array($stampil); |
|
598 | + $s=mysql_fetch_array($stampil); |
|
599 | 599 | |
600 | 600 | |
601 | - ?> |
|
601 | + ?> |
|
602 | 602 | |
603 | 603 | <tr> |
604 | 604 | <td><label class="control-label" style="padding-top:8px;">Rekening</label></td> |
@@ -615,14 +615,14 @@ discard block |
||
615 | 615 | $query = mysql_query('SELECT * FROM rekening |
616 | 616 | WHERE parentid != "0" |
617 | 617 | ORDER BY norek'); |
618 | - if($query && mysql_num_rows($query) > 0){ |
|
618 | + if($query && mysql_num_rows($query) > 0){ |
|
619 | 619 | while($row = mysql_fetch_object($query)){ |
620 | - echo '<option value="'.$row->id_rekening.'"'; |
|
621 | - if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
622 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
620 | + echo '<option value="'.$row->id_rekening.'"'; |
|
621 | + if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
622 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
623 | 623 | } |
624 | - } |
|
625 | - ?> |
|
624 | + } |
|
625 | + ?> |
|
626 | 626 | </select> |
627 | 627 | |
628 | 628 | </td> |
@@ -633,14 +633,14 @@ discard block |
||
633 | 633 | $query = mysql_query('SELECT * FROM rekening |
634 | 634 | WHERE parentid != "0" |
635 | 635 | ORDER BY norek'); |
636 | - if($query && mysql_num_rows($query) > 0){ |
|
636 | + if($query && mysql_num_rows($query) > 0){ |
|
637 | 637 | while($row = mysql_fetch_object($query)){ |
638 | - echo '<option value="'.$row->id_rekening.'"'; |
|
639 | - if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
640 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
638 | + echo '<option value="'.$row->id_rekening.'"'; |
|
639 | + if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
640 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
641 | 641 | } |
642 | - } |
|
643 | - ?> |
|
642 | + } |
|
643 | + ?> |
|
644 | 644 | </select> |
645 | 645 | |
646 | 646 | |
@@ -663,14 +663,14 @@ discard block |
||
663 | 663 | $query = mysql_query('SELECT * FROM rekening |
664 | 664 | WHERE parentid != "0" |
665 | 665 | ORDER BY norek'); |
666 | - if($query && mysql_num_rows($query) > 0){ |
|
666 | + if($query && mysql_num_rows($query) > 0){ |
|
667 | 667 | while($row = mysql_fetch_object($query)){ |
668 | - echo '<option value="'.$row->id_rekening.'"'; |
|
669 | - if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
670 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
668 | + echo '<option value="'.$row->id_rekening.'"'; |
|
669 | + if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
670 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
671 | 671 | } |
672 | - } |
|
673 | - ?> |
|
672 | + } |
|
673 | + ?> |
|
674 | 674 | </select> |
675 | 675 | |
676 | 676 | </td> |
@@ -681,14 +681,14 @@ discard block |
||
681 | 681 | $query = mysql_query('SELECT * FROM rekening |
682 | 682 | WHERE parentid != "0" |
683 | 683 | ORDER BY norek'); |
684 | - if($query && mysql_num_rows($query) > 0){ |
|
684 | + if($query && mysql_num_rows($query) > 0){ |
|
685 | 685 | while($row = mysql_fetch_object($query)){ |
686 | - echo '<option value="'.$row->id_rekening.'"'; |
|
687 | - if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
688 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
686 | + echo '<option value="'.$row->id_rekening.'"'; |
|
687 | + if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
688 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
689 | 689 | } |
690 | - } |
|
691 | - ?> |
|
690 | + } |
|
691 | + ?> |
|
692 | 692 | </select> |
693 | 693 | |
694 | 694 | |
@@ -839,14 +839,14 @@ discard block |
||
839 | 839 | WHERE parentid != "0" |
840 | 840 | |
841 | 841 | ORDER BY norek'); |
842 | - if($query && mysql_num_rows($query) > 0){ |
|
842 | + if($query && mysql_num_rows($query) > 0){ |
|
843 | 843 | while($row = mysql_fetch_object($query)){ |
844 | - echo '<option value="'.$row->id_rekening.'"'; |
|
845 | - if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
846 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
844 | + echo '<option value="'.$row->id_rekening.'"'; |
|
845 | + if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
846 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
847 | 847 | } |
848 | - } |
|
849 | - ?> |
|
848 | + } |
|
849 | + ?> |
|
850 | 850 | </select> |
851 | 851 | |
852 | 852 | </td> |
@@ -857,14 +857,14 @@ discard block |
||
857 | 857 | $query = mysql_query('SELECT * FROM rekening |
858 | 858 | WHERE parentid != "0" |
859 | 859 | ORDER BY norek'); |
860 | - if($query && mysql_num_rows($query) > 0){ |
|
860 | + if($query && mysql_num_rows($query) > 0){ |
|
861 | 861 | while($row = mysql_fetch_object($query)){ |
862 | - echo '<option value="'.$row->id_rekening.'"'; |
|
863 | - if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
864 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
862 | + echo '<option value="'.$row->id_rekening.'"'; |
|
863 | + if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
864 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
865 | 865 | } |
866 | - } |
|
867 | - ?> |
|
866 | + } |
|
867 | + ?> |
|
868 | 868 | </select> |
869 | 869 | |
870 | 870 | |
@@ -903,14 +903,14 @@ discard block |
||
903 | 903 | $query = mysql_query('SELECT * FROM rekening |
904 | 904 | WHERE parentid != "0" |
905 | 905 | ORDER BY norek'); |
906 | - if($query && mysql_num_rows($query) > 0){ |
|
906 | + if($query && mysql_num_rows($query) > 0){ |
|
907 | 907 | while($row = mysql_fetch_object($query)){ |
908 | - echo '<option value="'.$row->id_rekening.'"'; |
|
909 | - if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
910 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
908 | + echo '<option value="'.$row->id_rekening.'"'; |
|
909 | + if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
910 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
911 | 911 | } |
912 | - } |
|
913 | - ?> |
|
912 | + } |
|
913 | + ?> |
|
914 | 914 | </select> |
915 | 915 | |
916 | 916 | </td> |
@@ -921,14 +921,14 @@ discard block |
||
921 | 921 | $query = mysql_query('SELECT * FROM rekening |
922 | 922 | WHERE parentid != "0" |
923 | 923 | ORDER BY norek'); |
924 | - if($query && mysql_num_rows($query) > 0){ |
|
924 | + if($query && mysql_num_rows($query) > 0){ |
|
925 | 925 | while($row = mysql_fetch_object($query)){ |
926 | - echo '<option value="'.$row->id_rekening.'"'; |
|
927 | - if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
928 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
926 | + echo '<option value="'.$row->id_rekening.'"'; |
|
927 | + if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
928 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
929 | 929 | } |
930 | - } |
|
931 | - ?> |
|
930 | + } |
|
931 | + ?> |
|
932 | 932 | </select> |
933 | 933 | |
934 | 934 | |
@@ -1083,25 +1083,25 @@ discard block |
||
1083 | 1083 | |
1084 | 1084 | <? |
1085 | 1085 | |
1086 | - $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1086 | + $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1087 | 1087 | |
1088 | 1088 | |
1089 | - $ktampil=mysql_query($kSQL); |
|
1089 | + $ktampil=mysql_query($kSQL); |
|
1090 | 1090 | |
1091 | 1091 | |
1092 | - $k=mysql_fetch_array($ktampil); |
|
1092 | + $k=mysql_fetch_array($ktampil); |
|
1093 | 1093 | |
1094 | 1094 | |
1095 | - $sSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'S' AND prd = '$prd' "; |
|
1095 | + $sSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'S' AND prd = '$prd' "; |
|
1096 | 1096 | |
1097 | 1097 | |
1098 | - $stampil=mysql_query($sSQL); |
|
1098 | + $stampil=mysql_query($sSQL); |
|
1099 | 1099 | |
1100 | 1100 | |
1101 | - $s=mysql_fetch_array($stampil); |
|
1101 | + $s=mysql_fetch_array($stampil); |
|
1102 | 1102 | |
1103 | 1103 | |
1104 | - ?> |
|
1104 | + ?> |
|
1105 | 1105 | |
1106 | 1106 | <tr> |
1107 | 1107 | <td><label class="control-label" style="padding-top:8px;">Rekening</label></td> |
@@ -1118,14 +1118,14 @@ discard block |
||
1118 | 1118 | $query = mysql_query('SELECT * FROM rekening |
1119 | 1119 | WHERE parentid != "0" |
1120 | 1120 | ORDER BY norek'); |
1121 | - if($query && mysql_num_rows($query) > 0){ |
|
1121 | + if($query && mysql_num_rows($query) > 0){ |
|
1122 | 1122 | while($row = mysql_fetch_object($query)){ |
1123 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1124 | - if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
1125 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1123 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1124 | + if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
1125 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1126 | 1126 | } |
1127 | - } |
|
1128 | - ?> |
|
1127 | + } |
|
1128 | + ?> |
|
1129 | 1129 | </select> |
1130 | 1130 | |
1131 | 1131 | </td> |
@@ -1136,14 +1136,14 @@ discard block |
||
1136 | 1136 | $query = mysql_query('SELECT * FROM rekening |
1137 | 1137 | WHERE parentid != "0" |
1138 | 1138 | ORDER BY norek'); |
1139 | - if($query && mysql_num_rows($query) > 0){ |
|
1139 | + if($query && mysql_num_rows($query) > 0){ |
|
1140 | 1140 | while($row = mysql_fetch_object($query)){ |
1141 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1142 | - if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
1143 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1141 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1142 | + if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
1143 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1144 | 1144 | } |
1145 | - } |
|
1146 | - ?> |
|
1145 | + } |
|
1146 | + ?> |
|
1147 | 1147 | </select> |
1148 | 1148 | |
1149 | 1149 | |
@@ -1167,14 +1167,14 @@ discard block |
||
1167 | 1167 | $query = mysql_query('SELECT * FROM rekening |
1168 | 1168 | WHERE parentid != "0" |
1169 | 1169 | ORDER BY norek'); |
1170 | - if($query && mysql_num_rows($query) > 0){ |
|
1170 | + if($query && mysql_num_rows($query) > 0){ |
|
1171 | 1171 | while($row = mysql_fetch_object($query)){ |
1172 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1173 | - if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
1174 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1172 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1173 | + if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
1174 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1175 | 1175 | } |
1176 | - } |
|
1177 | - ?> |
|
1176 | + } |
|
1177 | + ?> |
|
1178 | 1178 | </select> |
1179 | 1179 | |
1180 | 1180 | </td> |
@@ -1185,14 +1185,14 @@ discard block |
||
1185 | 1185 | $query = mysql_query('SELECT * FROM rekening |
1186 | 1186 | WHERE parentid != "0" |
1187 | 1187 | ORDER BY norek'); |
1188 | - if($query && mysql_num_rows($query) > 0){ |
|
1188 | + if($query && mysql_num_rows($query) > 0){ |
|
1189 | 1189 | while($row = mysql_fetch_object($query)){ |
1190 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1191 | - if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
1192 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1190 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1191 | + if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
1192 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1193 | 1193 | } |
1194 | - } |
|
1195 | - ?> |
|
1194 | + } |
|
1195 | + ?> |
|
1196 | 1196 | </select> |
1197 | 1197 | |
1198 | 1198 | |
@@ -1343,14 +1343,14 @@ discard block |
||
1343 | 1343 | WHERE parentid != "0" |
1344 | 1344 | |
1345 | 1345 | ORDER BY norek'); |
1346 | - if($query && mysql_num_rows($query) > 0){ |
|
1346 | + if($query && mysql_num_rows($query) > 0){ |
|
1347 | 1347 | while($row = mysql_fetch_object($query)){ |
1348 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1349 | - if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
1350 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1348 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1349 | + if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
1350 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1351 | 1351 | } |
1352 | - } |
|
1353 | - ?> |
|
1352 | + } |
|
1353 | + ?> |
|
1354 | 1354 | </select> |
1355 | 1355 | |
1356 | 1356 | </td> |
@@ -1361,14 +1361,14 @@ discard block |
||
1361 | 1361 | $query = mysql_query('SELECT * FROM rekening |
1362 | 1362 | WHERE parentid != "0" |
1363 | 1363 | ORDER BY norek'); |
1364 | - if($query && mysql_num_rows($query) > 0){ |
|
1364 | + if($query && mysql_num_rows($query) > 0){ |
|
1365 | 1365 | while($row = mysql_fetch_object($query)){ |
1366 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1367 | - if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
1368 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1366 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1367 | + if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
1368 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1369 | 1369 | } |
1370 | - } |
|
1371 | - ?> |
|
1370 | + } |
|
1371 | + ?> |
|
1372 | 1372 | </select> |
1373 | 1373 | |
1374 | 1374 | |
@@ -1407,14 +1407,14 @@ discard block |
||
1407 | 1407 | $query = mysql_query('SELECT * FROM rekening |
1408 | 1408 | WHERE parentid != "0" |
1409 | 1409 | ORDER BY norek'); |
1410 | - if($query && mysql_num_rows($query) > 0){ |
|
1410 | + if($query && mysql_num_rows($query) > 0){ |
|
1411 | 1411 | while($row = mysql_fetch_object($query)){ |
1412 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1413 | - if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
1414 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1412 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1413 | + if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
1414 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1415 | 1415 | } |
1416 | - } |
|
1417 | - ?> |
|
1416 | + } |
|
1417 | + ?> |
|
1418 | 1418 | </select> |
1419 | 1419 | |
1420 | 1420 | </td> |
@@ -1425,14 +1425,14 @@ discard block |
||
1425 | 1425 | $query = mysql_query('SELECT * FROM rekening |
1426 | 1426 | WHERE parentid != "0" |
1427 | 1427 | ORDER BY norek'); |
1428 | - if($query && mysql_num_rows($query) > 0){ |
|
1428 | + if($query && mysql_num_rows($query) > 0){ |
|
1429 | 1429 | while($row = mysql_fetch_object($query)){ |
1430 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1431 | - if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
1432 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1430 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1431 | + if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
1432 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1433 | 1433 | } |
1434 | - } |
|
1435 | - ?> |
|
1434 | + } |
|
1435 | + ?> |
|
1436 | 1436 | </select> |
1437 | 1437 | |
1438 | 1438 | |
@@ -1574,14 +1574,14 @@ discard block |
||
1574 | 1574 | <tbody> |
1575 | 1575 | <? |
1576 | 1576 | |
1577 | - $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1577 | + $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1578 | 1578 | ON a.id_jenis_pinjaman = b.id_jenis_pinjaman |
1579 | 1579 | WHERE a.prd = '$prd'"; |
1580 | 1580 | |
1581 | 1581 | |
1582 | - $tampil=mysql_query($SQL); |
|
1582 | + $tampil=mysql_query($SQL); |
|
1583 | 1583 | |
1584 | - $no = 1; |
|
1584 | + $no = 1; |
|
1585 | 1585 | |
1586 | 1586 | while ($r=mysql_fetch_array($tampil)){ |
1587 | 1587 | |
@@ -1596,14 +1596,14 @@ discard block |
||
1596 | 1596 | <select name="jenis_pinjaman" class="form-control" disabled> |
1597 | 1597 | <? |
1598 | 1598 | $query = mysql_query('SELECT * FROM jenis_pinjaman ORDER BY jenis_pinjaman'); |
1599 | - if($query && mysql_num_rows($query) > 0){ |
|
1599 | + if($query && mysql_num_rows($query) > 0){ |
|
1600 | 1600 | while($row = mysql_fetch_object($query)){ |
1601 | - echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
|
1602 | - if($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) echo ' selected'; |
|
1603 | - echo '>'.$row->jenis_pinjaman.'</option>'; |
|
1601 | + echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
|
1602 | + if($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) echo ' selected'; |
|
1603 | + echo '>'.$row->jenis_pinjaman.'</option>'; |
|
1604 | 1604 | } |
1605 | - } |
|
1606 | - ?> |
|
1605 | + } |
|
1606 | + ?> |
|
1607 | 1607 | </select> |
1608 | 1608 | |
1609 | 1609 | </td> |
@@ -1631,11 +1631,11 @@ discard block |
||
1631 | 1631 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1632 | 1632 | |
1633 | 1633 | <? |
1634 | - echo"</form>"; |
|
1634 | + echo"</form>"; |
|
1635 | 1635 | |
1636 | 1636 | } |
1637 | 1637 | |
1638 | - ?> |
|
1638 | + ?> |
|
1639 | 1639 | |
1640 | 1640 | |
1641 | 1641 | |
@@ -1672,12 +1672,12 @@ discard block |
||
1672 | 1672 | <tbody> |
1673 | 1673 | <? |
1674 | 1674 | |
1675 | - $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1675 | + $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1676 | 1676 | |
1677 | 1677 | |
1678 | - $tampil=mysql_query($SQL); |
|
1678 | + $tampil=mysql_query($SQL); |
|
1679 | 1679 | |
1680 | - $no = 1; |
|
1680 | + $no = 1; |
|
1681 | 1681 | |
1682 | 1682 | while ($r=mysql_fetch_array($tampil)){ |
1683 | 1683 | |
@@ -1693,14 +1693,14 @@ discard block |
||
1693 | 1693 | <select name="modul" class="form-control" required > |
1694 | 1694 | <? |
1695 | 1695 | $query = mysql_query('SELECT * FROM modul WHERE jurnal = "Y" and aktif = "Y" ORDER BY nama_modul'); |
1696 | - if($query && mysql_num_rows($query) > 0){ |
|
1696 | + if($query && mysql_num_rows($query) > 0){ |
|
1697 | 1697 | while($row = mysql_fetch_object($query)){ |
1698 | - echo '<option value="'.$row->id_modul.'"'; |
|
1699 | - if($row->id_modul == $r['id_modul']) echo ' selected'; |
|
1700 | - echo '>'.$row->nama_modul.'</option>'; |
|
1698 | + echo '<option value="'.$row->id_modul.'"'; |
|
1699 | + if($row->id_modul == $r['id_modul']) echo ' selected'; |
|
1700 | + echo '>'.$row->nama_modul.'</option>'; |
|
1701 | 1701 | } |
1702 | - } |
|
1703 | - ?> |
|
1702 | + } |
|
1703 | + ?> |
|
1704 | 1704 | </select> |
1705 | 1705 | |
1706 | 1706 | </td> |
@@ -1713,14 +1713,14 @@ discard block |
||
1713 | 1713 | FROM jenis_transaksi a inner join tipe_transaksi b |
1714 | 1714 | ON a.id_tipe_transaksi = b.id_tipe_transaksi |
1715 | 1715 | ORDER BY a.id_tipe_transaksi,a.id_jenis_transaksi'); |
1716 | - if($query && mysql_num_rows($query) > 0){ |
|
1716 | + if($query && mysql_num_rows($query) > 0){ |
|
1717 | 1717 | while($row = mysql_fetch_object($query)){ |
1718 | - echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
1719 | - if($row->id_jenis_transaksi == $r['id_jenis_transaksi']) echo ' selected'; |
|
1720 | - echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
|
1718 | + echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
1719 | + if($row->id_jenis_transaksi == $r['id_jenis_transaksi']) echo ' selected'; |
|
1720 | + echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
|
1721 | 1721 | } |
1722 | - } |
|
1723 | - ?> |
|
1722 | + } |
|
1723 | + ?> |
|
1724 | 1724 | </select> |
1725 | 1725 | |
1726 | 1726 | </td> |
@@ -1744,11 +1744,11 @@ discard block |
||
1744 | 1744 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1745 | 1745 | |
1746 | 1746 | <? |
1747 | - echo"</form>"; |
|
1747 | + echo"</form>"; |
|
1748 | 1748 | |
1749 | 1749 | } |
1750 | 1750 | |
1751 | - ?> |
|
1751 | + ?> |
|
1752 | 1752 | |
1753 | 1753 | |
1754 | 1754 | |
@@ -1773,17 +1773,17 @@ discard block |
||
1773 | 1773 | |
1774 | 1774 | <? |
1775 | 1775 | |
1776 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1776 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1777 | 1777 | |
1778 | 1778 | if($id){ |
1779 | - $query = mysql_query('SELECT * FROM pg_lainnya |
|
1779 | + $query = mysql_query('SELECT * FROM pg_lainnya |
|
1780 | 1780 | WHERE prd = "'.$prd.'" |
1781 | 1781 | '); |
1782 | 1782 | |
1783 | - if($query && mysql_num_rows($query) == 1){ |
|
1784 | - $data = mysql_fetch_object($query); |
|
1785 | - }else |
|
1786 | - die('Data general_setting tidak ditemukan'); |
|
1783 | + if($query && mysql_num_rows($query) == 1){ |
|
1784 | + $data = mysql_fetch_object($query); |
|
1785 | + }else |
|
1786 | + die('Data general_setting tidak ditemukan'); |
|
1787 | 1787 | } |
1788 | 1788 | |
1789 | 1789 | |
@@ -1818,14 +1818,14 @@ discard block |
||
1818 | 1818 | $query = mysql_query('SELECT * FROM rekening |
1819 | 1819 | WHERE parentid != "0" |
1820 | 1820 | ORDER BY norek'); |
1821 | - if($query && mysql_num_rows($query) > 0){ |
|
1821 | + if($query && mysql_num_rows($query) > 0){ |
|
1822 | 1822 | while($row = mysql_fetch_object($query)){ |
1823 | - echo '<option value="'.$row->id_rekening.'"'; |
|
1824 | - if($row->id_rekening == $data->rek_shu) echo ' selected'; |
|
1825 | - echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1823 | + echo '<option value="'.$row->id_rekening.'"'; |
|
1824 | + if($row->id_rekening == $data->rek_shu) echo ' selected'; |
|
1825 | + echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
|
1826 | 1826 | } |
1827 | - } |
|
1828 | - ?> |
|
1827 | + } |
|
1828 | + ?> |
|
1829 | 1829 | </select> |
1830 | 1830 | </div> |
1831 | 1831 | |
@@ -2092,25 +2092,25 @@ discard block |
||
2092 | 2092 | |
2093 | 2093 | <?php |
2094 | 2094 | |
2095 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2095 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2096 | 2096 | |
2097 | 2097 | if($id){ |
2098 | - $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
2099 | - if($query && mysql_num_rows($query) == 1){ |
|
2100 | - $data = mysql_fetch_object($query); |
|
2101 | - }else |
|
2102 | - die('Data general_setting tidak ditemukan'); |
|
2098 | + $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
|
2099 | + if($query && mysql_num_rows($query) == 1){ |
|
2100 | + $data = mysql_fetch_object($query); |
|
2101 | + }else |
|
2102 | + die('Data general_setting tidak ditemukan'); |
|
2103 | 2103 | } |
2104 | 2104 | |
2105 | 2105 | $pict = $data->pict; |
2106 | 2106 | |
2107 | 2107 | |
2108 | - if(empty($pict)) { |
|
2108 | + if(empty($pict)) { |
|
2109 | 2109 | $ipict = 'logo.png'; |
2110 | - } else { |
|
2110 | + } else { |
|
2111 | 2111 | $ipict = $pict; |
2112 | - } |
|
2113 | - ?> |
|
2112 | + } |
|
2113 | + ?> |
|
2114 | 2114 | |
2115 | 2115 | <script> |
2116 | 2116 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -2136,13 +2136,13 @@ discard block |
||
2136 | 2136 | </script> |
2137 | 2137 | |
2138 | 2138 | <?php |
2139 | - if(empty($pict)) { |
|
2139 | + if(empty($pict)) { |
|
2140 | 2140 | $ipict = 'logo.png'; |
2141 | - } else { |
|
2141 | + } else { |
|
2142 | 2142 | $ipict = $pict; |
2143 | - } |
|
2143 | + } |
|
2144 | 2144 | |
2145 | - ?> |
|
2145 | + ?> |
|
2146 | 2146 | |
2147 | 2147 | <script> |
2148 | 2148 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <? |
2 | 2 | session_start(); |
3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){ |
|
3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) { |
|
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | -} else{ |
|
5 | +} else { |
|
6 | 6 | include "./../../config/koneksi.php"; |
7 | 7 | include "./../../config/fungsi_thumb.php"; |
8 | 8 | ?> |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $imodule = $_GET['imodule']; |
16 | 16 | $title = $_GET['title']; |
17 | 17 | |
18 | -$role = $_SESSION['role']; |
|
18 | +$role = $_SESSION['role']; |
|
19 | 19 | |
20 | 20 | $id_module = $_GET['id_module']; |
21 | 21 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | <script language="javascript"> |
70 | 70 | function closeform() { |
71 | - window.parent.location.href = "<?php echo"./../../main.php?module=$imodule&id_module=$id_module";?>"; |
|
71 | + window.parent.location.href = "<?php echo"./../../main.php?module=$imodule&id_module=$id_module"; ?>"; |
|
72 | 72 | window.parent.tb_remove(); |
73 | 73 | } |
74 | 74 | </script> |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | <ul class="nav nav-tabs"> |
118 | 118 | |
119 | - <li <?php if ($tab == 'ip') { echo 'class="active"'; } ?> ><a data-toggle="tab" href="#home">Informasi Perusahaan</a> |
|
119 | + <li <?php if ($tab=='ip') { echo 'class="active"'; } ?> ><a data-toggle="tab" href="#home">Informasi Perusahaan</a> |
|
120 | 120 | </li> |
121 | 121 | |
122 | 122 | <li class="pull-right"> |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | <div class="tab-content"> |
130 | 130 | |
131 | - <div id="home" class="tab-pane fade <?php if ($tab == 'ip') { echo 'in active primary'; } ?>"> |
|
131 | + <div id="home" class="tab-pane fade <?php if ($tab=='ip') { echo 'in active primary'; } ?>"> |
|
132 | 132 | <br> |
133 | 133 | |
134 | 134 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -138,15 +138,15 @@ discard block |
||
138 | 138 | |
139 | 139 | $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
140 | 140 | |
141 | - if($id){ |
|
141 | + if ($id) { |
|
142 | 142 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
143 | - if($query && mysql_num_rows($query) == 1){ |
|
143 | + if ($query && mysql_num_rows($query)==1) { |
|
144 | 144 | $data = mysql_fetch_object($query); |
145 | - }else |
|
145 | + } else |
|
146 | 146 | die('Data general_setting tidak ditemukan'); |
147 | 147 | } |
148 | 148 | |
149 | - $pict = $data->pict; |
|
149 | + $pict = $data->pict; |
|
150 | 150 | |
151 | 151 | |
152 | 152 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | |
230 | 230 | </div> |
231 | 231 | |
232 | - <div id="menu1" class="tab-pane fade <?php if ($tab == 'sa') { echo 'in active primary'; } ?>"> |
|
232 | + <div id="menu1" class="tab-pane fade <?php if ($tab=='sa') { echo 'in active primary'; } ?>"> |
|
233 | 233 | <br> |
234 | 234 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
235 | 235 | <div class="x_content"> |
@@ -261,13 +261,13 @@ discard block |
||
261 | 261 | WHERE prd = '$prd' order by id_pg_setoran_awal"; |
262 | 262 | |
263 | 263 | |
264 | - $tampil=mysql_query($SQL); |
|
264 | + $tampil = mysql_query($SQL); |
|
265 | 265 | |
266 | 266 | $no = 1; |
267 | 267 | |
268 | - while ($r=mysql_fetch_array($tampil)){ |
|
268 | + while ($r = mysql_fetch_array($tampil)) { |
|
269 | 269 | |
270 | - if ($r['nilai'] == '0') { |
|
270 | + if ($r['nilai']=='0') { |
|
271 | 271 | $disabled = 'readonly'; |
272 | 272 | } else { |
273 | 273 | $disabled = ''; |
@@ -283,13 +283,13 @@ discard block |
||
283 | 283 | |
284 | 284 | <td> |
285 | 285 | <input type="text" style='padding:6px;' name="jenis" |
286 | - class="form-control" value="<?php echo $r['jenis'];?>" /> |
|
286 | + class="form-control" value="<?php echo $r['jenis']; ?>" /> |
|
287 | 287 | |
288 | 288 | </td> |
289 | 289 | |
290 | 290 | <td> |
291 | 291 | <input type="text" style='padding:6px;text-align: right;' name="nilai" |
292 | - class="form-control" <?php echo $disabled;?> value="<?php echo $r['nilai'];?>" /> |
|
292 | + class="form-control" <?php echo $disabled; ?> value="<?php echo $r['nilai']; ?>" /> |
|
293 | 293 | |
294 | 294 | </td> |
295 | 295 | |
@@ -297,10 +297,10 @@ discard block |
||
297 | 297 | <select name="jenis_posting" class="form-control" required > |
298 | 298 | <? |
299 | 299 | $query = mysql_query('SELECT * FROM jenis_posting ORDER BY jenis_posting'); |
300 | - if($query && mysql_num_rows($query) > 0){ |
|
301 | - while($row = mysql_fetch_object($query)){ |
|
300 | + if ($query && mysql_num_rows($query)>0) { |
|
301 | + while ($row = mysql_fetch_object($query)) { |
|
302 | 302 | echo '<option value="'.$row->id_jenis_posting.'"'; |
303 | - if($row->id_jenis_posting == $r['id_jenis_posting']) echo ' selected'; |
|
303 | + if ($row->id_jenis_posting==$r['id_jenis_posting']) echo ' selected'; |
|
304 | 304 | echo '>'.$row->jenis_posting.'</option>'; |
305 | 305 | } |
306 | 306 | } |
@@ -317,10 +317,10 @@ discard block |
||
317 | 317 | WHERE parentid != "0" |
318 | 318 | |
319 | 319 | ORDER BY norek'); |
320 | - if($query && mysql_num_rows($query) > 0){ |
|
321 | - while($row = mysql_fetch_object($query)){ |
|
320 | + if ($query && mysql_num_rows($query)>0) { |
|
321 | + while ($row = mysql_fetch_object($query)) { |
|
322 | 322 | echo '<option value="'.$row->id_rekening.'"'; |
323 | - if($row->id_rekening == $r['rek_debet']) echo ' selected'; |
|
323 | + if ($row->id_rekening==$r['rek_debet']) echo ' selected'; |
|
324 | 324 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
325 | 325 | } |
326 | 326 | } |
@@ -337,10 +337,10 @@ discard block |
||
337 | 337 | WHERE parentid != "0" |
338 | 338 | |
339 | 339 | ORDER BY norek'); |
340 | - if($query && mysql_num_rows($query) > 0){ |
|
341 | - while($row = mysql_fetch_object($query)){ |
|
340 | + if ($query && mysql_num_rows($query)>0) { |
|
341 | + while ($row = mysql_fetch_object($query)) { |
|
342 | 342 | echo '<option value="'.$row->id_rekening.'"'; |
343 | - if($row->id_rekening == $r['rek_kredit']) echo ' selected'; |
|
343 | + if ($row->id_rekening==$r['rek_kredit']) echo ' selected'; |
|
344 | 344 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
345 | 345 | } |
346 | 346 | } |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | </div> |
389 | 389 | |
390 | - <div id="menu2" class="tab-pane fade <?php if ($tab == 'pd') { echo 'in active primary'; } ?>"> |
|
390 | + <div id="menu2" class="tab-pane fade <?php if ($tab=='pd') { echo 'in active primary'; } ?>"> |
|
391 | 391 | <br> |
392 | 392 | <div class="row"> |
393 | 393 | |
@@ -395,12 +395,12 @@ discard block |
||
395 | 395 | |
396 | 396 | $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
397 | 397 | |
398 | - if($id){ |
|
398 | + if ($id) { |
|
399 | 399 | $query = mysql_query('SELECT * FROM pg_penarikan_dana |
400 | 400 | WHERE prd = "'.$prd.'" '); |
401 | - if($query && mysql_num_rows($query) == 1){ |
|
401 | + if ($query && mysql_num_rows($query)==1) { |
|
402 | 402 | $data = mysql_fetch_object($query); |
403 | - }else |
|
403 | + } else |
|
404 | 404 | die('Data pg_penarikan_dana tidak ditemukan'); |
405 | 405 | } |
406 | 406 | |
@@ -468,10 +468,10 @@ discard block |
||
468 | 468 | WHERE parentid != "0" |
469 | 469 | |
470 | 470 | ORDER BY norek'); |
471 | - if($query && mysql_num_rows($query) > 0){ |
|
472 | - while($row = mysql_fetch_object($query)){ |
|
471 | + if ($query && mysql_num_rows($query)>0) { |
|
472 | + while ($row = mysql_fetch_object($query)) { |
|
473 | 473 | echo '<option value="'.$row->id_rekening.'"'; |
474 | - if($row->id_rekening == $data->rek_debet) echo ' selected'; |
|
474 | + if ($row->id_rekening==$data->rek_debet) echo ' selected'; |
|
475 | 475 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
476 | 476 | } |
477 | 477 | } |
@@ -489,10 +489,10 @@ discard block |
||
489 | 489 | WHERE parentid != "0" |
490 | 490 | |
491 | 491 | ORDER BY norek'); |
492 | - if($query && mysql_num_rows($query) > 0){ |
|
493 | - while($row = mysql_fetch_object($query)){ |
|
492 | + if ($query && mysql_num_rows($query)>0) { |
|
493 | + while ($row = mysql_fetch_object($query)) { |
|
494 | 494 | echo '<option value="'.$row->id_rekening.'"'; |
495 | - if($row->id_rekening == $data->rek_kredit) echo ' selected'; |
|
495 | + if ($row->id_rekening==$data->rek_kredit) echo ' selected'; |
|
496 | 496 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
497 | 497 | } |
498 | 498 | } |
@@ -522,21 +522,21 @@ discard block |
||
522 | 522 | |
523 | 523 | </div> |
524 | 524 | |
525 | - <div id="menu3" class="tab-pane fade <?php if ($tab == 'pm') { echo 'in active primary'; } ?>"> |
|
525 | + <div id="menu3" class="tab-pane fade <?php if ($tab=='pm') { echo 'in active primary'; } ?>"> |
|
526 | 526 | <br> |
527 | 527 | <div class="row" style="padding: 0px 10px 0px 10px;"> |
528 | 528 | |
529 | 529 | <ul class="nav nav-tabs" > |
530 | 530 | |
531 | - <li <?php if ($stab == 'tunai') { echo 'class="active"'; } ?> ><a data-toggle="tab" href="#tunai">Dana Tunai</a> |
|
531 | + <li <?php if ($stab=='tunai') { echo 'class="active"'; } ?> ><a data-toggle="tab" href="#tunai">Dana Tunai</a> |
|
532 | 532 | </li> |
533 | - <li <?php if ($stab == 'barang') { echo 'class="active"'; } ?> ><a data-toggle="tab" href="#barang">Barang</a> |
|
533 | + <li <?php if ($stab=='barang') { echo 'class="active"'; } ?> ><a data-toggle="tab" href="#barang">Barang</a> |
|
534 | 534 | </li> |
535 | 535 | </ul> |
536 | 536 | |
537 | 537 | <div class="tab-content"> |
538 | 538 | |
539 | - <div id="tunai" class="tab-pane fade <?php if ($stab == 'tunai') { echo 'in active primary'; } ?>"> |
|
539 | + <div id="tunai" class="tab-pane fade <?php if ($stab=='tunai') { echo 'in active primary'; } ?>"> |
|
540 | 540 | <br> |
541 | 541 | |
542 | 542 | |
@@ -583,19 +583,19 @@ discard block |
||
583 | 583 | $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
584 | 584 | |
585 | 585 | |
586 | - $ktampil=mysql_query($kSQL); |
|
586 | + $ktampil = mysql_query($kSQL); |
|
587 | 587 | |
588 | 588 | |
589 | - $k=mysql_fetch_array($ktampil); |
|
589 | + $k = mysql_fetch_array($ktampil); |
|
590 | 590 | |
591 | 591 | |
592 | 592 | $sSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'S' AND prd = '$prd'"; |
593 | 593 | |
594 | 594 | |
595 | - $stampil=mysql_query($sSQL); |
|
595 | + $stampil = mysql_query($sSQL); |
|
596 | 596 | |
597 | 597 | |
598 | - $s=mysql_fetch_array($stampil); |
|
598 | + $s = mysql_fetch_array($stampil); |
|
599 | 599 | |
600 | 600 | |
601 | 601 | ?> |
@@ -615,10 +615,10 @@ discard block |
||
615 | 615 | $query = mysql_query('SELECT * FROM rekening |
616 | 616 | WHERE parentid != "0" |
617 | 617 | ORDER BY norek'); |
618 | - if($query && mysql_num_rows($query) > 0){ |
|
619 | - while($row = mysql_fetch_object($query)){ |
|
618 | + if ($query && mysql_num_rows($query)>0) { |
|
619 | + while ($row = mysql_fetch_object($query)) { |
|
620 | 620 | echo '<option value="'.$row->id_rekening.'"'; |
621 | - if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
621 | + if ($row->id_rekening==$k['rek_debet']) echo ' selected'; |
|
622 | 622 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
623 | 623 | } |
624 | 624 | } |
@@ -633,10 +633,10 @@ discard block |
||
633 | 633 | $query = mysql_query('SELECT * FROM rekening |
634 | 634 | WHERE parentid != "0" |
635 | 635 | ORDER BY norek'); |
636 | - if($query && mysql_num_rows($query) > 0){ |
|
637 | - while($row = mysql_fetch_object($query)){ |
|
636 | + if ($query && mysql_num_rows($query)>0) { |
|
637 | + while ($row = mysql_fetch_object($query)) { |
|
638 | 638 | echo '<option value="'.$row->id_rekening.'"'; |
639 | - if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
639 | + if ($row->id_rekening==$k['rek_kredit']) echo ' selected'; |
|
640 | 640 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
641 | 641 | } |
642 | 642 | } |
@@ -663,10 +663,10 @@ discard block |
||
663 | 663 | $query = mysql_query('SELECT * FROM rekening |
664 | 664 | WHERE parentid != "0" |
665 | 665 | ORDER BY norek'); |
666 | - if($query && mysql_num_rows($query) > 0){ |
|
667 | - while($row = mysql_fetch_object($query)){ |
|
666 | + if ($query && mysql_num_rows($query)>0) { |
|
667 | + while ($row = mysql_fetch_object($query)) { |
|
668 | 668 | echo '<option value="'.$row->id_rekening.'"'; |
669 | - if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
669 | + if ($row->id_rekening==$k['rek_debet_pelunasan']) echo ' selected'; |
|
670 | 670 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
671 | 671 | } |
672 | 672 | } |
@@ -681,10 +681,10 @@ discard block |
||
681 | 681 | $query = mysql_query('SELECT * FROM rekening |
682 | 682 | WHERE parentid != "0" |
683 | 683 | ORDER BY norek'); |
684 | - if($query && mysql_num_rows($query) > 0){ |
|
685 | - while($row = mysql_fetch_object($query)){ |
|
684 | + if ($query && mysql_num_rows($query)>0) { |
|
685 | + while ($row = mysql_fetch_object($query)) { |
|
686 | 686 | echo '<option value="'.$row->id_rekening.'"'; |
687 | - if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
687 | + if ($row->id_rekening==$k['rek_kredit_pelunasan']) echo ' selected'; |
|
688 | 688 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
689 | 689 | } |
690 | 690 | } |
@@ -703,7 +703,7 @@ discard block |
||
703 | 703 | <td> |
704 | 704 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
705 | 705 | <input type="number" style='padding:6px;' name="min_tenor_k" |
706 | - class="form-control" value="<?php echo $k['min_tenor'];?>" /> |
|
706 | + class="form-control" value="<?php echo $k['min_tenor']; ?>" /> |
|
707 | 707 | </div> |
708 | 708 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
709 | 709 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | <td> |
714 | 714 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
715 | 715 | <input type="number" style='padding:6px;' name="min_tenor_s" |
716 | - class="form-control" value="<?php echo $s['min_tenor'];?>" /> |
|
716 | + class="form-control" value="<?php echo $s['min_tenor']; ?>" /> |
|
717 | 717 | </div> |
718 | 718 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
719 | 719 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | <td> |
733 | 733 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
734 | 734 | <input type="number" style='padding:6px;' name="max_tenor_k" |
735 | - class="form-control" value="<?php echo $k['max_tenor'];?>" /> |
|
735 | + class="form-control" value="<?php echo $k['max_tenor']; ?>" /> |
|
736 | 736 | </div> |
737 | 737 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
738 | 738 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -742,7 +742,7 @@ discard block |
||
742 | 742 | <td> |
743 | 743 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
744 | 744 | <input type="number" style='padding:6px;' name="max_tenor_s" |
745 | - class="form-control" value="<?php echo $s['max_tenor'];?>" /> |
|
745 | + class="form-control" value="<?php echo $s['max_tenor']; ?>" /> |
|
746 | 746 | </div> |
747 | 747 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
748 | 748 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -761,7 +761,7 @@ discard block |
||
761 | 761 | <td> |
762 | 762 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
763 | 763 | <input type="number" style='padding:6px;' name="max_pinjaman_k" |
764 | - class="form-control" value="<?php echo $k['max_pinjaman'];?>" /> |
|
764 | + class="form-control" value="<?php echo $k['max_pinjaman']; ?>" /> |
|
765 | 765 | </div> |
766 | 766 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
767 | 767 | <label class="control-label" style="padding-top:8px;">X Saldo</label> |
@@ -771,7 +771,7 @@ discard block |
||
771 | 771 | <td> |
772 | 772 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
773 | 773 | <input type="number" style='padding:6px;' name="max_pinjaman_s" |
774 | - class="form-control" value="<?php echo $s['max_pinjaman'];?>" /> |
|
774 | + class="form-control" value="<?php echo $s['max_pinjaman']; ?>" /> |
|
775 | 775 | </div> |
776 | 776 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
777 | 777 | <label class="control-label" style="padding-top:8px;">X Saldo</label> |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | <td> |
791 | 791 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
792 | 792 | <input type="number" style='padding:6px;' name="max_angsuran_k" |
793 | - class="form-control" value="<?php echo $k['max_angsuran'];?>" /> |
|
793 | + class="form-control" value="<?php echo $k['max_angsuran']; ?>" /> |
|
794 | 794 | </div> |
795 | 795 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
796 | 796 | <label class="control-label" style="padding-top:8px;">Gaji</label> |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | <td> |
801 | 801 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
802 | 802 | <input type="number" style='padding:6px;' name="max_angsuran_s" |
803 | - class="form-control" value="<?php echo $s['max_angsuran'];?>" /> |
|
803 | + class="form-control" value="<?php echo $s['max_angsuran']; ?>" /> |
|
804 | 804 | </div> |
805 | 805 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
806 | 806 | <label class="control-label" style="padding-top:8px;">Gaji</label> |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | <td> |
814 | 814 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
815 | 815 | <input type="number" style='padding:6px;' name="bunga_k" |
816 | - class="form-control" value="<?php echo $k['bunga'];?>" /> |
|
816 | + class="form-control" value="<?php echo $k['bunga']; ?>" /> |
|
817 | 817 | </div> |
818 | 818 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
819 | 819 | <label class="control-label" style="padding-top:8px;">% / Bulan</label> |
@@ -823,7 +823,7 @@ discard block |
||
823 | 823 | <td> |
824 | 824 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
825 | 825 | <input type="number" style='padding:6px;' name="bunga_s" |
826 | - class="form-control" value="<?php echo $s['bunga'];?>" /> |
|
826 | + class="form-control" value="<?php echo $s['bunga']; ?>" /> |
|
827 | 827 | </div> |
828 | 828 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
829 | 829 | <label class="control-label" style="padding-top:8px;">% / Bulan</label> |
@@ -839,10 +839,10 @@ discard block |
||
839 | 839 | WHERE parentid != "0" |
840 | 840 | |
841 | 841 | ORDER BY norek'); |
842 | - if($query && mysql_num_rows($query) > 0){ |
|
843 | - while($row = mysql_fetch_object($query)){ |
|
842 | + if ($query && mysql_num_rows($query)>0) { |
|
843 | + while ($row = mysql_fetch_object($query)) { |
|
844 | 844 | echo '<option value="'.$row->id_rekening.'"'; |
845 | - if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
845 | + if ($row->id_rekening==$k['rek_debet_bunga']) echo ' selected'; |
|
846 | 846 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
847 | 847 | } |
848 | 848 | } |
@@ -857,10 +857,10 @@ discard block |
||
857 | 857 | $query = mysql_query('SELECT * FROM rekening |
858 | 858 | WHERE parentid != "0" |
859 | 859 | ORDER BY norek'); |
860 | - if($query && mysql_num_rows($query) > 0){ |
|
861 | - while($row = mysql_fetch_object($query)){ |
|
860 | + if ($query && mysql_num_rows($query)>0) { |
|
861 | + while ($row = mysql_fetch_object($query)) { |
|
862 | 862 | echo '<option value="'.$row->id_rekening.'"'; |
863 | - if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
863 | + if ($row->id_rekening==$k['rek_kredit_bunga']) echo ' selected'; |
|
864 | 864 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
865 | 865 | } |
866 | 866 | } |
@@ -878,7 +878,7 @@ discard block |
||
878 | 878 | <td> |
879 | 879 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
880 | 880 | <input type="text" style='padding:6px;' name="ipoint_k" |
881 | - class="form-control" value="<?php echo $k['ipoint'];?>" /> |
|
881 | + class="form-control" value="<?php echo $k['ipoint']; ?>" /> |
|
882 | 882 | </div> |
883 | 883 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
884 | 884 | <label class="control-label" style="padding-top:8px;">% / Bulan</label> |
@@ -888,7 +888,7 @@ discard block |
||
888 | 888 | <td> |
889 | 889 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
890 | 890 | <input type="text" style='padding:6px;' name="ipoint_s" |
891 | - class="form-control" value="<?php echo $s['ipoint'];?>" /> |
|
891 | + class="form-control" value="<?php echo $s['ipoint']; ?>" /> |
|
892 | 892 | </div> |
893 | 893 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
894 | 894 | <label class="control-label" style="padding-top:8px;">% / Bulan</label> |
@@ -903,10 +903,10 @@ discard block |
||
903 | 903 | $query = mysql_query('SELECT * FROM rekening |
904 | 904 | WHERE parentid != "0" |
905 | 905 | ORDER BY norek'); |
906 | - if($query && mysql_num_rows($query) > 0){ |
|
907 | - while($row = mysql_fetch_object($query)){ |
|
906 | + if ($query && mysql_num_rows($query)>0) { |
|
907 | + while ($row = mysql_fetch_object($query)) { |
|
908 | 908 | echo '<option value="'.$row->id_rekening.'"'; |
909 | - if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
909 | + if ($row->id_rekening==$k['rek_debet_ipoint']) echo ' selected'; |
|
910 | 910 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
911 | 911 | } |
912 | 912 | } |
@@ -921,10 +921,10 @@ discard block |
||
921 | 921 | $query = mysql_query('SELECT * FROM rekening |
922 | 922 | WHERE parentid != "0" |
923 | 923 | ORDER BY norek'); |
924 | - if($query && mysql_num_rows($query) > 0){ |
|
925 | - while($row = mysql_fetch_object($query)){ |
|
924 | + if ($query && mysql_num_rows($query)>0) { |
|
925 | + while ($row = mysql_fetch_object($query)) { |
|
926 | 926 | echo '<option value="'.$row->id_rekening.'"'; |
927 | - if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
927 | + if ($row->id_rekening==$k['rek_kredit_ipoint']) echo ' selected'; |
|
928 | 928 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
929 | 929 | } |
930 | 930 | } |
@@ -942,7 +942,7 @@ discard block |
||
942 | 942 | <td> |
943 | 943 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
944 | 944 | <input type="number" style='padding:6px;' name="batas_sisa_angsuran_k" |
945 | - class="form-control" value="<?php echo $k['batas_sisa_angsuran'];?>" /> |
|
945 | + class="form-control" value="<?php echo $k['batas_sisa_angsuran']; ?>" /> |
|
946 | 946 | </div> |
947 | 947 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
948 | 948 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | <td> |
953 | 953 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
954 | 954 | <input type="number" style='padding:6px;' name="batas_sisa_angsuran_s" |
955 | - class="form-control" value="<?php echo $s['batas_sisa_angsuran'];?>" /> |
|
955 | + class="form-control" value="<?php echo $s['batas_sisa_angsuran']; ?>" /> |
|
956 | 956 | </div> |
957 | 957 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
958 | 958 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -971,7 +971,7 @@ discard block |
||
971 | 971 | <td> |
972 | 972 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
973 | 973 | <input type="number" style='padding:6px;' name="tgl_realisasi_k" |
974 | - class="form-control" value="<?php echo $k['tgl_realisasi'];?>" /> |
|
974 | + class="form-control" value="<?php echo $k['tgl_realisasi']; ?>" /> |
|
975 | 975 | </div> |
976 | 976 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
977 | 977 | <label class="control-label" style="padding-top:8px;">Bulan Berikut</label> |
@@ -981,7 +981,7 @@ discard block |
||
981 | 981 | <td> |
982 | 982 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
983 | 983 | <input type="number" style='padding:6px;' name="tgl_realisasi_s" |
984 | - class="form-control" value="<?php echo $s['tgl_realisasi'];?>" /> |
|
984 | + class="form-control" value="<?php echo $s['tgl_realisasi']; ?>" /> |
|
985 | 985 | </div> |
986 | 986 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
987 | 987 | <label class="control-label" style="padding-top:8px;">Bulan Berikut</label> |
@@ -1000,7 +1000,7 @@ discard block |
||
1000 | 1000 | <td> |
1001 | 1001 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1002 | 1002 | <input type="number" style='padding:6px;' name="min_keanggotaan_k" |
1003 | - class="form-control" value="<?php echo $k['min_keanggotaan'];?>" /> |
|
1003 | + class="form-control" value="<?php echo $k['min_keanggotaan']; ?>" /> |
|
1004 | 1004 | </div> |
1005 | 1005 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1006 | 1006 | <label class="control-label" style="padding-top:8px;">Bulan</label> |
@@ -1010,7 +1010,7 @@ discard block |
||
1010 | 1010 | <td> |
1011 | 1011 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1012 | 1012 | <input type="number" style='padding:6px;' name="min_keanggotaan_s" |
1013 | - class="form-control" value="<?php echo $s['min_keanggotaan'];?>" /> |
|
1013 | + class="form-control" value="<?php echo $s['min_keanggotaan']; ?>" /> |
|
1014 | 1014 | </div> |
1015 | 1015 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1016 | 1016 | <label class="control-label" style="padding-top:8px;">Bulan</label> |
@@ -1043,7 +1043,7 @@ discard block |
||
1043 | 1043 | |
1044 | 1044 | </div> |
1045 | 1045 | |
1046 | - <div id="barang" class="tab-pane fade <?php if ($stab == 'barang') { echo 'in active primary'; } ?>"> |
|
1046 | + <div id="barang" class="tab-pane fade <?php if ($stab=='barang') { echo 'in active primary'; } ?>"> |
|
1047 | 1047 | <br> |
1048 | 1048 | |
1049 | 1049 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -1086,19 +1086,19 @@ discard block |
||
1086 | 1086 | $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
1087 | 1087 | |
1088 | 1088 | |
1089 | - $ktampil=mysql_query($kSQL); |
|
1089 | + $ktampil = mysql_query($kSQL); |
|
1090 | 1090 | |
1091 | 1091 | |
1092 | - $k=mysql_fetch_array($ktampil); |
|
1092 | + $k = mysql_fetch_array($ktampil); |
|
1093 | 1093 | |
1094 | 1094 | |
1095 | 1095 | $sSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'S' AND prd = '$prd' "; |
1096 | 1096 | |
1097 | 1097 | |
1098 | - $stampil=mysql_query($sSQL); |
|
1098 | + $stampil = mysql_query($sSQL); |
|
1099 | 1099 | |
1100 | 1100 | |
1101 | - $s=mysql_fetch_array($stampil); |
|
1101 | + $s = mysql_fetch_array($stampil); |
|
1102 | 1102 | |
1103 | 1103 | |
1104 | 1104 | ?> |
@@ -1118,10 +1118,10 @@ discard block |
||
1118 | 1118 | $query = mysql_query('SELECT * FROM rekening |
1119 | 1119 | WHERE parentid != "0" |
1120 | 1120 | ORDER BY norek'); |
1121 | - if($query && mysql_num_rows($query) > 0){ |
|
1122 | - while($row = mysql_fetch_object($query)){ |
|
1121 | + if ($query && mysql_num_rows($query)>0) { |
|
1122 | + while ($row = mysql_fetch_object($query)) { |
|
1123 | 1123 | echo '<option value="'.$row->id_rekening.'"'; |
1124 | - if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
1124 | + if ($row->id_rekening==$k['rek_debet']) echo ' selected'; |
|
1125 | 1125 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1126 | 1126 | } |
1127 | 1127 | } |
@@ -1136,10 +1136,10 @@ discard block |
||
1136 | 1136 | $query = mysql_query('SELECT * FROM rekening |
1137 | 1137 | WHERE parentid != "0" |
1138 | 1138 | ORDER BY norek'); |
1139 | - if($query && mysql_num_rows($query) > 0){ |
|
1140 | - while($row = mysql_fetch_object($query)){ |
|
1139 | + if ($query && mysql_num_rows($query)>0) { |
|
1140 | + while ($row = mysql_fetch_object($query)) { |
|
1141 | 1141 | echo '<option value="'.$row->id_rekening.'"'; |
1142 | - if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
1142 | + if ($row->id_rekening==$k['rek_kredit']) echo ' selected'; |
|
1143 | 1143 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1144 | 1144 | } |
1145 | 1145 | } |
@@ -1167,10 +1167,10 @@ discard block |
||
1167 | 1167 | $query = mysql_query('SELECT * FROM rekening |
1168 | 1168 | WHERE parentid != "0" |
1169 | 1169 | ORDER BY norek'); |
1170 | - if($query && mysql_num_rows($query) > 0){ |
|
1171 | - while($row = mysql_fetch_object($query)){ |
|
1170 | + if ($query && mysql_num_rows($query)>0) { |
|
1171 | + while ($row = mysql_fetch_object($query)) { |
|
1172 | 1172 | echo '<option value="'.$row->id_rekening.'"'; |
1173 | - if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
1173 | + if ($row->id_rekening==$k['rek_debet_pelunasan']) echo ' selected'; |
|
1174 | 1174 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1175 | 1175 | } |
1176 | 1176 | } |
@@ -1185,10 +1185,10 @@ discard block |
||
1185 | 1185 | $query = mysql_query('SELECT * FROM rekening |
1186 | 1186 | WHERE parentid != "0" |
1187 | 1187 | ORDER BY norek'); |
1188 | - if($query && mysql_num_rows($query) > 0){ |
|
1189 | - while($row = mysql_fetch_object($query)){ |
|
1188 | + if ($query && mysql_num_rows($query)>0) { |
|
1189 | + while ($row = mysql_fetch_object($query)) { |
|
1190 | 1190 | echo '<option value="'.$row->id_rekening.'"'; |
1191 | - if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
1191 | + if ($row->id_rekening==$k['rek_kredit_pelunasan']) echo ' selected'; |
|
1192 | 1192 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1193 | 1193 | } |
1194 | 1194 | } |
@@ -1207,7 +1207,7 @@ discard block |
||
1207 | 1207 | <td> |
1208 | 1208 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1209 | 1209 | <input type="number" style='padding:6px;' name="min_tenor_k" |
1210 | - class="form-control" value="<?php echo $k['min_tenor'];?>" /> |
|
1210 | + class="form-control" value="<?php echo $k['min_tenor']; ?>" /> |
|
1211 | 1211 | </div> |
1212 | 1212 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1213 | 1213 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1217,7 +1217,7 @@ discard block |
||
1217 | 1217 | <td> |
1218 | 1218 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1219 | 1219 | <input type="number" style='padding:6px;' name="min_tenor_s" |
1220 | - class="form-control" value="<?php echo $s['min_tenor'];?>" /> |
|
1220 | + class="form-control" value="<?php echo $s['min_tenor']; ?>" /> |
|
1221 | 1221 | </div> |
1222 | 1222 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1223 | 1223 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1236,7 +1236,7 @@ discard block |
||
1236 | 1236 | <td> |
1237 | 1237 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1238 | 1238 | <input type="number" style='padding:6px;' name="max_tenor_k" |
1239 | - class="form-control" value="<?php echo $k['max_tenor'];?>" /> |
|
1239 | + class="form-control" value="<?php echo $k['max_tenor']; ?>" /> |
|
1240 | 1240 | </div> |
1241 | 1241 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1242 | 1242 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1246,7 +1246,7 @@ discard block |
||
1246 | 1246 | <td> |
1247 | 1247 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1248 | 1248 | <input type="number" style='padding:6px;' name="max_tenor_s" |
1249 | - class="form-control" value="<?php echo $s['max_tenor'];?>" /> |
|
1249 | + class="form-control" value="<?php echo $s['max_tenor']; ?>" /> |
|
1250 | 1250 | </div> |
1251 | 1251 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1252 | 1252 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1265,7 +1265,7 @@ discard block |
||
1265 | 1265 | <td> |
1266 | 1266 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1267 | 1267 | <input type="number" style='padding:6px;' name="max_pinjaman_k" |
1268 | - class="form-control" value="<?php echo $k['max_pinjaman'];?>" /> |
|
1268 | + class="form-control" value="<?php echo $k['max_pinjaman']; ?>" /> |
|
1269 | 1269 | </div> |
1270 | 1270 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1271 | 1271 | <label class="control-label" style="padding-top:8px;">X Saldo</label> |
@@ -1275,7 +1275,7 @@ discard block |
||
1275 | 1275 | <td> |
1276 | 1276 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1277 | 1277 | <input type="number" style='padding:6px;' name="max_pinjaman_s" |
1278 | - class="form-control" value="<?php echo $s['max_pinjaman'];?>" /> |
|
1278 | + class="form-control" value="<?php echo $s['max_pinjaman']; ?>" /> |
|
1279 | 1279 | </div> |
1280 | 1280 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1281 | 1281 | <label class="control-label" style="padding-top:8px;">X Saldo</label> |
@@ -1294,7 +1294,7 @@ discard block |
||
1294 | 1294 | <td> |
1295 | 1295 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1296 | 1296 | <input type="number" style='padding:6px;' name="max_angsuran_k" |
1297 | - class="form-control" value="<?php echo $k['max_angsuran'];?>" /> |
|
1297 | + class="form-control" value="<?php echo $k['max_angsuran']; ?>" /> |
|
1298 | 1298 | </div> |
1299 | 1299 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1300 | 1300 | <label class="control-label" style="padding-top:8px;">Gaji</label> |
@@ -1304,7 +1304,7 @@ discard block |
||
1304 | 1304 | <td> |
1305 | 1305 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1306 | 1306 | <input type="number" style='padding:6px;' name="max_angsuran_s" |
1307 | - class="form-control" value="<?php echo $s['max_angsuran'];?>" /> |
|
1307 | + class="form-control" value="<?php echo $s['max_angsuran']; ?>" /> |
|
1308 | 1308 | </div> |
1309 | 1309 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1310 | 1310 | <label class="control-label" style="padding-top:8px;">Gaji</label> |
@@ -1317,7 +1317,7 @@ discard block |
||
1317 | 1317 | <td> |
1318 | 1318 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1319 | 1319 | <input type="number" style='padding:6px;' name="bunga_k" |
1320 | - class="form-control" value="<?php echo $k['bunga'];?>" /> |
|
1320 | + class="form-control" value="<?php echo $k['bunga']; ?>" /> |
|
1321 | 1321 | </div> |
1322 | 1322 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1323 | 1323 | <label class="control-label" style="padding-top:8px;">% / Barang</label> |
@@ -1327,7 +1327,7 @@ discard block |
||
1327 | 1327 | <td> |
1328 | 1328 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1329 | 1329 | <input type="number" style='padding:6px;' name="bunga_s" |
1330 | - class="form-control" value="<?php echo $s['bunga'];?>" /> |
|
1330 | + class="form-control" value="<?php echo $s['bunga']; ?>" /> |
|
1331 | 1331 | </div> |
1332 | 1332 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1333 | 1333 | <label class="control-label" style="padding-top:8px;">% / Barang</label> |
@@ -1343,10 +1343,10 @@ discard block |
||
1343 | 1343 | WHERE parentid != "0" |
1344 | 1344 | |
1345 | 1345 | ORDER BY norek'); |
1346 | - if($query && mysql_num_rows($query) > 0){ |
|
1347 | - while($row = mysql_fetch_object($query)){ |
|
1346 | + if ($query && mysql_num_rows($query)>0) { |
|
1347 | + while ($row = mysql_fetch_object($query)) { |
|
1348 | 1348 | echo '<option value="'.$row->id_rekening.'"'; |
1349 | - if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
1349 | + if ($row->id_rekening==$k['rek_debet_bunga']) echo ' selected'; |
|
1350 | 1350 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1351 | 1351 | } |
1352 | 1352 | } |
@@ -1361,10 +1361,10 @@ discard block |
||
1361 | 1361 | $query = mysql_query('SELECT * FROM rekening |
1362 | 1362 | WHERE parentid != "0" |
1363 | 1363 | ORDER BY norek'); |
1364 | - if($query && mysql_num_rows($query) > 0){ |
|
1365 | - while($row = mysql_fetch_object($query)){ |
|
1364 | + if ($query && mysql_num_rows($query)>0) { |
|
1365 | + while ($row = mysql_fetch_object($query)) { |
|
1366 | 1366 | echo '<option value="'.$row->id_rekening.'"'; |
1367 | - if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
1367 | + if ($row->id_rekening==$k['rek_kredit_bunga']) echo ' selected'; |
|
1368 | 1368 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1369 | 1369 | } |
1370 | 1370 | } |
@@ -1382,7 +1382,7 @@ discard block |
||
1382 | 1382 | <td> |
1383 | 1383 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1384 | 1384 | <input type="text" style='padding:6px;' name="ipoint_k" |
1385 | - class="form-control" value="<?php echo $k['ipoint'];?>" /> |
|
1385 | + class="form-control" value="<?php echo $k['ipoint']; ?>" /> |
|
1386 | 1386 | </div> |
1387 | 1387 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1388 | 1388 | <label class="control-label" style="padding-top:8px;">% / Barang</label> |
@@ -1392,7 +1392,7 @@ discard block |
||
1392 | 1392 | <td> |
1393 | 1393 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1394 | 1394 | <input type="text" style='padding:6px;' name="ipoint_s" |
1395 | - class="form-control" value="<?php echo $s['ipoint'];?>" /> |
|
1395 | + class="form-control" value="<?php echo $s['ipoint']; ?>" /> |
|
1396 | 1396 | </div> |
1397 | 1397 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1398 | 1398 | <label class="control-label" style="padding-top:8px;">% / Barang</label> |
@@ -1407,10 +1407,10 @@ discard block |
||
1407 | 1407 | $query = mysql_query('SELECT * FROM rekening |
1408 | 1408 | WHERE parentid != "0" |
1409 | 1409 | ORDER BY norek'); |
1410 | - if($query && mysql_num_rows($query) > 0){ |
|
1411 | - while($row = mysql_fetch_object($query)){ |
|
1410 | + if ($query && mysql_num_rows($query)>0) { |
|
1411 | + while ($row = mysql_fetch_object($query)) { |
|
1412 | 1412 | echo '<option value="'.$row->id_rekening.'"'; |
1413 | - if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
1413 | + if ($row->id_rekening==$k['rek_debet_ipoint']) echo ' selected'; |
|
1414 | 1414 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1415 | 1415 | } |
1416 | 1416 | } |
@@ -1425,10 +1425,10 @@ discard block |
||
1425 | 1425 | $query = mysql_query('SELECT * FROM rekening |
1426 | 1426 | WHERE parentid != "0" |
1427 | 1427 | ORDER BY norek'); |
1428 | - if($query && mysql_num_rows($query) > 0){ |
|
1429 | - while($row = mysql_fetch_object($query)){ |
|
1428 | + if ($query && mysql_num_rows($query)>0) { |
|
1429 | + while ($row = mysql_fetch_object($query)) { |
|
1430 | 1430 | echo '<option value="'.$row->id_rekening.'"'; |
1431 | - if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
1431 | + if ($row->id_rekening==$k['rek_kredit_ipoint']) echo ' selected'; |
|
1432 | 1432 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1433 | 1433 | } |
1434 | 1434 | } |
@@ -1446,7 +1446,7 @@ discard block |
||
1446 | 1446 | <td> |
1447 | 1447 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1448 | 1448 | <input type="number" style='padding:6px;' name="batas_sisa_angsuran_k" |
1449 | - class="form-control" value="<?php echo $k['batas_sisa_angsuran'];?>" /> |
|
1449 | + class="form-control" value="<?php echo $k['batas_sisa_angsuran']; ?>" /> |
|
1450 | 1450 | </div> |
1451 | 1451 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1452 | 1452 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1456,7 +1456,7 @@ discard block |
||
1456 | 1456 | <td> |
1457 | 1457 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1458 | 1458 | <input type="number" style='padding:6px;' name="batas_sisa_angsuran_s" |
1459 | - class="form-control" value="<?php echo $s['batas_sisa_angsuran'];?>" /> |
|
1459 | + class="form-control" value="<?php echo $s['batas_sisa_angsuran']; ?>" /> |
|
1460 | 1460 | </div> |
1461 | 1461 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1462 | 1462 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1475,7 +1475,7 @@ discard block |
||
1475 | 1475 | <td> |
1476 | 1476 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1477 | 1477 | <input type="number" style='padding:6px;' name="tgl_realisasi_k" |
1478 | - class="form-control" value="<?php echo $k['tgl_realisasi'];?>" /> |
|
1478 | + class="form-control" value="<?php echo $k['tgl_realisasi']; ?>" /> |
|
1479 | 1479 | </div> |
1480 | 1480 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1481 | 1481 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1485,7 +1485,7 @@ discard block |
||
1485 | 1485 | <td> |
1486 | 1486 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1487 | 1487 | <input type="number" style='padding:6px;' name="tgl_realisasi_s" |
1488 | - class="form-control" value="<?php echo $s['tgl_realisasi'];?>" /> |
|
1488 | + class="form-control" value="<?php echo $s['tgl_realisasi']; ?>" /> |
|
1489 | 1489 | </div> |
1490 | 1490 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1491 | 1491 | <label class="control-label" style="padding-top:8px;">X</label> |
@@ -1504,7 +1504,7 @@ discard block |
||
1504 | 1504 | <td> |
1505 | 1505 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1506 | 1506 | <input type="number" style='padding:6px;' name="min_keanggotaan_k" |
1507 | - class="form-control" value="<?php echo $k['min_keanggotaan'];?>" /> |
|
1507 | + class="form-control" value="<?php echo $k['min_keanggotaan']; ?>" /> |
|
1508 | 1508 | </div> |
1509 | 1509 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1510 | 1510 | <label class="control-label" style="padding-top:8px;">Bulan</label> |
@@ -1514,7 +1514,7 @@ discard block |
||
1514 | 1514 | <td> |
1515 | 1515 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1516 | 1516 | <input type="number" style='padding:6px;' name="min_keanggotaan_s" |
1517 | - class="form-control" value="<?php echo $s['min_keanggotaan'];?>" /> |
|
1517 | + class="form-control" value="<?php echo $s['min_keanggotaan']; ?>" /> |
|
1518 | 1518 | </div> |
1519 | 1519 | <div class="col-md-6 col-sm-6 col-xs-6 form-group"> |
1520 | 1520 | <label class="control-label" style="padding-top:8px;">Bulan</label> |
@@ -1553,7 +1553,7 @@ discard block |
||
1553 | 1553 | |
1554 | 1554 | </div> |
1555 | 1555 | |
1556 | - <div id="menu4" class="tab-pane fade <?php if ($tab == 'pl') { echo 'in active primary'; } ?>"> |
|
1556 | + <div id="menu4" class="tab-pane fade <?php if ($tab=='pl') { echo 'in active primary'; } ?>"> |
|
1557 | 1557 | <br> |
1558 | 1558 | |
1559 | 1559 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -1579,11 +1579,11 @@ discard block |
||
1579 | 1579 | WHERE a.prd = '$prd'"; |
1580 | 1580 | |
1581 | 1581 | |
1582 | - $tampil=mysql_query($SQL); |
|
1582 | + $tampil = mysql_query($SQL); |
|
1583 | 1583 | |
1584 | 1584 | $no = 1; |
1585 | 1585 | |
1586 | - while ($r=mysql_fetch_array($tampil)){ |
|
1586 | + while ($r = mysql_fetch_array($tampil)) { |
|
1587 | 1587 | |
1588 | 1588 | echo"<tr>"; |
1589 | 1589 | |
@@ -1596,10 +1596,10 @@ discard block |
||
1596 | 1596 | <select name="jenis_pinjaman" class="form-control" disabled> |
1597 | 1597 | <? |
1598 | 1598 | $query = mysql_query('SELECT * FROM jenis_pinjaman ORDER BY jenis_pinjaman'); |
1599 | - if($query && mysql_num_rows($query) > 0){ |
|
1600 | - while($row = mysql_fetch_object($query)){ |
|
1599 | + if ($query && mysql_num_rows($query)>0) { |
|
1600 | + while ($row = mysql_fetch_object($query)) { |
|
1601 | 1601 | echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
1602 | - if($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) echo ' selected'; |
|
1602 | + if ($row->id_jenis_pinjaman==$r['id_jenis_pinjaman']) echo ' selected'; |
|
1603 | 1603 | echo '>'.$row->jenis_pinjaman.'</option>'; |
1604 | 1604 | } |
1605 | 1605 | } |
@@ -1610,7 +1610,7 @@ discard block |
||
1610 | 1610 | |
1611 | 1611 | <td> |
1612 | 1612 | <input type="text" style='padding:6px;text-align: right;' name="plafon" |
1613 | - class="form-control" value="<?php echo $r['plafon'];?>" /> |
|
1613 | + class="form-control" value="<?php echo $r['plafon']; ?>" /> |
|
1614 | 1614 | |
1615 | 1615 | </td> |
1616 | 1616 | |
@@ -1652,7 +1652,7 @@ discard block |
||
1652 | 1652 | |
1653 | 1653 | </div> |
1654 | 1654 | |
1655 | - <div id="menu5" class="tab-pane fade <?php if ($tab == 'jr') { echo 'in active primary'; } ?>"> |
|
1655 | + <div id="menu5" class="tab-pane fade <?php if ($tab=='jr') { echo 'in active primary'; } ?>"> |
|
1656 | 1656 | <br> |
1657 | 1657 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
1658 | 1658 | <div class="x_content"> |
@@ -1675,11 +1675,11 @@ discard block |
||
1675 | 1675 | $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
1676 | 1676 | |
1677 | 1677 | |
1678 | - $tampil=mysql_query($SQL); |
|
1678 | + $tampil = mysql_query($SQL); |
|
1679 | 1679 | |
1680 | 1680 | $no = 1; |
1681 | 1681 | |
1682 | - while ($r=mysql_fetch_array($tampil)){ |
|
1682 | + while ($r = mysql_fetch_array($tampil)) { |
|
1683 | 1683 | |
1684 | 1684 | |
1685 | 1685 | echo"<tr>"; |
@@ -1693,10 +1693,10 @@ discard block |
||
1693 | 1693 | <select name="modul" class="form-control" required > |
1694 | 1694 | <? |
1695 | 1695 | $query = mysql_query('SELECT * FROM modul WHERE jurnal = "Y" and aktif = "Y" ORDER BY nama_modul'); |
1696 | - if($query && mysql_num_rows($query) > 0){ |
|
1697 | - while($row = mysql_fetch_object($query)){ |
|
1696 | + if ($query && mysql_num_rows($query)>0) { |
|
1697 | + while ($row = mysql_fetch_object($query)) { |
|
1698 | 1698 | echo '<option value="'.$row->id_modul.'"'; |
1699 | - if($row->id_modul == $r['id_modul']) echo ' selected'; |
|
1699 | + if ($row->id_modul==$r['id_modul']) echo ' selected'; |
|
1700 | 1700 | echo '>'.$row->nama_modul.'</option>'; |
1701 | 1701 | } |
1702 | 1702 | } |
@@ -1713,10 +1713,10 @@ discard block |
||
1713 | 1713 | FROM jenis_transaksi a inner join tipe_transaksi b |
1714 | 1714 | ON a.id_tipe_transaksi = b.id_tipe_transaksi |
1715 | 1715 | ORDER BY a.id_tipe_transaksi,a.id_jenis_transaksi'); |
1716 | - if($query && mysql_num_rows($query) > 0){ |
|
1717 | - while($row = mysql_fetch_object($query)){ |
|
1716 | + if ($query && mysql_num_rows($query)>0) { |
|
1717 | + while ($row = mysql_fetch_object($query)) { |
|
1718 | 1718 | echo '<option value="'.$row->id_jenis_transaksi.'"'; |
1719 | - if($row->id_jenis_transaksi == $r['id_jenis_transaksi']) echo ' selected'; |
|
1719 | + if ($row->id_jenis_transaksi==$r['id_jenis_transaksi']) echo ' selected'; |
|
1720 | 1720 | echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
1721 | 1721 | } |
1722 | 1722 | } |
@@ -1765,7 +1765,7 @@ discard block |
||
1765 | 1765 | |
1766 | 1766 | |
1767 | 1767 | |
1768 | - <div id="menu6" class="tab-pane fade <?php if ($tab == 'ln') { echo 'in active primary'; } ?>"> |
|
1768 | + <div id="menu6" class="tab-pane fade <?php if ($tab=='ln') { echo 'in active primary'; } ?>"> |
|
1769 | 1769 | <br> |
1770 | 1770 | |
1771 | 1771 | <div class="col-md-12 col-sm-12 col-xs-12 form-group"> |
@@ -1775,14 +1775,14 @@ discard block |
||
1775 | 1775 | |
1776 | 1776 | $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
1777 | 1777 | |
1778 | - if($id){ |
|
1778 | + if ($id) { |
|
1779 | 1779 | $query = mysql_query('SELECT * FROM pg_lainnya |
1780 | 1780 | WHERE prd = "'.$prd.'" |
1781 | 1781 | '); |
1782 | 1782 | |
1783 | - if($query && mysql_num_rows($query) == 1){ |
|
1783 | + if ($query && mysql_num_rows($query)==1) { |
|
1784 | 1784 | $data = mysql_fetch_object($query); |
1785 | - }else |
|
1785 | + } else |
|
1786 | 1786 | die('Data general_setting tidak ditemukan'); |
1787 | 1787 | } |
1788 | 1788 | |
@@ -1818,10 +1818,10 @@ discard block |
||
1818 | 1818 | $query = mysql_query('SELECT * FROM rekening |
1819 | 1819 | WHERE parentid != "0" |
1820 | 1820 | ORDER BY norek'); |
1821 | - if($query && mysql_num_rows($query) > 0){ |
|
1822 | - while($row = mysql_fetch_object($query)){ |
|
1821 | + if ($query && mysql_num_rows($query)>0) { |
|
1822 | + while ($row = mysql_fetch_object($query)) { |
|
1823 | 1823 | echo '<option value="'.$row->id_rekening.'"'; |
1824 | - if($row->id_rekening == $data->rek_shu) echo ' selected'; |
|
1824 | + if ($row->id_rekening==$data->rek_shu) echo ' selected'; |
|
1825 | 1825 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1826 | 1826 | } |
1827 | 1827 | } |
@@ -2094,18 +2094,18 @@ discard block |
||
2094 | 2094 | |
2095 | 2095 | $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
2096 | 2096 | |
2097 | - if($id){ |
|
2097 | + if ($id) { |
|
2098 | 2098 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
2099 | - if($query && mysql_num_rows($query) == 1){ |
|
2099 | + if ($query && mysql_num_rows($query)==1) { |
|
2100 | 2100 | $data = mysql_fetch_object($query); |
2101 | - }else |
|
2101 | + } else |
|
2102 | 2102 | die('Data general_setting tidak ditemukan'); |
2103 | 2103 | } |
2104 | 2104 | |
2105 | - $pict = $data->pict; |
|
2105 | + $pict = $data->pict; |
|
2106 | 2106 | |
2107 | 2107 | |
2108 | - if(empty($pict)) { |
|
2108 | + if (empty($pict)) { |
|
2109 | 2109 | $ipict = 'logo.png'; |
2110 | 2110 | } else { |
2111 | 2111 | $ipict = $pict; |
@@ -2129,14 +2129,14 @@ discard block |
||
2129 | 2129 | removeTitle: 'Cancel or reset changes', |
2130 | 2130 | elErrorContainer: '#kv-avatar-errors', |
2131 | 2131 | msgErrorClass: 'alert alert-block alert-danger', |
2132 | - defaultPreviewContent: '<img src="../../images/logo/<?php echo $ipict;?>" alt="Your Avatar" style="width:180px;">', |
|
2132 | + defaultPreviewContent: '<img src="../../images/logo/<?php echo $ipict; ?>" alt="Your Avatar" style="width:180px;">', |
|
2133 | 2133 | layoutTemplates: {main2: '{preview} ' + ' {remove} {browse}'}, |
2134 | 2134 | allowedFileExtensions: ["jpg"] |
2135 | 2135 | }); |
2136 | 2136 | </script> |
2137 | 2137 | |
2138 | 2138 | <?php |
2139 | - if(empty($pict)) { |
|
2139 | + if (empty($pict)) { |
|
2140 | 2140 | $ipict = 'logo.png'; |
2141 | 2141 | } else { |
2142 | 2142 | $ipict = $pict; |
@@ -2161,7 +2161,7 @@ discard block |
||
2161 | 2161 | removeTitle: 'Cancel or reset changes', |
2162 | 2162 | elErrorContainer: '#kv-avatar-errors', |
2163 | 2163 | msgErrorClass: 'alert alert-block alert-danger', |
2164 | - defaultPreviewContent: '<img src="../../images/logo/<?php echo $ipict;?>" alt="Your Avatar" style="width:180px;">', |
|
2164 | + defaultPreviewContent: '<img src="../../images/logo/<?php echo $ipict; ?>" alt="Your Avatar" style="width:180px;">', |
|
2165 | 2165 | layoutTemplates: {main2: '{preview} ' + ' {remove} {browse}'}, |
2166 | 2166 | allowedFileExtensions: ["jpg"] |
2167 | 2167 | }); |
@@ -142,8 +142,9 @@ discard block |
||
142 | 142 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
143 | 143 | if($query && mysql_num_rows($query) == 1){ |
144 | 144 | $data = mysql_fetch_object($query); |
145 | - }else |
|
146 | - die('Data general_setting tidak ditemukan'); |
|
145 | + } else { |
|
146 | + die('Data general_setting tidak ditemukan'); |
|
147 | + } |
|
147 | 148 | } |
148 | 149 | |
149 | 150 | $pict = $data->pict; |
@@ -300,7 +301,9 @@ discard block |
||
300 | 301 | if($query && mysql_num_rows($query) > 0){ |
301 | 302 | while($row = mysql_fetch_object($query)){ |
302 | 303 | echo '<option value="'.$row->id_jenis_posting.'"'; |
303 | - if($row->id_jenis_posting == $r['id_jenis_posting']) echo ' selected'; |
|
304 | + if($row->id_jenis_posting == $r['id_jenis_posting']) { |
|
305 | + echo ' selected'; |
|
306 | + } |
|
304 | 307 | echo '>'.$row->jenis_posting.'</option>'; |
305 | 308 | } |
306 | 309 | } |
@@ -320,7 +323,9 @@ discard block |
||
320 | 323 | if($query && mysql_num_rows($query) > 0){ |
321 | 324 | while($row = mysql_fetch_object($query)){ |
322 | 325 | echo '<option value="'.$row->id_rekening.'"'; |
323 | - if($row->id_rekening == $r['rek_debet']) echo ' selected'; |
|
326 | + if($row->id_rekening == $r['rek_debet']) { |
|
327 | + echo ' selected'; |
|
328 | + } |
|
324 | 329 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
325 | 330 | } |
326 | 331 | } |
@@ -340,7 +345,9 @@ discard block |
||
340 | 345 | if($query && mysql_num_rows($query) > 0){ |
341 | 346 | while($row = mysql_fetch_object($query)){ |
342 | 347 | echo '<option value="'.$row->id_rekening.'"'; |
343 | - if($row->id_rekening == $r['rek_kredit']) echo ' selected'; |
|
348 | + if($row->id_rekening == $r['rek_kredit']) { |
|
349 | + echo ' selected'; |
|
350 | + } |
|
344 | 351 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
345 | 352 | } |
346 | 353 | } |
@@ -400,8 +407,9 @@ discard block |
||
400 | 407 | WHERE prd = "'.$prd.'" '); |
401 | 408 | if($query && mysql_num_rows($query) == 1){ |
402 | 409 | $data = mysql_fetch_object($query); |
403 | - }else |
|
404 | - die('Data pg_penarikan_dana tidak ditemukan'); |
|
410 | + } else { |
|
411 | + die('Data pg_penarikan_dana tidak ditemukan'); |
|
412 | + } |
|
405 | 413 | } |
406 | 414 | |
407 | 415 | |
@@ -471,7 +479,9 @@ discard block |
||
471 | 479 | if($query && mysql_num_rows($query) > 0){ |
472 | 480 | while($row = mysql_fetch_object($query)){ |
473 | 481 | echo '<option value="'.$row->id_rekening.'"'; |
474 | - if($row->id_rekening == $data->rek_debet) echo ' selected'; |
|
482 | + if($row->id_rekening == $data->rek_debet) { |
|
483 | + echo ' selected'; |
|
484 | + } |
|
475 | 485 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
476 | 486 | } |
477 | 487 | } |
@@ -492,7 +502,9 @@ discard block |
||
492 | 502 | if($query && mysql_num_rows($query) > 0){ |
493 | 503 | while($row = mysql_fetch_object($query)){ |
494 | 504 | echo '<option value="'.$row->id_rekening.'"'; |
495 | - if($row->id_rekening == $data->rek_kredit) echo ' selected'; |
|
505 | + if($row->id_rekening == $data->rek_kredit) { |
|
506 | + echo ' selected'; |
|
507 | + } |
|
496 | 508 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
497 | 509 | } |
498 | 510 | } |
@@ -618,7 +630,9 @@ discard block |
||
618 | 630 | if($query && mysql_num_rows($query) > 0){ |
619 | 631 | while($row = mysql_fetch_object($query)){ |
620 | 632 | echo '<option value="'.$row->id_rekening.'"'; |
621 | - if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
633 | + if($row->id_rekening == $k['rek_debet']) { |
|
634 | + echo ' selected'; |
|
635 | + } |
|
622 | 636 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
623 | 637 | } |
624 | 638 | } |
@@ -636,7 +650,9 @@ discard block |
||
636 | 650 | if($query && mysql_num_rows($query) > 0){ |
637 | 651 | while($row = mysql_fetch_object($query)){ |
638 | 652 | echo '<option value="'.$row->id_rekening.'"'; |
639 | - if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
653 | + if($row->id_rekening == $k['rek_kredit']) { |
|
654 | + echo ' selected'; |
|
655 | + } |
|
640 | 656 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
641 | 657 | } |
642 | 658 | } |
@@ -666,7 +682,9 @@ discard block |
||
666 | 682 | if($query && mysql_num_rows($query) > 0){ |
667 | 683 | while($row = mysql_fetch_object($query)){ |
668 | 684 | echo '<option value="'.$row->id_rekening.'"'; |
669 | - if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
685 | + if($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
686 | + echo ' selected'; |
|
687 | + } |
|
670 | 688 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
671 | 689 | } |
672 | 690 | } |
@@ -684,7 +702,9 @@ discard block |
||
684 | 702 | if($query && mysql_num_rows($query) > 0){ |
685 | 703 | while($row = mysql_fetch_object($query)){ |
686 | 704 | echo '<option value="'.$row->id_rekening.'"'; |
687 | - if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
705 | + if($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
706 | + echo ' selected'; |
|
707 | + } |
|
688 | 708 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
689 | 709 | } |
690 | 710 | } |
@@ -842,7 +862,9 @@ discard block |
||
842 | 862 | if($query && mysql_num_rows($query) > 0){ |
843 | 863 | while($row = mysql_fetch_object($query)){ |
844 | 864 | echo '<option value="'.$row->id_rekening.'"'; |
845 | - if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
865 | + if($row->id_rekening == $k['rek_debet_bunga']) { |
|
866 | + echo ' selected'; |
|
867 | + } |
|
846 | 868 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
847 | 869 | } |
848 | 870 | } |
@@ -860,7 +882,9 @@ discard block |
||
860 | 882 | if($query && mysql_num_rows($query) > 0){ |
861 | 883 | while($row = mysql_fetch_object($query)){ |
862 | 884 | echo '<option value="'.$row->id_rekening.'"'; |
863 | - if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
885 | + if($row->id_rekening == $k['rek_kredit_bunga']) { |
|
886 | + echo ' selected'; |
|
887 | + } |
|
864 | 888 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
865 | 889 | } |
866 | 890 | } |
@@ -906,7 +930,9 @@ discard block |
||
906 | 930 | if($query && mysql_num_rows($query) > 0){ |
907 | 931 | while($row = mysql_fetch_object($query)){ |
908 | 932 | echo '<option value="'.$row->id_rekening.'"'; |
909 | - if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
933 | + if($row->id_rekening == $k['rek_debet_ipoint']) { |
|
934 | + echo ' selected'; |
|
935 | + } |
|
910 | 936 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
911 | 937 | } |
912 | 938 | } |
@@ -924,7 +950,9 @@ discard block |
||
924 | 950 | if($query && mysql_num_rows($query) > 0){ |
925 | 951 | while($row = mysql_fetch_object($query)){ |
926 | 952 | echo '<option value="'.$row->id_rekening.'"'; |
927 | - if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
953 | + if($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
954 | + echo ' selected'; |
|
955 | + } |
|
928 | 956 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
929 | 957 | } |
930 | 958 | } |
@@ -1121,7 +1149,9 @@ discard block |
||
1121 | 1149 | if($query && mysql_num_rows($query) > 0){ |
1122 | 1150 | while($row = mysql_fetch_object($query)){ |
1123 | 1151 | echo '<option value="'.$row->id_rekening.'"'; |
1124 | - if($row->id_rekening == $k['rek_debet']) echo ' selected'; |
|
1152 | + if($row->id_rekening == $k['rek_debet']) { |
|
1153 | + echo ' selected'; |
|
1154 | + } |
|
1125 | 1155 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1126 | 1156 | } |
1127 | 1157 | } |
@@ -1139,7 +1169,9 @@ discard block |
||
1139 | 1169 | if($query && mysql_num_rows($query) > 0){ |
1140 | 1170 | while($row = mysql_fetch_object($query)){ |
1141 | 1171 | echo '<option value="'.$row->id_rekening.'"'; |
1142 | - if($row->id_rekening == $k['rek_kredit']) echo ' selected'; |
|
1172 | + if($row->id_rekening == $k['rek_kredit']) { |
|
1173 | + echo ' selected'; |
|
1174 | + } |
|
1143 | 1175 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1144 | 1176 | } |
1145 | 1177 | } |
@@ -1170,7 +1202,9 @@ discard block |
||
1170 | 1202 | if($query && mysql_num_rows($query) > 0){ |
1171 | 1203 | while($row = mysql_fetch_object($query)){ |
1172 | 1204 | echo '<option value="'.$row->id_rekening.'"'; |
1173 | - if($row->id_rekening == $k['rek_debet_pelunasan']) echo ' selected'; |
|
1205 | + if($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
1206 | + echo ' selected'; |
|
1207 | + } |
|
1174 | 1208 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1175 | 1209 | } |
1176 | 1210 | } |
@@ -1188,7 +1222,9 @@ discard block |
||
1188 | 1222 | if($query && mysql_num_rows($query) > 0){ |
1189 | 1223 | while($row = mysql_fetch_object($query)){ |
1190 | 1224 | echo '<option value="'.$row->id_rekening.'"'; |
1191 | - if($row->id_rekening == $k['rek_kredit_pelunasan']) echo ' selected'; |
|
1225 | + if($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
1226 | + echo ' selected'; |
|
1227 | + } |
|
1192 | 1228 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1193 | 1229 | } |
1194 | 1230 | } |
@@ -1346,7 +1382,9 @@ discard block |
||
1346 | 1382 | if($query && mysql_num_rows($query) > 0){ |
1347 | 1383 | while($row = mysql_fetch_object($query)){ |
1348 | 1384 | echo '<option value="'.$row->id_rekening.'"'; |
1349 | - if($row->id_rekening == $k['rek_debet_bunga']) echo ' selected'; |
|
1385 | + if($row->id_rekening == $k['rek_debet_bunga']) { |
|
1386 | + echo ' selected'; |
|
1387 | + } |
|
1350 | 1388 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1351 | 1389 | } |
1352 | 1390 | } |
@@ -1364,7 +1402,9 @@ discard block |
||
1364 | 1402 | if($query && mysql_num_rows($query) > 0){ |
1365 | 1403 | while($row = mysql_fetch_object($query)){ |
1366 | 1404 | echo '<option value="'.$row->id_rekening.'"'; |
1367 | - if($row->id_rekening == $k['rek_kredit_bunga']) echo ' selected'; |
|
1405 | + if($row->id_rekening == $k['rek_kredit_bunga']) { |
|
1406 | + echo ' selected'; |
|
1407 | + } |
|
1368 | 1408 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1369 | 1409 | } |
1370 | 1410 | } |
@@ -1410,7 +1450,9 @@ discard block |
||
1410 | 1450 | if($query && mysql_num_rows($query) > 0){ |
1411 | 1451 | while($row = mysql_fetch_object($query)){ |
1412 | 1452 | echo '<option value="'.$row->id_rekening.'"'; |
1413 | - if($row->id_rekening == $k['rek_debet_ipoint']) echo ' selected'; |
|
1453 | + if($row->id_rekening == $k['rek_debet_ipoint']) { |
|
1454 | + echo ' selected'; |
|
1455 | + } |
|
1414 | 1456 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1415 | 1457 | } |
1416 | 1458 | } |
@@ -1428,7 +1470,9 @@ discard block |
||
1428 | 1470 | if($query && mysql_num_rows($query) > 0){ |
1429 | 1471 | while($row = mysql_fetch_object($query)){ |
1430 | 1472 | echo '<option value="'.$row->id_rekening.'"'; |
1431 | - if($row->id_rekening == $k['rek_kredit_ipoint']) echo ' selected'; |
|
1473 | + if($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
1474 | + echo ' selected'; |
|
1475 | + } |
|
1432 | 1476 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1433 | 1477 | } |
1434 | 1478 | } |
@@ -1599,7 +1643,9 @@ discard block |
||
1599 | 1643 | if($query && mysql_num_rows($query) > 0){ |
1600 | 1644 | while($row = mysql_fetch_object($query)){ |
1601 | 1645 | echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
1602 | - if($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) echo ' selected'; |
|
1646 | + if($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) { |
|
1647 | + echo ' selected'; |
|
1648 | + } |
|
1603 | 1649 | echo '>'.$row->jenis_pinjaman.'</option>'; |
1604 | 1650 | } |
1605 | 1651 | } |
@@ -1696,7 +1742,9 @@ discard block |
||
1696 | 1742 | if($query && mysql_num_rows($query) > 0){ |
1697 | 1743 | while($row = mysql_fetch_object($query)){ |
1698 | 1744 | echo '<option value="'.$row->id_modul.'"'; |
1699 | - if($row->id_modul == $r['id_modul']) echo ' selected'; |
|
1745 | + if($row->id_modul == $r['id_modul']) { |
|
1746 | + echo ' selected'; |
|
1747 | + } |
|
1700 | 1748 | echo '>'.$row->nama_modul.'</option>'; |
1701 | 1749 | } |
1702 | 1750 | } |
@@ -1716,7 +1764,9 @@ discard block |
||
1716 | 1764 | if($query && mysql_num_rows($query) > 0){ |
1717 | 1765 | while($row = mysql_fetch_object($query)){ |
1718 | 1766 | echo '<option value="'.$row->id_jenis_transaksi.'"'; |
1719 | - if($row->id_jenis_transaksi == $r['id_jenis_transaksi']) echo ' selected'; |
|
1767 | + if($row->id_jenis_transaksi == $r['id_jenis_transaksi']) { |
|
1768 | + echo ' selected'; |
|
1769 | + } |
|
1720 | 1770 | echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
1721 | 1771 | } |
1722 | 1772 | } |
@@ -1782,8 +1832,9 @@ discard block |
||
1782 | 1832 | |
1783 | 1833 | if($query && mysql_num_rows($query) == 1){ |
1784 | 1834 | $data = mysql_fetch_object($query); |
1785 | - }else |
|
1786 | - die('Data general_setting tidak ditemukan'); |
|
1835 | + } else { |
|
1836 | + die('Data general_setting tidak ditemukan'); |
|
1837 | + } |
|
1787 | 1838 | } |
1788 | 1839 | |
1789 | 1840 | |
@@ -1821,7 +1872,9 @@ discard block |
||
1821 | 1872 | if($query && mysql_num_rows($query) > 0){ |
1822 | 1873 | while($row = mysql_fetch_object($query)){ |
1823 | 1874 | echo '<option value="'.$row->id_rekening.'"'; |
1824 | - if($row->id_rekening == $data->rek_shu) echo ' selected'; |
|
1875 | + if($row->id_rekening == $data->rek_shu) { |
|
1876 | + echo ' selected'; |
|
1877 | + } |
|
1825 | 1878 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
1826 | 1879 | } |
1827 | 1880 | } |
@@ -2098,8 +2151,9 @@ discard block |
||
2098 | 2151 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
2099 | 2152 | if($query && mysql_num_rows($query) == 1){ |
2100 | 2153 | $data = mysql_fetch_object($query); |
2101 | - }else |
|
2102 | - die('Data general_setting tidak ditemukan'); |
|
2154 | + } else { |
|
2155 | + die('Data general_setting tidak ditemukan'); |
|
2156 | + } |
|
2103 | 2157 | } |
2104 | 2158 | |
2105 | 2159 | $pict = $data->pict; |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | $fa_icon = $r['fa_icon']; |
14 | 14 | |
15 | 15 | if($r[orientation] == 'P') { |
16 | - $orientation = 'portrait'; |
|
16 | + $orientation = 'portrait'; |
|
17 | 17 | } else { |
18 | - $orientation = 'landscape'; |
|
18 | + $orientation = 'landscape'; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | |
@@ -163,12 +163,12 @@ discard block |
||
163 | 163 | |
164 | 164 | <? |
165 | 165 | $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
166 | - $g=mysql_fetch_array($gtampil); |
|
166 | + $g=mysql_fetch_array($gtampil); |
|
167 | 167 | |
168 | 168 | if ($g['pict']) { |
169 | - $pict = $g['pict']; |
|
169 | + $pict = $g['pict']; |
|
170 | 170 | } else { |
171 | - $pict = ''; |
|
171 | + $pict = ''; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | $company = ucwords($g['company']); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | |
204 | 204 | <? |
205 | 205 | $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli"); |
206 | - while ($r=mysql_fetch_array($tampil)){ |
|
206 | + while ($r=mysql_fetch_array($tampil)){ |
|
207 | 207 | ?> |
208 | 208 | <th><h3 style='font-size:12px;'><?=$r[poli];?></h3></th> |
209 | 209 | <? |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | <? |
218 | 218 | |
219 | - $tampil=mysql_query("SELECT DISTINCT b.id_pasien,b.ktp,b.nama,d.kategori |
|
219 | + $tampil=mysql_query("SELECT DISTINCT b.id_pasien,b.ktp,b.nama,d.kategori |
|
220 | 220 | FROM kunjungan_berobat a left join pasien b |
221 | 221 | ON a.id_pasien = b.id_pasien |
222 | 222 | left join poli c |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | echo"</tr>"; |
268 | 268 | $no++; |
269 | 269 | |
270 | - } |
|
270 | + } |
|
271 | 271 | ?> |
272 | 272 | |
273 | 273 | <tfoot> |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | include "./../../config/koneksi.php"; |
3 | 3 | include "./../../config/fungsi_indobulan.php"; |
4 | 4 | |
5 | -$tampil=mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
5 | +$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'"); |
|
6 | 6 | |
7 | -$r=mysql_fetch_array($tampil); |
|
7 | +$r = mysql_fetch_array($tampil); |
|
8 | 8 | |
9 | 9 | $module = $_GET['module']; |
10 | 10 | $imodule = ucwords($r['nama_modul']); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $id = $r['id_modul']; |
13 | 13 | $fa_icon = $r['fa_icon']; |
14 | 14 | |
15 | -if($r[orientation] == 'P') { |
|
15 | +if ($r[orientation]=='P') { |
|
16 | 16 | $orientation = 'portrait'; |
17 | 17 | } else { |
18 | 18 | $orientation = 'landscape'; |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | $fdate = $_GET['fdate']; |
23 | 23 | $ldate = $_GET['ldate']; |
24 | 24 | |
25 | -$ftgl = DATE('d/m/Y',strtotime($_GET['fdate'])); |
|
26 | -$ltgl = DATE('d/m/Y',strtotime($_GET['ldate'])); |
|
25 | +$ftgl = DATE('d/m/Y', strtotime($_GET['fdate'])); |
|
26 | +$ltgl = DATE('d/m/Y', strtotime($_GET['ldate'])); |
|
27 | 27 | |
28 | 28 | ?> |
29 | 29 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | <!--<body onload="cetakspk()">--> |
142 | 142 | |
143 | -<? if ($_GET['printto'] == '2') { ?> |
|
143 | +<? if ($_GET['printto']=='2') { ?> |
|
144 | 144 | <body onload="icetak()"> |
145 | 145 | <? } else { ?> |
146 | 146 | <body> |
@@ -162,8 +162,8 @@ discard block |
||
162 | 162 | |
163 | 163 | |
164 | 164 | <? |
165 | -$gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
166 | - $g=mysql_fetch_array($gtampil); |
|
165 | +$gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
166 | + $g = mysql_fetch_array($gtampil); |
|
167 | 167 | |
168 | 168 | if ($g['pict']) { |
169 | 169 | $pict = $g['pict']; |
@@ -177,12 +177,12 @@ discard block |
||
177 | 177 | <table width='100%' style="padding-top:10px;"> |
178 | 178 | <tr> |
179 | 179 | <td width='10%'> |
180 | -<!-- <img src="../../images/logo/<?=$pict;?>" width=100px> --> |
|
180 | +<!-- <img src="../../images/logo/<?=$pict; ?>" width=100px> --> |
|
181 | 181 | </td> |
182 | 182 | <td style="text-align:center;" width='80%'> |
183 | -<span class='h1'><?=$nmmodule;?></span> |
|
183 | +<span class='h1'><?=$nmmodule; ?></span> |
|
184 | 184 | <? echo "<span class='h2'>".$g['company']."</span><br>"; ?> |
185 | -<br>Periode : <?=$ftgl;?> - <?=$ltgl;?> |
|
185 | +<br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?> |
|
186 | 186 | </td> |
187 | 187 | <td width='10%'> |
188 | 188 |   |
@@ -202,10 +202,10 @@ discard block |
||
202 | 202 | <th><h3 style='font-size:12px;'>Kategori</h3></th> |
203 | 203 | |
204 | 204 | <? |
205 | - $tampil=mysql_query("SELECT * FROM poli ORDER BY id_poli"); |
|
206 | - while ($r=mysql_fetch_array($tampil)){ |
|
205 | + $tampil = mysql_query("SELECT * FROM poli ORDER BY id_poli"); |
|
206 | + while ($r = mysql_fetch_array($tampil)) { |
|
207 | 207 | ?> |
208 | - <th><h3 style='font-size:12px;'><?=$r[poli];?></h3></th> |
|
208 | + <th><h3 style='font-size:12px;'><?=$r[poli]; ?></h3></th> |
|
209 | 209 | <? |
210 | 210 | } |
211 | 211 | ?> |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | <? |
218 | 218 | |
219 | - $tampil=mysql_query("SELECT DISTINCT b.id_pasien,b.ktp,b.nama,d.kategori |
|
219 | + $tampil = mysql_query("SELECT DISTINCT b.id_pasien,b.ktp,b.nama,d.kategori |
|
220 | 220 | FROM kunjungan_berobat a left join pasien b |
221 | 221 | ON a.id_pasien = b.id_pasien |
222 | 222 | left join poli c |
@@ -231,11 +231,11 @@ discard block |
||
231 | 231 | |
232 | 232 | $no = 1; |
233 | 233 | |
234 | - while ($r=mysql_fetch_array($tampil)){ |
|
234 | + while ($r = mysql_fetch_array($tampil)) { |
|
235 | 235 | |
236 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal])); |
|
236 | + $tgl = DATE('d/m/Y', strtotime($r[tanggal])); |
|
237 | 237 | |
238 | - $id_pasien = $r[id_pasien]; |
|
238 | + $id_pasien = $r[id_pasien]; |
|
239 | 239 | |
240 | 240 | |
241 | 241 | echo"<tr>"; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | |
247 | 247 | |
248 | 248 | |
249 | - $dtampil=mysql_query("SELECT a.poli,COUNT(b.id_pasien) as jml |
|
249 | + $dtampil = mysql_query("SELECT a.poli,COUNT(b.id_pasien) as jml |
|
250 | 250 | FROM poli a LEFT JOIN kunjungan_berobat b |
251 | 251 | ON a.id_poli = b.id_poli |
252 | 252 | AND b.tanggal >= '$fdate' |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | "); |
259 | 259 | |
260 | 260 | |
261 | - while ($d=mysql_fetch_array($dtampil)){ |
|
261 | + while ($d = mysql_fetch_array($dtampil)) { |
|
262 | 262 | |
263 | 263 | echo"<td>$d[jml]</td>"; |
264 | 264 | |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | <th colspan= '4'>TOTAL KUNJUNGAN</th> |
276 | 276 | |
277 | 277 | <? |
278 | - $dtampil=mysql_query("SELECT a.poli,COUNT(b.id_pasien) as jml |
|
278 | + $dtampil = mysql_query("SELECT a.poli,COUNT(b.id_pasien) as jml |
|
279 | 279 | FROM poli a LEFT JOIN kunjungan_berobat b |
280 | 280 | ON a.id_poli = b.id_poli |
281 | 281 | AND b.tanggal >= '$fdate' |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | "); |
287 | 287 | |
288 | 288 | |
289 | - while ($d=mysql_fetch_array($dtampil)){ |
|
289 | + while ($d = mysql_fetch_array($dtampil)) { |
|
290 | 290 | |
291 | 291 | echo"<td>$d[jml]</td>"; |
292 | 292 |