Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
13fcc136
Commit
13fcc136
authored
Sep 25, 2007
by
Richard Mansfield
Committed by
Nigel McNie
Oct 17, 2007
Browse files
Add ... when there is a jump in page numbers
parent
24b629a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/theme/default/templates/admin/users/resulttable.tpl
View file @
13fcc136
...
@@ -30,8 +30,10 @@
...
@@ -30,8 +30,10 @@
{
if
$results.page
>
$results.prev
}
{
if
$results.page
>
$results.prev
}
<span
class=
"search-results-page prev"
><a
href=
"?
{
$params
}
&offset=
{
$results.limit
*
$results.prev
}
"
>
{
str
tag
=
prevpage
}
</a></span>
<span
class=
"search-results-page prev"
><a
href=
"?
{
$params
}
&offset=
{
$results.limit
*
$results.prev
}
"
>
{
str
tag
=
prevpage
}
</a></span>
{/
if
}
{/
if
}
{
foreach
from
=
$pagenumbers
item
=
i
}
{
foreach
from
=
$pagenumbers
item
=
i
name
=
pagenumbers
}
{
if
!
$smarty.foreach.pagenumbers.first
&&
$prevpagenum
<
$i
-
1
}
...
{/
if
}
<span
class=
"search-results-page
{
if
$i
==
$results.page
}
selected
{/
if
}
"
><a
href=
"?
{
$params
}
&offset=
{
$i
*
$results.limit
}
"
>
{
$i
+
1
}
</a></span>
<span
class=
"search-results-page
{
if
$i
==
$results.page
}
selected
{/
if
}
"
><a
href=
"?
{
$params
}
&offset=
{
$i
*
$results.limit
}
"
>
{
$i
+
1
}
</a></span>
{
assign
var
=
'prevpagenum'
value
=
$i
}
{/
foreach
}
{/
foreach
}
{
if
$results.page
<
$results.next
}
{
if
$results.page
<
$results.next
}
<span
class=
"search-results-page next"
><a
href=
"?
{
$params
}
&offset=
{
$results.limit
*
$results.next
}
"
>
{
str
tag
=
nextpage
}
</a></span>
<span
class=
"search-results-page next"
><a
href=
"?
{
$params
}
&offset=
{
$results.limit
*
$results.next
}
"
>
{
str
tag
=
nextpage
}
</a></span>
...
...
Write
Preview
Supports
Markdown
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