Passed
Pull Request — master (#7)
by Saepul
05:30 queued 01:00
created
modul/mod_report_stok/report_stok.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd = date('Y-m');
65 65
 
66 66
 $userid = $_SESSION['userid'];
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?php
117 117
 
118
-             $module = '?module='.$_GET['module'];
119
-             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
120
-             $r = mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];
119
+                $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
120
+                $r = mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].'>';
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].'>';
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?php for ($i = 0; $i <= 20; $i++) {
128
+                <?php for ($i = 0; $i<=20; $i++) {
129 129
                 ?>
130 130
                     <br />
131 131
                     <?php
Please login to merge, or discard this patch.
modul/mod_report_revenue/report_revenue.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 $prd = date('Y-m');
65 65
 
66 66
 $userid = $_SESSION['userid'];
67
-  ?>
67
+    ?>
68 68
 
69 69
  <div class="">
70 70
                    
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 
116 116
              <?php
117 117
 
118
-             $module = '?module='.$_GET['module'];
119
-             $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
120
-             $r = mysql_fetch_array($tampil);
118
+                $module = '?module='.$_GET['module'];
119
+                $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
120
+                $r = mysql_fetch_array($tampil);
121 121
 
122
-             echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
123
-             echo"<input type='hidden' name='module' value=".$_GET[module].'>';
122
+                echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].'>';
123
+                echo"<input type='hidden' name='module' value=".$_GET[module].'>';
124 124
             ?>
125 125
             </form>    
126 126
                    
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             </form>    
126 126
                    
127 127
                 </div>
128
-                <?php for ($i = 0; $i <= 20; $i++) {
128
+                <?php for ($i = 0; $i<=20; $i++) {
129 129
                 ?>
130 130
                     <br />
131 131
                     <?php
Please login to merge, or discard this patch.
modul/mod_home/home.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 default:
6 6
 
7 7
  $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
- $g = mysql_fetch_array($gtampil);
8
+    $g = mysql_fetch_array($gtampil);
9 9
 
10 10
 if ($g['pict']) {
11 11
     $pict = $g['pict'];
Please login to merge, or discard this patch.
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
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">
Please login to merge, or discard this patch.
modul/mod_home/xxhome.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 default:
6 6
 
7 7
  $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
8
- $g = mysql_fetch_array($gtampil);
8
+    $g = mysql_fetch_array($gtampil);
9 9
 
10 10
 if ($g['pict']) {
11 11
     $pict = $g['pict'];
Please login to merge, or discard this patch.
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
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">
Please login to merge, or discard this patch.
modul/mod_home/xhome.php 2 patches
Indentation   +277 added lines, -277 removed lines patch added patch discarded remove patch
@@ -119,16 +119,16 @@  discard block
 block discarded – undo
119 119
 							                 <select name="room_type" class="form-control1" required onChange="document.myform.submit();">
120 120
 							                 	<option value="">--------- Room Type ---------</option>
121 121
 							                    <?php
122
-                                                  $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
123
-                                                   if ($query && mysql_num_rows($query) > 0) {
124
-                                                       while ($row = mysql_fetch_object($query)) {
125
-                                                           echo '<option value="'.$row->id_room_type.'"';
126
-                                                           if ($row->id_room_type == $_GET['room_type']) {
127
-                                                               echo ' selected';
128
-                                                           }
129
-                                                           echo '>'.$row->room_type.'</option>';
130
-                                                       }
131
-                                                   }
122
+                                                    $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
123
+                                                    if ($query && mysql_num_rows($query) > 0) {
124
+                                                        while ($row = mysql_fetch_object($query)) {
125
+                                                            echo '<option value="'.$row->id_room_type.'"';
126
+                                                            if ($row->id_room_type == $_GET['room_type']) {
127
+                                                                echo ' selected';
128
+                                                            }
129
+                                                            echo '>'.$row->room_type.'</option>';
130
+                                                        }
131
+                                                    }
132 132
                                                 ?>
133 133
 							                    </select>
134 134
 							              </div>   
@@ -270,110 +270,110 @@  discard block
 block discarded – undo
270 270
 									
271 271
                             
272 272
                          <?php	
273
-                                 $tSQL = 'SELECT * FROM room_type ';
273
+                                    $tSQL = 'SELECT * FROM room_type ';
274 274
 
275
-                                 if ($_GET['room_type']) {
276
-                                     $tSQL .= "WHERE id_room_type = '$_GET[room_type]'";
277
-                                 }
275
+                                    if ($_GET['room_type']) {
276
+                                        $tSQL .= "WHERE id_room_type = '$_GET[room_type]'";
277
+                                    }
278 278
 
279
-                                 $tSQL .= 'ORDER BY room_type';
279
+                                    $tSQL .= 'ORDER BY room_type';
280 280
 
281
-                                 $type = mysql_query($tSQL);
281
+                                    $type = mysql_query($tSQL);
282 282
 
283
-                                 while ($t = mysql_fetch_array($type)) {
284
-                                     $id_room_type = $t['id_room_type'];
283
+                                    while ($t = mysql_fetch_array($type)) {
284
+                                        $id_room_type = $t['id_room_type'];
285 285
 
286
-                                     echo'<tr>';
287
-                                     echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type'].'</td>';
286
+                                        echo'<tr>';
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') {
292
-                                                 $tgl = '0'.$i;
293
-                                             } else {
294
-                                                 $tgl = $i;
295
-                                             }
289
+                                        if ($lmonth == $fmonth and $lyear == $fyear) {
290
+                                            for ($i = $fday; $i <= $lday; $i++) {
291
+                                                if (strlen($i) == '1') {
292
+                                                    $tgl = '0'.$i;
293
+                                                } else {
294
+                                                    $tgl = $i;
295
+                                                }
296 296
 
297
-                                             $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
297
+                                                $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
298 298
 
299
-                                             echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
299
+                                                echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
300 300
 										</td>";
301
-                                         }
302
-                                     } else {
303
-                                         for ($i = $fday; $i <= $f_lastday; $i++) {
304
-                                             if (strlen($i) == '1') {
305
-                                                 $tgl = '0'.$i;
306
-                                             } else {
307
-                                                 $tgl = $i;
308
-                                             }
301
+                                            }
302
+                                        } else {
303
+                                            for ($i = $fday; $i <= $f_lastday; $i++) {
304
+                                                if (strlen($i) == '1') {
305
+                                                    $tgl = '0'.$i;
306
+                                                } else {
307
+                                                    $tgl = $i;
308
+                                                }
309 309
 
310
-                                             $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
310
+                                                $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
311 311
 
312
-                                             $DayName = date('D', strtotime($tanggal));
312
+                                                $DayName = date('D', strtotime($tanggal));
313 313
 
314
-                                             echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
314
+                                                echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
315 315
 										</td>";
316
-                                         }
316
+                                            }
317 317
 
318
-                                         for ($i = 1; $i <= $lday; $i++) {
319
-                                             if (strlen($i) == '1') {
320
-                                                 $tgl = '0'.$i;
321
-                                             } else {
322
-                                                 $tgl = $i;
323
-                                             }
318
+                                            for ($i = 1; $i <= $lday; $i++) {
319
+                                                if (strlen($i) == '1') {
320
+                                                    $tgl = '0'.$i;
321
+                                                } else {
322
+                                                    $tgl = $i;
323
+                                                }
324 324
 
325
-                                             $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
325
+                                                $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
326 326
 
327
-                                             $DayName = date('D', strtotime($tanggal));
327
+                                                $DayName = date('D', strtotime($tanggal));
328 328
 
329
-                                             echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
329
+                                                echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
330 330
 										</td>";
331
-                                         }
332
-                                     }
331
+                                            }
332
+                                        }
333 333
 
334
-                                     echo'</tr>';
334
+                                        echo'</tr>';
335 335
 
336
-                                     $rSQL = "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no";
336
+                                        $rSQL = "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no";
337 337
 
338
-                                     $room = mysql_query($rSQL);
338
+                                        $room = mysql_query($rSQL);
339 339
 
340
-                                     $no = 1;
341
-                                     while ($r = mysql_fetch_array($room)) {
342
-                                         $aktif = $r['aktif'];
340
+                                        $no = 1;
341
+                                        while ($r = mysql_fetch_array($room)) {
342
+                                            $aktif = $r['aktif'];
343 343
 
344
-                                         if (($no % 2) == 0) {
345
-                                             $sty = 'ftd';
346
-                                         } else {
347
-                                             $sty = 'ltd';
348
-                                         }
344
+                                            if (($no % 2) == 0) {
345
+                                                $sty = 'ftd';
346
+                                            } else {
347
+                                                $sty = 'ltd';
348
+                                            }
349 349
 
350
-                                         $id_room = $r['id_room'];
350
+                                            $id_room = $r['id_room'];
351 351
 
352
-                                         echo'<tr>';
353
-                                         echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no'].'</td>';
352
+                                            echo'<tr>';
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') {
358
-                                                     $tgl = '0'.$i;
359
-                                                 } else {
360
-                                                     $tgl = $i;
361
-                                                 }
355
+                                            if ($lmonth == $fmonth and $lyear == $fyear) {
356
+                                                for ($i = $fday; $i <= $lday; $i++) {
357
+                                                    if (strlen($i) == '1') {
358
+                                                        $tgl = '0'.$i;
359
+                                                    } else {
360
+                                                        $tgl = $i;
361
+                                                    }
362 362
 
363
-                                                 $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
363
+                                                    $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
364 364
 
365
-                                                 echo"<td class=$sty style='padding:0;'>";
365
+                                                    echo"<td class=$sty style='padding:0;'>";
366 366
 
367
-                                                 if ($aktif == 'T') {
368
-                                                     echo"
367
+                                                    if ($aktif == 'T') {
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
 												";
371
-                                                 }
371
+                                                    }
372 372
 
373
-                                                 echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
374
-                                                 echo'<tr>';
373
+                                                    echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
374
+                                                    echo'<tr>';
375 375
 
376
-                                                 $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
376
+                                                    $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
377 377
 													FROM room a left join room_reservation b
378 378
 													 ON a.id_room = b.id_room
379 379
 													 and b.status in ('0','1')
@@ -385,131 +385,131 @@  discard block
 block discarded – undo
385 385
 													 AND b.rdate = '$tanggal'												
386 386
 													 ORDER BY a.room_no,b.id_reservation";
387 387
 
388
-                                                 $croom = mysql_query($cSQL);
388
+                                                    $croom = mysql_query($cSQL);
389 389
 
390
-                                                 $jml = mysql_num_rows($croom);
390
+                                                    $jml = mysql_num_rows($croom);
391 391
 
392
-                                                 //$c=mysql_fetch_array($croom);
393
-                                                 while ($c = mysql_fetch_array($croom)) {
394
-                                                     $rdate = $c['rdate'];
392
+                                                    //$c=mysql_fetch_array($croom);
393
+                                                    while ($c = mysql_fetch_array($croom)) {
394
+                                                        $rdate = $c['rdate'];
395 395
 
396
-                                                     $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate ";
397
-                                                     //echo $lSQL;
398
-                                                     $ld = mysql_query($lSQL);
396
+                                                        $lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate ";
397
+                                                        //echo $lSQL;
398
+                                                        $ld = mysql_query($lSQL);
399 399
 
400
-                                                     $l = mysql_fetch_array($ld);
400
+                                                        $l = mysql_fetch_array($ld);
401 401
 
402
-                                                     $ldate = $l['ldate'];
402
+                                                        $ldate = $l['ldate'];
403 403
 
404
-                                                     $ndate = $l['ndate'];
404
+                                                        $ndate = $l['ndate'];
405 405
 
406
-                                                     $cSQL1 = "SELECT * from room_reservation 
406
+                                                        $cSQL1 = "SELECT * from room_reservation 
407 407
 													 WHERE id_room = '$id_room' 
408 408
 													 AND rdate = '$ldate'";
409 409
 
410
-                                                     $lroom = mysql_query($cSQL1);
410
+                                                        $lroom = mysql_query($cSQL1);
411 411
 
412
-                                                     if ($ldate) {
413
-                                                         $ljml = mysql_num_rows($lroom);
414
-                                                     } else {
415
-                                                         $ljml = '0';
416
-                                                     }
412
+                                                        if ($ldate) {
413
+                                                            $ljml = mysql_num_rows($lroom);
414
+                                                        } else {
415
+                                                            $ljml = '0';
416
+                                                        }
417 417
 
418
-                                                     $cSQL2 = "SELECT * from room_reservation 
418
+                                                        $cSQL2 = "SELECT * from room_reservation 
419 419
 													 WHERE id_room = '$id_room' 
420 420
 													 AND rdate = '$ndate'";
421 421
 
422
-                                                     $nroom = mysql_query($cSQL2);
422
+                                                        $nroom = mysql_query($cSQL2);
423 423
 
424
-                                                     $njml = mysql_num_rows($nroom);
424
+                                                        $njml = mysql_num_rows($nroom);
425 425
 
426
-                                                     if ($ndate) {
427
-                                                         $njml = mysql_num_rows($nroom);
428
-                                                     } else {
429
-                                                         $njml = '0';
430
-                                                     }
426
+                                                        if ($ndate) {
427
+                                                            $njml = mysql_num_rows($nroom);
428
+                                                        } else {
429
+                                                            $njml = '0';
430
+                                                        }
431 431
 
432
-                                                     $guest = $c['guest'];
432
+                                                        $guest = $c['guest'];
433 433
 
434
-                                                     $legend = $c['legend'];
435
-                                                     $status = $c['status'];
434
+                                                        $legend = $c['legend'];
435
+                                                        $status = $c['status'];
436 436
 
437
-                                                     if ($status == 0) {
438
-                                                         $icolor = '#fff';
439
-                                                     } else {
440
-                                                         $icolor = '#fff';
441
-                                                     }
437
+                                                        if ($status == 0) {
438
+                                                            $icolor = '#fff';
439
+                                                        } else {
440
+                                                            $icolor = '#fff';
441
+                                                        }
442 442
 
443
-                                                     if ($status == 0) {
444
-                                                         $istatus = 'Reserved';
445
-                                                     } elseif ($status == 1) {
446
-                                                         $istatus = 'Check In';
447
-                                                     } else {
448
-                                                         $istatus = 'Check Out';
449
-                                                     }
443
+                                                        if ($status == 0) {
444
+                                                            $istatus = 'Reserved';
445
+                                                        } elseif ($status == 1) {
446
+                                                            $istatus = 'Check In';
447
+                                                        } else {
448
+                                                            $istatus = 'Check Out';
449
+                                                        }
450 450
 
451
-                                                     $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
451
+                                                        $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
452 452
 
453
-                                                     if ($c['initial'] == 'Mr ') {
454
-                                                         $icon = 'fa fa-male';
455
-                                                     } else {
456
-                                                         $icon = 'fa fa-female';
457
-                                                     }
453
+                                                        if ($c['initial'] == 'Mr ') {
454
+                                                            $icon = 'fa fa-male';
455
+                                                        } else {
456
+                                                            $icon = 'fa fa-female';
457
+                                                        }
458 458
 
459
-                                                     echo $ljml.'-'.$jml.'-'.$njml;
459
+                                                        echo $ljml.'-'.$jml.'-'.$njml;
460 460
 
461
-                                                     //if ($jml == '1') {
461
+                                                        //if ($jml == '1') {
462 462
 
463
-                                                     if ($ljml == '0' and $jml == '1' and $njml == '1') {
464
-                                                         echo"<td width='50%'>
463
+                                                        if ($ljml == '0' and $jml == '1' and $njml == '1') {
464
+                                                            echo"<td width='50%'>
465 465
 														</td>";
466
-                                                     }
466
+                                                        }
467 467
 
468
-                                                     if ($guest) {
469
-                                                         if ($guest) {
470
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
468
+                                                        if ($guest) {
469
+                                                            if ($guest) {
470
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
471 471
 														<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
472 472
 														</td>";
473
-                                                         } else {
474
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
473
+                                                            } else {
474
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
475 475
 														</td>";
476
-                                                         }
477
-                                                     }
478
-                                                 }
476
+                                                            }
477
+                                                        }
478
+                                                    }
479 479
 
480
-                                                 if ($ljml != '0' and $jml == '1') {
481
-                                                     echo"<td width='50%'>
480
+                                                    if ($ljml != '0' and $jml == '1') {
481
+                                                        echo"<td width='50%'>
482 482
 														</td>";
483
-                                                 }
483
+                                                    }
484 484
 
485
-                                                 //}
485
+                                                    //}
486 486
 
487
-                                                 echo'</tr>';
488
-                                                 echo'</table>';
489
-                                                 echo'</td>';
490
-                                             }
491
-                                         } else {
492
-                                             for ($i = $fday; $i <= $f_lastday; $i++) {
493
-                                                 if (strlen($i) == '1') {
494
-                                                     $tgl = '0'.$i;
495
-                                                 } else {
496
-                                                     $tgl = $i;
497
-                                                 }
487
+                                                    echo'</tr>';
488
+                                                    echo'</table>';
489
+                                                    echo'</td>';
490
+                                                }
491
+                                            } else {
492
+                                                for ($i = $fday; $i <= $f_lastday; $i++) {
493
+                                                    if (strlen($i) == '1') {
494
+                                                        $tgl = '0'.$i;
495
+                                                    } else {
496
+                                                        $tgl = $i;
497
+                                                    }
498 498
 
499
-                                                 $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
499
+                                                    $tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
500 500
 
501
-                                                 echo"<td class=$sty style='padding:0;'>";
501
+                                                    echo"<td class=$sty style='padding:0;'>";
502 502
 
503
-                                                 if ($aktif == 'T') {
504
-                                                     echo"
503
+                                                    if ($aktif == 'T') {
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
 												";
507
-                                                 }
507
+                                                    }
508 508
 
509
-                                                 echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
510
-                                                 echo'<tr>';
509
+                                                    echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
510
+                                                    echo'<tr>';
511 511
 
512
-                                                 $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
512
+                                                    $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
513 513
 													FROM room a left join room_reservation b
514 514
 													 ON a.id_room = b.id_room
515 515
 													 and b.status in ('0','1')
@@ -521,82 +521,82 @@  discard block
 block discarded – undo
521 521
 													 AND b.rdate = '$tanggal'												
522 522
 													 ORDER BY a.room_no";
523 523
 
524
-                                                 $croom = mysql_query($cSQL);
524
+                                                    $croom = mysql_query($cSQL);
525 525
 
526
-                                                 $jml = mysql_num_rows($croom);
526
+                                                    $jml = mysql_num_rows($croom);
527 527
 
528
-                                                 //$c=mysql_fetch_array($croom);
529
-                                                 while ($c = mysql_fetch_array($croom)) {
530
-                                                     $guest = $c['guest'];
528
+                                                    //$c=mysql_fetch_array($croom);
529
+                                                    while ($c = mysql_fetch_array($croom)) {
530
+                                                        $guest = $c['guest'];
531 531
 
532
-                                                     $legend = $c['legend'];
533
-                                                     $status = $c['status'];
532
+                                                        $legend = $c['legend'];
533
+                                                        $status = $c['status'];
534 534
 
535
-                                                     if ($status == 0) {
536
-                                                         $icolor = '#fff';
537
-                                                     } else {
538
-                                                         $icolor = '#fff';
539
-                                                     }
535
+                                                        if ($status == 0) {
536
+                                                            $icolor = '#fff';
537
+                                                        } else {
538
+                                                            $icolor = '#fff';
539
+                                                        }
540 540
 
541
-                                                     if ($status == 0) {
542
-                                                         $istatus = 'Reserved';
543
-                                                     } elseif ($status == 1) {
544
-                                                         $istatus = 'Check In';
545
-                                                     } else {
546
-                                                         $istatus = 'Check Out';
547
-                                                     }
541
+                                                        if ($status == 0) {
542
+                                                            $istatus = 'Reserved';
543
+                                                        } elseif ($status == 1) {
544
+                                                            $istatus = 'Check In';
545
+                                                        } else {
546
+                                                            $istatus = 'Check Out';
547
+                                                        }
548 548
 
549
-                                                     $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
549
+                                                        $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
550 550
 
551
-                                                     if ($c['initial'] == 'Mr ') {
552
-                                                         $icon = 'fa fa-male';
553
-                                                     } else {
554
-                                                         $icon = 'fa fa-female';
555
-                                                     }
551
+                                                        if ($c['initial'] == 'Mr ') {
552
+                                                            $icon = 'fa fa-male';
553
+                                                        } else {
554
+                                                            $icon = 'fa fa-female';
555
+                                                        }
556 556
 
557
-                                                     if ($guest) {
558
-                                                         if ($guest) {
559
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
557
+                                                        if ($guest) {
558
+                                                            if ($guest) {
559
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
560 560
 												<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
561 561
 												</td>";
562
-                                                         } else {
563
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
562
+                                                            } else {
563
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
564 564
 												</td>";
565
-                                                         }
566
-                                                     }
567
-                                                 }
565
+                                                            }
566
+                                                        }
567
+                                                    }
568 568
 
569
-                                                 if ($jml == '1') {
570
-                                                     echo"<td width='50%'>
569
+                                                    if ($jml == '1') {
570
+                                                        echo"<td width='50%'>
571 571
 												</td>";
572
-                                                 }
572
+                                                    }
573 573
 
574
-                                                 echo'</tr>';
575
-                                                 echo'</table>';
576
-                                                 echo'</td>';
577
-                                             }
574
+                                                    echo'</tr>';
575
+                                                    echo'</table>';
576
+                                                    echo'</td>';
577
+                                                }
578 578
 
579
-                                             for ($i = 1; $i <= $lday; $i++) {
580
-                                                 if (strlen($i) == '1') {
581
-                                                     $tgl = '0'.$i;
582
-                                                 } else {
583
-                                                     $tgl = $i;
584
-                                                 }
579
+                                                for ($i = 1; $i <= $lday; $i++) {
580
+                                                    if (strlen($i) == '1') {
581
+                                                        $tgl = '0'.$i;
582
+                                                    } else {
583
+                                                        $tgl = $i;
584
+                                                    }
585 585
 
586
-                                                 $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
586
+                                                    $tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
587 587
 
588
-                                                 echo"<td class=$sty style='padding:0;'>";
588
+                                                    echo"<td class=$sty style='padding:0;'>";
589 589
 
590
-                                                 if ($aktif == 'T') {
591
-                                                     echo"
590
+                                                    if ($aktif == 'T') {
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
 												";
594
-                                                 }
594
+                                                    }
595 595
 
596
-                                                 echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
597
-                                                 echo'<tr>';
596
+                                                    echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
597
+                                                    echo'<tr>';
598 598
 
599
-                                                 $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
599
+                                                    $cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
600 600
 													FROM room a left join room_reservation b
601 601
 													 ON a.id_room = b.id_room
602 602
 													 and b.status in ('0','1')
@@ -608,66 +608,66 @@  discard block
 block discarded – undo
608 608
 													 AND b.rdate = '$tanggal'												
609 609
 													 ORDER BY a.room_no";
610 610
 
611
-                                                 $croom = mysql_query($cSQL);
611
+                                                    $croom = mysql_query($cSQL);
612 612
 
613
-                                                 $jml = mysql_num_rows($croom);
613
+                                                    $jml = mysql_num_rows($croom);
614 614
 
615
-                                                 //$c=mysql_fetch_array($croom);
616
-                                                 while ($c = mysql_fetch_array($croom)) {
617
-                                                     $guest = $c['guest'];
615
+                                                    //$c=mysql_fetch_array($croom);
616
+                                                    while ($c = mysql_fetch_array($croom)) {
617
+                                                        $guest = $c['guest'];
618 618
 
619
-                                                     $legend = $c['legend'];
620
-                                                     $status = $c['status'];
619
+                                                        $legend = $c['legend'];
620
+                                                        $status = $c['status'];
621 621
 
622
-                                                     if ($status == 0) {
623
-                                                         $icolor = '#fff';
624
-                                                     } else {
625
-                                                         $icolor = '#fff';
626
-                                                     }
622
+                                                        if ($status == 0) {
623
+                                                            $icolor = '#fff';
624
+                                                        } else {
625
+                                                            $icolor = '#fff';
626
+                                                        }
627 627
 
628
-                                                     if ($status == 0) {
629
-                                                         $istatus = 'Reserved';
630
-                                                     } elseif ($status == 1) {
631
-                                                         $istatus = 'Check In';
632
-                                                     } else {
633
-                                                         $istatus = 'Check Out';
634
-                                                     }
628
+                                                        if ($status == 0) {
629
+                                                            $istatus = 'Reserved';
630
+                                                        } elseif ($status == 1) {
631
+                                                            $istatus = 'Check In';
632
+                                                        } else {
633
+                                                            $istatus = 'Check Out';
634
+                                                        }
635 635
 
636
-                                                     $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
636
+                                                        $iguest = trim($c['initial']).'. '.trim($c['guest']).' | '.$istatus;
637 637
 
638
-                                                     if ($c['initial'] == 'Mr ') {
639
-                                                         $icon = 'fa fa-male';
640
-                                                     } else {
641
-                                                         $icon = 'fa fa-female';
642
-                                                     }
638
+                                                        if ($c['initial'] == 'Mr ') {
639
+                                                            $icon = 'fa fa-male';
640
+                                                        } else {
641
+                                                            $icon = 'fa fa-female';
642
+                                                        }
643 643
 
644
-                                                     if ($guest) {
645
-                                                         if ($guest) {
646
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
644
+                                                        if ($guest) {
645
+                                                            if ($guest) {
646
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
647 647
 												<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
648 648
 												</td>";
649
-                                                         } else {
650
-                                                             echo"<td style='background-color:$legend;'  width='50%'>
649
+                                                            } else {
650
+                                                                echo"<td style='background-color:$legend;'  width='50%'>
651 651
 												</td>";
652
-                                                         }
653
-                                                     }
654
-                                                 }
652
+                                                            }
653
+                                                        }
654
+                                                    }
655 655
 
656
-                                                 if ($jml == '1') {
657
-                                                     echo"<td width='50%'>
656
+                                                    if ($jml == '1') {
657
+                                                        echo"<td width='50%'>
658 658
 												</td>";
659
-                                                 }
660
-
661
-                                                 echo'</tr>';
662
-                                                 echo'</table>';
663
-                                                 echo'</td>';
664
-                                             }
665
-                                         }
666
-                                         echo'</tr>';
667
-
668
-                                         $no++;
669
-                                     }
670
-                                 }
659
+                                                    }
660
+
661
+                                                    echo'</tr>';
662
+                                                    echo'</table>';
663
+                                                    echo'</td>';
664
+                                                }
665
+                                            }
666
+                                            echo'</tr>';
667
+
668
+                                            $no++;
669
+                                        }
670
+                                    }
671 671
                                 ?>
672 672
 
673 673
 					                         </tbody>
@@ -682,13 +682,13 @@  discard block
 block discarded – undo
682 682
 										<tr>
683 683
 										<td style='padding-right:3px;'>Room Status : </td>	
684 684
 										<?php
685
-                                             $SQL = "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status";
686
-                                             $tampil = mysql_query($SQL);
685
+                                                $SQL = "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status";
686
+                                                $tampil = mysql_query($SQL);
687 687
 
688
-                                             while ($r = mysql_fetch_array($tampil)) {
689
-                                                 echo"<td style='width:20px;background-color:".$r['legend'].";'>&nbsp</td>";
690
-                                                 echo"<td style='padding-left:3px;'>".$r['room_status'].'&nbsp</td>';
691
-                                             }
688
+                                                while ($r = mysql_fetch_array($tampil)) {
689
+                                                    echo"<td style='width:20px;background-color:".$r['legend'].";'>&nbsp</td>";
690
+                                                    echo"<td style='padding-left:3px;'>".$r['room_status'].'&nbsp</td>';
691
+                                                }
692 692
 
693 693
                                         ?>
694 694
 										</tr>
@@ -701,12 +701,12 @@  discard block
 block discarded – undo
701 701
 										<td style='padding-right:3px;'>Day Status : </td>	
702 702
 										<?php
703 703
 
704
-                                             echo"<td style='width:20px;background-color:#eba51c;'>&nbsp</td>";
705
-                                             echo"<td style='padding-left:3px;'>Spesial Day&nbsp</td>";
706
-                                             echo"<td style='width:20px;background-color:#eb1c41;'>&nbsp</td>";
707
-                                             echo"<td style='padding-left:3px;'>Weekend&nbsp</td>";
708
-                                             echo"<td style='width:20px;background-color:#2A3F54;;'>&nbsp</td>";
709
-                                             echo"<td style='padding-left:3px;'>Weekday&nbsp</td>";
704
+                                                echo"<td style='width:20px;background-color:#eba51c;'>&nbsp</td>";
705
+                                                echo"<td style='padding-left:3px;'>Spesial Day&nbsp</td>";
706
+                                                echo"<td style='width:20px;background-color:#eb1c41;'>&nbsp</td>";
707
+                                                echo"<td style='padding-left:3px;'>Weekend&nbsp</td>";
708
+                                                echo"<td style='width:20px;background-color:#2A3F54;;'>&nbsp</td>";
709
+                                                echo"<td style='padding-left:3px;'>Weekday&nbsp</td>";
710 710
 
711 711
                                         ?>
712 712
 										</tr>
Please login to merge, or discard this patch.
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     $jml = ($lday - $fday) + 1;
92 92
 
93 93
 if ($_GET['ldate']) {
94
-    if ($lmonth == $fmonth and $lyear == $fyear) {
94
+    if ($lmonth==$fmonth and $lyear==$fyear) {
95 95
         $jcol = $jml;
96 96
     } else {
97 97
         $jcol = $f_jml + $l_jml;
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
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>';
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
 		                        	<?php
157 157
                                     $col = (83 / $jcol);
158 158
 
159
-                                    if ($lmonth == $fmonth and $lyear == $fyear) {
160
-                                        for ($i = $fday; $i <= $lday; $i++) {
161
-                                            if (strlen($i) == '1') {
159
+                                    if ($lmonth==$fmonth and $lyear==$fyear) {
160
+                                        for ($i = $fday; $i<=$lday; $i++) {
161
+                                            if (strlen($i)=='1') {
162 162
                                                 $tgl = '0'.$i;
163 163
                                             } else {
164 164
                                                 $tgl = $i;
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
                                             if ($s['sdate']) {
178 178
                                                 $bg = '#eba51c';
179
-                                            } elseif ($nday == '6' or $nday == '7') {
179
+                                            } elseif ($nday=='6' or $nday=='7') {
180 180
                                                 $bg = '#eb1c41';
181 181
                                             } else {
182 182
                                                 $bg = '';
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 										</th>";
192 192
                                         }
193 193
                                     } else {
194
-                                        for ($i = $fday; $i <= $f_lastday; $i++) {
195
-                                            if (strlen($i) == '1') {
194
+                                        for ($i = $fday; $i<=$f_lastday; $i++) {
195
+                                            if (strlen($i)=='1') {
196 196
                                                 $tgl = '0'.$i;
197 197
                                             } else {
198 198
                                                 $tgl = $i;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
                                             if ($s['sdate']) {
212 212
                                                 $bg = '#eba51c';
213
-                                            } elseif ($nday == '6' or $nday == '7') {
213
+                                            } elseif ($nday=='6' or $nday=='7') {
214 214
                                                 $bg = '#eb1c41';
215 215
                                             } else {
216 216
                                                 $bg = '';
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 										</th>";
226 226
                                         }
227 227
 
228
-                                        for ($i = 1; $i <= $lday; $i++) {
229
-                                            if (strlen($i) == '1') {
228
+                                        for ($i = 1; $i<=$lday; $i++) {
229
+                                            if (strlen($i)=='1') {
230 230
                                                 $tgl = '0'.$i;
231 231
                                             } else {
232 232
                                                 $tgl = $i;
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
                                             if ($s['sdate']) {
246 246
                                                 $bg = '#eba51c';
247
-                                            } elseif ($nday == '6' or $nday == '7') {
247
+                                            } elseif ($nday=='6' or $nday=='7') {
248 248
                                                 $bg = '#eb1c41';
249 249
                                             } else {
250 250
                                                 $bg = '';
@@ -286,9 +286,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                                                  }
Please login to merge, or discard this patch.