Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $this->widget('bootstrap.widgets.TbGridView', array(
- 'type'=>'striped bordered condensed',
- 'dataProvider'=>$model->search(),
- 'template'=>"{items}",
- 'filter'=>$model,
- 'columns'=>array(
- array('name'=>'id', 'header'=>'#', 'htmlOptions'=>array('style'=>'width: 40px')),
- array('name'=>'name', 'header'=>'Location'),
- array(
- 'class'=>'CButtonColumn',
- 'header'=>'Select',
- 'template'=>'{select}',
- 'buttons'=>array(
- 'select' => array(
- 'label'=>'Select',
- 'url'=>'CJSON::encode($data)'
- 'click'=>'function(){
- $("#location_id_dlg").dialog("close");
- return $(this).attr("href");
- }',
- ),
- ),
- )
- )
- ));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement