diff --git a/htdocs/index.php b/htdocs/index.php index 2c5aca1..23f50c8 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -1,24 +1,15 @@ getList(); -// $list = [ -// [ -// 'id' => 1, -// 'title' => 'text', -// 'updated_at' => '2020-04-01 12:13', -// ], -// [ -// 'id' => 2, -// 'title' => 'text', -// 'updated_at' => '2020-04-01 12:13', -// ], -// ]; +$page = !empty($_GET["p"])?$_GET["p"]:1; +$max_count = $db->getCount(); +$max_page = ceil($max_count/$list_max_count); +$list = $db->getList($page, $list_max_count); ?> @@ -40,6 +31,11 @@ $list = $db->getList();
+
+ +
0) { echo ' @@ -80,6 +76,14 @@ $list = $db->getList(); echo '無資料'; } ?> +
+ +