Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
23f8988b
Commit
23f8988b
authored
Feb 09, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2384 from zelenin/gridview-header-fix
gridview header/footer fix
parents
67b8d6cd
4583c179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
GridView.php
framework/grid/GridView.php
+5
-4
No files found.
framework/grid/GridView.php
View file @
23f8988b
...
@@ -279,13 +279,14 @@ class GridView extends BaseListView
...
@@ -279,13 +279,14 @@ class GridView extends BaseListView
/** @var Column $column */
/** @var Column $column */
$cells
[]
=
$column
->
renderHeaderCell
();
$cells
[]
=
$column
->
renderHeaderCell
();
}
}
$content
=
implode
(
''
,
$cell
s
);
$content
=
Html
::
tag
(
'tr'
,
implode
(
''
,
$cells
),
$this
->
headerRowOption
s
);
if
(
$this
->
filterPosition
==
self
::
FILTER_POS_HEADER
)
{
if
(
$this
->
filterPosition
==
self
::
FILTER_POS_HEADER
)
{
$content
=
$this
->
renderFilters
()
.
$content
;
$content
=
$this
->
renderFilters
()
.
$content
;
}
elseif
(
$this
->
filterPosition
==
self
::
FILTER_POS_BODY
)
{
}
elseif
(
$this
->
filterPosition
==
self
::
FILTER_POS_BODY
)
{
$content
.=
$this
->
renderFilters
();
$content
.=
$this
->
renderFilters
();
}
}
return
"<thead>
\n
"
.
Html
::
tag
(
'tr'
,
$content
,
$this
->
headerRowOptions
)
.
"
\n
</thead>"
;
return
"<thead>
\n
"
.
$content
.
"
\n
</thead>"
;
}
}
/**
/**
...
@@ -299,11 +300,11 @@ class GridView extends BaseListView
...
@@ -299,11 +300,11 @@ class GridView extends BaseListView
/** @var Column $column */
/** @var Column $column */
$cells
[]
=
$column
->
renderFooterCell
();
$cells
[]
=
$column
->
renderFooterCell
();
}
}
$content
=
implode
(
''
,
$cell
s
);
$content
=
Html
::
tag
(
'tr'
,
implode
(
''
,
$cells
),
$this
->
footerRowOption
s
);
if
(
$this
->
filterPosition
==
self
::
FILTER_POS_FOOTER
)
{
if
(
$this
->
filterPosition
==
self
::
FILTER_POS_FOOTER
)
{
$content
.=
$this
->
renderFilters
();
$content
.=
$this
->
renderFilters
();
}
}
return
"<tfoot>
\n
"
.
Html
::
tag
(
'tr'
,
$content
,
$this
->
footerRowOptions
)
.
"
\n
</tfoot>"
;
return
"<tfoot>
\n
"
.
$content
.
"
\n
</tfoot>"
;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment