/** * get the table * @param string $table * @param int $from * @param int $limit * @return string $html */ public function getTable($table, $from, $limit = 100) { $total = q::numRows('account')->fetch(); $p = new pagination($total); $rows = q::select($table)->limit($p->from, $limit)->fetch(); $str = "<table border =1><tr>"; $str .= $this->getTableHeaders($table); $str .= $this->getTableRows($rows); $str .= "</tr></table>"; $str .= $p->getPagerHTML(); return $str; }