PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
views
/
plan
<div class="body"> <div class="row"> <div class="col-md-12"> <div class="panel"> <div class="panel-title"> <h5>Plan list</h5> </div> <div class="panel-body"> <div class="btn-group"> <?php echo CHtml::link('Add', array('plan/create'), array('class' => 'btn font-plus')); ?> </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('Monthly amount'), 'name' => 'monthly_amount', ), array( 'header' => CHtml::encode('Yearly amount'), 'name' => 'yearly_amount', ), array( 'header' => CHtml::encode('Priority'), 'name' => 'priority', ), array( 'class' => 'CGridButtonColumn', 'buttons' => array( 'delete' => array( 'visible' => '($data->deleable =="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'=>$filtersForm, )); ?> <?php echo CGridControls::ajaxDeleteButton('Delete', array('plan/ajaxupdate', 'act' => 'doDelete'), array('success' => 'reloadGrid'), array('class' => 'btn btn-danger')); ?> <?php $this->endWidget(); ?> </div> </div> </div> </div> </div> <script> function reloadGrid(data) { $.fn.yiiGridView.update('user-grid'); } </script>
[+]
..
[-] form.php
[edit]
[-] index.php
[edit]
[-] view.php
[edit]
[-] midnav.php
[edit]
[-] update.php
[edit]
[-] create.php
[edit]