tpl_column_num = 3; } /** * Page のプロセス. * * @return void */ function process() { $objView = new SC_SiteView(); $objLayout = new SC_Helper_PageLayout_Ex(); // レイアウトデザインを取得 $objLayout->sfGetPageLayout($this, false, "user_data/store_list.php" ); $objQuery = new SC_Query(); $col = "shop_id, shop_pref, shop_name, shop_group_name, shop_url, shop_comment"; $table = "dtb_shop_list"; $objQuery->setorder("shop_pref ASC, shop_code ASC"); $arrRet = $objQuery->select($col, $table, "del_flg=0"); $shopList = array(); for( $i = 0;$i < count( $arrRet );$i++ ){ $arrRet[$i]['shop_flg'] = false; if( $arrRet[$i]['shop_group_name'] == 'さくら平安堂'){ $arrRet[$i]['shop_flg'] = true; } $shopList[ $arrRet[ $i ]['shop_pref'] ][] = $arrRet[$i]; } $this->tpl_shop_list = $shopList; // 画面の表示 $objView->assignobj($this); $objView->display(SITE_FRAME); } /** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); } } // }}} // {{{ generate page $objPage = new LC_Page_User(); register_shutdown_function(array($objPage, "destroy")); $objPage->init(); $objPage->process(); ?>