@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
389 | 389 | |
390 | -if ($r['gender'] == 'L') { |
|
390 | +if ($r['gender']=='L') { |
|
391 | 391 | $gender = 'Laki-laki'; |
392 | 392 | } else { |
393 | 393 | $gender = 'Perempuan'; |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | <tr> |
415 | 415 | <td width='30%'>Kategori Pasien</td> |
416 | 416 | <td width='1%'>:</td> |
417 | - <td><?=$r['kategori'];?></td> |
|
417 | + <td><?=$r['kategori']; ?></td> |
|
418 | 418 | </tr> |
419 | 419 | </table> |
420 | 420 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | // Hapus modul |
19 | - if ($module == 'rujukan' and $act == 'hapus') { |
|
19 | + if ($module=='rujukan' and $act=='hapus') { |
|
20 | 20 | $id = $_GET['id']; |
21 | 21 | $id_module = $_GET['id_module']; |
22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | // Input group |
36 | - elseif ($module == 'rujukan' and $act == 'input') { |
|
36 | + elseif ($module=='rujukan' and $act=='input') { |
|
37 | 37 | $id_module = $_POST['id_module']; |
38 | 38 | |
39 | 39 | if ($_POST['ID']) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM rujukan WHERE id_rujukan = "'.$id.'"'); |
47 | - if ($query && mysql_num_rows($query) == 1) { |
|
47 | + if ($query && mysql_num_rows($query)==1) { |
|
48 | 48 | $data = mysql_fetch_object($query); |
49 | 49 | } else { |
50 | 50 | die('Data modul tidak ditemukan'); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <?php if ($id) { |
74 | 74 | ?> |
75 | 75 | |
76 | - <?php if (@$data->tipe == 'R') { |
|
76 | + <?php if (@$data->tipe=='R') { |
|
77 | 77 | ?> |
78 | 78 | |
79 | 79 | <div class="form-group"> |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | <?php if ($id) { |
126 | 126 | ?> |
127 | 127 | |
128 | - <?php if (@$data->aktif == 'Y') { |
|
128 | + <?php if (@$data->aktif=='Y') { |
|
129 | 129 | ?> |
130 | 130 | |
131 | 131 | <div class="form-group"> |
@@ -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]' |
@@ -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>'; |
@@ -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'; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | <!--<body onload="cetakspk()">--> |
141 | 141 | |
142 | -<?php if ($_GET['printto'] == '2') { |
|
142 | +<?php if ($_GET['printto']=='2') { |
|
143 | 143 | ?> |
144 | 144 | <body onload="icetak()"> |
145 | 145 | <?php |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $userid = $_SESSION['userid']; |
17 | 17 | |
18 | 18 | // Hapus modul |
19 | - if ($module == 'modul' and $act == 'hapus') { |
|
19 | + if ($module=='modul' and $act=='hapus') { |
|
20 | 20 | $id_module = $_GET['id_module']; |
21 | 21 | $id = $_GET['id']; |
22 | 22 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | // Input modul |
29 | - elseif ($module == 'modul' and $act == 'input') { |
|
30 | - if ($_POST['is_form'] == 'Y') { |
|
29 | + elseif ($module=='modul' and $act=='input') { |
|
30 | + if ($_POST['is_form']=='Y') { |
|
31 | 31 | $link = $_POST['link']; |
32 | 32 | } else { |
33 | 33 | if ($_POST['link']) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | </script> |
81 | 81 | |
82 | 82 | <?php |
83 | - } elseif ($module == 'modul' and $act == 'hapusmod') { |
|
83 | + } elseif ($module=='modul' and $act=='hapusmod') { |
|
84 | 84 | // membaca ID dari data yang akan dihapus |
85 | 85 | $id = $_GET['id']; |
86 | 86 | $id_module = $_GET['id_module']; |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | </script> |
104 | 104 | |
105 | 105 | <?php |
106 | - } elseif ($module == 'modul' and $act == 'subinput') { |
|
107 | - if ($_POST['is_form'] == 'Y') { |
|
106 | + } elseif ($module=='modul' and $act=='subinput') { |
|
107 | + if ($_POST['is_form']=='Y') { |
|
108 | 108 | $link = $_POST['link']; |
109 | 109 | } else { |
110 | 110 | if ($_POST['link']) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM modul WHERE id_modul = "'.$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'); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | <?php if ($id) { |
97 | 97 | ?> |
98 | 98 | |
99 | - <?php if (@$data->is_form == 'Y') { |
|
99 | + <?php if (@$data->is_form=='Y') { |
|
100 | 100 | ?> |
101 | 101 | |
102 | 102 | <div class="form-group"> |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | <?php if ($id) { |
140 | 140 | ?> |
141 | 141 | |
142 | - <?php if (@$data->is_report == 'Y') { |
|
142 | + <?php if (@$data->is_report=='Y') { |
|
143 | 143 | ?> |
144 | 144 | |
145 | 145 | <div class="form-group"> |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | <?php if ($id) { |
193 | 193 | ?> |
194 | 194 | |
195 | - <?php if (@$data->aktif == 'Y') { |
|
195 | + <?php if (@$data->aktif=='Y') { |
|
196 | 196 | ?> |
197 | 197 | |
198 | 198 | <div class="form-group"> |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | if ($id) { |
46 | 46 | $query = mysql_query('SELECT * FROM modul WHERE id_modul = "'.$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'); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | <?php if ($id) { |
94 | 94 | ?> |
95 | 95 | |
96 | - <?php if (@$data->is_form == 'Y') { |
|
96 | + <?php if (@$data->is_form=='Y') { |
|
97 | 97 | ?> |
98 | 98 | <div class="form-group"> |
99 | 99 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Is Form :</label> |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | <?php if ($id) { |
143 | 143 | ?> |
144 | 144 | |
145 | - <?php if (@$data->aktif == 'Y') { |
|
145 | + <?php if (@$data->aktif=='Y') { |
|
146 | 146 | ?> |
147 | 147 | <div class="form-group"> |
148 | 148 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |