@@ -16,7 +16,7 @@ |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | - if ($module == 'rujukan_pasien' and $act == 'update') { |
|
19 | + if ($module=='rujukan_pasien' and $act=='update') { |
|
20 | 20 | $id_module = $_POST['id_module']; |
21 | 21 | |
22 | 22 | mysql_query("UPDATE kunjungan_berobat SET id_rujukan_rs = '$_POST[rujukan_rs]' |
@@ -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'; |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | <!--<body onload="cetakspk()">--> |
137 | 137 | |
138 | -<?php if ($_GET['printto'] == '2') { |
|
138 | +<?php if ($_GET['printto']=='2') { |
|
139 | 139 | ?> |
140 | 140 | <body onload="icetak()"> |
141 | 141 | <?php |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | while ($r = mysql_fetch_array($tampil)) { |
227 | 227 | $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
228 | 228 | |
229 | - if ($r['gender'] == 'L') { |
|
229 | + if ($r['gender']=='L') { |
|
230 | 230 | $gender = 'Laki-laki'; |
231 | 231 | } else { |
232 | 232 | $gender = 'Perempuan'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | 19 | // Hapus modul |
20 | - if ($module == 'groups' and $act == 'hapus') { |
|
20 | + if ($module=='groups' and $act=='hapus') { |
|
21 | 21 | $id = $_GET['id']; |
22 | 22 | $id_module = $_GET['id_module']; |
23 | 23 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | // Input group |
37 | - elseif ($module == 'groups' and $act == 'input') { |
|
37 | + elseif ($module=='groups' and $act=='input') { |
|
38 | 38 | $id_module = $_POST['id_module']; |
39 | 39 | |
40 | 40 | if ($_POST['ID']) { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | $business_type = $_SESSION['business_type']; |
18 | 18 | |
19 | - if ($module == 'rekam_medis' and $act == 'update') { |
|
19 | + if ($module=='rekam_medis' and $act=='update') { |
|
20 | 20 | $id_module = $_POST['id_module']; |
21 | 21 | |
22 | 22 | mysql_query("UPDATE kunjungan_berobat SET keluhan = '$_POST[keluhan]' |
@@ -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'; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | <!--<body onload="cetakspk()">--> |
142 | 142 | |
143 | -<?php if ($_GET['printto'] == '2') { |
|
143 | +<?php if ($_GET['printto']=='2') { |
|
144 | 144 | ?> |
145 | 145 | <body onload="icetak()"> |
146 | 146 | <?php |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
209 | 209 | |
210 | -if ($r['gender'] == 'L') { |
|
210 | +if ($r['gender']=='L') { |
|
211 | 211 | $gender = 'Laki-laki'; |
212 | 212 | } else { |
213 | 213 | $gender = 'Perempuan'; |
@@ -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']) { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'"); |
195 | 195 | $r = mysql_fetch_array($tampil); |
196 | 196 | |
197 | - if ($r[orientation] == 'P') { |
|
197 | + if ($r[orientation]=='P') { |
|
198 | 198 | ?> |
199 | 199 | |
200 | 200 | <SCRIPT TYPE="text/javascript"> |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | </SCRIPT> |
211 | 211 | |
212 | 212 | <?php |
213 | - } elseif ($r[orientation] == 'A') { |
|
213 | + } elseif ($r[orientation]=='A') { |
|
214 | 214 | ?> |
215 | 215 | |
216 | 216 | <SCRIPT TYPE="text/javascript"> |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $r = mysql_fetch_array($login); |
23 | 23 | |
24 | 24 | // Apabila userid dan password ditemukan |
25 | -if ($find > 0) { |
|
25 | +if ($find>0) { |
|
26 | 26 | session_start(); |
27 | 27 | //session_register("userid"); |
28 | 28 | // session_register("username"); |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | { |
4 | 4 | echo "<select name=$var>"; |
5 | 5 | echo "<option value=0 selected>$default</option>"; |
6 | - for ($i = $awal; $i <= $akhir; $i++) { |
|
6 | + for ($i = $awal; $i<=$akhir; $i++) { |
|
7 | 7 | echo "<option value=$i>$i</option>"; |
8 | 8 | } |
9 | 9 | echo '</select> '; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | include '../config/library.php'; |
15 | 15 | echo "<select name=$var>"; |
16 | 16 | echo "<option value=0 selected>$default</option>"; |
17 | - for ($bln = $awal; $bln <= $akhir; $bln++) { |
|
17 | + for ($bln = $awal; $bln<=$akhir; $bln++) { |
|
18 | 18 | echo "<option value=$bln>$nama_bln[$bln]</option>"; |
19 | 19 | } |
20 | 20 | echo '</select> '; |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | function combotgl2($awal, $akhir, $var, $terpilih) |
24 | 24 | { |
25 | 25 | echo "<select name=$var class='tselect_tgl'>"; |
26 | - for ($i = $awal; $i <= $akhir; $i++) { |
|
27 | - if ($i == $terpilih) { |
|
26 | + for ($i = $awal; $i<=$akhir; $i++) { |
|
27 | + if ($i==$terpilih) { |
|
28 | 28 | echo "<option value=$i selected>$i</option>"; |
29 | 29 | } else { |
30 | 30 | echo "<option value=$i>$i</option>"; |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | { |
38 | 38 | include '../config/library.php'; |
39 | 39 | echo "<select name=$var class='tselect_bln'>"; |
40 | - for ($bln = $awal; $bln <= $akhir; $bln++) { |
|
41 | - if ($bln == $terpilih) { |
|
40 | + for ($bln = $awal; $bln<=$akhir; $bln++) { |
|
41 | + if ($bln==$terpilih) { |
|
42 | 42 | echo "<option value=$bln selected>$nama_bln[$bln]</option>"; |
43 | 43 | } else { |
44 | 44 | echo "<option value=$bln>$nama_bln[$bln]</option>"; |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | function combothn($awal, $akhir, $var, $terpilih) |
51 | 51 | { |
52 | 52 | echo "<select name=$var class='tselect_thn'>"; |
53 | - for ($i = $awal; $i <= $akhir; $i++) { |
|
54 | - if ($i == $terpilih) { |
|
53 | + for ($i = $awal; $i<=$akhir; $i++) { |
|
54 | + if ($i==$terpilih) { |
|
55 | 55 | echo "<option value=$i selected>$i</option>"; |
56 | 56 | } else { |
57 | 57 | echo "<option value=$i>$i</option>"; |