- Timestamp:
- 2010/05/09 03:44:47 (14 years ago)
- Location:
- branches/comu-ver2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2
- Property svn:mergeinfo changed
/branches/version-2_4 merged: 18555,18560
- Property svn:mergeinfo changed
-
branches/comu-ver2/data/class/pages/contact/LC_Page_Contact.php
r18187 r18649 42 42 * 43 43 */ 44 var $arrConvertColumn = array( 45 array( "column" => "name01", "convert" => "aKV" ), 46 array( "column" => "name02", "convert" => "aKV" ), 47 array( "column" => "kana01", "convert" => "CKV" ), 48 array( "column" => "kana02", "convert" => "CKV" ), 49 array( "column" => "zip01", "convert" => "n" ), 50 array( "column" => "zip02", "convert" => "n" ), 51 array( "column" => "pref", "convert" => "n" ), 52 array( "column" => "addr01", "convert" => "aKV" ), 53 array( "column" => "addr02", "convert" => "aKV" ), 54 array( "column" => "email", "convert" => "a" ), 55 array( "column" => "tel01", "convert" => "n" ), 56 array( "column" => "tel02", "convert" => "n" ), 57 array( "column" => "tel03", "convert" => "n" ), 58 array( "column" => "contents", "convert" => "aKV") 59 ); 44 var $arrConvertColumn = array( 45 array("column" => "name01", "convert" => "aKV"), 46 array("column" => "name02", "convert" => "aKV"), 47 array("column" => "kana01", "convert" => "CKV"), 48 array("column" => "kana02", "convert" => "CKV"), 49 array("column" => "zip01", "convert" => "n"), 50 array("column" => "zip02", "convert" => "n"), 51 array("column" => "pref", "convert" => "n"), 52 array("column" => "addr01", "convert" => "aKV"), 53 array("column" => "addr02", "convert" => "aKV"), 54 array("column" => "email", "convert" => "a"), 55 array("column" => "email02", "convert" => "a"), 56 array("column" => "tel01", "convert" => "n"), 57 array("column" => "tel02", "convert" => "n"), 58 array("column" => "tel03", "convert" => "n"), 59 array("column" => "contents", "convert" => "aKV"), 60 ); 60 61 61 62 /** … … 168 169 function lfContactConfirm() { 169 170 // エラーチェック 170 $ this->arrForm = $_POST;171 $ this->arrForm['email'] = strtolower($_POST['email']);172 $this->arrForm = $this->lfConvertParam($ this->arrForm,$this->arrConvertColumn);171 $arrForm = $_POST; 172 $arrForm['email'] = strtolower($_POST['email']); 173 $this->arrForm = $this->lfConvertParam($arrForm, $this->arrConvertColumn); 173 174 $this->arrErr = $this->lfErrorCheck($this->arrForm); 174 175 if ( ! $this->arrErr ){ … … 176 177 $this->tpl_mainpage = 'contact/confirm.tpl'; 177 178 $this->tpl_title = 'お問い合わせ(確認ページ)'; 178 } else {179 foreach ($this->arrForm as $key => $val){180 $this->$key = $val;181 }182 179 } 183 180 } … … 189 186 */ 190 187 function lfContactReturn() { 191 foreach ($_POST as $key => $val){ 192 $this->$key = $val; 193 } 188 $this->arrForm = $_POST; 194 189 } 195 190 … … 200 195 */ 201 196 function lfContactComplete() { 202 $ this->arrForm = $_POST;203 $ this->arrForm['email'] = isset($_POST['email']) ? strtolower($_POST['email']) : '';204 $ this->arrForm['email02'] = isset($_POST['email02']) ? strtolower($_POST['email02']) : '';205 $this->arrForm = $this->lfConvertParam($ this->arrForm,$this->arrConvertColumn);197 $arrForm = $_POST; 198 $arrForm['email'] = isset($_POST['email']) ? strtolower($_POST['email']) : ''; 199 $arrForm['email02'] = isset($_POST['email02']) ? strtolower($_POST['email02']) : ''; 200 $this->arrForm = $this->lfConvertParam($arrForm, $this->arrConvertColumn); 206 201 $this->arrErr = $this->lfErrorCheck($this->arrForm); 207 202 if(!$this->arrErr) {
Note: See TracChangeset
for help on using the changeset viewer.