Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-hr
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-hr
Commits
e3f3c2dd
Commit
e3f3c2dd
authored
Mar 16, 2005
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- modified all start_idx (pagination) to start with 0 instead of 1
parent
96444437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
index.tcl
www/index.tcl
+3
-5
No files found.
www/index.tcl
View file @
e3f3c2dd
...
...
@@ -30,7 +30,7 @@ ad_page_contract {
} {
{ user_group_name:trim "Employees" }
{ order_by "Name" }
{ start_idx:integer
"1"
}
{ start_idx:integer
0
}
{ how_many:integer "" }
{ letter:trim "all" }
{ view_name "" }
...
...
@@ -492,13 +492,11 @@ if { $ctr == $how_many && $end_idx < $total_in_limited } {
set next_page_url ""
}
if { $start_idx >
1
} {
if { $start_idx >
0
} {
# This means we didn't start with the first row - there is
# at least 1 previous row. add a previous page link
set previous_start_idx [expr $start_idx - $how_many]
if { $previous_start_idx < 1 } {
set previous_start_idx 1
}
if { $previous_start_idx < 0 } { set previous_start_idx 0 }
set previous_page_url "index?start_idx=$previous_start_idx&[export_ns_set_vars url [list start_idx]]"
} else {
set previous_page_url ""
...
...
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