91e5e2eb by Kevin Burton

updated print notifications on screen with the new pagination system

1 parent 3f85ed05
......@@ -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'])) {
......