@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | <script type="text/javascript"> |
8 | 8 | |
9 | -<?php for ($i = 1; $i <= 100; $i++) { |
|
9 | +<?php for ($i = 1; $i<=100; $i++) { |
|
10 | 10 | ?> |
11 | 11 | |
12 | 12 | function Getstatus<?php echo $i; ?>(str) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | -<?php for ($i = 1; $i <= 100; $i++) { |
|
29 | +<?php for ($i = 1; $i<=100; $i++) { |
|
30 | 30 | ?> |
31 | 31 | |
32 | 32 | <script> |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | default: |
92 | 92 | |
93 | - if ($_SESSION['outlet'] == '0') { |
|
93 | + if ($_SESSION['outlet']=='0') { |
|
94 | 94 | $d_outlet = '%'; |
95 | 95 | } else { |
96 | 96 | $d_outlet = $_SESSION['outlet']; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | if ($_GET['ioutlet']) { |
100 | 100 | $outlet = $_GET['ioutlet']; |
101 | 101 | } else { |
102 | - if ($_SESSION['outlet'] == '0') { |
|
102 | + if ($_SESSION['outlet']=='0') { |
|
103 | 103 | $outlet = '1'; |
104 | 104 | } else { |
105 | 105 | $outlet = $_SESSION['outlet']; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | $query = mysql_query('SELECT * FROM periode '); |
110 | 110 | |
111 | - if ($query && mysql_num_rows($query) == 1) { |
|
111 | + if ($query && mysql_num_rows($query)==1) { |
|
112 | 112 | $data = mysql_fetch_object($query); |
113 | 113 | } |
114 | 114 | |
@@ -182,11 +182,11 @@ discard block |
||
182 | 182 | |
183 | 183 | $query = mysql_query("SELECT * FROM outlet where id_outlet like '$d_outlet' ORDER BY id_outlet"); |
184 | 184 | |
185 | - if ($query && mysql_num_rows($query) > 0) { |
|
185 | + if ($query && mysql_num_rows($query)>0) { |
|
186 | 186 | while ($row = mysql_fetch_object($query)) { |
187 | 187 | echo '<option value="'.$row->id_outlet.'"'; |
188 | 188 | |
189 | - if ($row->id_outlet == $outlet) { |
|
189 | + if ($row->id_outlet==$outlet) { |
|
190 | 190 | echo ' selected'; |
191 | 191 | } |
192 | 192 | |
@@ -210,11 +210,11 @@ discard block |
||
210 | 210 | |
211 | 211 | $query = mysql_query('SELECT * FROM status ORDER BY id_status'); |
212 | 212 | |
213 | - if ($query && mysql_num_rows($query) > 0) { |
|
213 | + if ($query && mysql_num_rows($query)>0) { |
|
214 | 214 | while ($row = mysql_fetch_object($query)) { |
215 | 215 | echo '<option value="'.$row->id_status.'"'; |
216 | 216 | |
217 | - if ($row->id_status == $status) { |
|
217 | + if ($row->id_status==$status) { |
|
218 | 218 | echo ' selected'; |
219 | 219 | } |
220 | 220 | |
@@ -287,13 +287,13 @@ discard block |
||
287 | 287 | |
288 | 288 | $pj = mysql_num_rows($pjSQL); |
289 | 289 | |
290 | - if ($iprd == $prd) { |
|
290 | + if ($iprd==$prd) { |
|
291 | 291 | $disabled = ''; |
292 | 292 | } else { |
293 | 293 | $disabled = 'disabled'; |
294 | 294 | } |
295 | 295 | |
296 | - if ($pj == 0) { |
|
296 | + if ($pj==0) { |
|
297 | 297 | $disabled1 = 'disabled'; |
298 | 298 | } else { |
299 | 299 | $disabled1 = ''; |
@@ -443,11 +443,11 @@ discard block |
||
443 | 443 | |
444 | 444 | $query = mysql_query('SELECT * FROM status ORDER BY id_status'); |
445 | 445 | |
446 | - if ($query && mysql_num_rows($query) > 0) { |
|
446 | + if ($query && mysql_num_rows($query)>0) { |
|
447 | 447 | while ($row = mysql_fetch_object($query)) { |
448 | 448 | echo '<option value="'.$row->id_status.'"'; |
449 | 449 | |
450 | - if ($row->id_status == $r[status_diskon]) { |
|
450 | + if ($row->id_status==$r[status_diskon]) { |
|
451 | 451 | echo ' selected'; |
452 | 452 | } |
453 | 453 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -error_reporting(0);session_start(); |
|
2 | +error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -15,12 +15,12 @@ discard block |
||
15 | 15 | $datetime = date('Y-m-d G:i:s', $hour); |
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | - if ($module == 'approval_diskon_penjualan_barang' and $act == 'approve') { |
|
18 | + if ($module=='approval_diskon_penjualan_barang' and $act=='approve') { |
|
19 | 19 | $id_module = $_POST['id_module']; |
20 | 20 | |
21 | 21 | $jum = $_POST['jum'] - 1; |
22 | 22 | |
23 | - for ($i = 1; $i <= $jum; $i++) { |
|
23 | + for ($i = 1; $i<=$jum; $i++) { |
|
24 | 24 | $id = $_POST['id'.$i]; |
25 | 25 | $p_status = $_POST['p_status'.$i]; |
26 | 26 | $status = $_POST['status'.$i]; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $notrans = $_POST['notrans'.$i]; |
31 | 31 | $outlet = $_POST['outlet'.$i]; |
32 | 32 | |
33 | - if ($p_status == '1') { |
|
33 | + if ($p_status=='1') { |
|
34 | 34 | mysql_query("UPDATE penjualan_barang_detail |
35 | 35 | |
36 | 36 | SET disc = disc1 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -error_reporting(0);session_start(); |
|
2 | +error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | - if ($module == 'rujukan_pasien' and $act == 'update') { |
|
19 | + if ($module=='rujukan_pasien' and $act=='update') { |
|
20 | 20 | $id_module = $_POST['id_module']; |
21 | 21 | |
22 | 22 | mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs = '$_POST[rujukan_rs]' |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | - error_reporting(0);session_start(); |
|
2 | + error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM 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>'; |
@@ -132,10 +132,10 @@ discard block |
||
132 | 132 | <option>--Pilih Rujukan RS --</option> |
133 | 133 | <?php |
134 | 134 | $query = mysql_query('SELECT * FROM rujukan WHERE tipe = "R" ORDER BY rujukan'); |
135 | - if ($query && mysql_num_rows($query) > 0) { |
|
135 | + if ($query && mysql_num_rows($query)>0) { |
|
136 | 136 | while ($row = mysql_fetch_object($query)) { |
137 | 137 | echo '<option value="'.$row->id_rujukan.'"'; |
138 | - if ($row->id_rujukan == @$data->id_rujukan_rs) { |
|
138 | + if ($row->id_rujukan==@$data->id_rujukan_rs) { |
|
139 | 139 | echo ' selected'; |
140 | 140 | } |
141 | 141 | echo '>'.$row->rujukan.'</option>'; |
@@ -151,10 +151,10 @@ discard block |
||
151 | 151 | <option>--Pilih Rujukan Lab --</option> |
152 | 152 | <?php |
153 | 153 | $query = mysql_query('SELECT * FROM rujukan WHERE tipe = "L" ORDER BY rujukan'); |
154 | - if ($query && mysql_num_rows($query) > 0) { |
|
154 | + if ($query && mysql_num_rows($query)>0) { |
|
155 | 155 | while ($row = mysql_fetch_object($query)) { |
156 | 156 | echo '<option value="'.$row->id_rujukan.'"'; |
157 | - if ($row->id_rujukan == @$data->id_rujukan_lab) { |
|
157 | + if ($row->id_rujukan==@$data->id_rujukan_lab) { |
|
158 | 158 | echo ' selected'; |
159 | 159 | } |
160 | 160 | echo '>'.$row->rujukan.'</option>'; |
@@ -56,15 +56,15 @@ discard block |
||
56 | 56 | <?php |
57 | 57 | switch (isset($_GET['act']) && $_GET['act']) { |
58 | 58 | |
59 | - default: |
|
59 | + default: |
|
60 | 60 | |
61 | - $fdate = date('Y-m-01'); |
|
62 | - $ldate = date('Y-m-d'); |
|
61 | + $fdate = date('Y-m-01'); |
|
62 | + $ldate = date('Y-m-d'); |
|
63 | 63 | |
64 | - $prd = date('Y-m'); |
|
64 | + $prd = date('Y-m'); |
|
65 | 65 | |
66 | - $userid = $_SESSION['userid']; |
|
67 | - ?> |
|
66 | + $userid = $_SESSION['userid']; |
|
67 | + ?> |
|
68 | 68 | |
69 | 69 | <div class=""> |
70 | 70 | |
@@ -101,17 +101,17 @@ discard block |
||
101 | 101 | <div class="col-md-9 col-sm-9 col-xs-9 form-group"> |
102 | 102 | <select name="jenis_transaksi" class="form-control"> |
103 | 103 | <?php |
104 | - $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi'); |
|
105 | - if ($query && mysql_num_rows($query) > 0) { |
|
106 | - while ($row = mysql_fetch_object($query)) { |
|
107 | - echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
108 | - if ($row->id_jenis_transaksi == '1') { |
|
109 | - echo ' selected'; |
|
104 | + $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi'); |
|
105 | + if ($query && mysql_num_rows($query) > 0) { |
|
106 | + while ($row = mysql_fetch_object($query)) { |
|
107 | + echo '<option value="'.$row->id_jenis_transaksi.'"'; |
|
108 | + if ($row->id_jenis_transaksi == '1') { |
|
109 | + echo ' selected'; |
|
110 | + } |
|
111 | + echo '>'.$row->jenis_transaksi.'</option>'; |
|
110 | 112 | } |
111 | - echo '>'.$row->jenis_transaksi.'</option>'; |
|
112 | 113 | } |
113 | - } |
|
114 | - ?> |
|
114 | + ?> |
|
115 | 115 | </select> |
116 | 116 | </div> |
117 | 117 | |
@@ -124,30 +124,30 @@ discard block |
||
124 | 124 | <div class="col-md-9 col-sm-9 col-xs-9 form-group"> |
125 | 125 | <label class="control-label"> |
126 | 126 | <?php |
127 | - echo"<input type=radio name='printto' value='1' class='flat' checked>  Preview  </label>"; |
|
128 | - echo"<input type=radio name='printto' value='2' class='flat'>  Print</label> "; |
|
129 | - ?> |
|
127 | + echo"<input type=radio name='printto' value='1' class='flat' checked>  Preview  </label>"; |
|
128 | + echo"<input type=radio name='printto' value='2' class='flat'>  Print</label> "; |
|
129 | + ?> |
|
130 | 130 | </label> |
131 | 131 | </div> |
132 | 132 | |
133 | 133 | <?php |
134 | 134 | |
135 | - $module = '?module='.$_GET['module']; |
|
136 | - $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
137 | - $r = mysql_fetch_array($tampil); |
|
135 | + $module = '?module='.$_GET['module']; |
|
136 | + $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'"); |
|
137 | + $r = mysql_fetch_array($tampil); |
|
138 | 138 | |
139 | - echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>'; |
|
140 | - echo"<input type='hidden' name='module' value=".$_GET[module].'>'; |
|
141 | - ?> |
|
139 | + echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>'; |
|
140 | + echo"<input type='hidden' name='module' value=".$_GET[module].'>'; |
|
141 | + ?> |
|
142 | 142 | </form> |
143 | 143 | |
144 | 144 | </div> |
145 | 145 | <?php for ($i = 0; $i <= 20; $i++) { |
146 | - ?> |
|
147 | - <br /> |
|
148 | - <?php |
|
149 | - } |
|
150 | 146 | ?> |
147 | + <br /> |
|
148 | + <?php |
|
149 | + } |
|
150 | + ?> |
|
151 | 151 | </div> |
152 | 152 | |
153 | 153 |
@@ -102,10 +102,10 @@ discard block |
||
102 | 102 | <select name="jenis_transaksi" class="form-control"> |
103 | 103 | <?php |
104 | 104 | $query = mysql_query('SELECT * FROM jenis_transaksi ORDER BY id_jenis_transaksi'); |
105 | - if ($query && mysql_num_rows($query) > 0) { |
|
105 | + if ($query && mysql_num_rows($query)>0) { |
|
106 | 106 | while ($row = mysql_fetch_object($query)) { |
107 | 107 | echo '<option value="'.$row->id_jenis_transaksi.'"'; |
108 | - if ($row->id_jenis_transaksi == '1') { |
|
108 | + if ($row->id_jenis_transaksi=='1') { |
|
109 | 109 | echo ' selected'; |
110 | 110 | } |
111 | 111 | echo '>'.$row->jenis_transaksi.'</option>'; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | </form> |
143 | 143 | |
144 | 144 | </div> |
145 | - <?php for ($i = 0; $i <= 20; $i++) { |
|
145 | + <?php for ($i = 0; $i<=20; $i++) { |
|
146 | 146 | ?> |
147 | 147 | <br /> |
148 | 148 | <?php |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | while ($r = mysql_fetch_array($tampil)) { |
57 | 57 | $jumlah = number_format($r['jumlah'], 0, '', '.'); |
58 | - $kadaluwarsa = ($r['kadaluwarsa'] != '') ? date('d/m/Y', strtotime($r['kadaluwarsa'])) : '-'; |
|
58 | + $kadaluwarsa = ($r['kadaluwarsa']!='') ? date('d/m/Y', strtotime($r['kadaluwarsa'])) : '-'; |
|
59 | 59 | |
60 | 60 | echo'<tr>'; |
61 | 61 | echo"<td>$r[obat]</td>"; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
66 | 66 | echo" <td style='text-align:center;'>"; |
67 | 67 | |
68 | - if ($r_edit == 'Y') { |
|
68 | + if ($r_edit=='Y') { |
|
69 | 69 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_obat=$r[id_obat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
70 | 70 | } |
71 | 71 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -error_reporting(0);session_start(); |
|
2 | +error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | 19 | // Hapus modul |
20 | - if ($module == 'obat' and $act == 'hapus') { |
|
20 | + if ($module=='obat' 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 == 'obat' and $act == 'input') { |
|
37 | + elseif ($module=='obat' and $act=='input') { |
|
38 | 38 | $id_module = $_POST['id_module']; |
39 | 39 | |
40 | 40 | if ($_POST['ID']) { |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | - error_reporting(0);session_start(); |
|
2 | + error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM obat WHERE id_obat = "'.$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'); |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | <select name="satuan" class="form-control"> |
85 | 85 | <?php |
86 | 86 | $query = mysql_query('SELECT * FROM satuan ORDER BY satuan'); |
87 | - if ($query && mysql_num_rows($query) > 0) { |
|
87 | + if ($query && mysql_num_rows($query)>0) { |
|
88 | 88 | while ($row = mysql_fetch_object($query)) { |
89 | 89 | echo '<option value="'.$row->id_satuan.'"'; |
90 | - if ($row->id_satuan == @$data->id_satuan) { |
|
90 | + if ($row->id_satuan==@$data->id_satuan) { |
|
91 | 91 | echo ' selected'; |
92 | 92 | } |
93 | 93 | echo '>'.$row->satuan.'</option>'; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | <?php if ($id) { |
117 | 117 | ?> |
118 | 118 | |
119 | - <?php if (@$data->aktif == 'Y') { |
|
119 | + <?php if (@$data->aktif=='Y') { |
|
120 | 120 | ?> |
121 | 121 | |
122 | 122 | <div class="form-group"> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | - error_reporting(0);session_start(); |
|
2 | + error_reporting(0); session_start(); |
|
3 | 3 | if (empty($_SESSION['username']) and empty($_SESSION['password'])) { |
4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>"; |
5 | 5 | } else { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM 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"> |