iDuHelp! Offline_stra#5

  • iDuHelp!offline_stra#5: Sistem Memiliki Menu My Jobdesk
  • Permasalahan: Belum adanya list jobdesk yang sedang ditangani oleh masing-masing operator sebelumnya
  • Pemecahan Masalah: Dengan Menggunakan Cpanel saya membuat scrip yii untuk membuat menu myjobdesk
  • Hasil: Sudah terdapat menu myjobdesk untuk dapat melihat customer siapa saja yang sedang ditangani oleh operator tersebut

<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use app\models\Tbltiket;
use app\models\Tblstatus;

$modelmyjobdesk = new Tbltiket;
$data=$modelmyjobdesk->myjobdesk();

?>

 

 

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

 

<div class=”box”>
<div class=”box-header”>
<h3 class=”box-title”>My Jobdesk</h3>
</div>
<!– /.box-header –>
<div class=”box-body”>
<table id=”example1″ class=”table table-bordered table-striped”>
<thead>
<tr>
<th>No</th>
<th>ID Tiket</th>
<th>Email Customer</th>
<th>Tanggal Tanya</th>
<th>Deskripsi</th>
<th>Tanggal Jawab</th>
<th>ID Status</th>

 

</tr>
</thead>
<tbody>

<?php
$no = 1;
foreach ($data as $value) { ?>
<tr>
<td> <?php echo $no ; ?></td>
<td><?php echo $value[‘id_tiket’]; ?></td>
<td><?php echo $value[’emailcustomer’]; ?></td>
<td><?php echo $value[‘tgl_tanya’]; ?></td>
<td><?php echo $value[‘namaperihal’]; ?></td>
<td><?php echo $value[‘tgl_jawab’]; ?></td>

 

<td><?php
$n = $value[‘id_tiket’];

 

// $st = Tbltiket::Statusjobdesk();

 

$id = $value[‘id_status’];

if ($id == 2 ) {
echo Html::a(‘Jawab’, [‘tbltiket/form_operator’,’id’=> $value[‘id_tiket’], ‘id_status’=>2],[‘class’ => ‘btn btn-info’]);
} else {

echo “Closed”;
}
?>
</td>

 

</div>
</td>

</tr>
<?php $no++ ; } ?>
</tbody>
<tfoot>
<tr>
<th>No</th>
<th>ID Tiket</th>
<th>Email Customer</th>
<th>Tanggal Tanya</th>
<th>Deskripsi</th>
<th>Tanggal Jawab</th>
<th>ID Status</th>

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

</div>
</div>

 

</section>

<?php //= Html::a(‘Take’, [‘site/newcustomer’,’id’=> $value[‘id_tiket’]], [‘class’ => ‘btn btn-info’]) ?>

<!–<?

// switch ($st) {
// case 4:
// echo “Closed”;

// break;
// default:
// echo Html::a(‘Jawab’, [‘tbltiket/form_operator’,’id’=> $value[‘id_tiket’], ‘id_status’=>2],[‘class’ => ‘btn btn-info’]);
// break;<–>

?>

Leave a Reply

You must be logged in to post a comment.