setTplDir('gakuen'); $limit = 30; $offset = 0; if (isset($_GET['page'])) { $offset = $limit * ($_GET['page']-1); } ?>