tpl_title = "ご利用規約"; } /** * Page のプロセス. * * @return void */ function process() { $this->action(); $this->sendResponse(); } /** * Page のアクション. * * @return void */ function action() { // 規約内容の取得 $objQuery = new SC_Query(); $objQuery->setOrder("rank DESC"); $arrRet = $objQuery->select("kiyaku_title, kiyaku_text", "dtb_kiyaku", "del_flg <> 1"); $this->max = count($arrRet); // mobile時はGETでページ指定 if ( Net_UserAgent_Mobile::isMobile() === true ){ $this->offset = is_numeric($_GET['offset'])===true ? $offset = intval($_GET['offset']) : 1; } // 規約文の作成 $this->tpl_kiyaku_text = ""; for ($i = 0; $i < $this->max; $i++) { if ($this->offset !== null && ($this->offset - 1) <> $i) continue; $this->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_title'] . "\n\n"; $this->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_text'] . "\n\n"; } } /** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); } } ?>