@@ -121,7 +121,7 @@ |
||
| 121 | 121 | <select name="groups" class="form-control" required > |
| 122 | 122 | <option value=''></option> |
| 123 | 123 | <?php |
| 124 | - $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
| 124 | + $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
|
| 125 | 125 | if ($query && mysql_num_rows($query) > 0) { |
| 126 | 126 | while ($row = mysql_fetch_object($query)) { |
| 127 | 127 | echo '<option value="'.$row->id_groups.'"'; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | if ($id) { |
| 63 | 63 | $query = mysql_query('SELECT * FROM user WHERE id_user = "'.$id.'"'); |
| 64 | - if ($query && mysql_num_rows($query) == 1) { |
|
| 64 | + if ($query && mysql_num_rows($query)==1) { |
|
| 65 | 65 | $data = mysql_fetch_object($query); |
| 66 | 66 | } else { |
| 67 | 67 | die('Data user tidak ditemukan'); |
@@ -122,10 +122,10 @@ discard block |
||
| 122 | 122 | <option value=''></option> |
| 123 | 123 | <?php |
| 124 | 124 | $query = mysql_query('SELECT * FROM groups ORDER BY groups'); |
| 125 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 125 | + if ($query && mysql_num_rows($query)>0) { |
|
| 126 | 126 | while ($row = mysql_fetch_object($query)) { |
| 127 | 127 | echo '<option value="'.$row->id_groups.'"'; |
| 128 | - if ($row->id_groups == @$data->id_groups) { |
|
| 128 | + if ($row->id_groups==@$data->id_groups) { |
|
| 129 | 129 | echo ' selected'; |
| 130 | 130 | } |
| 131 | 131 | echo '>'.$row->groups.'</option>'; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | <?php if ($data->id_user) { |
| 143 | 143 | ?> |
| 144 | 144 | |
| 145 | - <?php if ($data->r_input == 'Y') { |
|
| 145 | + <?php if ($data->r_input=='Y') { |
|
| 146 | 146 | ?> |
| 147 | 147 | <input checked type='checkbox' class='flat' value='Y' name='r_input' > <label>Input</label> |
| 148 | 148 | <?php |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | <?php |
| 153 | 153 | } ?> |
| 154 | 154 | |
| 155 | - <?php if ($data->r_edit == 'Y') { |
|
| 155 | + <?php if ($data->r_edit=='Y') { |
|
| 156 | 156 | ?> |
| 157 | 157 | <input checked type='checkbox' class='flat' value='Y' name='r_edit' > <label>Edit</label> |
| 158 | 158 | <?php |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | <?php |
| 163 | 163 | } ?> |
| 164 | 164 | |
| 165 | - <?php if ($data->r_delete == 'Y') { |
|
| 165 | + <?php if ($data->r_delete=='Y') { |
|
| 166 | 166 | ?> |
| 167 | 167 | <input checked type='checkbox' class='flat' value='Y' name='r_delete' > <label>Delete</label> |
| 168 | 168 | <?php |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | <?php if ($id) { |
| 188 | 188 | ?> |
| 189 | 189 | |
| 190 | - <?php if (@$data->aktif == 'Y') { |
|
| 190 | + <?php if (@$data->aktif=='Y') { |
|
| 191 | 191 | ?> |
| 192 | 192 | |
| 193 | 193 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Aktif :</label> |
@@ -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"> |