Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-tasks
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-timesheet2-tasks
Commits
7b4d66f3
Commit
7b4d66f3
authored
May 10, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed pagination for long lists of tasks
parent
ea5d634f
Pipeline
#485
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
intranet-timesheet2-tasks-procs.tcl
tcl/intranet-timesheet2-tasks-procs.tcl
+6
-2
No files found.
tcl/intranet-timesheet2-tasks-procs.tcl
View file @
7b4d66f3
...
...
@@ -84,6 +84,7 @@ ad_proc -public im_timesheet_task_list_component {
Creates a HTML table showing a table of Tasks
}
{
set user_id
[
ad_get_user_id
]
if
{
""
==
$current
_page_url
}
{
set current_page_url
"/intranet-timesheet2-tasks/index"
}
set bgcolor
(
0
)
" class=roweven"
set bgcolor
(
1
)
" class=rowodd"
...
...
@@ -323,7 +324,7 @@ ad_proc -public im_timesheet_task_list_component {
# Include a link to go to the next page
set next_start_idx
[
expr
$end
_idx + 1
]
set task_max_entries_per_page
$max
_entries_per_page
set next_page_url
"
$current
_page_url?
[
export_url_vars task_object_id task_max_entries_per_page order_by
]
&task_start_idx=
$next
_start_idx
&
$pass
_through_vars_html"
set next_page_url
"
[
export_vars -base
$current
_page_url
{
task_object_id task_max_entries_per_page order_by
{
task_start_idx
$next
_start_idx
}
{
project_id
$restrict
_to_project_id
}}]
&
$pass
_through_vars_html"
set next_page_html
"(
$remaining
_items more) <A href=
\"
$next
_page_url
\"
>>></a>"
}
else
{
set next_page_html
""
...
...
@@ -334,7 +335,10 @@ ad_proc -public im_timesheet_task_list_component {
# at least 1 previous row. add a previous page link
set previous_start_idx
[
expr
$start
_idx -
$max
_entries_per_page
]
if
{
$previous
_start_idx < 0
}
{
set previous_start_idx 0
}
set previous_page_html
"<A href=
$current
_page_url?
$pass
_through_vars_html&order_by=
$order
_by&task_start_idx=
$previous
_start_idx><<</a>"
set previous_page_url
"
[
export_vars -base
$current
_page_url
{
task_object_id task_max_entries_per_page order_by
{
task_start_idx
$previous
_start_idx
}
{
project_id
$restrict
_to_project_id
}}]
&
$pass
_through_vars_html"
set previous_page_html
"<A href=
\"
$previous
_page_url
\"
><<</a>"
}
else
{
set previous_page_html
""
}
...
...
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