Ignore:
Timestamp:
2007/07/20 15:58:59 (17 years ago)
Author:
nanasess
Message:

r15064 から svn cp
とりあえず暫定コミット.

  • UTF-8 に変更
  • slib.php, glib.php のクラス化
  • LC_Page の抽象化(一部)
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
  • branches/feature-module-update/html/mobile/frontparts/bloc/category.php

    r12157 r15078  
    66 * http://www.lockon.co.jp/ 
    77 *  
    8  * ¥â¥Ð¥¤¥ë¥µ¥¤¥È/¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼ 
     8 * モバイルサイト/メインカテゴリー 
    99 */ 
    1010 
    1111class LC_CatPage { 
    1212    function LC_CatPage() { 
    13         /** ɬ¤ºÊѹ¹¤¹¤ë **/ 
    14         $this->tpl_mainpage = 'frontparts/bloc/category.tpl';   // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È 
     13        /** 必ず変更する **/ 
     14        $this->tpl_mainpage = 'frontparts/bloc/category.tpl';   // メインテンプレート 
    1515    } 
    1616} 
     
    2626//----------------------------------------------------------------------------------------------------------------------------------- 
    2727 
    28 // ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤Î¼èÆÀ 
     28// メインカテゴリーの取得 
    2929function lfGetMainCat($count_check = false, $objSubPage) { 
    3030    $objQuery = new SC_Query(); 
    3131    $col = "*"; 
    3232    $from = "dtb_category left join dtb_category_total_count using (category_id)"; 
    33     // ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤È¤½¤Îľ²¼¤Î¥«¥Æ¥´¥ê¡¼¤ò¼èÆÀ¤¹¤ë¡£ 
     33    // メインカテゴリーとその直下のカテゴリーを取得する。 
    3434    $where = 'level <= 2 AND del_flg = 0'; 
    35     // ÅÐÏ¿¾¦ÉÊ¿ô¤Î¥Á¥§¥Ã¥¯ 
     35    // 登録商品数のチェック 
    3636    if($count_check) { 
    3737        $where .= " AND product_count > 0"; 
     
    4040    $arrRet = $objQuery->select($col, $from, $where); 
    4141 
    42     // ¥á¥¤¥ó¥«¥Æ¥´¥ê¡¼¤òÃê½Ð¤¹¤ë¡£ 
     42    // メインカテゴリーを抽出する。 
    4343    $arrMainCat = array(); 
    4444    foreach ($arrRet as $cat) { 
     
    4747        } 
    4848 
    49         // »Ò¥«¥Æ¥´¥ê¡¼¤ò»ý¤Ä¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£ 
     49        // 子カテゴリーを持つかどうかを調べる。 
    5050        $arrChildrenID = sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $cat['category_id']); 
    5151        $cat['has_children'] = count($arrChildrenID) > 0; 
Note: See TracChangeset for help on using the changeset viewer.