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:
3 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/best5.php

    r12157 r15078  
    77class LC_Best5Page { 
    88    function LC_Best5Page() { 
    9         /** ɬ¤ºÊѹ¹¤¹¤ë **/ 
    10         $this->tpl_mainpage = 'frontparts/bloc/best5.tpl';  // ¥á¥¤¥ó 
     9        /** 必ず変更する **/ 
     10        $this->tpl_mainpage = 'frontparts/bloc/best5.tpl';  // メイン 
    1111    } 
    1212} 
     
    1616$objSiteInfo = $objView->objSiteInfo; 
    1717 
    18 // ´ðËܾðÊó¤òÅϤ¹ 
     18// 基本情報を渡す 
    1919$objSiteInfo = new SC_SiteInfo(); 
    2020$objSubPage->arrInfo = $objSiteInfo->data; 
    2121 
    22 //¤ª¤¹¤¹¤á¾¦ÉÊɽ¼¨ 
     22//おすすめ商品表示 
    2323$objSubPage->arrBestProducts = lfGetRanking(); 
    2424 
     
    2626$objSubView->display($objSubPage->tpl_mainpage); 
    2727//----------------------------------------------------------------------------------------------------------------------------------- 
    28 //¤ª¤¹¤¹¤á¾¦Éʸ¡º÷ 
     28//おすすめ商品検索 
    2929function lfGetRanking(){ 
    3030    $objQuery = new SC_Query(); 
  • 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; 
  • branches/feature-module-update/html/mobile/frontparts/bloc/news.php

    r12157 r15078  
    77class LC_NewsPage { 
    88    function LC_NewsPage() { 
    9         /** ɬ¤ºÊѹ¹¤¹¤ë **/ 
    10         $this->tpl_mainpage = 'frontparts/bloc/news.tpl';   // ¥á¥¤¥ó 
     9        /** 必ず変更する **/ 
     10        $this->tpl_mainpage = 'frontparts/bloc/news.tpl';   // メイン 
    1111    } 
    1212} 
     
    1515$objSubView = new SC_MobileView(); 
    1616 
    17 //¿·Ãå¾ðÊó¼èÆÀ 
     17//新着情報取得 
    1818$objSubPage->arrNews = lfGetNews(); 
    1919 
Note: See TracChangeset for help on using the changeset viewer.