HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
search.php
Go to the documentation of this file.
1 <?php
2 $this->renderPartial('_search');
3 
4 $this->beginWidget('CActiveForm',
5  array(
6  'id' => 'UpdateFilter',
7  'htmlOptions' => array('class' => 'filter_form'),
8  'action' => Yii::app()->createUrl('//rights/UsersSitesRights/update'),
9  'method' => 'post',
10  )
11 );
12 
13 $this->widget('zii.widgets.grid.CGridView', array(
14  'id' => 'itemGrid',
15  'summaryText' => '',
16  'dataProvider' => $itemsProvider,
17  'enablePagination' => false,
18  'htmlOptions' => array('class' => 'gr-s-sl-main'),
19  'columns' => array(
20  array(
21  'name' => '#',
22  'value' => 'GRI::getIndexManual($row, '.$currentPage.')',
23  'htmlOptions' => array('class' => 'centred'),
24  ),
25  array(
26  'name' => 'Site Id',
27  'value' => '$data["id"]',
28  'sortable' => true,
29  'filter' => false,
30  'htmlOptions' => array('class' => 'centred'),
31  ),
32  array(
33  'name' => 'User Id',
34  'value' => '$data["userId"]',
35  'sortable' => true,
36  'filter' => false,
37  'htmlOptions' => array('class' => 'centred'),
38  ),
39  array(
40  'name' => 'Description',
41  'value' => 'YFormatter::formatShortText($data["description"], 64)',
42  'htmlOptions' => array('class' => 'centred'),
43  ),
44  array(
45  'name' => 'Root URLs',
46  'type' => 'raw',
47  'value' => '"<div class=\"scrollable\">".$data["urls"]."</div>"',
48  'htmlOptions' => array(/*'class' => 'hide-switch'*/'class' => 'centred'),
49  ),
50  array(
51  'name' => 'Operations',
52  'value' => function ($data) use ($model) {
53  return CHtml::checkBoxList(
54  'Rights['.$data['id'].'][]',
55  $data['Rights'],
56  $model->statesData,
57  array('separator' => '&nbsp;')
58  );
59  },
60  'type' => 'raw',
61  'htmlOptions' => array('class' => 'centred'),
62  ),
63  array(
64  'class' => 'CButtonColumn',
65  'template' => '<div class = "bttn-block">{Edit}</div>',
66  'htmlOptions' => array('class' => 'bttn-clmn'),
67  'buttons' => array(
68  'Edit' => array(
69  'label' => 'Edit',
70  'url' => 'Yii::app()->createUrl("//rights/usersSitesRights/edit", array(
71  "siteId" => $data["id"],
72  "userId" => $data["userId"])
73  )',
74  'options' => array("target" => "_blank"),
75  ),
76  ),
77  ),
78  ),
79 ));
80 $this->widget('CLinkPager', array(
81  'header' => '',
82  'pages' => $pages,
83  'maxButtonCount' => 0,
84  /* 'htmlOptions' => array('class' => 'next')*/
85 ));
86 echo CHtml::submitButton('Update', array(
87  "id" => "filter_et_submit",
88  )
89 );
90 echo CHtml::hiddenField('sites', $sites);
91 $this->endWidget();