Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * * @author Alexandr Ivanov <[email protected]>
- * * @link http://vsdesk.ru/
- * * @copyright 2012-2016 Alexandr Ivanov
- * * @license Non Free Commercial
- */
- $total = '';
- $criteria = new CDbCriteria();
- $criteria->compare('id', $model->id, true);
- $criteria->compare('mfullname', $model->mfullname, true);
- $criteria->compare('Name', $model->Name, true);
- $criteria->compare('Status', $model->Status, true);
- $criteria->compare('Date', $model->Date, true);
- //$criteria->order = 'id DSC';
- $this->widget('bootstrap.widgets.TbGridView', array(
- 'type' => 'striped bordered condensed',
- 'selectionChanged' => 'function(id){location.href = "' . $this->createUrl('/request') . '/"+$.fn.yiiGridView.getSelection(id);}',
- 'id' => 'asset-grid2',
- 'ajaxUrl' => Yii::app()->createUrl('/request/grid3'),
- 'dataProvider' => new CActiveDataProvider($model, array('criteria' => $criteria)),
- 'htmlOptions' => array('style' => 'cursor: pointer'),
- 'filter' => $model,
- 'columns' => array(
- array(
- 'name' => 'id',
- 'header' => Yii::t('main-ui', 'Id'),
- ),
- array(
- 'name' => 'mfullname',
- ),
- array(
- 'name' => 'Name',
- ),
- array(
- 'name' => 'Status',
- ),
- array(
- 'name' => 'Date',
- ),
- ),
- ));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment