Ignore:
Timestamp:
2011/01/18 20:06:28 (15 years ago)
Author:
kotani
Message:

#880(mobile/sphoneディレクトリを削除)に対応。(mobile/mypageディレクトリ)

  • モバイルサイトのMYページをPCサイトの動作に合わせる。
  • mobileAction() を削除し、ビジネスロジック統一。
Location:
branches/version-2_5-dev/data/class/pages/mypage
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage.php

    r19915 r19959  
    5050        parent::init(); 
    5151        $this->tpl_title = 'MYページ'; 
    52         $this->tpl_subtitle = '購入履歴一覧'; 
     52        if (Net_UserAgent_Mobile::isMobile() === true){ 
     53            $this->tpl_subtitle = 'MYページ'; 
     54        } else { 
     55            $this->tpl_subtitle = '購入履歴一覧'; 
     56        } 
    5357        $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl'; 
    5458        $this->tpl_mainno = 'mypage'; 
     
    6468    function process() { 
    6569        parent::process(); 
    66         if (Net_UserAgent_Mobile::isMobile() === true){ 
    67             $this->mobileAction(); 
    68         } else { 
    69             $this->action(); 
    70         } 
     70        $this->action(); 
    7171        $this->sendResponse(); 
    7272    } 
     
    8383         
    8484        // 退会判定用情報の取得 
    85         $this->tpl_login = $objCustomer->isLoginSuccess(); 
     85        $this->tpl_login = $objCustomer->isLoginSuccess(true); 
    8686 
    8787        // ログインチェック 
    88         if(!$objCustomer->isLoginSuccess()) { 
     88        if(!$objCustomer->isLoginSuccess(true)) { 
    8989            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    9090        }else { 
     
    109109        $this->tpl_linemax = $linemax; 
    110110 
    111         // ページ送りの取得 
    112         $objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, SEARCH_PMAX, "fnNaviPage", NAVI_PMAX); 
    113         $this->tpl_strnavi = $objNavi->strnavi;     // 表示文字列 
    114         $startno = $objNavi->start_row; 
     111        if (Net_UserAgent_Mobile::isMobile() === true){ 
     112            define ("HISTORY_NUM", 5);  // TODO 
     113            $pageNo = isset($_GET['pageno']) ? (int) $_GET['pageno'] : 0; // TODO 
    115114 
    116         // 取得範囲の指定(開始行番号、行数のセット) 
    117         $objQuery->setLimitOffset(SEARCH_PMAX, $startno); 
     115            // ページ送りの取得 
     116            // next 
     117            if ($pageNo + HISTORY_NUM < $linemax) { 
     118                $next = "<a href='index.php?pageno=" . ($pageNo + HISTORY_NUM) . "'>次へ→</a>"; 
     119            } else { 
     120                $next = ""; 
     121            } 
     122 
     123            // previous 
     124            if ($pageNo - HISTORY_NUM > 0) { 
     125                $previous = "<a href='index.php?pageno=" . ($pageNo - HISTORY_NUM) . "'>←前へ</a>"; 
     126            } elseif ($pageNo == 0) { 
     127                $previous = ""; 
     128            } else { 
     129                $previous = "<a href='index.php?pageno=0'>←前へ</a>"; 
     130            } 
     131 
     132            // bar 
     133            if ($next != '' && $previous != '') { 
     134                $bar = " | "; 
     135            } else { 
     136                $bar = ""; 
     137            } 
     138 
     139            $this->tpl_strnavi = $previous . $bar . $next; 
     140 
     141            // 取得範囲の指定(開始行番号、行数のセット) 
     142            $objQuery->setLimitOffset(HISTORY_NUM, $pageNo); 
     143        } else { 
     144            // ページ送りの取得 
     145            $objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, SEARCH_PMAX, "fnNaviPage", NAVI_PMAX); 
     146            $this->tpl_strnavi = $objNavi->strnavi;     // 表示文字列 
     147            $startno = $objNavi->start_row; 
     148             
     149            // 取得範囲の指定(開始行番号、行数のセット) 
     150            $objQuery->setLimitOffset(SEARCH_PMAX, $startno); 
     151        } 
     152         
    118153        // 表示順序 
    119154        $objQuery->setOrder($order); 
     
    126161        $this->arrPayment = $objDb->sfGetIDValueList("dtb_payment", "payment_id", "payment_method"); 
    127162 
    128     } 
    129      
    130     /** 
    131      * Page のAction(モバイル). 
    132      * 
    133      * @return void 
    134      */ 
    135     function mobileAction() { 
    136         $objQuery = new SC_Query(); 
    137         $objCustomer = new SC_Customer(); 
    138         // クッキー管理クラス 
    139         $objCookie = new SC_Cookie(COOKIE_EXPIRE); 
    140         // パラメータ管理クラス 
    141         $objFormParam = new SC_FormParam(); 
    142         // パラメータ情報の初期化 
    143         $this->lfInitParam($objFormParam); 
    144         // POST値の取得 
    145         $objFormParam->setParam($_POST); 
    146  
    147         // 携帯端末IDが一致する会員が存在するかどうかをチェックする。 
    148         $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); 
    149  
    150         if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    151  
    152         // ログイン処理 
    153         if($_POST['mode'] == 'login') { 
    154             $objFormParam->toLower('login_email'); 
    155             $arrErr = $objFormParam->checkError(); 
    156             $arrForm =  $objFormParam->getHashArray(); 
    157  
    158             // クッキー保存判定 
    159             if ($arrForm['login_memory'] == "1" && $arrForm['login_email'] != "") { 
    160                 $objCookie->setCookie('login_email', $_POST['login_email']); 
    161             } else { 
    162                 $objCookie->setCookie('login_email', ''); 
    163             } 
    164  
    165             if (count($arrErr) == 0){ 
    166                 if($objCustomer->getCustomerDataFromMobilePhoneIdPass($arrForm['login_pass']) || 
    167                    $objCustomer->getCustomerDataFromEmailPass($arrForm['login_pass'], $arrForm['login_email'], true)) { 
    168                     // ログインが成功した場合は携帯端末IDを保存する。 
    169                     $objCustomer->updateMobilePhoneId(); 
    170  
    171                     /* 
    172                      * email がモバイルドメインでは無く, 
    173                      * 携帯メールアドレスが登録されていない場合 
    174                      */ 
    175                     $objMobile = new SC_Helper_Mobile_Ex(); 
    176                     if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 
    177                         if (!$objCustomer->hasValue('email_mobile')) { 
    178                             SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 
    179                             exit; 
    180                         } 
    181                     } 
    182                 } else { 
    183                     $objQuery = new SC_Query; 
    184                     $where = "(email = ? OR email_mobile = ?) AND status = 1 AND del_flg = 0"; 
    185                     $ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email'], $arrForm['login_email'])); 
    186  
    187                     if($ret > 0) { 
    188                         SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 
    189                     } else { 
    190                         SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 
    191                     } 
    192                 } 
    193             } 
    194         } 
    195  
    196         /* 
    197          * ログインチェック 
    198          * 携帯メールの登録を必須にする場合は isLoginSuccess(false) にする 
    199          */ 
    200         if(!$objCustomer->isLoginSuccess(true)) { 
    201             $this->tpl_mainpage = 'mypage/login.tpl'; 
    202             foreach ($objFormParam->getHashArray() as $key => $val) { 
    203                 $this->$key = $val; 
    204             } 
    205             if (empty($arrErr)) $arrErr = array(); 
    206             $this->arrErr = $arrErr; 
    207         }else { 
    208             //マイページトップ顧客情報表示用 
    209             $this->CustomerName1 = $objCustomer->getvalue('name01'); 
    210             $this->CustomerName2 = $objCustomer->getvalue('name02'); 
    211             $this->CustomerPoint = $objCustomer->getvalue('point'); 
    212         } 
    213163    } 
    214164 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php

    r19908 r19959  
    3030 * @package Page 
    3131 * @author LOCKON CO.,LTD. 
    32  * @version $Id: LC_Page_Mypage.php 16582 2007-10-29 03:06:29Z nanasess $ 
     32 * @version $Id: $ 
    3333 */ 
    3434class LC_Page_MyPage_Favorite extends LC_Page { 
     
    7474    function action() { 
    7575 
    76         //$objView = new SC_SiteView(); 
    7776        $objQuery = new SC_Query(); 
    7877        $objCustomer = new SC_Customer(); 
    7978         
    8079        // 退会判定用情報の取得 
    81         $this->tpl_login = $objCustomer->isLoginSuccess(); 
     80        $this->tpl_login = $objCustomer->isLoginSuccess(true); 
    8281 
    8382        // ログインチェック 
    84         if(!$objCustomer->isLoginSuccess()) { 
     83        if(!$objCustomer->isLoginSuccess(true)) { 
    8584            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    8685        }else { 
     
    139138        // 入力情報を渡す 
    140139        $this->arrForm = $this->objFormParam->getFormParamList(); 
    141         //$objView->assignobj($this);               //$objpage内の全てのテンプレート変数をsmartyに格納 
    142         //$objView->display(SITE_FRAME);                //パスとテンプレート変数の呼び出し、実行 
    143     } 
    144  
    145     /** 
    146      * モバイルページを初期化する. 
    147      * 
    148      * @return void 
    149      */ 
    150     function mobileInit() { 
    151         $this->init(); 
    152         $this->tpl_mainpage = 'mypage/favorite.tpl'; 
    153         $this->tpl_title = 'MYページ/お気に入り一覧'; 
    154     } 
    155  
    156     /** 
    157      * Page のプロセス(モバイル). 
    158      * 
    159      * @return void 
    160      */ 
    161     function mobileProcess() { 
    162         parent::mobileProcess(); 
    163         $this->mobileAction(); 
    164         $this->sendResponse(); 
    165     } 
    166  
    167     /** 
    168      * Page のAction(モバイル). 
    169      * 
    170      * @return void 
    171      */ 
    172     function mobileAction() { 
    173         //$objView = new SC_MobileView(); 
    174         $objQuery = new SC_Query(); 
    175         $objCustomer = new SC_Customer(); 
    176         // クッキー管理クラス 
    177         $objCookie = new SC_Cookie(COOKIE_EXPIRE); 
    178         // パラメータ管理クラス 
    179         $objFormParam = new SC_FormParam(); 
    180         // パラメータ情報の初期化 
    181         $this->lfInitParamMobile($objFormParam); 
    182         // POST値の取得 
    183         $objFormParam->setParam($_POST); 
    184  
    185         // 携帯端末IDが一致する会員が存在するかどうかをチェックする。 
    186         $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); 
    187  
    188         if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    189  
    190         // ログイン処理 
    191         if($_POST['mode'] == 'login') { 
    192             $objFormParam->toLower('login_email'); 
    193             $arrErr = $objFormParam->checkError(); 
    194             $arrForm =  $objFormParam->getHashArray(); 
    195  
    196             // クッキー保存判定 
    197             if ($arrForm['login_memory'] == "1" && $arrForm['login_email'] != "") { 
    198                 $objCookie->setCookie('login_email', $_POST['login_email']); 
    199             } else { 
    200                 $objCookie->setCookie('login_email', ''); 
    201             } 
    202  
    203             if (count($arrErr) == 0){ 
    204                 if($objCustomer->getCustomerDataFromMobilePhoneIdPass($arrForm['login_pass']) || 
    205                    $objCustomer->getCustomerDataFromEmailPass($arrForm['login_pass'], $arrForm['login_email'], true)) { 
    206                     // ログインが成功した場合は携帯端末IDを保存する。 
    207                     $objCustomer->updateMobilePhoneId(); 
    208  
    209                     /* 
    210                      * email がモバイルドメインでは無く, 
    211                      * 携帯メールアドレスが登録されていない場合 
    212                      */ 
    213                     $objMobile = new SC_Helper_Mobile_Ex(); 
    214                     if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 
    215                         if (!$objCustomer->hasValue('email_mobile')) { 
    216                             SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 
    217                         } 
    218                     } 
    219                 } else { 
    220                     $objQuery = new SC_Query; 
    221                     $where = "(email = ? OR email_mobile = ?) AND status = 1 AND del_flg = 0"; 
    222                     $ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email'], $arrForm['login_email'])); 
    223  
    224                     if($ret > 0) { 
    225                         SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 
    226                     } else { 
    227                         SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 
    228                     } 
    229                 } 
    230             } 
    231         } 
    232  
    233         // TODO objViewを分けるので、$thisに置き換える TPLの修正が必須かな? 
    234         /* 
    235          * ログインチェック 
    236          * 携帯メールの登録を必須にする場合は isLoginSuccess(false) にする 
    237          */ 
    238         if(!$objCustomer->isLoginSuccess(true)) { 
    239             $this->tpl_mainpage = 'mypage/login.tpl'; 
    240             $objView->assignArray($objFormParam->getHashArray()); 
    241             if (empty($arrErr)) $arrErr = array(); 
    242             $objView->assignArray(array("arrErr" => $arrErr)); 
    243         }else { 
    244             //マイページトップ顧客情報表示用 
    245             $this->CustomerName1 = $objCustomer->getvalue('name01'); 
    246             $this->CustomerName2 = $objCustomer->getvalue('name02'); 
    247         } 
    248  
    249         //$objView->assignobj($this);               //$objpage内の全てのテンプレート変数をsmartyに格納 
    250         //$objView->display(SITE_FRAME);                //パスとテンプレート変数の呼び出し、実行 
    251  
    252140    } 
    253141 
     
    270158    } 
    271159 
    272     /* パラメータ情報の初期化 */ 
    273     function lfInitParamMobile(&$objFormParam) { 
    274  
    275         $objFormParam->addParam("記憶する", "login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    276         $objFormParam->addParam("メールアドレス", "login_email", MTEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    277         $objFormParam->addParam("パスワード", "login_pass", STEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    278     } 
    279  
    280160    // お気に入り商品削除 
    281161    function lfDeleteFavoriteProduct($customer_id, $product_id) { 
     
    289169        } 
    290170    } 
    291  
    292  
    293  
    294171} 
    295172?> 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_History.php

    r19912 r19959  
    5252        $this->arrMAILTEMPLATE = $masterData->getMasterData("mtb_mail_template"); 
    5353        $this->arrPref = $masterData->getMasterData('mtb_pref'); 
    54          
    55         $this->isMobile = Net_UserAgent_Mobile::isMobile(); 
    5654   } 
    5755 
     
    6361    function process() { 
    6462        parent::process(); 
    65         if ( $this->isMobile === false ){ 
    66             $this->action(); 
    67         } else { 
    68             $this->mobileAction(); 
    69         } 
     63        $this->action(); 
    7064        $this->sendResponse(); 
    7165    } 
     
    130124    function destroy() { 
    131125        parent::destroy(); 
    132     } 
    133  
    134     /** 
    135      * Page のAction(モバイル). 
    136      * 
    137      * @return void 
    138      */ 
    139     function mobileAction() { 
    140         define ("HISTORY_NUM", 5); 
    141  
    142         $objQuery = new SC_Query(); 
    143         $objCustomer = new SC_Customer(); 
    144         $pageNo = isset($_GET['pageno']) ? (int) $_GET['pageno'] : 0; // TODO 
    145  
    146         // ログインチェック 
    147         if(!isset($_SESSION['customer'])) { 
    148             SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    149         } 
    150  
    151         $col = "order_id, create_date, payment_id, payment_total"; 
    152         $from = "dtb_order"; 
    153         $where = "del_flg = 0 AND customer_id=?"; 
    154         $arrval = array($objCustomer->getvalue('customer_id')); 
    155         $order = "order_id DESC"; 
    156  
    157         $linemax = $objQuery->count($from, $where, $arrval); 
    158         $this->tpl_linemax = $linemax; 
    159  
    160         // 取得範囲の指定(開始行番号、行数のセット) 
    161         $objQuery->setLimitOffset(HISTORY_NUM, $pageNo); 
    162         // 表示順序 
    163         $objQuery->setOrder($order); 
    164  
    165         //購入履歴の取得 
    166         $this->arrOrder = $objQuery->select($col, $from, $where, $arrval); 
    167  
    168         // next 
    169         if ($pageNo + HISTORY_NUM < $linemax) { 
    170             $next = "<a href='history.php?pageno=" . ($pageNo + HISTORY_NUM) . "'>次へ→</a>"; 
    171         } else { 
    172             $next = ""; 
    173         } 
    174  
    175         // previous 
    176         if ($pageNo - HISTORY_NUM > 0) { 
    177             $previous = "<a href='history.php?pageno=" . ($pageNo - HISTORY_NUM) . "'>←前へ</a>"; 
    178         } elseif ($pageNo == 0) { 
    179             $previous = ""; 
    180         } else { 
    181             $previous = "<a href='history.php?pageno=0'>←前へ</a>"; 
    182         } 
    183  
    184         // bar 
    185         if ($next != '' && $previous != '') { 
    186             $bar = " | "; 
    187         } else { 
    188             $bar = ""; 
    189         } 
    190  
    191         $this->tpl_strnavi = $previous . $bar . $next; 
    192  
    193126    } 
    194127 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Login.php

    r19880 r19959  
    6565     */ 
    6666    function action() { 
    67         //$objView = new SC_SiteView(); 
    68         $objQuery = new SC_Query(); 
    6967        $objCustomer = new SC_Customer(); 
    7068 
     
    7371 
    7472        // ログイン判定 
    75         if($objCustomer->isLoginSuccess()) { 
     73        if($objCustomer->isLoginSuccess(true)) { 
    7674            SC_Response_Ex::sendRedirect(DIR_INDEX_URL); 
    7775            exit; 
     
    8886                $this->tpl_login_email = $_POST['mypage_login_email']; 
    8987            } 
     88             
     89            // 携帯端末IDが一致する会員が存在するかどうかをチェックする。 
     90            if (Net_UserAgent_Mobile::isMobile() === true){ 
     91                $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); 
     92            } 
    9093        } 
    91  
    92         //$objpage内の全てのテンプレート変数をsmartyに格納 
    93         //$objView->assignobj($this); 
    94         //パスとテンプレート変数の呼び出し、実行 
    95         //$objView->display(SITE_FRAME); 
    9694    } 
    9795 
     
    104102        parent::destroy(); 
    105103    } 
    106  
    107     //エラーチェック 
    108     function lfErrorCheck() { 
    109         $objErr = new SC_CheckError(); 
    110         $objErr->doFunc(array("メールアドレス", "login_email", STEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","EMAIL_CHECK","MAX_LENGTH_CHECK")); 
    111         $objErr->dofunc(array("パスワード", "login_password", PASSWORD_LEN2), array("EXIST_CHECK","ALNUM_CHECK")); 
    112         return $objErr->arrErr; 
    113     } 
    114104} 
    115105?> 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_LoginCheck.php

    r19880 r19959  
    100100            } 
    101101 
    102             if($objCustomer->getCustomerDataFromEmailPass($arrForm['mypage_login_pass'], $arrForm['mypage_login_email'], true)) { 
    103                 SC_Response_Ex::sendRedirect(DIR_INDEX_URL); 
    104                 exit; 
     102            // ログイン判定 
     103            $loginFailFlag = false; 
     104            if(Net_UserAgent_Mobile::isMobile() === true) { 
     105                // モバイルサイト 
     106                if(!$objCustomer->getCustomerDataFromMobilePhoneIdPass($arrForm['mypage_login_pass']) && 
     107                   !$objCustomer->getCustomerDataFromEmailPass($arrForm['mypage_login_pass'], $arrForm['mypage_login_email'], true)) { 
     108                    $loginFailFlag = true; 
     109                } 
    105110            } else { 
     111                // モバイルサイト以外 
     112                if(!$objCustomer->getCustomerDataFromEmailPass($arrForm['mypage_login_pass'], $arrForm['mypage_login_email'])) { 
     113                    $loginFailFlag = true; 
     114                } 
     115            } 
     116            if($loginFailFlag === true) { 
    106117                $arrForm['mypage_login_email'] = strtolower($arrForm['mypage_login_email']); 
    107118                $objQuery = new SC_Query; 
     
    114125                    SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 
    115126                } 
     127            } else { 
     128                if(Net_UserAgent_Mobile::isMobile() === true) { 
     129                    // ログインが成功した場合は携帯端末IDを保存する。 
     130                    $objCustomer->updateMobilePhoneId(); 
     131 
     132                    /* 
     133                     * email がモバイルドメインでは無く, 
     134                     * 携帯メールアドレスが登録されていない場合 
     135                     */ 
     136                    $objMobile = new SC_Helper_Mobile_Ex(); 
     137                    if (!$objMobile->gfIsMobileMailAddress($objCustomer->getValue('email'))) { 
     138                        if (!$objCustomer->hasValue('email_mobile')) { 
     139                            SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 
     140                            exit; 
     141                        } 
     142                    } 
     143                } 
     144                 
     145                SC_Response_Ex::sendRedirect(DIR_INDEX_URL); 
     146                exit; 
    116147            } 
    117148            break; 
     
    131162    function lfInitParam() { 
    132163        $this->objFormParam->addParam("記憶する", "mypage_login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    133         $this->objFormParam->addParam("メールアドレス", "mypage_login_email", MTEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "EMAIL_CHECK", "NO_SPTAB" ,"EMAIL_CHAR_CHECK")); 
     164        $this->objFormParam->addParam("メールアドレス", "mypage_login_email", MTEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK")); 
    134165        $this->objFormParam->addParam("パスワード", "mypage_login_pass", PASSWORD_LEN1, "KVa", array("EXIST_CHECK")); 
    135166        $this->objFormParam->addParam("パスワード", "mypage_login_pass1", PASSWORD_LEN1, "KVa", array("EXIST_CHECK", "MIN_LENGTH_CHECK")); 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_MailView.php

    r19888 r19959  
    3030 * @package Page 
    3131 * @author LOCKON CO.,LTD. 
    32  * @version $Id: LC_Page_Mypage_MailView.php 16582 2007-10-29 03:06:29Z nanasess $ 
     32 * @version $Id: $ 
    3333 */ 
    3434class LC_Page_Mypage_MailView extends LC_Page { 
     
    6464     */ 
    6565    function action() { 
    66         $objSess = new SC_Session(); 
    6766        $objCustomer = new SC_Customer(); 
    6867 
     
    8685        } 
    8786 
    88         $this->setTemplate('mypage/mail_view.tpl'); 
     87        if (Net_UserAgent_Mobile::isMobile() === true){ 
     88            $this->tpl_title = 'メール履歴詳細'; 
     89            $this->tpl_mainpage = 'mypage/mail_view.tpl'; 
     90        } else { 
     91            $this->setTemplate('mypage/mail_view.tpl'); 
     92        } 
    8993    } 
    9094 
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Refusal.php

    r19912 r19959  
    4545        parent::init(); 
    4646        $this->tpl_title = 'MYページ'; 
    47         if ( Net_UserAgent_Mobile::isMobile() === true){ 
    48             $this->tpl_title .= '/退会手続き(入力ページ)'; 
    49         } else { 
    50             $this->tpl_subtitle = '退会手続き(入力ページ)'; 
    51         } 
     47        $this->tpl_subtitle = '退会手続き(入力ページ)'; 
    5248        $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl'; 
    5349        $this->tpl_mainno = 'mypage'; 
     
    6258    function process() { 
    6359        parent::process(); 
    64         if ( Net_UserAgent_Mobile::isMobile() === true){ 
    65             $this->mobileAction(); 
    66         } else { 
    67             $this->action();             
    68         } 
     60        $this->action(); 
    6961        $this->sendResponse(); 
    7062    } 
     
    7668     */ 
    7769    function action() { 
     70        $objCustomer = new SC_Customer(); 
    7871        $objSiteSess = new SC_SiteSession(); 
    7972         
    8073        // 退会判定用情報の取得 
    81         $this->tpl_login = $objCustomer->isLoginSuccess(); 
     74        $this->tpl_login = $objCustomer->isLoginSuccess(true); 
    8275 
    8376        $this->lfCheckLogin(); 
     
    10194            // 正しい遷移かどうかをチェック 
    10295            $this->lfIsValidMovement($objSiteSess); 
    103             $this->lfDeleteCustomer();    //会員削除 
    104         } 
    105  
    106     } 
    107  
    108     /** 
    109      * Page のAction(モバイル). 
    110      * 
    111      * @return void 
    112      */ 
    113     function mobileAction() { 
    114  
    115         $objQuery = new SC_Query(); 
    116  
    117         $this->lfCheckLogin(); 
    118  
    119         if (isset($_POST['no'])) { 
    120             SC_Response_Ex::sendRedirect(DIR_INDEX_URL); 
    121             exit; 
    122         } elseif (isset($_POST['complete'])){ 
    12396            $this->lfDeleteCustomer();    //会員削除 
    12497        } 
     
    149122        $objCustomer = new SC_Customer(); 
    150123        //ログイン判定 
    151         if (!$objCustomer->isLoginSuccess()){       
     124        if (!$objCustomer->isLoginSuccess(true)){ 
    152125            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
    153126        }else { 
Note: See TracChangeset for help on using the changeset viewer.