Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* @var $this UserController */
- /* @var $model User */
- $this->breadcrumbs=array(
- 'Branch User',
- );
- ?>
- <h3>Branch User Registration</h3>
- <?php
- $this->widget('zii.widgets.grid.CGridView', array(
- 'id'=>'ClientService-grid',
- 'dataProvider' => $users->search(),
- 'htmlOptions' => array('class'=>'cgridview table table-striped', 'width'=>'100%'),
- 'filter' => $users,
- 'columns' => array(
- array(
- 'header' => 'Email',
- 'name' => 'email',
- 'type'=>'raw',
- 'value' => '$data->user->email',
- 'filter'=>CHtml::textField('User[client]', '', array('style'=>'width:100px')),
- ),
- array(
- 'header' => 'Type',
- 'name' => 'type',
- 'type'=>'raw',
- 'value' => '$data->user->type',
- 'filter'=>CHtml::textField('ClientService[service]', '', array('style'=>'width:100px')),
- ),
- array(
- 'header' => 'Phone',
- 'name' => 'phone',
- 'type'=>'raw',
- 'value' => '$data->user->phone',
- 'filter'=>CHtml::textField('User[phone]', '', array('style'=>'width:100px')),
- ),
- array(
- 'header' => 'Name',
- 'name' => 'name',
- 'type'=>'raw',
- 'value' => '$data->name',
- ),
- array(
- 'header' => 'Client',
- //'name' => 'client_id',
- 'type'=>'raw',
- 'value' => '$data->user->client->brand_name',
- ),
- array(
- 'class'=>'CButtonColumn',
- 'template'=>'{detail}',
- 'buttons'=>array
- (
- 'detail' => array
- (
- 'label'=>'Detail',
- 'options'=>array('class'=>'btn',),
- 'url'=>'\'/admin/branchuser/detail/\' . $data->id',
- ),
- ),
- ),
- ),
- ));
- ?>
- <a href="/admin/branchuser/create" class="btn btn-primary"> Create </a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment