Changeset 18555


Ignore:
Timestamp:
2010/02/08 11:54:06 (12 years ago)
Author:
kajiwara
Message:

POST値の格納方法を修正。

Location:
branches/version-2_4/data/class/pages
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/class/pages/admin/contents/LC_Page_Admin_Contents.php

    r17204 r18555  
    8181 
    8282            if ($this->arrErr = $this->lfErrorCheck()) {       // 入力エラーのチェック 
    83                 foreach($_POST as $key => $val) { 
    84                     $this->$key = $val; 
     83                $arrParams = array("news_url", "news_title", "news_comment", "link_method"); 
     84 
     85                foreach($arrParams as $key) { 
     86                    $this->$key = $_POST[$key]; 
    8587                } 
    8688                $this->selected_year = $_POST["year"]; 
  • branches/version-2_4/data/class/pages/campaign/LC_Page_CampaignEntry.php

    r17382 r18555  
    129129 
    130130            if ($this->arrErr || $_POST["mode"] == "return") {      // 入力エラーのチェック 
    131                 foreach($this->arrForm as $key => $val) { 
    132                     $this->$key = $val; 
     131                foreach($arrRegistColumn as $key) { 
     132                    $this->$key['column'] = $arrForm[$key['column']]; 
    133133                } 
    134134 
  • branches/version-2_4/data/class/pages/contact/LC_Page_Contact.php

    r17041 r18555  
    8787                                     array(  "column" => "addr02",      "convert" => "aKV" ), 
    8888                                     array(  "column" => "email",       "convert" => "a" ), 
     89                                     array(  "column" => "email02",     "convert" => "a" ), 
    8990                                     array(  "column" => "tel01",       "convert" => "n" ), 
    9091                                     array(  "column" => "tel02",       "convert" => "n" ), 
     
    108109                $this->tpl_title = 'お問い合わせ(確認ページ)'; 
    109110            } else { 
    110                 foreach ($this->arrForm as $key => $val){ 
    111                     $this->$key = $val; 
     111                foreach ($arrConvertColumn as $key) { 
     112                    $this->$key['column'] = $this->arrForm[$key['column']]; 
    112113                } 
    113114            } 
     
    115116 
    116117            case 'return': 
    117             foreach ($_POST as $key => $val){ 
    118                 $this->$key = $val; 
     118                foreach ($arrConvertColumn as $key) { 
     119                    $this->$key['column'] = $_POST[$key['column']]; 
    119120                } 
    120121            break; 
  • branches/version-2_4/data/class/pages/entry/LC_Page_Entry.php

    r17781 r18555  
    168168 
    169169            if ($this->arrErr || $_POST["mode"] == "return") {      // 入力エラーのチェック 
    170                 foreach($this->arrForm as $key => $val) { 
    171                     $this->$key = $val; 
     170                foreach($arrRegistColumn as $key) { 
     171                    $this->$key['column'] = $this->arrForm[$key['column']]; 
    172172                } 
    173173 
     
    382382            } 
    383383 
    384             foreach($this->arrForm as $key => $val) { 
    385                 $this->$key = $val; 
     384            foreach($arrRegistColumn as $key) { 
     385                $this->$key['column'] = $this->arrForm[$key['column']]; 
    386386            } 
    387387 
Note: See TracChangeset for help on using the changeset viewer.