class Helper_Page{
/**メッセージの総数*/
var $infoCount;
/**総ページ数*/
var $pageCount;
/**ページごとに表示されるアイテムの数*/
var $items;
/**現在のページ番号*/
var $pageNo;
/**クエリの開始位置*/
var $startPos;
/**次のページ*/
var $nextPageNo;
/**前のページ*/
var $prevPageNo;
function Helper_Page($infoCount, $items, $pageNo)
{
$this->infoCount = $infoCount;
$this->items = $items;
$this->ページ番号 = $ページ番号;
$this->pageCount = $this->GetPageCount();
$this->AdjustPageNo();
$this->startPos = $this->GetStartPos();
}
function AdjustPageNo()
{
if($this->pageNo == '' || $this->pageNo $this->;ページ番号 = 1;
if ($this->pageNo > $this->pageCount)
$this->pageNo = $this->pageCount;
}
/**
* 次のページ
*/
function GoToNextPage()
{
$nextPageNo = $this->pageNo 1;
if ($nextPageNo > $this->pageCount)
{
$this->nextPageNo = $this->pageCount;
false を返します。
}
$this->nextPageNo = $nextPageNo;
true を返します。
}
/**
* 前のページ
*/
関数 GotoPrevPage()
{
$prevPageNo = $this->pageNo - 1;
if ($prevPageNo {
$this->prevPageNo = 1;
false を返します。
}
$this->prevPageNo = $prevPageNo;
true を返します。
}
function GetPageCount()
{
return ceil($this->infoCount / $this->items);
}
function GetStartPos()
{
return ($this->pageNo - 1) * $this->items;
}
}

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事

ホットツール

VSCode Windows 64 ビットのダウンロード
Microsoft によって発売された無料で強力な IDE エディター

ドリームウィーバー CS6
ビジュアル Web 開発ツール

WebStorm Mac版
便利なJavaScript開発ツール

Safe Exam Browser
Safe Exam Browser は、オンライン試験を安全に受験するための安全なブラウザ環境です。このソフトウェアは、あらゆるコンピュータを安全なワークステーションに変えます。あらゆるユーティリティへのアクセスを制御し、学生が無許可のリソースを使用するのを防ぎます。

ゼンドスタジオ 13.0.1
強力な PHP 統合開発環境
