%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
use backend\models\DokumenJdih;
use yii\helpers\Html;
use kartik\grid\GridView;
?>
<div class="box-header">
<?php // Html::a('<i class="fa fa-plus-circle"></i> Tambah Dokumen Upload', ['tambah-dokumen-terkait','id'=>$id], ['class' => 'btn btn-success btn-flat'])
?>
<?= Html::a('<i class="fa fa-plus-circle"></i> Tambah Dokumen Terkait', ['tambah-dokumen-terkait-list', 'id' => $id], ['class' => 'btn btn-warning btn-flat']) ?>
<p></p>
<?= GridView::widget([
'dataProvider' => $dokumen,
'summary' => 'Ditampilkan {begin} - {end} dari {totalCount} Data',
'layout' => "{items}\n{summary}\n{pager}",
'pager' => [
'class' => '\yii\widgets\LinkPager',
'firstPageLabel' => '<<',
'prevPageLabel' => '<',
'nextPageLabel' => '>',
'lastPageLabel' => '>>',
'maxButtonCount' => 20,
],
'columns' => [
[
'class' => 'yii\grid\SerialColumn',
'contentOptions' => ['style' => 'width: 50px;', 'class' => 'text-center'],
'header' => 'No',
'headerOptions' => ['class' => 'text-center'],
],
// 'id_dokumen_terkait',
[
'label' => 'Nama Dokumen',
'format' => 'html',
'value' => function ($data) {
// return $data->getNamaDokumen($data->id_dokumen_terkait);
$dokumen = DokumenJdih::findOne($data->id_dokumen_terkait);
switch ($dokumen->tipe_dokumen) {
case '2':
return Html::a($data->getNamaDokumen($data->id_dokumen_terkait), ['/monografi/view', 'id' => $data->id_dokumen_terkait], ['target' => '_blank']);
break;
case '3':
return Html::a($data->getNamaDokumen($data->id_dokumen_terkait), ['/artikel/view', 'id' => $data->id_dokumen_terkait], ['target' => '_blank']);
break;
case '4':
return Html::a($data->getNamaDokumen($data->id_dokumen_terkait), ['/putusan/view', 'id' => $data->id_dokumen_terkait], ['target' => '_blank']);
break;
}
}
],
[
'label' => 'File Dokumen',
'format' => 'html',
'value' => function ($data) {
return Html::a($data->document_terkait, ['download', 'id' => $data->document_terkait], ['target' => '_blank']);
}
],
[
'label' => 'Status',
'value' => 'status_docter',
],
[
'label' => 'Catatan',
'value' => 'catatan_docter',
],
[
'attribute' => 'created_by',
'value' => function ($data) {
return $data->getUserInput($data->_created_by);
},
],
[
'attribute' => 'updated_by',
'value' => function ($data) {
return $data->getUserInput($data->_updated_by);
},
],
[
'class' => 'yii\grid\ActionColumn',
'headerOptions' => ['style' => 'width: 150px;', 'class' => 'text-center'],
'contentOptions' => ['style' => 'width: 150px;', 'class' => 'text-center'],
'header' => 'Aksi',
'template' => '{delete}',
'buttons' => [
// 'update' => function ($id, $model) {
// return Html::a('<span class="btn btn-sm btn-warning"><b class="fa fa-pencil"></b></span>', ['ubah-dokumen-terkait', 'id' => $model->id], ['title' => 'Ubah']);
// },
'delete' => function ($url, $model) {
return Html::a('<span class="btn btn-sm btn-danger"><b class="fa fa-trash"></b></span>', ['hapus-dokumen-terkait', 'id' => $model->id], ['title' => 'Hapus', 'class' => '', 'data' => ['confirm' => 'Yakin akan menghapus data ini.', 'method' => 'post', 'data-pjax' => false],]);
},
],
],
],
]); ?>
</div>