'; echo '
'; echo ''; } public function create_table() { $total = $this->total_entries(); if ($total) { $pag = new pagination; $pag->items($total); $pag->limit(15); // Limit entries per page $pag->target(admin_url("/options-general.php?page=affiliate-hoover-plugin-admin&tracking=here")); $pag->currentPage($pag->page); // Gets and validates the current page $pag->calculate(); // Calculates what to show $pag->parameterName('paging'); $pag->adjacents(1); //No. of page away from the current page if (!isset($_GET['paging'])) { $pag->page = 1; } else { $pag->page = $_GET['paging']; } //Query for limit paging $limit = "LIMIT ".($pag->page - 1) * $pag->limit.", ".$pag->limit; } if (isset($limit) && $limit != NULL) { echo '| Date | '; $table .= 'Post | '; $table .= 'IP | '; $table .= '# clicks | '; $table .= '
|---|---|---|---|
| '; $date = date_create($result->date); echo date_format($date, 'h:i:s A, l jS \of F Y'); echo ' | '; echo ''; echo $post->post_title; echo ' | '; echo ''; echo $result->ip; echo ' | '; echo ''; echo 1; echo ' | '; echo '
No entries yet
'; } // end if($data) { } } ?>