Changeset 20065


Ignore:
Timestamp:
2011/02/01 15:20:34 (13 years ago)
Author:
ghana
Message:

#892
refs #892
#642
refs #642
mode 取得用の関数を利用にともない機能していなかったのを修正

Location:
branches/version-2_5-dev/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/customer/customer.tpl

    r19965 r20065  
    9797                <td> 
    9898                    <span class="attention"><!--{$arrErr.fax01}--><!--{$arrErr.fax02}--><!--{$arrErr.fax03}--></span> 
    99                     <input type="text" name="fax01" value="<!--{$list_data.fax01|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax02" value="<!--{$list_data.fax02|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.tel02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax03" value="<!--{$list_data.fax03|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.fax03 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
     99                    <input type="text" name="fax01" value="<!--{$list_data.fax01|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax02" value="<!--{$list_data.fax02|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.fax02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax03" value="<!--{$list_data.fax03|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.fax03 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 
    100100                </td> 
    101101            </tr> 
  • branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Customer.php

    r20044 r20065  
    117117        //---- 登録除外用カラム配列 
    118118        $arrRejectRegistColumn = array("year", "month", "day"); 
    119  
     119         
     120        //-- POSTデータの引き継ぎ 
     121        $this->arrForm = $_POST; 
     122        $this->arrForm['email'] = strtolower($this->arrForm['email']); // emailはすべて小文字で処理 
     123         
    120124        //---- 顧客情報編集 
    121125        switch ($this->getMode()) { 
    122126        case 'confirm': 
    123         case 'complete': 
    124         case 'return': 
    125             //-- POSTデータの引き継ぎ 
    126             $this->arrForm = $_POST; 
    127             $this->arrForm['email'] = strtolower($this->arrForm['email']);        // emailはすべて小文字で処理 
    128  
    129127            //-- 入力データの変換 
    130128            $this->arrForm = $this->lfConvertParam($this->arrForm, $arrRegistColumn); 
    131129            //-- 入力チェック 
    132130            $this->arrErr = $this->lfErrorCheck($this->arrForm); 
    133  
    134             //-- 入力エラー発生 or リターン時 
    135             if ($this->arrErr  || $mode == "return") { 
     131            // エラーなしの場合 
     132            if(count($this->arrErr) == 0) { 
     133                $this->tpl_mainpage = 'customer/customer_confirm.tpl'; // 確認ページ 
     134                $passlen = strlen($this->arrForm['password']); 
     135                $this->passlen = $this->lfPassLen($passlen); 
     136            } else { 
    136137                foreach($this->arrForm as $key => $val) { 
    137138                    $this->list_data[ $key ] = $val; 
    138139                } 
    139  
    140             } else { 
    141                 //-- 確認 
    142                 if ($mode == "confirm") { 
    143                     $this->tpl_mainpage = 'customer/customer_confirm.tpl'; 
    144                     $passlen = strlen($this->arrForm['password']); 
    145                     $this->passlen = $this->lfPassLen($passlen); 
    146  
    147                 } 
    148                 //-- 登録 
    149                 if($mode == "complete") { 
    150                     $this->tpl_mainpage = 'customer/customer_complete.tpl'; 
    151  
    152                     // シークレット№も登録する。 
    153                     $secret = SC_Utils_Ex::sfGetUniqRandomId("r"); 
    154                     $this->arrForm['secret_key'] = $secret; 
    155                     array_push($arrRegistColumn, array('column' => 'secret_key', 'convert' => 'n')); 
    156  
    157                     //-- 登録 
    158                     $this->lfRegisData($this->arrForm, $arrRegistColumn); 
    159                 } 
     140            } 
     141            break; 
     142        case 'complete': 
     143            $this->tpl_mainpage = 'customer/customer_complete.tpl'; 
     144             
     145            // シークレット№も登録する。 
     146            $secret = SC_Utils_Ex::sfGetUniqRandomId("r"); 
     147            $this->arrForm['secret_key'] = $secret; 
     148            array_push($arrRegistColumn, array('column' => 'secret_key', 'convert' => 'n')); 
     149             
     150            //-- 登録 
     151            $this->lfRegisData($this->arrForm, $arrRegistColumn); 
     152            break; 
     153        case 'return': 
     154            foreach($this->arrForm as $key => $val) { 
     155                $this->list_data[ $key ] = $val; 
    160156            } 
    161157            break; 
Note: See TracChangeset for help on using the changeset viewer.