@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | // Hapus modul |
19 | - if ($module == 'user' and $act == 'hapus') { |
|
19 | + if ($module=='user' and $act=='hapus') { |
|
20 | 20 | $id = $_GET['id']; |
21 | 21 | $id_module = $_GET['id_module']; |
22 | 22 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | // Input group |
29 | - elseif ($module == 'user' and $act == 'input') { |
|
29 | + elseif ($module=='user' and $act=='input') { |
|
30 | 30 | $id_module = $_POST['id_module']; |
31 | 31 | |
32 | 32 | $lokasi_file = $_FILES['fupload']['tmp_name']; |
@@ -37,25 +37,25 @@ discard block |
||
37 | 37 | |
38 | 38 | $pass = $_POST[password]; |
39 | 39 | |
40 | - if ($_POST['r_input'] == 'Y') { |
|
40 | + if ($_POST['r_input']=='Y') { |
|
41 | 41 | $r_input = 'Y'; |
42 | 42 | } else { |
43 | 43 | $r_input = 'N'; |
44 | 44 | } |
45 | 45 | |
46 | - if ($_POST['r_edit'] == 'Y') { |
|
46 | + if ($_POST['r_edit']=='Y') { |
|
47 | 47 | $r_edit = 'Y'; |
48 | 48 | } else { |
49 | 49 | $r_edit = 'N'; |
50 | 50 | } |
51 | 51 | |
52 | - if ($_POST['r_delete'] == 'Y') { |
|
52 | + if ($_POST['r_delete']=='Y') { |
|
53 | 53 | $r_delete = 'Y'; |
54 | 54 | } else { |
55 | 55 | $r_delete = 'N'; |
56 | 56 | } |
57 | 57 | |
58 | - if ($_POST['r_admin'] == 'Y') { |
|
58 | + if ($_POST['r_admin']=='Y') { |
|
59 | 59 | $r_admin = 'Y'; |
60 | 60 | } else { |
61 | 61 | $r_admin = 'N'; |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | <select name="groups" class="form-control" required > |
161 | 161 | <option value=''></option> |
162 | 162 | <?php |
163 | - $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
163 | + $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
164 | 164 | if ($query && mysql_num_rows($query) > 0) { |
165 | 165 | while ($row = mysql_fetch_object($query)) { |
166 | 166 | echo '<option value="'.$row->id_groups.'"'; |
@@ -492,11 +492,11 @@ discard block |
||
492 | 492 | <!-- /editor --> |
493 | 493 | |
494 | 494 | <?php |
495 | - if (empty($pict)) { |
|
496 | - $ipict = 'male.png'; |
|
497 | - } else { |
|
498 | - $ipict = $pict; |
|
499 | - } ?> |
|
495 | + if (empty($pict)) { |
|
496 | + $ipict = 'male.png'; |
|
497 | + } else { |
|
498 | + $ipict = $pict; |
|
499 | + } ?> |
|
500 | 500 | |
501 | 501 | <script> |
502 | 502 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | if ($id) { |
82 | 82 | $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
83 | - if ($query && mysql_num_rows($query) == 1) { |
|
83 | + if ($query && mysql_num_rows($query)==1) { |
|
84 | 84 | $data = mysql_fetch_object($query); |
85 | 85 | } else { |
86 | 86 | die('Data user tidak ditemukan'); |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | <option value=''></option> |
162 | 162 | <?php |
163 | 163 | $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
164 | - if ($query && mysql_num_rows($query) > 0) { |
|
164 | + if ($query && mysql_num_rows($query)>0) { |
|
165 | 165 | while ($row = mysql_fetch_object($query)) { |
166 | 166 | echo '<option value="'.$row->id_groups.'"'; |
167 | - if ($row->id_groups == @$data->id_groups) { |
|
167 | + if ($row->id_groups==@$data->id_groups) { |
|
168 | 168 | echo ' selected'; |
169 | 169 | } |
170 | 170 | echo '>'.$row->groups.'</option>'; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | <?php if ($data->id_user) { |
182 | 182 | ?> |
183 | 183 | |
184 | - <?php if ($data->r_input == 'Y') { |
|
184 | + <?php if ($data->r_input=='Y') { |
|
185 | 185 | ?> |
186 | 186 | <input checked type='checkbox' class='flat' value='Y' name='r_input' > <label>Input</label> |
187 | 187 | <?php |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | <?php |
192 | 192 | } ?> |
193 | 193 | |
194 | - <?php if ($data->r_edit == 'Y') { |
|
194 | + <?php if ($data->r_edit=='Y') { |
|
195 | 195 | ?> |
196 | 196 | <input checked type='checkbox' class='flat' value='Y' name='r_edit' > <label>Ubah</label> |
197 | 197 | <?php |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | <?php |
202 | 202 | } ?> |
203 | 203 | |
204 | - <?php if ($data->r_delete == 'Y') { |
|
204 | + <?php if ($data->r_delete=='Y') { |
|
205 | 205 | ?> |
206 | 206 | <input checked type='checkbox' class='flat' value='Y' name='r_delete' > <label>Hapus</label> |
207 | 207 | <?php |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | <?php |
212 | 212 | } ?> |
213 | 213 | |
214 | - <?php if ($data->r_admin == 'Y') { |
|
214 | + <?php if ($data->r_admin=='Y') { |
|
215 | 215 | ?> |
216 | 216 | <input checked type='checkbox' class='flat' value='Y' name='r_admin' > <label>Grup Admin</label> |
217 | 217 | <?php |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | <?php if ($id) { |
238 | 238 | ?> |
239 | 239 | |
240 | - <?php if (@$data->aktif == 'Y') { |
|
240 | + <?php if (@$data->aktif=='Y') { |
|
241 | 241 | ?> |
242 | 242 | |
243 | 243 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | <select required name="pasien" class="form-control"> |
92 | 92 | <option>--Pilih Pasien--</option> |
93 | 93 | <?php |
94 | - $query = mysql_query('SELECT * FROM pasien ORDER BY nama'); |
|
94 | + $query = mysql_query('SELECT * FROM pasien ORDER BY nama'); |
|
95 | 95 | if ($query && mysql_num_rows($query) > 0) { |
96 | 96 | while ($row = mysql_fetch_object($query)) { |
97 | 97 | $pasien = $row->ktp.'-'.$row->nama; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | <select name="poli" class="form-control"> |
113 | 113 | <option>--Pilih Poliklinik --</option> |
114 | 114 | <?php |
115 | - $query = mysql_query('SELECT * FROM poli ORDER BY poli'); |
|
115 | + $query = mysql_query('SELECT * FROM poli ORDER BY poli'); |
|
116 | 116 | if ($query && mysql_num_rows($query) > 0) { |
117 | 117 | while ($row = mysql_fetch_object($query)) { |
118 | 118 | echo '<option value="'.$row->id_poli.'"'; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM kunjungan_berobat WHERE id_kunjungan_berobat = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -92,12 +92,12 @@ discard block |
||
92 | 92 | <option>--Pilih Pasien--</option> |
93 | 93 | <?php |
94 | 94 | $query = mysql_query('SELECT * FROM pasien ORDER BY nama'); |
95 | - if ($query && mysql_num_rows($query) > 0) { |
|
95 | + if ($query && mysql_num_rows($query)>0) { |
|
96 | 96 | while ($row = mysql_fetch_object($query)) { |
97 | 97 | $pasien = $row->ktp.'-'.$row->nama; |
98 | 98 | |
99 | 99 | echo '<option value="'.$row->id_pasien.'"'; |
100 | - if ($row->id_pasien == @$data->id_pasien) { |
|
100 | + if ($row->id_pasien==@$data->id_pasien) { |
|
101 | 101 | echo ' selected'; |
102 | 102 | } |
103 | 103 | echo '>'.$pasien.'</option>'; |
@@ -113,10 +113,10 @@ discard block |
||
113 | 113 | <option>--Pilih Poliklinik --</option> |
114 | 114 | <?php |
115 | 115 | $query = mysql_query('SELECT * FROM poli ORDER BY poli'); |
116 | - if ($query && mysql_num_rows($query) > 0) { |
|
116 | + if ($query && mysql_num_rows($query)>0) { |
|
117 | 117 | while ($row = mysql_fetch_object($query)) { |
118 | 118 | echo '<option value="'.$row->id_poli.'"'; |
119 | - if ($row->id_poli == @$data->id_poli) { |
|
119 | + if ($row->id_poli==@$data->id_poli) { |
|
120 | 120 | echo ' selected'; |
121 | 121 | } |
122 | 122 | echo '>'.$row->poli.'</option>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | 19 | // Hapus modul |
20 | - if ($module == 'kunjungan_berobat' and $act == 'hapus') { |
|
20 | + if ($module=='kunjungan_berobat' and $act=='hapus') { |
|
21 | 21 | $id = $_GET['id']; |
22 | 22 | $id_module = $_GET['id_module']; |
23 | 23 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | // Input group |
37 | - elseif ($module == 'kunjungan_berobat' and $act == 'input') { |
|
37 | + elseif ($module=='kunjungan_berobat' and $act=='input') { |
|
38 | 38 | $id_module = $_POST['id_module']; |
39 | 39 | |
40 | 40 | if ($_POST['ID']) { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <div class="col-md-6 col-sm-6 col-xs-12" > |
74 | 74 | <select name="igroup" class="form-control" autofocus > |
75 | 75 | <?php |
76 | - $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
76 | + $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
77 | 77 | if ($query && mysql_num_rows($query) > 0) { |
78 | 78 | while ($row = mysql_fetch_object($query)) { |
79 | 79 | echo '<option value="'.$row->id_groups.'"'; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } ?>> |
97 | 97 | <option value=''></option> |
98 | 98 | <?php |
99 | - $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' AND aktif = 'Y' ORDER BY urutan ASC"); |
|
99 | + $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' AND aktif = 'Y' ORDER BY urutan ASC"); |
|
100 | 100 | if ($query && mysql_num_rows($query) > 0) { |
101 | 101 | while ($row = mysql_fetch_object($query)) { |
102 | 102 | echo '<option value="'.$row->id_modul.'"'; |
@@ -123,13 +123,13 @@ discard block |
||
123 | 123 | <div class="col-md-6 col-sm-6 col-xs-12" > |
124 | 124 | <?php |
125 | 125 | |
126 | - $iquery = mysql_query("SELECT * FROM modul WHERE status_menu = 'C' AND aktif = 'Y' AND parentid= '$imenu' ORDER BY urutan ASC"); |
|
126 | + $iquery = mysql_query("SELECT * FROM modul WHERE status_menu = 'C' AND aktif = 'Y' AND parentid= '$imenu' ORDER BY urutan ASC"); |
|
127 | 127 | $irow = mysql_fetch_object($iquery); ?> |
128 | 128 | |
129 | 129 | <?php |
130 | - //echo"<div id='iframe'>"; |
|
131 | - if ($id) { |
|
132 | - $query = mysql_query("SELECT DISTINCT a.* |
|
130 | + //echo"<div id='iframe'>"; |
|
131 | + if ($id) { |
|
132 | + $query = mysql_query("SELECT DISTINCT a.* |
|
133 | 133 | ,CASE WHEN ifnull(b.id_groupmodul,0) = '0' THEN 0 ELSE 1 END as flag |
134 | 134 | FROM modul a left join groupmodul b |
135 | 135 | ON b.id_groups = '$group' |
@@ -137,38 +137,38 @@ discard block |
||
137 | 137 | WHERE a.status_menu = 'C' AND a.aktif = 'Y' AND a.parentid = '$imenu' |
138 | 138 | ORDER BY a.urutan ASC"); |
139 | 139 | |
140 | - if ($query && mysql_num_rows($query) > 0) { |
|
141 | - $no = 1; |
|
142 | - while ($row = mysql_fetch_object($query)) { |
|
143 | - $status = $row->status_menu; |
|
140 | + if ($query && mysql_num_rows($query) > 0) { |
|
141 | + $no = 1; |
|
142 | + while ($row = mysql_fetch_object($query)) { |
|
143 | + $status = $row->status_menu; |
|
144 | 144 | |
145 | - if ($row->flag == '1') { |
|
146 | - echo"<input checked type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
|
147 | - } else { |
|
148 | - echo"<input type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
|
149 | - } |
|
145 | + if ($row->flag == '1') { |
|
146 | + echo"<input checked type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
|
147 | + } else { |
|
148 | + echo"<input type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
|
149 | + } |
|
150 | 150 | |
151 | - echo"<input type='hidden' name='modul".$no."' value='".$row->id_modul."'>".$row->nama_modul.'</br>'; |
|
151 | + echo"<input type='hidden' name='modul".$no."' value='".$row->id_modul."'>".$row->nama_modul.'</br>'; |
|
152 | 152 | |
153 | - $no++; |
|
154 | - } |
|
155 | - } |
|
156 | - } else { |
|
157 | - $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'C' AND aktif = 'Y' AND parentid= '$imenu' ORDER BY urutan ASC"); |
|
153 | + $no++; |
|
154 | + } |
|
155 | + } |
|
156 | + } else { |
|
157 | + $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'C' AND aktif = 'Y' AND parentid= '$imenu' ORDER BY urutan ASC"); |
|
158 | 158 | |
159 | - if ($query && mysql_num_rows($query) > 0) { |
|
160 | - $no = 1; |
|
161 | - while ($row = mysql_fetch_object($query)) { |
|
162 | - $status = $row->status_menu; |
|
159 | + if ($query && mysql_num_rows($query) > 0) { |
|
160 | + $no = 1; |
|
161 | + while ($row = mysql_fetch_object($query)) { |
|
162 | + $status = $row->status_menu; |
|
163 | 163 | |
164 | - echo"<input checked type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'> |
|
164 | + echo"<input checked type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'> |
|
165 | 165 | <input type='hidden' name='modul".$no."' value='".$row->id_modul."'> |
166 | 166 | ".$row->nama_modul.'</br>'; |
167 | 167 | |
168 | - $no++; |
|
169 | - } |
|
170 | - } |
|
171 | - } |
|
168 | + $no++; |
|
169 | + } |
|
170 | + } |
|
171 | + } |
|
172 | 172 | //echo"</div>"; |
173 | 173 | |
174 | 174 | ?> |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | if ($id) { |
45 | 45 | $query = mysql_query('SELECT * FROM groupmodul WHERE id_groupmodul = "'.$id.'"'); |
46 | - if ($query && mysql_num_rows($query) == 1) { |
|
46 | + if ($query && mysql_num_rows($query)==1) { |
|
47 | 47 | $data = mysql_fetch_object($query); |
48 | 48 | } else { |
49 | 49 | die('Data groupmodul tidak ditemukan'); |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | <select name="igroup" class="form-control" autofocus > |
75 | 75 | <?php |
76 | 76 | $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
77 | - if ($query && mysql_num_rows($query) > 0) { |
|
77 | + if ($query && mysql_num_rows($query)>0) { |
|
78 | 78 | while ($row = mysql_fetch_object($query)) { |
79 | 79 | echo '<option value="'.$row->id_groups.'"'; |
80 | - if ($row->id_groups == @$data->id_groups) { |
|
80 | + if ($row->id_groups==@$data->id_groups) { |
|
81 | 81 | echo ' selected'; |
82 | 82 | } |
83 | 83 | echo '>'.$row->groups.'</option>'; |
@@ -97,10 +97,10 @@ discard block |
||
97 | 97 | <option value=''></option> |
98 | 98 | <?php |
99 | 99 | $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' AND aktif = 'Y' ORDER BY urutan ASC"); |
100 | - if ($query && mysql_num_rows($query) > 0) { |
|
100 | + if ($query && mysql_num_rows($query)>0) { |
|
101 | 101 | while ($row = mysql_fetch_object($query)) { |
102 | 102 | echo '<option value="'.$row->id_modul.'"'; |
103 | - if ($imenu == $row->id_modul) { |
|
103 | + if ($imenu==$row->id_modul) { |
|
104 | 104 | echo ' selected'; |
105 | 105 | } |
106 | 106 | echo '>'.$row->nama_modul.'</option>'; |
@@ -137,12 +137,12 @@ discard block |
||
137 | 137 | WHERE a.status_menu = 'C' AND a.aktif = 'Y' AND a.parentid = '$imenu' |
138 | 138 | ORDER BY a.urutan ASC"); |
139 | 139 | |
140 | - if ($query && mysql_num_rows($query) > 0) { |
|
140 | + if ($query && mysql_num_rows($query)>0) { |
|
141 | 141 | $no = 1; |
142 | 142 | while ($row = mysql_fetch_object($query)) { |
143 | 143 | $status = $row->status_menu; |
144 | 144 | |
145 | - if ($row->flag == '1') { |
|
145 | + if ($row->flag=='1') { |
|
146 | 146 | echo"<input checked type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
147 | 147 | } else { |
148 | 148 | echo"<input type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | } else { |
157 | 157 | $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'C' AND aktif = 'Y' AND parentid= '$imenu' ORDER BY urutan ASC"); |
158 | 158 | |
159 | - if ($query && mysql_num_rows($query) > 0) { |
|
159 | + if ($query && mysql_num_rows($query)>0) { |
|
160 | 160 | $no = 1; |
161 | 161 | while ($row = mysql_fetch_object($query)) { |
162 | 162 | $status = $row->status_menu; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | 19 | // Hapus modul |
20 | - if ($module == 'groupmodul' and $act == 'hapus') { |
|
20 | + if ($module=='groupmodul' and $act=='hapus') { |
|
21 | 21 | $id = $_GET['id']; |
22 | 22 | |
23 | 23 | mysql_query('DELETE FROM '.$module.' WHERE id_'.$module." = $id"); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | // Input groupmodul |
31 | - elseif ($module == 'groupmodul' and $act == 'input') { |
|
31 | + elseif ($module=='groupmodul' and $act=='input') { |
|
32 | 32 | $jum = $_POST['jum']; |
33 | 33 | |
34 | 34 | mysql_query("DELETE FROM groupmodul WHERE id_groups = '$_POST[groups]' AND id_modul = '$_POST[imenu]'"); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | ,'$userid' |
49 | 49 | ,'Y')"); |
50 | 50 | |
51 | - for ($i = 1; $i <= $jum; $i++) { |
|
51 | + for ($i = 1; $i<=$jum; $i++) { |
|
52 | 52 | $id = $_POST['id'.$i]; |
53 | 53 | $modul = $_POST['modul'.$i]; |
54 | 54 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | // Hapus modul |
19 | - if ($module == 'satuan' and $act == 'hapus') { |
|
19 | + if ($module=='satuan' and $act=='hapus') { |
|
20 | 20 | $id = $_GET['id']; |
21 | 21 | $id_module = $_GET['id_module']; |
22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | // Input group |
36 | - elseif ($module == 'satuan' and $act == 'input') { |
|
36 | + elseif ($module=='satuan' and $act=='input') { |
|
37 | 37 | $id_module = $_POST['id_module']; |
38 | 38 | |
39 | 39 | if ($_POST['ID']) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM satuan WHERE id_satuan = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | <?php if ($id) { |
82 | 82 | ?> |
83 | 83 | |
84 | - <?php if (@$data->aktif == 'Y') { |
|
84 | + <?php if (@$data->aktif=='Y') { |
|
85 | 85 | ?> |
86 | 86 | |
87 | 87 | <div class="form-group"> |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | <?php |
136 | 136 | |
137 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
137 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
138 | 138 | |
139 | 139 | if ($id) { |
140 | 140 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | <tbody> |
254 | 254 | <?php |
255 | 255 | |
256 | - $SQL = "SELECT* FROM pg_setoran_awal |
|
256 | + $SQL = "SELECT* FROM pg_setoran_awal |
|
257 | 257 | WHERE prd = '$prd' order by id_pg_setoran_awal"; |
258 | 258 | |
259 | 259 | $tampil = mysql_query($SQL); |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
361 | 361 | |
362 | 362 | <?php |
363 | - echo'</form>'; |
|
363 | + echo'</form>'; |
|
364 | 364 | } ?> |
365 | 365 | |
366 | 366 | |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | |
384 | 384 | <?php |
385 | 385 | |
386 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
386 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
387 | 387 | |
388 | 388 | if ($id) { |
389 | 389 | $query = mysql_query('SELECT * FROM pg_penarikan_dana |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | <select name="rek_debet" class="form-control" required > |
452 | 452 | <option value='0'></option> |
453 | 453 | <?php |
454 | - $query = mysql_query('SELECT * FROM rekening |
|
454 | + $query = mysql_query('SELECT * FROM rekening |
|
455 | 455 | WHERE parentid != "0" |
456 | 456 | |
457 | 457 | ORDER BY norek'); |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | <select name="rek_kredit" class="form-control" required > |
474 | 474 | <option value='0'></option> |
475 | 475 | <?php |
476 | - $query = mysql_query('SELECT * FROM rekening |
|
476 | + $query = mysql_query('SELECT * FROM rekening |
|
477 | 477 | WHERE parentid != "0" |
478 | 478 | |
479 | 479 | ORDER BY norek'); |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | |
578 | 578 | <?php |
579 | 579 | |
580 | - $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
580 | + $kSQL = "SELECT* FROM pg_peminjaman_tunai WHERE tipe = 'K' AND prd = '$prd'"; |
|
581 | 581 | |
582 | 582 | $ktampil = mysql_query($kSQL); |
583 | 583 | |
@@ -1082,7 +1082,7 @@ discard block |
||
1082 | 1082 | |
1083 | 1083 | <?php |
1084 | 1084 | |
1085 | - $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1085 | + $kSQL = "SELECT* FROM pg_peminjaman_barang WHERE tipe = 'K' AND prd = '$prd' "; |
|
1086 | 1086 | |
1087 | 1087 | $ktampil = mysql_query($kSQL); |
1088 | 1088 | |
@@ -1575,7 +1575,7 @@ discard block |
||
1575 | 1575 | <tbody> |
1576 | 1576 | <?php |
1577 | 1577 | |
1578 | - $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1578 | + $SQL = "SELECT* FROM pg_plafon a inner join jenis_pinjaman b |
|
1579 | 1579 | ON a.id_jenis_pinjaman = b.id_jenis_pinjaman |
1580 | 1580 | WHERE a.prd = '$prd'"; |
1581 | 1581 | |
@@ -1627,7 +1627,7 @@ discard block |
||
1627 | 1627 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1628 | 1628 | |
1629 | 1629 | <?php |
1630 | - echo'</form>'; |
|
1630 | + echo'</form>'; |
|
1631 | 1631 | } ?> |
1632 | 1632 | |
1633 | 1633 | |
@@ -1667,7 +1667,7 @@ discard block |
||
1667 | 1667 | <tbody> |
1668 | 1668 | <?php |
1669 | 1669 | |
1670 | - $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1670 | + $SQL = "SELECT* FROM pg_jurnal WHERE prd = '$prd' ORDER BY id_pg_jurnal"; |
|
1671 | 1671 | |
1672 | 1672 | $tampil = mysql_query($SQL); |
1673 | 1673 | |
@@ -1734,7 +1734,7 @@ discard block |
||
1734 | 1734 | <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> |
1735 | 1735 | |
1736 | 1736 | <?php |
1737 | - echo'</form>'; |
|
1737 | + echo'</form>'; |
|
1738 | 1738 | } ?> |
1739 | 1739 | |
1740 | 1740 | |
@@ -1762,7 +1762,7 @@ discard block |
||
1762 | 1762 | |
1763 | 1763 | <?php |
1764 | 1764 | |
1765 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1765 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
1766 | 1766 | |
1767 | 1767 | if ($id) { |
1768 | 1768 | $query = mysql_query('SELECT * FROM pg_lainnya |
@@ -2079,7 +2079,7 @@ discard block |
||
2079 | 2079 | |
2080 | 2080 | <?php |
2081 | 2081 | |
2082 | - $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2082 | + $id = 1; // isset($_GET['id_general_setting']) ? intval($_GET['id_general_setting']) : false; |
|
2083 | 2083 | |
2084 | 2084 | if ($id) { |
2085 | 2085 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
@@ -2122,11 +2122,11 @@ discard block |
||
2122 | 2122 | </script> |
2123 | 2123 | |
2124 | 2124 | <?php |
2125 | - if (empty($pict)) { |
|
2126 | - $ipict = 'logo.png'; |
|
2127 | - } else { |
|
2128 | - $ipict = $pict; |
|
2129 | - } ?> |
|
2125 | + if (empty($pict)) { |
|
2126 | + $ipict = 'logo.png'; |
|
2127 | + } else { |
|
2128 | + $ipict = $pict; |
|
2129 | + } ?> |
|
2130 | 2130 | |
2131 | 2131 | <script> |
2132 | 2132 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | <ul class="nav nav-tabs"> |
112 | 112 | |
113 | - <li <?php if ($tab == 'ip') { |
|
113 | + <li <?php if ($tab=='ip') { |
|
114 | 114 | echo 'class="active"'; |
115 | 115 | } ?> ><a data-toggle="tab" href="#home">Informasi Perusahaan</a> |
116 | 116 | </li> |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | <div class="tab-content"> |
126 | 126 | |
127 | - <div id="home" class="tab-pane fade <?php if ($tab == 'ip') { |
|
127 | + <div id="home" class="tab-pane fade <?php if ($tab=='ip') { |
|
128 | 128 | echo 'in active primary'; |
129 | 129 | } ?>"> |
130 | 130 | <br> |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | if ($id) { |
140 | 140 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
141 | - if ($query && mysql_num_rows($query) == 1) { |
|
141 | + if ($query && mysql_num_rows($query)==1) { |
|
142 | 142 | $data = mysql_fetch_object($query); |
143 | 143 | } else { |
144 | 144 | die('Data general_setting tidak ditemukan'); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | |
224 | 224 | </div> |
225 | 225 | |
226 | - <div id="menu1" class="tab-pane fade <?php if ($tab == 'sa') { |
|
226 | + <div id="menu1" class="tab-pane fade <?php if ($tab=='sa') { |
|
227 | 227 | echo 'in active primary'; |
228 | 228 | } ?>"> |
229 | 229 | <br> |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $no = 1; |
262 | 262 | |
263 | 263 | while ($r = mysql_fetch_array($tampil)) { |
264 | - if ($r['nilai'] == '0') { |
|
264 | + if ($r['nilai']=='0') { |
|
265 | 265 | $disabled = 'readonly'; |
266 | 266 | } else { |
267 | 267 | $disabled = ''; |
@@ -287,10 +287,10 @@ discard block |
||
287 | 287 | <select name="jenis_posting" class="form-control" required > |
288 | 288 | <?php |
289 | 289 | $query = mysql_query('SELECT * FROM jenis_posting ORDER BY jenis_posting'); |
290 | - if ($query && mysql_num_rows($query) > 0) { |
|
290 | + if ($query && mysql_num_rows($query)>0) { |
|
291 | 291 | while ($row = mysql_fetch_object($query)) { |
292 | 292 | echo '<option value="'.$row->id_jenis_posting.'"'; |
293 | - if ($row->id_jenis_posting == $r['id_jenis_posting']) { |
|
293 | + if ($row->id_jenis_posting==$r['id_jenis_posting']) { |
|
294 | 294 | echo ' selected'; |
295 | 295 | } |
296 | 296 | echo '>'.$row->jenis_posting.'</option>'; |
@@ -308,10 +308,10 @@ discard block |
||
308 | 308 | WHERE parentid != "0" |
309 | 309 | |
310 | 310 | ORDER BY norek'); |
311 | - if ($query && mysql_num_rows($query) > 0) { |
|
311 | + if ($query && mysql_num_rows($query)>0) { |
|
312 | 312 | while ($row = mysql_fetch_object($query)) { |
313 | 313 | echo '<option value="'.$row->id_rekening.'"'; |
314 | - if ($row->id_rekening == $r['rek_debet']) { |
|
314 | + if ($row->id_rekening==$r['rek_debet']) { |
|
315 | 315 | echo ' selected'; |
316 | 316 | } |
317 | 317 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -329,10 +329,10 @@ discard block |
||
329 | 329 | WHERE parentid != "0" |
330 | 330 | |
331 | 331 | ORDER BY norek'); |
332 | - if ($query && mysql_num_rows($query) > 0) { |
|
332 | + if ($query && mysql_num_rows($query)>0) { |
|
333 | 333 | while ($row = mysql_fetch_object($query)) { |
334 | 334 | echo '<option value="'.$row->id_rekening.'"'; |
335 | - if ($row->id_rekening == $r['rek_kredit']) { |
|
335 | + if ($row->id_rekening==$r['rek_kredit']) { |
|
336 | 336 | echo ' selected'; |
337 | 337 | } |
338 | 338 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | |
376 | 376 | </div> |
377 | 377 | |
378 | - <div id="menu2" class="tab-pane fade <?php if ($tab == 'pd') { |
|
378 | + <div id="menu2" class="tab-pane fade <?php if ($tab=='pd') { |
|
379 | 379 | echo 'in active primary'; |
380 | 380 | } ?>"> |
381 | 381 | <br> |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | if ($id) { |
389 | 389 | $query = mysql_query('SELECT * FROM pg_penarikan_dana |
390 | 390 | WHERE prd = "'.$prd.'" '); |
391 | - if ($query && mysql_num_rows($query) == 1) { |
|
391 | + if ($query && mysql_num_rows($query)==1) { |
|
392 | 392 | $data = mysql_fetch_object($query); |
393 | 393 | } else { |
394 | 394 | die('Data pg_penarikan_dana tidak ditemukan'); |
@@ -455,10 +455,10 @@ discard block |
||
455 | 455 | WHERE parentid != "0" |
456 | 456 | |
457 | 457 | ORDER BY norek'); |
458 | - if ($query && mysql_num_rows($query) > 0) { |
|
458 | + if ($query && mysql_num_rows($query)>0) { |
|
459 | 459 | while ($row = mysql_fetch_object($query)) { |
460 | 460 | echo '<option value="'.$row->id_rekening.'"'; |
461 | - if ($row->id_rekening == $data->rek_debet) { |
|
461 | + if ($row->id_rekening==$data->rek_debet) { |
|
462 | 462 | echo ' selected'; |
463 | 463 | } |
464 | 464 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -477,10 +477,10 @@ discard block |
||
477 | 477 | WHERE parentid != "0" |
478 | 478 | |
479 | 479 | ORDER BY norek'); |
480 | - if ($query && mysql_num_rows($query) > 0) { |
|
480 | + if ($query && mysql_num_rows($query)>0) { |
|
481 | 481 | while ($row = mysql_fetch_object($query)) { |
482 | 482 | echo '<option value="'.$row->id_rekening.'"'; |
483 | - if ($row->id_rekening == $data->rek_kredit) { |
|
483 | + if ($row->id_rekening==$data->rek_kredit) { |
|
484 | 484 | echo ' selected'; |
485 | 485 | } |
486 | 486 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | |
512 | 512 | </div> |
513 | 513 | |
514 | - <div id="menu3" class="tab-pane fade <?php if ($tab == 'pm') { |
|
514 | + <div id="menu3" class="tab-pane fade <?php if ($tab=='pm') { |
|
515 | 515 | echo 'in active primary'; |
516 | 516 | } ?>"> |
517 | 517 | <br> |
@@ -519,11 +519,11 @@ discard block |
||
519 | 519 | |
520 | 520 | <ul class="nav nav-tabs" > |
521 | 521 | |
522 | - <li <?php if ($stab == 'tunai') { |
|
522 | + <li <?php if ($stab=='tunai') { |
|
523 | 523 | echo 'class="active"'; |
524 | 524 | } ?> ><a data-toggle="tab" href="#tunai">Dana Tunai</a> |
525 | 525 | </li> |
526 | - <li <?php if ($stab == 'barang') { |
|
526 | + <li <?php if ($stab=='barang') { |
|
527 | 527 | echo 'class="active"'; |
528 | 528 | } ?> ><a data-toggle="tab" href="#barang">Barang</a> |
529 | 529 | </li> |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | |
532 | 532 | <div class="tab-content"> |
533 | 533 | |
534 | - <div id="tunai" class="tab-pane fade <?php if ($stab == 'tunai') { |
|
534 | + <div id="tunai" class="tab-pane fade <?php if ($stab=='tunai') { |
|
535 | 535 | echo 'in active primary'; |
536 | 536 | } ?>"> |
537 | 537 | <br> |
@@ -604,10 +604,10 @@ discard block |
||
604 | 604 | $query = mysql_query('SELECT * FROM rekening |
605 | 605 | WHERE parentid != "0" |
606 | 606 | ORDER BY norek'); |
607 | - if ($query && mysql_num_rows($query) > 0) { |
|
607 | + if ($query && mysql_num_rows($query)>0) { |
|
608 | 608 | while ($row = mysql_fetch_object($query)) { |
609 | 609 | echo '<option value="'.$row->id_rekening.'"'; |
610 | - if ($row->id_rekening == $k['rek_debet']) { |
|
610 | + if ($row->id_rekening==$k['rek_debet']) { |
|
611 | 611 | echo ' selected'; |
612 | 612 | } |
613 | 613 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -623,10 +623,10 @@ discard block |
||
623 | 623 | $query = mysql_query('SELECT * FROM rekening |
624 | 624 | WHERE parentid != "0" |
625 | 625 | ORDER BY norek'); |
626 | - if ($query && mysql_num_rows($query) > 0) { |
|
626 | + if ($query && mysql_num_rows($query)>0) { |
|
627 | 627 | while ($row = mysql_fetch_object($query)) { |
628 | 628 | echo '<option value="'.$row->id_rekening.'"'; |
629 | - if ($row->id_rekening == $k['rek_kredit']) { |
|
629 | + if ($row->id_rekening==$k['rek_kredit']) { |
|
630 | 630 | echo ' selected'; |
631 | 631 | } |
632 | 632 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -654,10 +654,10 @@ discard block |
||
654 | 654 | $query = mysql_query('SELECT * FROM rekening |
655 | 655 | WHERE parentid != "0" |
656 | 656 | ORDER BY norek'); |
657 | - if ($query && mysql_num_rows($query) > 0) { |
|
657 | + if ($query && mysql_num_rows($query)>0) { |
|
658 | 658 | while ($row = mysql_fetch_object($query)) { |
659 | 659 | echo '<option value="'.$row->id_rekening.'"'; |
660 | - if ($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
660 | + if ($row->id_rekening==$k['rek_debet_pelunasan']) { |
|
661 | 661 | echo ' selected'; |
662 | 662 | } |
663 | 663 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -673,10 +673,10 @@ discard block |
||
673 | 673 | $query = mysql_query('SELECT * FROM rekening |
674 | 674 | WHERE parentid != "0" |
675 | 675 | ORDER BY norek'); |
676 | - if ($query && mysql_num_rows($query) > 0) { |
|
676 | + if ($query && mysql_num_rows($query)>0) { |
|
677 | 677 | while ($row = mysql_fetch_object($query)) { |
678 | 678 | echo '<option value="'.$row->id_rekening.'"'; |
679 | - if ($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
679 | + if ($row->id_rekening==$k['rek_kredit_pelunasan']) { |
|
680 | 680 | echo ' selected'; |
681 | 681 | } |
682 | 682 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -832,10 +832,10 @@ discard block |
||
832 | 832 | WHERE parentid != "0" |
833 | 833 | |
834 | 834 | ORDER BY norek'); |
835 | - if ($query && mysql_num_rows($query) > 0) { |
|
835 | + if ($query && mysql_num_rows($query)>0) { |
|
836 | 836 | while ($row = mysql_fetch_object($query)) { |
837 | 837 | echo '<option value="'.$row->id_rekening.'"'; |
838 | - if ($row->id_rekening == $k['rek_debet_bunga']) { |
|
838 | + if ($row->id_rekening==$k['rek_debet_bunga']) { |
|
839 | 839 | echo ' selected'; |
840 | 840 | } |
841 | 841 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -851,10 +851,10 @@ discard block |
||
851 | 851 | $query = mysql_query('SELECT * FROM rekening |
852 | 852 | WHERE parentid != "0" |
853 | 853 | ORDER BY norek'); |
854 | - if ($query && mysql_num_rows($query) > 0) { |
|
854 | + if ($query && mysql_num_rows($query)>0) { |
|
855 | 855 | while ($row = mysql_fetch_object($query)) { |
856 | 856 | echo '<option value="'.$row->id_rekening.'"'; |
857 | - if ($row->id_rekening == $k['rek_kredit_bunga']) { |
|
857 | + if ($row->id_rekening==$k['rek_kredit_bunga']) { |
|
858 | 858 | echo ' selected'; |
859 | 859 | } |
860 | 860 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -898,10 +898,10 @@ discard block |
||
898 | 898 | $query = mysql_query('SELECT * FROM rekening |
899 | 899 | WHERE parentid != "0" |
900 | 900 | ORDER BY norek'); |
901 | - if ($query && mysql_num_rows($query) > 0) { |
|
901 | + if ($query && mysql_num_rows($query)>0) { |
|
902 | 902 | while ($row = mysql_fetch_object($query)) { |
903 | 903 | echo '<option value="'.$row->id_rekening.'"'; |
904 | - if ($row->id_rekening == $k['rek_debet_ipoint']) { |
|
904 | + if ($row->id_rekening==$k['rek_debet_ipoint']) { |
|
905 | 905 | echo ' selected'; |
906 | 906 | } |
907 | 907 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -917,10 +917,10 @@ discard block |
||
917 | 917 | $query = mysql_query('SELECT * FROM rekening |
918 | 918 | WHERE parentid != "0" |
919 | 919 | ORDER BY norek'); |
920 | - if ($query && mysql_num_rows($query) > 0) { |
|
920 | + if ($query && mysql_num_rows($query)>0) { |
|
921 | 921 | while ($row = mysql_fetch_object($query)) { |
922 | 922 | echo '<option value="'.$row->id_rekening.'"'; |
923 | - if ($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
923 | + if ($row->id_rekening==$k['rek_kredit_ipoint']) { |
|
924 | 924 | echo ' selected'; |
925 | 925 | } |
926 | 926 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1040,7 +1040,7 @@ discard block |
||
1040 | 1040 | |
1041 | 1041 | </div> |
1042 | 1042 | |
1043 | - <div id="barang" class="tab-pane fade <?php if ($stab == 'barang') { |
|
1043 | + <div id="barang" class="tab-pane fade <?php if ($stab=='barang') { |
|
1044 | 1044 | echo 'in active primary'; |
1045 | 1045 | } ?>"> |
1046 | 1046 | <br> |
@@ -1109,10 +1109,10 @@ discard block |
||
1109 | 1109 | $query = mysql_query('SELECT * FROM rekening |
1110 | 1110 | WHERE parentid != "0" |
1111 | 1111 | ORDER BY norek'); |
1112 | - if ($query && mysql_num_rows($query) > 0) { |
|
1112 | + if ($query && mysql_num_rows($query)>0) { |
|
1113 | 1113 | while ($row = mysql_fetch_object($query)) { |
1114 | 1114 | echo '<option value="'.$row->id_rekening.'"'; |
1115 | - if ($row->id_rekening == $k['rek_debet']) { |
|
1115 | + if ($row->id_rekening==$k['rek_debet']) { |
|
1116 | 1116 | echo ' selected'; |
1117 | 1117 | } |
1118 | 1118 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1128,10 +1128,10 @@ discard block |
||
1128 | 1128 | $query = mysql_query('SELECT * FROM rekening |
1129 | 1129 | WHERE parentid != "0" |
1130 | 1130 | ORDER BY norek'); |
1131 | - if ($query && mysql_num_rows($query) > 0) { |
|
1131 | + if ($query && mysql_num_rows($query)>0) { |
|
1132 | 1132 | while ($row = mysql_fetch_object($query)) { |
1133 | 1133 | echo '<option value="'.$row->id_rekening.'"'; |
1134 | - if ($row->id_rekening == $k['rek_kredit']) { |
|
1134 | + if ($row->id_rekening==$k['rek_kredit']) { |
|
1135 | 1135 | echo ' selected'; |
1136 | 1136 | } |
1137 | 1137 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1160,10 +1160,10 @@ discard block |
||
1160 | 1160 | $query = mysql_query('SELECT * FROM rekening |
1161 | 1161 | WHERE parentid != "0" |
1162 | 1162 | ORDER BY norek'); |
1163 | - if ($query && mysql_num_rows($query) > 0) { |
|
1163 | + if ($query && mysql_num_rows($query)>0) { |
|
1164 | 1164 | while ($row = mysql_fetch_object($query)) { |
1165 | 1165 | echo '<option value="'.$row->id_rekening.'"'; |
1166 | - if ($row->id_rekening == $k['rek_debet_pelunasan']) { |
|
1166 | + if ($row->id_rekening==$k['rek_debet_pelunasan']) { |
|
1167 | 1167 | echo ' selected'; |
1168 | 1168 | } |
1169 | 1169 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1179,10 +1179,10 @@ discard block |
||
1179 | 1179 | $query = mysql_query('SELECT * FROM rekening |
1180 | 1180 | WHERE parentid != "0" |
1181 | 1181 | ORDER BY norek'); |
1182 | - if ($query && mysql_num_rows($query) > 0) { |
|
1182 | + if ($query && mysql_num_rows($query)>0) { |
|
1183 | 1183 | while ($row = mysql_fetch_object($query)) { |
1184 | 1184 | echo '<option value="'.$row->id_rekening.'"'; |
1185 | - if ($row->id_rekening == $k['rek_kredit_pelunasan']) { |
|
1185 | + if ($row->id_rekening==$k['rek_kredit_pelunasan']) { |
|
1186 | 1186 | echo ' selected'; |
1187 | 1187 | } |
1188 | 1188 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1338,10 +1338,10 @@ discard block |
||
1338 | 1338 | WHERE parentid != "0" |
1339 | 1339 | |
1340 | 1340 | ORDER BY norek'); |
1341 | - if ($query && mysql_num_rows($query) > 0) { |
|
1341 | + if ($query && mysql_num_rows($query)>0) { |
|
1342 | 1342 | while ($row = mysql_fetch_object($query)) { |
1343 | 1343 | echo '<option value="'.$row->id_rekening.'"'; |
1344 | - if ($row->id_rekening == $k['rek_debet_bunga']) { |
|
1344 | + if ($row->id_rekening==$k['rek_debet_bunga']) { |
|
1345 | 1345 | echo ' selected'; |
1346 | 1346 | } |
1347 | 1347 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1357,10 +1357,10 @@ discard block |
||
1357 | 1357 | $query = mysql_query('SELECT * FROM rekening |
1358 | 1358 | WHERE parentid != "0" |
1359 | 1359 | ORDER BY norek'); |
1360 | - if ($query && mysql_num_rows($query) > 0) { |
|
1360 | + if ($query && mysql_num_rows($query)>0) { |
|
1361 | 1361 | while ($row = mysql_fetch_object($query)) { |
1362 | 1362 | echo '<option value="'.$row->id_rekening.'"'; |
1363 | - if ($row->id_rekening == $k['rek_kredit_bunga']) { |
|
1363 | + if ($row->id_rekening==$k['rek_kredit_bunga']) { |
|
1364 | 1364 | echo ' selected'; |
1365 | 1365 | } |
1366 | 1366 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1404,10 +1404,10 @@ discard block |
||
1404 | 1404 | $query = mysql_query('SELECT * FROM rekening |
1405 | 1405 | WHERE parentid != "0" |
1406 | 1406 | ORDER BY norek'); |
1407 | - if ($query && mysql_num_rows($query) > 0) { |
|
1407 | + if ($query && mysql_num_rows($query)>0) { |
|
1408 | 1408 | while ($row = mysql_fetch_object($query)) { |
1409 | 1409 | echo '<option value="'.$row->id_rekening.'"'; |
1410 | - if ($row->id_rekening == $k['rek_debet_ipoint']) { |
|
1410 | + if ($row->id_rekening==$k['rek_debet_ipoint']) { |
|
1411 | 1411 | echo ' selected'; |
1412 | 1412 | } |
1413 | 1413 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1423,10 +1423,10 @@ discard block |
||
1423 | 1423 | $query = mysql_query('SELECT * FROM rekening |
1424 | 1424 | WHERE parentid != "0" |
1425 | 1425 | ORDER BY norek'); |
1426 | - if ($query && mysql_num_rows($query) > 0) { |
|
1426 | + if ($query && mysql_num_rows($query)>0) { |
|
1427 | 1427 | while ($row = mysql_fetch_object($query)) { |
1428 | 1428 | echo '<option value="'.$row->id_rekening.'"'; |
1429 | - if ($row->id_rekening == $k['rek_kredit_ipoint']) { |
|
1429 | + if ($row->id_rekening==$k['rek_kredit_ipoint']) { |
|
1430 | 1430 | echo ' selected'; |
1431 | 1431 | } |
1432 | 1432 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -1552,7 +1552,7 @@ discard block |
||
1552 | 1552 | |
1553 | 1553 | </div> |
1554 | 1554 | |
1555 | - <div id="menu4" class="tab-pane fade <?php if ($tab == 'pl') { |
|
1555 | + <div id="menu4" class="tab-pane fade <?php if ($tab=='pl') { |
|
1556 | 1556 | echo 'in active primary'; |
1557 | 1557 | } ?>"> |
1558 | 1558 | <br> |
@@ -1593,10 +1593,10 @@ discard block |
||
1593 | 1593 | <select name="jenis_pinjaman" class="form-control" disabled> |
1594 | 1594 | <?php |
1595 | 1595 | $query = mysql_query('SELECT * FROM jenis_pinjaman ORDER BY jenis_pinjaman'); |
1596 | - if ($query && mysql_num_rows($query) > 0) { |
|
1596 | + if ($query && mysql_num_rows($query)>0) { |
|
1597 | 1597 | while ($row = mysql_fetch_object($query)) { |
1598 | 1598 | echo '<option value="'.$row->id_jenis_pinjaman.'"'; |
1599 | - if ($row->id_jenis_pinjaman == $r['id_jenis_pinjaman']) { |
|
1599 | + if ($row->id_jenis_pinjaman==$r['id_jenis_pinjaman']) { |
|
1600 | 1600 | echo ' selected'; |
1601 | 1601 | } |
1602 | 1602 | echo '>'.$row->jenis_pinjaman.'</option>'; |
@@ -1645,7 +1645,7 @@ discard block |
||
1645 | 1645 | |
1646 | 1646 | </div> |
1647 | 1647 | |
1648 | - <div id="menu5" class="tab-pane fade <?php if ($tab == 'jr') { |
|
1648 | + <div id="menu5" class="tab-pane fade <?php if ($tab=='jr') { |
|
1649 | 1649 | echo 'in active primary'; |
1650 | 1650 | } ?>"> |
1651 | 1651 | <br> |
@@ -1683,10 +1683,10 @@ discard block |
||
1683 | 1683 | <select name="modul" class="form-control" required > |
1684 | 1684 | <?php |
1685 | 1685 | $query = mysql_query('SELECT * FROM modul WHERE jurnal = "Y" and aktif = "Y" ORDER BY nama_modul'); |
1686 | - if ($query && mysql_num_rows($query) > 0) { |
|
1686 | + if ($query && mysql_num_rows($query)>0) { |
|
1687 | 1687 | while ($row = mysql_fetch_object($query)) { |
1688 | 1688 | echo '<option value="'.$row->id_modul.'"'; |
1689 | - if ($row->id_modul == $r['id_modul']) { |
|
1689 | + if ($row->id_modul==$r['id_modul']) { |
|
1690 | 1690 | echo ' selected'; |
1691 | 1691 | } |
1692 | 1692 | echo '>'.$row->nama_modul.'</option>'; |
@@ -1704,10 +1704,10 @@ discard block |
||
1704 | 1704 | FROM jenis_transaksi a inner join tipe_transaksi b |
1705 | 1705 | ON a.id_tipe_transaksi = b.id_tipe_transaksi |
1706 | 1706 | ORDER BY a.id_tipe_transaksi,a.id_jenis_transaksi'); |
1707 | - if ($query && mysql_num_rows($query) > 0) { |
|
1707 | + if ($query && mysql_num_rows($query)>0) { |
|
1708 | 1708 | while ($row = mysql_fetch_object($query)) { |
1709 | 1709 | echo '<option value="'.$row->id_jenis_transaksi.'"'; |
1710 | - if ($row->id_jenis_transaksi == $r['id_jenis_transaksi']) { |
|
1710 | + if ($row->id_jenis_transaksi==$r['id_jenis_transaksi']) { |
|
1711 | 1711 | echo ' selected'; |
1712 | 1712 | } |
1713 | 1713 | echo '>'.$row->kode.' - '.$row->tipe_transaksi.' - '.$row->jenis_transaksi.'</option>'; |
@@ -1752,7 +1752,7 @@ discard block |
||
1752 | 1752 | |
1753 | 1753 | |
1754 | 1754 | |
1755 | - <div id="menu6" class="tab-pane fade <?php if ($tab == 'ln') { |
|
1755 | + <div id="menu6" class="tab-pane fade <?php if ($tab=='ln') { |
|
1756 | 1756 | echo 'in active primary'; |
1757 | 1757 | } ?>"> |
1758 | 1758 | <br> |
@@ -1769,7 +1769,7 @@ discard block |
||
1769 | 1769 | WHERE prd = "'.$prd.'" |
1770 | 1770 | '); |
1771 | 1771 | |
1772 | - if ($query && mysql_num_rows($query) == 1) { |
|
1772 | + if ($query && mysql_num_rows($query)==1) { |
|
1773 | 1773 | $data = mysql_fetch_object($query); |
1774 | 1774 | } else { |
1775 | 1775 | die('Data general_setting tidak ditemukan'); |
@@ -1804,10 +1804,10 @@ discard block |
||
1804 | 1804 | $query = mysql_query('SELECT * FROM rekening |
1805 | 1805 | WHERE parentid != "0" |
1806 | 1806 | ORDER BY norek'); |
1807 | - if ($query && mysql_num_rows($query) > 0) { |
|
1807 | + if ($query && mysql_num_rows($query)>0) { |
|
1808 | 1808 | while ($row = mysql_fetch_object($query)) { |
1809 | 1809 | echo '<option value="'.$row->id_rekening.'"'; |
1810 | - if ($row->id_rekening == $data->rek_shu) { |
|
1810 | + if ($row->id_rekening==$data->rek_shu) { |
|
1811 | 1811 | echo ' selected'; |
1812 | 1812 | } |
1813 | 1813 | echo '>'.$row->norek.' - '.$row->rekening.'</option>'; |
@@ -2083,7 +2083,7 @@ discard block |
||
2083 | 2083 | |
2084 | 2084 | if ($id) { |
2085 | 2085 | $query = mysql_query('SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = "'.$id.'"'); |
2086 | - if ($query && mysql_num_rows($query) == 1) { |
|
2086 | + if ($query && mysql_num_rows($query)==1) { |
|
2087 | 2087 | $data = mysql_fetch_object($query); |
2088 | 2088 | } else { |
2089 | 2089 | die('Data general_setting tidak ditemukan'); |