tpl_mainpage = 'entry/kiyaku.tpl'; $this->tpl_title = "ご利用規約"; } /** * Page のプロセス. * * @return void */ function process() { $objView = new SC_SiteView(); $objCustomer = new SC_Customer(); $objCampaignSess = new SC_CampaignSession(); // レイアウトデザインを取得 $layout = new SC_Helper_PageLayout_Ex(); $objPage = $layout->sfGetPageLayout($this, false, DEF_LAYOUT); // 規約内容の取得 $objQuery = new SC_Query(); $objQuery->setorder("rank DESC"); $arrRet = $objQuery->select("kiyaku_title, kiyaku_text", "dtb_kiyaku", "del_flg <> 1"); $max = count($arrRet); $this->tpl_kiyaku_text = ""; for ($i = 0; $i < $max; $i++) { $this->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_title'] . "\n\n"; $this->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_text'] . "\n\n"; } // キャンペーンからの遷移がチェック $this->is_campaign = $objCampaignSess->getIsCampaign(); $this->campaign_dir = $objCampaignSess->getCampaignDir(); $objView->assignobj($objPage); // フレームを選択(キャンペーンページから遷移なら変更) $objCampaignSess->pageView($objView); } /** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); } } ?>