sqlnavigation
Tag
Attribute List:
This tag represents a navigation element, which will print out a set of
links depending on the attributes of the tag.
Type of tag: Self-closing
Attributes
showNextPrev
Required: No
Values: true | false
If this attribute is included, there will also be a "Next" / "Previous"
link indicated before and after the existing links (if applicable).
style
Required: No
Values: CSS style
Works like any other style
attribute. Will be applied to all links and text included in the
sqlnavigation.
class
Required: No
Values: CSS class
Works like any other class
attribute. Will be applied to
all links and text included in the sqlnavigation.
firstLastPages
Required: No
Values: Any positive integer
This indicates how many pages you want displayed at once. If the value
of firstLastPages is 3,
the first 3 and last 3 links will be displayed, with
"..." in between them (and the current page in regular text). If this
is missing, all pages will be displayed. See also midPages.
midPages
Required: No
Values: Any positive odd
integer.
This number of pages will be
displayed in the middle of the recordset depending on the current page
(i.e. the current page will be surrounded by midPages
/ 2 links). This attribute will be ignored if firstLastPages
is missing.
Some examples (assuming you have 100 pages, firstLastPages
is 2, and midPages is 3):
Page 1:
1 2 ... 99
100
Page 2:
1 2 3
... 99
100
Page 3:
1 2 3 4
... 99 100
Page 4:
1 2 3
4 5 ... 99
100
Page 5:
1 2 ... 4
5 6
... 99 100
Page 50:
1 2 ...
49 50 51
... 99
100
Page 96:
1 2 ...
95 96 97
... 99
100
Page 97:
1 2 ...
96 97 98 99 100
Page 98:
1 2 ... 97 98 99 100
Page 100:
1 2 ... 99 100