setTplMainpage($bloc_file); } /** * Page のプロセス. * * @return void */ function process() { $arrSearch = array(); // 検索項目表示用 $objDb = new SC_Helper_DB_Ex(); // 選択中のカテゴリIDを判定する $this->category_id = $objDb->sfGetCategoryId($_GET['product_id'], $_GET['category_id']); // カテゴリ検索用選択リスト $arrRet = $objDb->sfGetCategoryList('', true, ' '); if(is_array($arrRet)) { // 文字サイズを制限する foreach($arrRet as $key => $val) { $arrRet[$key] = SC_Utils_Ex::sfCutString($val, SEARCH_CATEGORY_LEN, false); } } $this->arrCatList = $arrRet; // 選択中のメーカーIDを判定する $this->maker_id = $objDb->sfGetMakerId($_GET['product_id'], $_GET['maker_id']); // メーカー検索用選択リスト $arrRet = $objDb->sfGetMakerList('', true); if(is_array($arrRet)) { // 文字サイズを制限する foreach($arrRet as $key => $val) { $arrRet[$key] = SC_Utils_Ex::sfCutString($val, SEARCH_CATEGORY_LEN); } } $this->arrMakerList = $arrRet; $objSubView = new SC_SiteView(); $objSubView->assignobj($this); $objSubView->display($this->tpl_mainpage); } /** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); } } ?>