Revision 15367,
1.5 KB
checked in by nanasess, 17 years ago
(diff) |
クラス化対応
|
-
Property svn:keywords set to
Id Revision Date
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
---|
4 | * |
---|
5 | * http://www.lockon.co.jp/ |
---|
6 | */ |
---|
7 | |
---|
8 | // {{{ requires |
---|
9 | require_once(CLASS_PATH . "pages/LC_Page.php"); |
---|
10 | |
---|
11 | /** |
---|
12 | * 検索ブロック のページクラス. |
---|
13 | * |
---|
14 | * @package Page |
---|
15 | * @author LOCKON CO.,LTD. |
---|
16 | * @version $Id$ |
---|
17 | */ |
---|
18 | class LC_Page_FrontParts_Bloc_SearchProducts extends LC_Page { |
---|
19 | |
---|
20 | // }}} |
---|
21 | // {{{ functions |
---|
22 | |
---|
23 | /** |
---|
24 | * Page を初期化する. |
---|
25 | * |
---|
26 | * @return void |
---|
27 | */ |
---|
28 | function init() { |
---|
29 | parent::init(); |
---|
30 | $this->tpl_mainpage = BLOC_PATH . 'search_products.tpl'; |
---|
31 | } |
---|
32 | |
---|
33 | /** |
---|
34 | * Page のプロセス. |
---|
35 | * |
---|
36 | * @return void |
---|
37 | */ |
---|
38 | function process() { |
---|
39 | $arrSearch = array(); // 検索項目表示用 |
---|
40 | $objDb = new SC_Helper_DB_Ex(); |
---|
41 | // 選択中のカテゴリIDを判定する |
---|
42 | $this->category_id = $objDb->sfGetCategoryId($_GET['product_id'], $_GET['category_id']); |
---|
43 | // カテゴリ検索用選択リスト |
---|
44 | $arrRet = $objDb->sfGetCategoryList('', true, ' '); |
---|
45 | |
---|
46 | if(is_array($arrRet)) { |
---|
47 | // 文字サイズを制限する |
---|
48 | foreach($arrRet as $key => $val) { |
---|
49 | $arrRet[$key] = SC_Utils_Ex::sfCutString($val, SEARCH_CATEGORY_LEN); |
---|
50 | } |
---|
51 | } |
---|
52 | $this->arrCatList = $arrRet; |
---|
53 | |
---|
54 | $objSubView = new SC_SiteView(); |
---|
55 | $objSubView->assignobj($this); |
---|
56 | $objSubView->display($this->tpl_mainpage); |
---|
57 | } |
---|
58 | |
---|
59 | /** |
---|
60 | * デストラクタ. |
---|
61 | * |
---|
62 | * @return void |
---|
63 | */ |
---|
64 | function destroy() { |
---|
65 | parent::destroy(); |
---|
66 | } |
---|
67 | } |
---|
68 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.