PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
views
/
mailtemplate
<div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-title"> Mail Templates </div> <div class="panel-body"> <div class="btn-group"> <?php echo CHtml::link('', array('mailtemplate/create'), array('class' => 'btn btn-primary fa fa-plus')); ?> <?php echo CGridControls::ajaxDeleteButton('', array('mailtemplate/ajaxupdate', 'act' => 'doDelete'), array('success' => 'reloadGrid'), array('class' => 'btn btn-danger fa fa-trash')); ?> </div> <?php $columns = array( array( 'id' => 'autoId', 'class' => 'CCheckBoxColumn', 'selectableRows' => '50', ), array( 'header' => CHtml::encode('ID'), 'name' => 'id', ), array( 'header' => CHtml::encode('Name'), 'name' => 'name', ), array( 'header' => CHtml::encode('Title'), 'name' => 'title', ), array( 'class' => 'CGridButtonColumn', 'template' => '{update}', ), array( 'class' => 'CGridButtonColumn', 'template' => '{delete}', 'buttons' => array( 'delete' => array( 'visible' => '($data->deletable =="1")', ), ), ), ); $form = $this->beginWidget('CActiveForm', array( 'enableAjaxValidation' => true, )); $this->widget('booster.widgets.TbGridView', array( 'id' => 'user-grid', 'type' => 'striped bordered', 'dataProvider' => $model->search(), 'columns' => $columns, 'filter' => $model, )); ?> <div class="btn-group"> </div> <?php $this->endWidget(); ?> </div> </div> </div> </div> <script> function reloadGrid(data) { $.fn.yiiGridView.update('user-grid'); } </script>
[+]
..
[-] form.php
[edit]
[-] update.php
[edit]
[-] midnav.php
[edit]
[-] create.php
[edit]
[-] index.php
[edit]
[-] view.php
[edit]