10 Yii::import(
'zii.widgets.grid.CDataColumn');
35 if ($this->grid->enableSorting && $this->sortable && $this->name !== null) {
36 $sort = $this->grid->dataProvider->getSort();
37 $label = isset($this->header) ? $this->header : $sort->resolveLabel($this->name);
41 if ($sort->resolveAttribute($this->name) !==
false)
42 $label .=
' <span class="caret"></span>';
53 echo $sort->link($this->name,
$label, array(
'class' =>
'sort-link'));
55 if ($this->name !== null && $this->header === null) {
56 if ($this->grid->dataProvider instanceof CActiveDataProvider) {
57 echo CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name));
59 echo CHtml::encode($this->name);
76 echo CHtml::openTag(
'td', $this->filterHtmlOptions);
77 echo
'<div class="filter-container">';
80 echo CHtml::closeTag(
'td');
92 if (is_string($this->filter)) {
94 }
else if ($this->filter !==
false && $this->grid->filter !== null && $this->name !== null && strpos(
99 if ($this->filterInputOptions) {
113 if (is_array($this->filter)) {
117 echo CHtml::activeDropDownList($this->grid->filter, $this->name, $this->filter,
$filterInputOptions);
118 }
else if ($this->filter === null) {