$prev_page_idx = 0; $next_page_idx = 1; if (isset($_GET['page_idx'])) { $current_page_idx = $_GET['page_idx']; $prev_page_idx = $current_page_idx > 0 ? $current_page_idx - 1 : 0; $next_page_idx = $current_page_idx + 1; } $subscribers = EZP_CS_Query_Utility::get_subscriber_list($current_page_idx); $next_url = admin_url("admin.php?page=easy-pie-coming-soon-subscribers&page_idx={$next_page_idx}"); $prev_url = admin_url("admin.php?page=easy-pie-coming-soon-subscribers&page_idx={$prev_page_idx}"); if ($current_page_idx == 0) { $prev_disabled = 'disabled'; } else { $prev_disabled = ''; } $num_pages = EZP_CS_Query_Utility::get_subscriber_pages(); if ($next_page_idx >= $num_pages) { $next_disabled = 'disabled'; } else { $next_disabled = ''; } if ($num_pages == 0) { $controls_display = 'none'; } else { $controls_display = 'block'; } ?> <div class="postbox" style="margin-top:12px;" > <div class="inside" id="easy-pie-cs-postbox-inside" >