source: branches/comu/html/frontparts/bloc/search_products.php @ 12197

Revision 12197, 987 bytes checked in by adati, 17 years ago (diff)

1.3.0正式版のマージ

Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7class LC_SearchProductsPage {
8    function LC_SearchProductsPage() {
9        /** ɬ¤ºÊѹ¹¤¹¤ë **/
10        $this->tpl_mainpage = BLOC_PATH . 'search_products.tpl';    // ¥á¥¤¥ó
11    }
12}
13
14$objSubPage = new LC_SearchProductsPage();
15$arrSearch = array();   // ¸¡º÷¹àÌÜɽ¼¨ÍÑ
16
17// ÁªÂòÃæ¤Î¥«¥Æ¥´¥êID¤òȽÄꤹ¤ë
18$objSubPage->category_id = sfGetCategoryId($_GET['product_id'], $_GET['category_id']);
19// ¥«¥Æ¥´¥ê¸¡º÷ÍÑÁªÂò¥ê¥¹¥È
20$arrRet = sfGetCategoryList('', true, '¡¡');
21
22if(is_array($arrRet)) {
23    // ʸ»ú¥µ¥¤¥º¤òÀ©¸Â¤¹¤ë
24    foreach($arrRet as $key => $val) {
25        $arrRet[$key] = sfCutString($val, SEARCH_CATEGORY_LEN);
26    }
27}
28$objSubPage->arrCatList = $arrRet;
29
30$objSubView = new SC_SiteView();
31$objSubView->assignobj($objSubPage);
32$objSubView->display($objSubPage->tpl_mainpage);
33//-----------------------------------------------------------------------------------------------------------------------------------
34?>
Note: See TracBrowser for help on using the repository browser.