'; echo '
Click checkbox to turn off tracking'; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
Turn off tracking
'; echo '

'; 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 '
'; echo '
'; echo ''.$total.' items'; echo $pag->show(); echo '
'; echo '
'; $data = $this->get_all($limit); } if (isset($data) && $data != NULL) { $table = ''; $table .= ''; $table .= ''; $table .= ''; $table .= ''; $table .= ''; $table .= ''; $table .= ''; $table .= ''; $table .= ''; echo $table; foreach ($data as $result) { $post = (int)$result->post_id; $post = get_post($post, OBJECT); if ($post === NULL) continue; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
DatePostIP# clicks
'; $date = date_create($result->date); echo date_format($date, 'h:i:s A, l jS \of F Y'); echo ''; echo $post->post_title; echo ''; echo $result->ip; echo ''; echo 1; echo '
'; } else { echo '

No entries yet

'; } // end if($data) { } } ?>