PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
admin
/
views
/
website
<div class="page_header"> <h5> Web pages </h5> </div> <div class="body"> <?php include 'midnav.php';?> <div class="contain"> <div class="block well"> <div class="navbar"> <div class="navbar_inner"> <h5>Page user list</h5> <?php echo CHtml::link('User', array('page/user/id/'.$page_id), array('class' => 'btn btn-primary')); ?> </div> </div> <div class="body"> <?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('Email'), 'name' => 'email', ), array( 'name' => 'is_active', 'header' => 'Active', 'filter' => array('1' => 'Yes','0' => 'No'), 'value' => '($data->is_active=="1")?("Yes"):("No")', ), ); $form = $this->beginWidget('CActiveForm', array( 'enableAjaxValidation' => true, )); $this->widget('zii.widgets.grid.CGridView', array( 'id' => 'user-grid', 'dataProvider' => $model->search_page(), 'columns' => $columns, 'filter' => $model, )); ?> <?php echo CHtml::ajaxSubmitButton('Add', array('page/ajaxadduser', 'page_id' => $page_id), array('class' => 'btn', 'success' => 'reloadGrid')); ?> <?php $this->endWidget(); ?> </div> </div> </div> </div> <script> function reloadGrid(data) { $.fn.yiiGridView.update('user-grid'); } </script>
[+]
..
[-] category.php
[edit]
[-] upgrade.php
[edit]
[-] update.php
[edit]
[-] index.php
[edit]
[-] create.php
[edit]
[-] adduser.php
[edit]
[-] maketemplate.php
[edit]
[-] view.php
[edit]
[-] user.php
[edit]
[-] extend.php
[edit]