VBIO #11

Related image

masih pada pembahasan Viewboard, kali iniย  al ingin menceritakan menganai customer yang paling banyak bertanya pada iDuHelp! Offline. pada tampilan awal Viewboard akan ada kalimat seperti iniJumlah Customer yang paling banyak bertanya pada iDuHelp! Offline adalah..ย  yup hal itu yang akn kita bahas yaitu viewboard mempunyai mesin hitung otomatis dimana akan terlihat dari email customer siapa yang paling banyak berrtanya pada iDuHelp!

berikut ini script dan tampilanya:

<?php

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

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

<section class=”content-header”>
<h1>
Customer Terbanyak Bertanya
<small></small>
</h1>
<ol class=”breadcrumb”>
<li><a href=”#”><i class=”fa fa-dashboard”></i>Home</a></li>
<li><a href=”#”>Customer Terbanyak Bertanya</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”>Daftar Customer Yang Paling Banyak Bertanya</h3>
</div>
<!– /.box-header –>
<div class=”box-body”>
<table id=”example1″ class=”table table-bordered table-striped”>
<thead>
<tr>
<th>No</th>

<th>Email Customer</th>
<th>Banyaknya </th>

</tr>
</thead>
<tbody>

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

<td><?php echo $data[’emailcustomer’]; ?></td>
<td><?php echo $data[‘banyaknya’]; ?></td

 

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

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

</div>
</div>

 

</section>

https://lh3.googleusercontent.com/-KrDe4jilihs/WdBPSWkihUI/AAAAAAAAG1E/tYpG80tzvkQf6ESe4w7n5wKgBw6FeQrjwCL0BGAYYCw/h40/2017-09-30.pnghttps://lh3.googleusercontent.com/-6mjQFNpWm0w/WdBPjz7dKvI/AAAAAAAAG1E/a2dT9YKAwZwH6mf1bS1VXx5Zu9HU3cuEACL0BGAYYCw/h565/2017-09-30.png

Leave a Reply

You must be logged in to post a comment.