Changeset 20065
- Timestamp:
- 2011/02/01 15:20:34 (13 years ago)
- 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 97 97 <td> 98 98 <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}--> /> 100 100 </td> 101 101 </tr> -
branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Customer.php
r20044 r20065 117 117 //---- 登録除外用カラム配列 118 118 $arrRejectRegistColumn = array("year", "month", "day"); 119 119 120 //-- POSTデータの引き継ぎ 121 $this->arrForm = $_POST; 122 $this->arrForm['email'] = strtolower($this->arrForm['email']); // emailはすべて小文字で処理 123 120 124 //---- 顧客情報編集 121 125 switch ($this->getMode()) { 122 126 case 'confirm': 123 case 'complete':124 case 'return':125 //-- POSTデータの引き継ぎ126 $this->arrForm = $_POST;127 $this->arrForm['email'] = strtolower($this->arrForm['email']); // emailはすべて小文字で処理128 129 127 //-- 入力データの変換 130 128 $this->arrForm = $this->lfConvertParam($this->arrForm, $arrRegistColumn); 131 129 //-- 入力チェック 132 130 $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 { 136 137 foreach($this->arrForm as $key => $val) { 137 138 $this->list_data[ $key ] = $val; 138 139 } 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; 160 156 } 161 157 break;
Note: See TracChangeset
for help on using the changeset viewer.