Ignore:
Timestamp:
2007/09/28 13:21:16 (15 years ago)
Author:
nanasess
Message:

モバイル対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/mobile/entry/kiyaku.php

    r15532 r16150  
    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 * モバイルサイト/会員規約 
    610 */ 
     11 
     12// {{{ requires 
    713require_once("../require.php"); 
     14require_once(CLASS_PATH . "page_extends/entry/LC_Page_Entry_Kiyaku_Ex.php"); 
    815 
    9 class LC_Page { 
    10     function LC_Page() { 
    11         $this->tpl_mainpage = 'entry/kiyaku.tpl'; 
    12         $this->tpl_title="ご利用規約"; 
    13     } 
    14 } 
     16// }}} 
     17// {{{ generate page 
    1518 
    16 $objPage = new LC_Page(); 
    17 $objView = new SC_MobileView(); 
    18 $objCustomer = new SC_Customer(); 
    19  
    20 $offset = isset($_REQUEST['offset']) ? $_REQUEST['offset'] : 0; 
    21 $next = $offset; 
    22  
    23 // レイアウトデザインを取得 
    24 $objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT); 
    25  
    26 // 規約内容の取得 
    27 $objQuery = new SC_Query(); 
    28 $count = $objQuery->count("dtb_kiyaku", "del_flg <> 1"); 
    29 $objQuery->setorder("rank DESC"); 
    30 $objQuery->setlimitoffset(1, $offset); 
    31 $arrRet = $objQuery->select("kiyaku_title, kiyaku_text", "dtb_kiyaku", "del_flg <> 1"); 
    32  
    33 if($count > $offset + 1){ 
    34     $next++; 
    35 } else { 
    36     $next = -1; 
    37 } 
    38  
    39 $max = count($arrRet); 
    40 $objPage->tpl_kiyaku_text = ""; 
    41 for ($i = 0; $i < $max; $i++) { 
    42     $objPage->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_title'] . "\n\n";  
    43     $objPage->tpl_kiyaku_text.=$arrRet[$i]['kiyaku_text'] . "\n\n";  
    44 } 
    45  
    46 $objView->assign("offset", $next); 
    47 $objView->assignobj($objPage); 
    48 $objView->display(SITE_FRAME); 
    49 //-------------------------------------------------------------------------------------------------------------------------- 
     19$objPage = new LC_Page_Entry_Kiyaku_Ex(); 
     20$objPage->mobileInit(); 
     21$objPage->mobileProcess(); 
     22register_shutdown_function(array($objPage, "destroy")); 
    5023?> 
Note: See TracChangeset for help on using the changeset viewer.