Commit dd520364 authored by Oky Rahmanto's avatar Oky Rahmanto
Browse files

Merge branch 'feature/view_available_slot' into 'development'

add feature view available slot

See merge request !33
parents a1027682 ec44b297
Pipeline #24239 passed with stage
in 42 seconds
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php $this->load->view('main/header.php')?>
<?php
if (count($result)>0){
$available=0;
$bookable=0;
foreach ($result as $value)
{ if ($value->isAvailable==1) {
$available++;
echo "YES";
} else {
echo "NO";
}
if ($value->isBookable==1) {
$bookable++;
echo "YES";
} else {
echo "NO";
}
}
}
?>
<!-- Left side column. contains the logo and sidebar -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Available Area
<small>
<?php $this->view('main/viewdate.php')?>
</small>
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-6">
<div class="box box-success">
<!-- Callout -->
<div class="callout callout">
<h2>Total Available Slot <strong><?php echo $available;?></strong>
</h2>
<p></p>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="box box-warning">
<!-- Callout -->
<div class="callout callout">
<h2>Total Bookable Slot <strong><?php echo $bookable;?></strong>
</h2>
<p></p>
</div>
</div>
</div>
<!-- Default box -->
<div class="col-lg-12 box">
<div class="box-header">
<!-- Flash Notifikasi -->
<?php echo $this->session->flashdata('notifikasi');?>
List Parking Area - Available Slot
</div>
<div class="box-body">
<div style="max-width: auto; overflow-x: auto;">
<table id="example1" class="table table-bordered table-striped small">
<thead>
<tr>
<th>NO</th>
<th>SLOT NAME</th>
<th>ZONE NAME</th>
<th>LOCATION NAME</th>
<th>AVAILABLE</th>
<th>BOOKABLE</th>
</tr>
</thead>
<tbody>
<?php
if (count($result)>0){
$start = 0;
foreach ($result as $value)
{ $zone = $value->zona;
$location = $value->zona->location;
?>
<tr>
<td><?php echo ++$start;?></td>
<td><?php echo $value->name;?></td>
<td><?php echo $zone->name;?></td>
<td><?php echo $location->name;?></td>
<td>
<?php
if ($value->isAvailable==1) {
echo "YES";
} else {
echo "NO";
}
?>
</td>
<td>
<?php
if ($value->isBookable==1) {
echo "YES";
} else {
echo "NO";
}
?>
</td>
</tr>
<?php
}
}
?>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
</div>
<!-- /.box-body -->
<!-- /.box-footer-->
</div>
<!-- /.box -->
</div>
</div>
</section>
<!-- /.content -->
</div>
<?php $this->load->view('main/footer')?>
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment