Ignore:
Timestamp:
2007/09/28 15:58:44 (15 years ago)
Author:
nanasess
Message:

モバイル対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/mobile/frontparts/bloc/best5.php

    r15532 r16157  
    11<?php 
    2 /* 
    3  * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved. 
     2/** 
     3 * 
     4 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    45 * 
    56 * http://www.lockon.co.jp/ 
     7 * 
     8 * 
     9 * モバイルサイト/Best5 
    610 */ 
    7 class LC_Best5Page { 
    8     function LC_Best5Page() { 
    9         /** 必ず変更する **/ 
    10         $this->tpl_mainpage = 'frontparts/bloc/best5.tpl';  // メイン 
    11     } 
    12 } 
    1311 
    14 $objSubPage = new LC_Best5Page(); 
    15 $objSubView = new SC_MobileView(); 
    16 $objSiteInfo = $objView->objSiteInfo; 
     12// {{{ requires 
     13require_once("../../require.php"); 
     14require_once(CLASS_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5_Ex.php"); 
    1715 
    18 // 基本情報を渡す 
    19 $objSiteInfo = new SC_SiteInfo(); 
    20 $objSubPage->arrInfo = $objSiteInfo->data; 
     16// }}} 
     17// {{{ generate page 
    2118 
    22 //おすすめ商品表示 
    23 $objSubPage->arrBestProducts = lfGetRanking(); 
    24  
    25 $objSubView->assignobj($objSubPage); 
    26 $objSubView->display($objSubPage->tpl_mainpage); 
    27 //----------------------------------------------------------------------------------------------------------------------------------- 
    28 //おすすめ商品検索 
    29 function lfGetRanking(){ 
    30     $objQuery = new SC_Query(); 
    31      
    32     $col = "A.*, name, price02_min, price01_min, main_list_image "; 
    33     $from = "dtb_best_products AS A INNER JOIN vw_products_allclass AS allcls using(product_id)"; 
    34     $where = "status = 1"; 
    35     $order = "rank"; 
    36     $objQuery->setorder($order); 
    37      
    38     $arrBestProducts = $objQuery->select($col, $from, $where); 
    39          
    40     return $arrBestProducts; 
    41 } 
    42  
     19$objPage = new LC_Page_FrontParts_Bloc_Best5_Ex(); 
     20$objPage->mobileInit(); 
     21$objPage->mobileProcess(); 
     22register_shutdown_function(array($objPage, "destroy")); 
    4323?> 
Note: See TracChangeset for help on using the changeset viewer.