VBIO #9

Related image

Setelah pada VBIO #8 al membahas Menu Customers pada Viewboard, maka kali ini sama seperti sebelumnya, hanya saja kali ini menu Waiting customers. dimana pada menu ini akan terlihat ada beberapa customer yang telah menunggu atau masuk dalam antrian. Menu ini sama hal nya dengan menu new customer hanya saja pada menu customers ini hanya dapat menampilkan saja tidak bisa di Take atau di ambil  sperti di menu new customer.

berikut ini adalah scrip dan tampilannya:

<?php

/* @var $this yii\web\View */
use yii\helpers\Html;

$this->title = ‘My Yii Application’;
?>

<section class=”content-header”>

<ol class=”breadcrumb”>
<li><a href=”#”><i class=”fa fa-dashboard”></i>Home</a></li>
<li><a href=”#”>Viewboard iDuHelp! Offline</a></li>
</ol>
</section>

 

<?php
//echo “<pre>”;
//print_r($data);
//echo “</pre>”;

//foreach ($data as $value) {
//echo “”;
//echo “<br>”;
//}

?>

<!– Content Header (Page header) –>

<section class=”content”>
<div class=”row”>
<div class=”col-xs-12″>

 

<div class=”box”>
<div class=”box-header”>
<h3 class=”box-title”>List Of Waiting Customers </h3>
</div>
<!– /.box-header –>
<div class=”box-body”>
<table id=”example1″ class=”table table-bordered table-striped”>
<thead>
<tr>
<th>No</th>

<th>No Tiket</th>
<th>Email Customer</th>
<th>Tanggal Tanya</th>
<th>Perihal</th>

</tr>
</thead>
<tbody>

<?php
$no = 1;
foreach ($waitingcustomer as $data) { ?>
<tr>
<td> <?php echo $no ; ?></td>

<td><?php echo $data[‘id_tiket’]; ?></td>
<td><?php echo $data[’emailcustomer’]; ?></td>
<td><?php echo $data[‘tgl_tanya’]; ?></td>
<td><?php echo $data[‘namaperihal’]; ?></td>

 

</tr>
<?php $no++ ; } ?>
</tbody>

</table>
</div>
<!– /.box-body –>
</div>
<!– /.box –>

</div>
</div>

 

</section>

https://lh3.googleusercontent.com/-0Vy7YxKjAEA/WdBKteoxB8I/AAAAAAAAG0Q/PHtXpEZJbVcpb43Vy4qnbSuDSgBWjmHXwCL0BGAYYCw/h127/2017-09-30.png

https://lh3.googleusercontent.com/-xiqZyEhDF9M/WdBKyBp_ZoI/AAAAAAAAG0U/0--XqqFcvXgJyCUHM27JFehTdE-pZQRCACL0BGAYYCw/h354/2017-09-30.png

Leave a Reply

You must be logged in to post a comment.