'format' => 'paged=%#%', 'prev_text' => __('«', 'gravityforms'), 'next_text' => __('»', 'gravityforms'), 'total' => $display_total, 'current' => $page_index + 1, 'show_all' => false )); echo self::display_paging_links("header", $page_links, $first_item_index, $page_size, $total_count); */ $page_index = get_query_var('paged') ? get_query_var('paged') - 1 : 0; $page_size = 10; $first_item_index = $page_index * $page_size; $paging = array('offset' => $first_item_index, 'page_size' => $page_size); $total_count = 0; //$total_count = TemplateData::count_doc_entries($form_id,$name,$email,$file_id,$current_user_id); $total_count = TemplateData::count_completed_entries($form_id, $name, $email, $file_id, $current_user_id); $display_total = ceil($total_count / $page_size); //TemplateData::get_completed_orders($form_id,$name,$email,$file_id,$current_user_id); $page_links = paginate_links(array('base' => site_url("myaccount/completed-orders/") . "%_%", 'format' => '?paged=%#%', 'prev_text' => __('«', 'gravityforms'), 'next_text' => __('»', 'gravityforms'), 'total' => $display_total, 'current' => $page_index + 1, 'show_all' => false)); echo self::display_paging_links("header", $page_links, $first_item_index, $page_size, $total_count); ?> <table class="table-new" cellspacing="0" cellpadding="0"> <thead> <tr> <th scope="col" id="cb" class="" style="">S.No</th> <th scope="col" class=""><?php _e("Date", "templatemerge"); ?> </th> <th scope="col" class="manage-column"><?php