tpl_mainpage = 'ownersstore/log.tpl'; $this->tpl_subnavi = 'ownersstore/subnavi.tpl'; $this->tpl_mainno = 'ownersstore'; $this->tpl_subno = 'log'; $this->tpl_subtitle = 'ログ管理'; } /** * Page のプロセス. * * @return void */ function process() { // ログインチェック SC_Utils::sfIsSuccess(new SC_Session()); $mode = isset($_GET['mode']) ? $_GET['mode'] : ''; switch ($mode) { case 'detail': $objForm = $this->initParam(); if ($objForm->checkError()) { SC_Utils::sfDispError(''); } $this->arrLogDetail = $this->getLogDetail($objForm->getValue('log_id')); if (count($this->arrLogDetail) == 0) { SC_Utils::sfDispError(''); } $this->tpl_mainpage = 'ownersstore/log_detail.tpl'; break; default: break; } $this->arrInstallLogs = $this->getLogs(); // ページ出力 $objView = new SC_AdminView(); $objView->assignObj($this); $objView->display(MAIN_FRAME); } /** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); } function getLogs() { $sql =<<getAll($sql); return isset($arrRet) ? $arrRet : array(); } function initParam() { $objForm = new SC_FormParam(); $objForm->addParam('log_id', 'log_id', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); $objForm->setParam($_GET); return $objForm; } function getLogDetail($log_id) { $sql =<<getAll($sql, array($log_id)); return isset($arrRet[0]) ? $arrRet[0] : array(); } } ?>