From 7ec20a6d353b764758ebecb5c5bed25ac1525634 Mon Sep 17 00:00:00 2001 From: Aleksandr Shelkovin Date: Mon, 27 Jan 2025 22:18:33 +0300 Subject: [PATCH] add paginator --- AXIOS/page.php | 101 ++++++++++++++++++++++++++++++++++++++++++++++ AXIOS/portial.php | 53 ++++++++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 AXIOS/page.php create mode 100644 AXIOS/portial.php diff --git a/AXIOS/page.php b/AXIOS/page.php new file mode 100644 index 0000000..aa63904 --- /dev/null +++ b/AXIOS/page.php @@ -0,0 +1,101 @@ +'; +foreach ($portial as $value) { + $str .="
  • $value
  • "; +} +$str .= ''; + +$countPage = intdiv($len , $limit); +// var_dump($countPage); + +$paginator = ''; +for ($i = 0; $i < $countPage; $i++) { + $paginator .= ''.$i.' '; +} + +echo << + + + + + Pangination + + + $str +
    + $paginator +
    + + + + + + +abyr; + + + diff --git a/AXIOS/portial.php b/AXIOS/portial.php new file mode 100644 index 0000000..5d00cbc --- /dev/null +++ b/AXIOS/portial.php @@ -0,0 +1,53 @@ +'; +foreach ($portial as $value) { + $str .="
  • $value
  • "; +} +$str .= ''; + +// $countPage = intdiv($len , $limit); +// // var_dump($countPage); + +// $paginator = ''; +// for ($i = 0; $i < $countPage; $i++) { +// $paginator .= ''.$i.' '; +// } + +header('Content-Type: plan/text; charset=utf-8'); +echo ($str); \ No newline at end of file