IgorKorytin

Untitled

Sep 18th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.37 KB | None | 0 0
  1. <?php
  2. /**
  3.  *  * @author Alexandr Ivanov <[email protected]>
  4.  *  * @link http://vsdesk.ru/
  5.  *  * @copyright 2012-2016 Alexandr Ivanov
  6.  *  * @license Non Free Commercial
  7.  */
  8.  
  9. $total = '';
  10.  
  11. $criteria = new CDbCriteria();
  12. $criteria->compare('id', $model->id, true);
  13. $criteria->compare('mfullname', $model->mfullname, true);
  14. $criteria->compare('Name', $model->Name, true);
  15. $criteria->compare('Status', $model->Status, true);
  16. $criteria->compare('Date', $model->Date, true);
  17. //$criteria->order = 'id  DSC';
  18.  
  19. $this->widget('bootstrap.widgets.TbGridView', array(
  20.     'type' => 'striped bordered condensed',
  21.     'selectionChanged' => 'function(id){location.href = "' . $this->createUrl('/request') . '/"+$.fn.yiiGridView.getSelection(id);}',
  22.     'id' => 'asset-grid2',
  23.     'ajaxUrl' => Yii::app()->createUrl('/request/grid3'),
  24.     'dataProvider' => new CActiveDataProvider($model, array('criteria' => $criteria)),
  25.     'htmlOptions' => array('style' => 'cursor: pointer'),
  26.     'filter' => $model,
  27.     'columns' => array(
  28.         array(
  29.             'name' => 'id',
  30.             'header' => Yii::t('main-ui', 'Id'),
  31.         ),
  32.         array(
  33.             'name' => 'mfullname',
  34.         ),
  35.         array(
  36.             'name' => 'Name',
  37.         ),
  38.         array(
  39.             'name' => 'Status',
  40.         ),
  41.         array(
  42.             'name' => 'Date',
  43.         ),
  44.     ),
  45. ));
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment