- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/mobile/frontparts/bloc/category.php
r12157 r15078 6 6 * http://www.lockon.co.jp/ 7 7 * 8 * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼8 * モバイルサイト/メインカテゴリー 9 9 */ 10 10 11 11 class LC_CatPage { 12 12 function LC_CatPage() { 13 /** ɬ¤ºÊѹ¹¤¹¤ë**/14 $this->tpl_mainpage = 'frontparts/bloc/category.tpl'; // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È13 /** 必ず変更する **/ 14 $this->tpl_mainpage = 'frontparts/bloc/category.tpl'; // メインテンプレート 15 15 } 16 16 } … … 26 26 //----------------------------------------------------------------------------------------------------------------------------------- 27 27 28 // ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤Î¼èÆÀ28 // メインカテゴリーの取得 29 29 function lfGetMainCat($count_check = false, $objSubPage) { 30 30 $objQuery = new SC_Query(); 31 31 $col = "*"; 32 32 $from = "dtb_category left join dtb_category_total_count using (category_id)"; 33 // ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤È¤½¤Îľ²¼¤Î¥«¥Æ¥´¥ê¡¼¤ò¼èÆÀ¤¹¤ë¡£33 // メインカテゴリーとその直下のカテゴリーを取得する。 34 34 $where = 'level <= 2 AND del_flg = 0'; 35 // ÅÐÏ¿¾¦ÉÊ¿ô¤Î¥Á¥§¥Ã¥¯35 // 登録商品数のチェック 36 36 if($count_check) { 37 37 $where .= " AND product_count > 0"; … … 40 40 $arrRet = $objQuery->select($col, $from, $where); 41 41 42 // ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤òÃê½Ð¤¹¤ë¡£42 // メインカテゴリーを抽出する。 43 43 $arrMainCat = array(); 44 44 foreach ($arrRet as $cat) { … … 47 47 } 48 48 49 // »Ò¥«¥Æ¥´¥ê¡¼¤ò»ý¤Ä¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£49 // 子カテゴリーを持つかどうかを調べる。 50 50 $arrChildrenID = sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $cat['category_id']); 51 51 $cat['has_children'] = count($arrChildrenID) > 0;
Note: See TracChangeset
for help on using the changeset viewer.