@@ -143,10 +143,10 @@ discard block |
||
| 143 | 143 | <select name="agama" class="form-control"> |
| 144 | 144 | <?php |
| 145 | 145 | $query = mysql_query('SELECT * FROM agama ORDER BY agama'); |
| 146 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 146 | + if ($query && mysql_num_rows($query)>0) { |
|
| 147 | 147 | while ($row = mysql_fetch_object($query)) { |
| 148 | 148 | echo '<option value="'.$row->id_agama.'"'; |
| 149 | - if ($row->id_agama == @$data->id_agama) { |
|
| 149 | + if ($row->id_agama==@$data->id_agama) { |
|
| 150 | 150 | echo ' selected'; |
| 151 | 151 | } |
| 152 | 152 | echo '>'.$row->agama.'</option>'; |
@@ -161,10 +161,10 @@ discard block |
||
| 161 | 161 | <select name="kategori" class="form-control"> |
| 162 | 162 | <?php |
| 163 | 163 | $query = mysql_query('SELECT * FROM kategori ORDER BY kategori'); |
| 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_kategori.'"'; |
| 167 | - if ($row->id_kategori == @$data->id_kategori) { |
|
| 167 | + if ($row->id_kategori==@$data->id_kategori) { |
|
| 168 | 168 | echo ' selected'; |
| 169 | 169 | } |
| 170 | 170 | echo '>'.$row->kategori.'</option>'; |
@@ -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>'; |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | <select name="tipe" class="form-control"> |
| 44 | 44 | <option value='%'>Semua</option> |
| 45 | 45 | |
| 46 | - <?php for ($x = 'A'; $x <= 'Z'; $x++) { |
|
| 46 | + <?php for ($x = 'A'; $x<='Z'; $x++) { |
|
| 47 | 47 | ?> |
| 48 | 48 | <option value= '<?=$x; ?>'><?=$x; ?></option> |
| 49 | 49 | <?php |
@@ -101,12 +101,12 @@ discard block |
||
| 101 | 101 | <option>--Pilih Pasien--</option> |
| 102 | 102 | <?php |
| 103 | 103 | $query = mysql_query('SELECT * FROM pasien ORDER BY nama'); |
| 104 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 104 | + if ($query && mysql_num_rows($query)>0) { |
|
| 105 | 105 | while ($row = mysql_fetch_object($query)) { |
| 106 | 106 | $pasien = $row->ktp.'-'.$row->nama; |
| 107 | 107 | |
| 108 | 108 | echo '<option value="'.$row->id_pasien.'"'; |
| 109 | - if ($row->id_pasien == @$data->id_pasien) { |
|
| 109 | + if ($row->id_pasien==@$data->id_pasien) { |
|
| 110 | 110 | echo ' selected'; |
| 111 | 111 | } |
| 112 | 112 | echo '>'.$pasien.'</option>'; |
@@ -128,10 +128,10 @@ discard block |
||
| 128 | 128 | <option>--Pilih Poliklinik --</option> |
| 129 | 129 | <?php |
| 130 | 130 | $query = mysql_query('SELECT * FROM poli ORDER BY poli'); |
| 131 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 131 | + if ($query && mysql_num_rows($query)>0) { |
|
| 132 | 132 | while ($row = mysql_fetch_object($query)) { |
| 133 | 133 | echo '<option value="'.$row->id_poli.'"'; |
| 134 | - if ($row->id_poli == @$data->id_poli) { |
|
| 134 | + if ($row->id_poli==@$data->id_poli) { |
|
| 135 | 135 | echo ' selected'; |
| 136 | 136 | } |
| 137 | 137 | echo '>'.$row->poli.'</option>'; |
@@ -191,10 +191,10 @@ discard block |
||
| 191 | 191 | <option value='0'></option> |
| 192 | 192 | <?php |
| 193 | 193 | $query = mysql_query('SELECT * FROM obat ORDER BY obat'); |
| 194 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 194 | + if ($query && mysql_num_rows($query)>0) { |
|
| 195 | 195 | while ($row = mysql_fetch_object($query)) { |
| 196 | 196 | echo '<option value="'.$row->id_obat.'"'; |
| 197 | - if ($row->id_obat == @$r['id_obat']) { |
|
| 197 | + if ($row->id_obat==@$r['id_obat']) { |
|
| 198 | 198 | echo ' selected'; |
| 199 | 199 | } |
| 200 | 200 | echo '>'.$row->obat.'</option>'; |
@@ -263,10 +263,10 @@ discard block |
||
| 263 | 263 | <option value='0'></option> |
| 264 | 264 | <?php |
| 265 | 265 | $query = mysql_query('SELECT * FROM obat ORDER BY obat'); |
| 266 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 266 | + if ($query && mysql_num_rows($query)>0) { |
|
| 267 | 267 | while ($row = mysql_fetch_object($query)) { |
| 268 | 268 | echo '<option value="'.$row->id_obat.'"'; |
| 269 | - if ($row->id_obat == @$r['id_obat']) { |
|
| 269 | + if ($row->id_obat==@$r['id_obat']) { |
|
| 270 | 270 | echo ' selected'; |
| 271 | 271 | } |
| 272 | 272 | echo '>'.$row->obat.'</option>'; |
@@ -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>'; |
@@ -94,12 +94,12 @@ |
||
| 94 | 94 | <option>--Pilih Pasien--</option> |
| 95 | 95 | <?php |
| 96 | 96 | $query = mysql_query('SELECT * FROM pasien ORDER BY nama'); |
| 97 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 97 | + if ($query && mysql_num_rows($query)>0) { |
|
| 98 | 98 | while ($row = mysql_fetch_object($query)) { |
| 99 | 99 | $pasien = $row->ktp.'-'.$row->nama; |
| 100 | 100 | |
| 101 | 101 | echo '<option value="'.$row->id_pasien.'"'; |
| 102 | - if ($row->id_pasien == @$data->id_pasien) { |
|
| 102 | + if ($row->id_pasien==@$data->id_pasien) { |
|
| 103 | 103 | echo ' selected'; |
| 104 | 104 | } |
| 105 | 105 | echo '>'.$pasien.'</option>'; |
@@ -2,18 +2,18 @@ |
||
| 2 | 2 | <?php |
| 3 | 3 | switch ($_GET[act]) { |
| 4 | 4 | |
| 5 | -default: |
|
| 5 | + default: |
|
| 6 | 6 | |
| 7 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 8 | - $g = mysql_fetch_array($gtampil); |
|
| 7 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 8 | + $g = mysql_fetch_array($gtampil); |
|
| 9 | 9 | |
| 10 | -if ($g['pict']) { |
|
| 11 | - $pict = $g['pict']; |
|
| 10 | + if ($g['pict']) { |
|
| 11 | + $pict = $g['pict']; |
|
| 12 | 12 | } else { |
| 13 | - $pict = ''; |
|
| 13 | + $pict = ''; |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | -?> |
|
| 16 | + ?> |
|
| 17 | 17 | <div class="col-md-12 col-sm-12 col-xs-12 center-block"> |
| 18 | 18 | <div class="x_panel"> |
| 19 | 19 | <div class="x_title"> |
@@ -2,18 +2,18 @@ |
||
| 2 | 2 | <?php |
| 3 | 3 | switch ($_GET[act]) { |
| 4 | 4 | |
| 5 | -default: |
|
| 5 | + default: |
|
| 6 | 6 | |
| 7 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 8 | - $g = mysql_fetch_array($gtampil); |
|
| 7 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 8 | + $g = mysql_fetch_array($gtampil); |
|
| 9 | 9 | |
| 10 | -if ($g['pict']) { |
|
| 11 | - $pict = $g['pict']; |
|
| 10 | + if ($g['pict']) { |
|
| 11 | + $pict = $g['pict']; |
|
| 12 | 12 | } else { |
| 13 | - $pict = ''; |
|
| 13 | + $pict = ''; |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | -?> |
|
| 16 | + ?> |
|
| 17 | 17 | <div class="col-md-12 col-sm-12 col-xs-12 "> |
| 18 | 18 | <div class="x_panel"> |
| 19 | 19 | <div class="x_title"> |
@@ -120,10 +120,10 @@ discard block |
||
| 120 | 120 | <option value="">--------- Room Type ---------</option> |
| 121 | 121 | <?php |
| 122 | 122 | $query = mysql_query('SELECT * FROM room_type ORDER BY room_type'); |
| 123 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 123 | + if ($query && mysql_num_rows($query)>0) { |
|
| 124 | 124 | while ($row = mysql_fetch_object($query)) { |
| 125 | 125 | echo '<option value="'.$row->id_room_type.'"'; |
| 126 | - if ($row->id_room_type == $_GET['room_type']) { |
|
| 126 | + if ($row->id_room_type==$_GET['room_type']) { |
|
| 127 | 127 | echo ' selected'; |
| 128 | 128 | } |
| 129 | 129 | echo '>'.$row->room_type.'</option>'; |
@@ -286,9 +286,9 @@ discard block |
||
| 286 | 286 | echo'<tr>'; |
| 287 | 287 | echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type'].'</td>'; |
| 288 | 288 | |
| 289 | - if ($lmonth == $fmonth and $lyear == $fyear) { |
|
| 290 | - for ($i = $fday; $i <= $lday; $i++) { |
|
| 291 | - if (strlen($i) == '1') { |
|
| 289 | + if ($lmonth==$fmonth and $lyear==$fyear) { |
|
| 290 | + for ($i = $fday; $i<=$lday; $i++) { |
|
| 291 | + if (strlen($i)=='1') { |
|
| 292 | 292 | $tgl = '0'.$i; |
| 293 | 293 | } else { |
| 294 | 294 | $tgl = $i; |
@@ -300,8 +300,8 @@ discard block |
||
| 300 | 300 | </td>"; |
| 301 | 301 | } |
| 302 | 302 | } else { |
| 303 | - for ($i = $fday; $i <= $f_lastday; $i++) { |
|
| 304 | - if (strlen($i) == '1') { |
|
| 303 | + for ($i = $fday; $i<=$f_lastday; $i++) { |
|
| 304 | + if (strlen($i)=='1') { |
|
| 305 | 305 | $tgl = '0'.$i; |
| 306 | 306 | } else { |
| 307 | 307 | $tgl = $i; |
@@ -315,8 +315,8 @@ discard block |
||
| 315 | 315 | </td>"; |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - for ($i = 1; $i <= $lday; $i++) { |
|
| 319 | - if (strlen($i) == '1') { |
|
| 318 | + for ($i = 1; $i<=$lday; $i++) { |
|
| 319 | + if (strlen($i)=='1') { |
|
| 320 | 320 | $tgl = '0'.$i; |
| 321 | 321 | } else { |
| 322 | 322 | $tgl = $i; |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | while ($r = mysql_fetch_array($room)) { |
| 342 | 342 | $aktif = $r['aktif']; |
| 343 | 343 | |
| 344 | - if (($no % 2) == 0) { |
|
| 344 | + if (($no % 2)==0) { |
|
| 345 | 345 | $sty = 'ftd'; |
| 346 | 346 | } else { |
| 347 | 347 | $sty = 'ltd'; |
@@ -352,9 +352,9 @@ discard block |
||
| 352 | 352 | echo'<tr>'; |
| 353 | 353 | echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no'].'</td>'; |
| 354 | 354 | |
| 355 | - if ($lmonth == $fmonth and $lyear == $fyear) { |
|
| 356 | - for ($i = $fday; $i <= $lday; $i++) { |
|
| 357 | - if (strlen($i) == '1') { |
|
| 355 | + if ($lmonth==$fmonth and $lyear==$fyear) { |
|
| 356 | + for ($i = $fday; $i<=$lday; $i++) { |
|
| 357 | + if (strlen($i)=='1') { |
|
| 358 | 358 | $tgl = '0'.$i; |
| 359 | 359 | } else { |
| 360 | 360 | $tgl = $i; |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | |
| 365 | 365 | echo"<td class=$sty style='padding:0;'>"; |
| 366 | 366 | |
| 367 | - if ($aktif == 'T') { |
|
| 367 | + if ($aktif=='T') { |
|
| 368 | 368 | echo" |
| 369 | 369 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
| 370 | 370 | "; |
@@ -434,15 +434,15 @@ discard block |
||
| 434 | 434 | $legend = $c['legend']; |
| 435 | 435 | $status = $c['status']; |
| 436 | 436 | |
| 437 | - if ($status == 0) { |
|
| 437 | + if ($status==0) { |
|
| 438 | 438 | $icolor = '#fff'; |
| 439 | 439 | } else { |
| 440 | 440 | $icolor = '#fff'; |
| 441 | 441 | } |
| 442 | 442 | |
| 443 | - if ($status == 0) { |
|
| 443 | + if ($status==0) { |
|
| 444 | 444 | $istatus = 'Reserved'; |
| 445 | - } elseif ($status == 1) { |
|
| 445 | + } elseif ($status==1) { |
|
| 446 | 446 | $istatus = 'Check In'; |
| 447 | 447 | } else { |
| 448 | 448 | $istatus = 'Check Out'; |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | |
| 451 | 451 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
| 452 | 452 | |
| 453 | - if ($c['initial'] == 'Mr ') { |
|
| 453 | + if ($c['initial']=='Mr ') { |
|
| 454 | 454 | $icon = 'fa fa-male'; |
| 455 | 455 | } else { |
| 456 | 456 | $icon = 'fa fa-female'; |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | |
| 461 | 461 | //if ($jml == '1') { |
| 462 | 462 | |
| 463 | - if ($ljml == '0' and $jml == '1' and $njml == '1') { |
|
| 463 | + if ($ljml=='0' and $jml=='1' and $njml=='1') { |
|
| 464 | 464 | echo"<td width='50%'> |
| 465 | 465 | </td>"; |
| 466 | 466 | } |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | } |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | - if ($ljml != '0' and $jml == '1') { |
|
| 480 | + if ($ljml!='0' and $jml=='1') { |
|
| 481 | 481 | echo"<td width='50%'> |
| 482 | 482 | </td>"; |
| 483 | 483 | } |
@@ -489,8 +489,8 @@ discard block |
||
| 489 | 489 | echo'</td>'; |
| 490 | 490 | } |
| 491 | 491 | } else { |
| 492 | - for ($i = $fday; $i <= $f_lastday; $i++) { |
|
| 493 | - if (strlen($i) == '1') { |
|
| 492 | + for ($i = $fday; $i<=$f_lastday; $i++) { |
|
| 493 | + if (strlen($i)=='1') { |
|
| 494 | 494 | $tgl = '0'.$i; |
| 495 | 495 | } else { |
| 496 | 496 | $tgl = $i; |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | |
| 501 | 501 | echo"<td class=$sty style='padding:0;'>"; |
| 502 | 502 | |
| 503 | - if ($aktif == 'T') { |
|
| 503 | + if ($aktif=='T') { |
|
| 504 | 504 | echo" |
| 505 | 505 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
| 506 | 506 | "; |
@@ -532,15 +532,15 @@ discard block |
||
| 532 | 532 | $legend = $c['legend']; |
| 533 | 533 | $status = $c['status']; |
| 534 | 534 | |
| 535 | - if ($status == 0) { |
|
| 535 | + if ($status==0) { |
|
| 536 | 536 | $icolor = '#fff'; |
| 537 | 537 | } else { |
| 538 | 538 | $icolor = '#fff'; |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | - if ($status == 0) { |
|
| 541 | + if ($status==0) { |
|
| 542 | 542 | $istatus = 'Reserved'; |
| 543 | - } elseif ($status == 1) { |
|
| 543 | + } elseif ($status==1) { |
|
| 544 | 544 | $istatus = 'Check In'; |
| 545 | 545 | } else { |
| 546 | 546 | $istatus = 'Check Out'; |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | |
| 549 | 549 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
| 550 | 550 | |
| 551 | - if ($c['initial'] == 'Mr ') { |
|
| 551 | + if ($c['initial']=='Mr ') { |
|
| 552 | 552 | $icon = 'fa fa-male'; |
| 553 | 553 | } else { |
| 554 | 554 | $icon = 'fa fa-female'; |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | } |
| 567 | 567 | } |
| 568 | 568 | |
| 569 | - if ($jml == '1') { |
|
| 569 | + if ($jml=='1') { |
|
| 570 | 570 | echo"<td width='50%'> |
| 571 | 571 | </td>"; |
| 572 | 572 | } |
@@ -576,8 +576,8 @@ discard block |
||
| 576 | 576 | echo'</td>'; |
| 577 | 577 | } |
| 578 | 578 | |
| 579 | - for ($i = 1; $i <= $lday; $i++) { |
|
| 580 | - if (strlen($i) == '1') { |
|
| 579 | + for ($i = 1; $i<=$lday; $i++) { |
|
| 580 | + if (strlen($i)=='1') { |
|
| 581 | 581 | $tgl = '0'.$i; |
| 582 | 582 | } else { |
| 583 | 583 | $tgl = $i; |
@@ -587,7 +587,7 @@ discard block |
||
| 587 | 587 | |
| 588 | 588 | echo"<td class=$sty style='padding:0;'>"; |
| 589 | 589 | |
| 590 | - if ($aktif == 'T') { |
|
| 590 | + if ($aktif=='T') { |
|
| 591 | 591 | echo" |
| 592 | 592 | <i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i> |
| 593 | 593 | "; |
@@ -619,15 +619,15 @@ discard block |
||
| 619 | 619 | $legend = $c['legend']; |
| 620 | 620 | $status = $c['status']; |
| 621 | 621 | |
| 622 | - if ($status == 0) { |
|
| 622 | + if ($status==0) { |
|
| 623 | 623 | $icolor = '#fff'; |
| 624 | 624 | } else { |
| 625 | 625 | $icolor = '#fff'; |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | - if ($status == 0) { |
|
| 628 | + if ($status==0) { |
|
| 629 | 629 | $istatus = 'Reserved'; |
| 630 | - } elseif ($status == 1) { |
|
| 630 | + } elseif ($status==1) { |
|
| 631 | 631 | $istatus = 'Check In'; |
| 632 | 632 | } else { |
| 633 | 633 | $istatus = 'Check Out'; |
@@ -635,7 +635,7 @@ discard block |
||
| 635 | 635 | |
| 636 | 636 | $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus; |
| 637 | 637 | |
| 638 | - if ($c['initial'] == 'Mr ') { |
|
| 638 | + if ($c['initial']=='Mr ') { |
|
| 639 | 639 | $icon = 'fa fa-male'; |
| 640 | 640 | } else { |
| 641 | 641 | $icon = 'fa fa-female'; |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | } |
| 654 | 654 | } |
| 655 | 655 | |
| 656 | - if ($jml == '1') { |
|
| 656 | + if ($jml=='1') { |
|
| 657 | 657 | echo"<td width='50%'> |
| 658 | 658 | </td>"; |
| 659 | 659 | } |