<div class="portlet box blue"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-cogs"></i> Pengajuan Angka Kredit Dosen </div> <div class="actions"> <?php //echo CHtml::link('<i class="fa fa-plus"></i> Tambah',array('create'),array('class'=>'btn btn-sm red')); ?> </div> <div class="actions"> <?php //echo CHtml::link('<i class="fa fa-user"></i> Exsport Kontak Personal All', array('Exsportall'), array('class' => 'btn btn-sm green')); ?> </div> </div> <div class="portlet-body"> <div class="table-responsive"> <?php $this->widget('ext.GroupGridView', array('itemsCssClass' => 'table table-striped table-bordered table-condensed', 'id' => 'tbl-dosen-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('name' => 'NIP_DOSEN', 'type' => 'raw', 'header' => 'Nip Dosen', 'value' => 'CHtml::encode($data->NIP_DOSEN)', 'htmlOptions' => array('width' => '10%')), 'NAMA_DOSEN', array('name' => 'ID_JURUSAN', 'type' => 'html', 'value' => '$data->iDJURUSAN->NAMA_JURUSAN', 'sortable' => true, 'filter' => Chtml::listdata(TblJurusan::model()->findAll(), 'ID_JURUSAN', 'NAMA_JURUSAN')), array('name' => 'ID_JABATAN', 'type' => 'html', 'value' => '$data->iDJABATAN->NAMA_JABATAN', 'sortable' => true, 'filter' => Chtml::listdata(TblJabatan::model()->findAll(), 'ID_JABATAN', 'NAMA_JABATAN')), array('name' => 'ID_GOLONGAN', 'type' => 'html', 'value' => '$data->iDGOLONGAN->GOLONGAN', 'sortable' => true, 'filter' => Chtml::listdata(TblGolongan::model()->findAll(), 'ID_GOLONGAN', 'GOLONGAN')), 'TGL_MASUK', 'NO_KARPEG', array('header' => 'Lihat', 'type' => 'raw', 'value' => 'CHtml::link("Pengajuan AK",array("tblDosen/viewdosen&id=$data->ID_DOSEN"),array("class"=>"btn btn-success btn-md"))')))); ?> </div> </div> </div>
/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer $id the ID of the model to be loaded * @return TblJabatan the loaded model * @throws CHttpException */ public function loadModel($id) { $model = TblJabatan::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
<?php echo $form->dropDownList($model, 'ID_GOLONGAN', CHtml::listData(TblGolongan::model()->findAll(), 'ID_GOLONGAN', 'GOLONGAN'), array('class' => 'form-control', 'empty' => '- Pilih Golongan -')); ?> <?php echo $form->error($model, 'ID_GOLONGAN'); ?> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'ID_JABATAN', array('class' => 'col-md-3 col-md-3 control-label')); ?> <div class="col-md-4"> <?php echo $form->dropDownList($model, 'ID_JABATAN', CHtml::listData(TblJabatan::model()->findAll(), 'ID_JABATAN', 'NAMA_JABATAN'), array('class' => 'form-control', 'empty' => '- Pilih Jabatan -')); ?> <?php echo $form->error($model, 'ID_JABATAN'); ?> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'J_KEL', array('class' => 'col-md-3 col-md-3 control-label')); ?> <div class="col-md-4"> <?php echo $form->dropDownList($model, 'J_KEL', $model->getJenkel(), array('class' => 'form-control', 'empty' => '- Jenis Kelamin -')); ?>
<div class="portlet box blue"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-cogs"></i> Manage Data Dosen </div> <div class="actions"> <?php echo CHtml::link('<i class="fa fa-plus"></i> Tambah', array('create2'), array('class' => 'btn btn-sm red')); ?> </div> <div class="actions"> <?php //echo CHtml::link('<i class="fa fa-user"></i> Exsport Kontak Personal All', array('Exsportall'), array('class' => 'btn btn-sm green')); ?> </div> </div> <div class="portlet-body"> <div class="table-responsive"> <?php $this->widget('zii.widgets.grid.CGridView', array('itemsCssClass' => 'table table-striped table-bordered table-condensed', 'id' => 'tbl-dosen-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('name' => 'NIP_DOSEN', 'type' => 'raw', 'header' => 'Nip Dosen', 'value' => 'CHtml::encode($data->NIP_DOSEN)', 'htmlOptions' => array('width' => '10%')), 'NAMA_DOSEN', array('name' => 'ID_JURUSAN', 'type' => 'html', 'value' => '$data->iDJURUSAN->NAMA_JURUSAN', 'sortable' => true, 'filter' => Chtml::listdata(TblJurusan::model()->findAll(), 'ID_JURUSAN', 'NAMA_JURUSAN')), array('name' => 'ID_JABATAN', 'type' => 'html', 'value' => '$data->iDJABATAN->NAMA_JABATAN', 'sortable' => true, 'filter' => Chtml::listdata(TblJabatan::model()->findAll(), 'ID_JABATAN', 'NAMA_JABATAN')), array('name' => 'ID_GOLONGAN', 'type' => 'html', 'value' => '$data->iDGOLONGAN->GOLONGAN', 'sortable' => true, 'filter' => Chtml::listdata(TblGolongan::model()->findAll(), 'ID_GOLONGAN', 'GOLONGAN')), 'TGL_MASUK', 'NO_KARPEG', 'NIDN', array('class' => 'CButtonColumn', 'htmlOptions' => array('width' => '6%'))))); ?> </div> </div> </div> <?php Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/assets/bootstrap/css/bootstrap.min.css'); Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/assets/bootstrap/js/bootstrap.min.js'); ?>