Changeset 16155


Ignore:
Timestamp:
2007/09/28 15:15:05 (17 years ago)
Author:
nanasess
Message:

モバイル対応

Location:
branches/feature-module-update
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/entry/LC_Page_Entry.php

    r16151 r16155  
    3737        $this->arrJob = $masterData->getMasterData("mtb_job"); 
    3838        $this->arrReminder = $masterData->getMasterData("mtb_reminder"); 
    39         $objDate = new SC_Date(); 
    40         $this->arrYear = $objDate->getYear('', 1950);   // 日付プルダウン設定 
    41         $this->arrMonth = $objDate->getMonth(); 
    42         $this->arrDay = $objDate->getDay(); 
     39        $this->objDate = new SC_Date(START_BIRTH_YEAR, date("Y",strtotime("now"))); 
     40        $this->arrYear = $this->objDate->getYear('', 1950); // 日付プルダウン設定 
     41        $this->arrMonth = $this->objDate->getMonth(); 
     42        $this->arrDay = $this->objDate->getDay(); 
    4343    } 
    4444 
     
    307307            $this->arrForm = $_POST; 
    308308 
    309             if($this->arrForm['year'] == '----') { 
     309            if(isset($this->arrForm['year']) 
     310               && $this->arrForm['year'] == '----') { 
    310311                $this->arrForm['year'] = ''; 
    311312            } 
     
    389390 
    390391                    //メール受け取り 
    391                     if (strtolower($this->arrForm['mail_flag']) == "on") { 
     392                    if (isset($this->arrForm['mail_flag']) && strtolower($this->arrForm['mail_flag']) == "on") { 
    392393                        $this->arrForm['mail_flag']  = "2"; 
    393394                    } else { 
     
    480481                    $objMailText->assignobj($this); 
    481482                    $objHelperMail = new SC_Helper_Mail_Ex(); 
     483                    $objQuery = new SC_Query(); 
    482484 
    483485                    // 仮会員が有効の場合 
  • branches/feature-module-update/data/class/pages/entry/LC_Page_Entry_Complete.php

    r15565 r16155  
    7070 
    7171    /** 
     72     * モバイルページを初期化する. 
     73     * 
     74     * @return void 
     75     */ 
     76    function mobileInit() { 
     77        $this->init(); 
     78    } 
     79 
     80    /** 
     81     * Page のプロセス(モバイル). 
     82     * 
     83     * @return void 
     84     */ 
     85    function mobileProcess() { 
     86        $objView = new SC_MobileView(); 
     87 
     88        // レイアウトデザインを取得 
     89        $objLayout = new SC_Helper_PageLayout_Ex(); 
     90        $objLayout->sfGetPageLayout($this, false, DEF_LAYOUT); 
     91 
     92        //---- ページ表示 
     93        $objView->assignobj($this); 
     94        $objView->display(SITE_FRAME); 
     95    } 
     96 
     97    /** 
    7298     * デストラクタ. 
    7399     * 
  • branches/feature-module-update/html/mobile/entry/complete.php

    r15532 r16155  
    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_Complete_Ex.php"); 
    815 
    9 class LC_Page { 
    10     function LC_Page() { 
    11         $this->tpl_css = '/css/layout/entry/complete.css';  // メインCSSパス 
    12          
    13         if(CUSTOMER_CONFIRM_MAIL == true) { 
    14             // 仮会員登録完了 
    15             $this->tpl_mainpage = 'entry/complete.tpl';         // メインテンプレート 
    16         } else { 
    17             // 本会員登録完了 
    18             $this->tpl_mainpage = 'regist/complete.tpl';        // メインテンプレート             
    19         } 
    20          
    21         $this->tpl_title .= '会員登録(完了ページ)';          // ページタイトル 
    22     } 
    23 } 
     16// }}} 
     17// {{{ generate page 
    2418 
    25 $objPage = new LC_Page(); 
    26 $objView = new SC_MobileView(); 
    27  
    28  
    29 // レイアウトデザインを取得 
    30 $objPage = sfGetPageLayout($objPage, false, DEF_LAYOUT); 
    31  
    32 //---- ページ表示 
    33 $objView->assignobj($objPage); 
    34 $objView->display(SITE_FRAME); 
    35  
    36 //---------------------------------------------------------------------------------------------------------------------- 
     19$objPage = new LC_Page_Entry_Complete_Ex(); 
     20$objPage->mobileInit(); 
     21$objPage->mobileProcess(); 
     22register_shutdown_function(array($objPage, "destroy")); 
    3723?> 
Note: See TracChangeset for help on using the changeset viewer.