tegarkurniawan

myindex

Jul 9th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <?php
  2. /* @var $this UserController */
  3. /* @var $model User */
  4.  
  5. $this->breadcrumbs=array(
  6. 'Branch User',
  7. );
  8. ?>
  9.  
  10.  
  11. <h3>Branch User Registration</h3>
  12.  
  13. <?php
  14. $this->widget('zii.widgets.grid.CGridView', array(
  15. 'id'=>'ClientService-grid',
  16. 'dataProvider' => $users->search(),
  17. 'htmlOptions' => array('class'=>'cgridview table table-striped', 'width'=>'100%'),
  18. 'filter' => $users,
  19. 'columns' => array(
  20.  
  21. array(
  22. 'header' => 'Email',
  23. 'name' => 'email',
  24. 'type'=>'raw',
  25. 'value' => '$data->user->email',
  26. 'filter'=>CHtml::textField('User[client]', '', array('style'=>'width:100px')),
  27. ),
  28. array(
  29. 'header' => 'Type',
  30. 'name' => 'type',
  31. 'type'=>'raw',
  32. 'value' => '$data->user->type',
  33. 'filter'=>CHtml::textField('ClientService[service]', '', array('style'=>'width:100px')),
  34. ),
  35. array(
  36. 'header' => 'Phone',
  37. 'name' => 'phone',
  38. 'type'=>'raw',
  39. 'value' => '$data->user->phone',
  40. 'filter'=>CHtml::textField('User[phone]', '', array('style'=>'width:100px')),
  41. ),
  42. array(
  43. 'header' => 'Name',
  44. 'name' => 'name',
  45. 'type'=>'raw',
  46. 'value' => '$data->name',
  47.  
  48. ),
  49. array(
  50. 'header' => 'Client',
  51. //'name' => 'client_id',
  52. 'type'=>'raw',
  53. 'value' => '$data->user->client->brand_name',
  54. ),
  55.  
  56.  
  57.  
  58. array(
  59. 'class'=>'CButtonColumn',
  60. 'template'=>'{detail}',
  61. 'buttons'=>array
  62. (
  63. 'detail' => array
  64. (
  65. 'label'=>'Detail',
  66. 'options'=>array('class'=>'btn',),
  67. 'url'=>'\'/admin/branchuser/detail/\' . $data->id',
  68. ),
  69. ),
  70. ),
  71.  
  72. ),
  73. ));
  74. ?>
  75.  
  76. <a href="/admin/branchuser/create" class="btn btn-primary"> Create </a>
  77. </div>
Advertisement
Add Comment
Please, Sign In to add comment