@@ 33-44 (lines=12) @@ | ||
30 | ||
31 | echo $sort->link($this->name, $label, array('class'=>'sort-link')); |
|
32 | } |
|
33 | else |
|
34 | { |
|
35 | if ($this->name !== null && $this->header === null) |
|
36 | { |
|
37 | if ($this->grid->dataProvider instanceof CActiveDataProvider) |
|
38 | echo CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name)); |
|
39 | else |
|
40 | echo CHtml::encode($this->name); |
|
41 | } |
|
42 | else |
|
43 | parent::renderHeaderCellContent(); |
|
44 | } |
|
45 | } |
|
46 | ||
47 | /** |
@@ 217-225 (lines=9) @@ | ||
214 | { |
|
215 | if( $this->grid->enableSorting && $this->sortable && $this->name !== null ) |
|
216 | echo $this->grid->dataProvider->getSort()->link($this->name, $this->header); |
|
217 | else if( $this->name !== null && $this->header === null ) |
|
218 | { |
|
219 | if( $this->grid->dataProvider instanceof CActiveDataProvider ) |
|
220 | echo CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name)); |
|
221 | else |
|
222 | echo CHtml::encode($this->name); |
|
223 | } |
|
224 | else |
|
225 | parent::renderHeaderCellContent(); |
|
226 | } |
|
227 | ||
228 | /** |