Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
91e5e2eb
authored
2011-03-21 16:43:02 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated print notifications on screen with the new pagination system
1 parent
3f85ed05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
com/Notifications/Notifications.php
com/Notifications/Notifications.php
View file @
91e5e2e
...
...
@@ -63,13 +63,13 @@ function print_user_notices($show_more = true) {
if
(
count
(
$notices
)
<
1
)
{
print
'<tr><td colspan="3">You have no new notices.</td></tr>'
;
//
print '<tr><td colspan="3">You have no new notices.</td></tr>';
}
$rows
=
""
;
$last_id
=
0
;
for
(
$i
=
$next_id
;
$i
<
$end
;
$i
++
)
{
for
(
$i
=
0
;
$i
<
$total_rows
;
$i
++
)
{
$the_notice
=
get_post
(
$notices
[
$i
][
'notification_id'
]);
$system
=
get_post_meta
(
$notices
[
$i
][
'notification_id'
],
'system'
,
true
);
...
...
@@ -110,7 +110,7 @@ function print_user_notices($show_more = true) {
}
if
(
$end
<
$total_rows
&&
CBV\on_page
(
'/notices'
))
{
$rows
.=
'<tr id="TzMoreRows"><td colspan="4"><a onclick="return false;" class="load_more_notices" id="'
.
$last_id
.
'" href="#">Show more...</a></td></tr>'
;
//
$rows .= '<tr id="TzMoreRows"><td colspan="4"><a onclick="return false;" class="load_more_notices" id="'.$last_id.'" href="#">Show more...</a></td></tr>';
}
if
(
isset
(
$_POST
[
'ajax'
]))
{
...
...
Please
register
or
sign in
to post a comment