当前位置: 首页>>代码示例>>PHP>>正文


PHP Chtml::listdata方法代码示例

本文整理汇总了PHP中Chtml::listdata方法的典型用法代码示例。如果您正苦于以下问题:PHP Chtml::listdata方法的具体用法?PHP Chtml::listdata怎么用?PHP Chtml::listdata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Chtml的用法示例。


在下文中一共展示了Chtml::listdata方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<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> 
开发者ID:bagus029,项目名称:sipakfeb,代码行数:24,代码来源:pengajuanak.php

示例2: array

<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');
?>
 
开发者ID:bagus029,项目名称:sipakfeb,代码行数:29,代码来源:admin.php


注:本文中的Chtml::listdata方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。