updated print notifications on screen with the new pagination system
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -63,13 +63,13 @@ function print_user_notices($show_more = true) { | ... | @@ -63,13 +63,13 @@ function print_user_notices($show_more = true) { |
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | if (count($notices) < 1) { | 65 | if (count($notices) < 1) { |
| 66 | print '<tr><td colspan="3">You have no new notices.</td></tr>'; | 66 | //print '<tr><td colspan="3">You have no new notices.</td></tr>'; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | $rows = ""; | 69 | $rows = ""; |
| 70 | 70 | ||
| 71 | $last_id = 0; | 71 | $last_id = 0; |
| 72 | for($i = $next_id; $i < $end; $i++) { | 72 | for($i = 0; $i < $total_rows; $i++) { |
| 73 | 73 | ||
| 74 | $the_notice = get_post($notices[$i]['notification_id']); | 74 | $the_notice = get_post($notices[$i]['notification_id']); |
| 75 | $system = get_post_meta($notices[$i]['notification_id'],'system',true); | 75 | $system = get_post_meta($notices[$i]['notification_id'],'system',true); |
| ... | @@ -110,7 +110,7 @@ function print_user_notices($show_more = true) { | ... | @@ -110,7 +110,7 @@ function print_user_notices($show_more = true) { |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | if ($end < $total_rows && CBV\on_page('/notices')) { | 112 | if ($end < $total_rows && CBV\on_page('/notices')) { |
| 113 | $rows .= '<tr id="TzMoreRows"><td colspan="4"><a onclick="return false;" class="load_more_notices" id="'.$last_id.'" href="#">Show more...</a></td></tr>'; | 113 | //$rows .= '<tr id="TzMoreRows"><td colspan="4"><a onclick="return false;" class="load_more_notices" id="'.$last_id.'" href="#">Show more...</a></td></tr>'; |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | if(isset($_POST['ajax'])) { | 116 | if(isset($_POST['ajax'])) { | ... | ... |
-
Please register or sign in to post a comment