iDuHelp! Offline_stra#1

  • iDuHelp!offline_stra#1: Sistem Dapat Menampilkan Jumlah Operator Terbanyak Menangani Customer
  • Permasalahan:Β dalam pembuatan grafik performa operator masih dihitung satu persatu untuk dapat menampilkan performa operator.
  • Pemecahan Masalah:Β Dengan Menggunakan Cpanel saya membuat scrip yii untuk dapat menampilkan jumlah operator terbanyak menangani customer
  • Hasil:Β Sudah dapat menampilkan jumlah operator terbanyak menangani customer untuk dapat melihat operator iapa saja yang menangani customer terbanyak

<?php

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

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

<section class=”content-header”>
<h1>
Performa Operator
</h1>
</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”>Total Performa Operator</h3>
</div>
<!– /.box-header –>
<div class=”box-body”>
<table id=”example1″ class=”table table-bordered table-striped”>
<thead>
<tr>
<th>No</th>
<th>ID Operator</th>
<th>Nama Operator</th>
<th>Jumlah Customer</th>

</tr>
</thead>
<tbody>

<?php
$no = 1;
foreach ($data as $value) { ?>
<tr>
<td> <?php echo $no ; ?></td>
<td><?php echo $value[‘id_operator’]; ?></td>
<td><?php echo $value[‘namaoperator’]; ?></td>
<td><?php echo $value[‘banyaknya’]; ?></td>

</tr>
<?php $no++ ; } ?>
</tbody>
<tfoot>
<tr>
<th>No</th>
<th>ID Operator</th>
<th>Nama Operator</th>
<th>Jumlah Customer</th>
</tr>
</tfoot>
</table>
</div>
<!– /.box-body –>
</div>
<!– /.box –>

</div>
</div>

 

</section>

Leave a Reply

You must be logged in to post a comment.