- 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/admin/contents/LC_Page_Admin_Contents.php
r18234 r18649 81 81 82 82 if ($this->arrErr = $this->lfErrorCheck()) { // 入力エラーのチェック 83 foreach($_POST as $key => $val) { 84 $this->$key = $val; 85 } 86 $this->selected_year = $_POST["year"]; 87 $this->selected_month = $_POST["month"]; 88 $this->selected_day = $_POST["day"]; 89 83 $this->arrForm = $_POST; 90 84 } else { 91 85 … … 114 108 $sql = "SELECT *, cast(news_date as date) as cast_news_date FROM dtb_news WHERE news_id = ? "; 115 109 $result = $conn->getAll($sql, array($_POST["news_id"])); 116 foreach($result[0] as $key => $val ){ 117 $this->$key = $val; 118 } 119 $arrData = split("-",$result[0]["cast_news_date"]); 120 121 $this->selected_year = $arrData[0]; 122 $this->selected_month =$arrData[1]; 123 $this->selected_day = $arrData[2]; 110 $this->arrForm = $result[0]; 111 112 $arrData = split("-", $result[0]["cast_news_date"]); 113 $this->arrForm['year'] = $arrData[0]; 114 $this->arrForm['month'] = $arrData[1]; 115 $this->arrForm['day'] = $arrData[2]; 124 116 125 117 $this->edit_mode = "on"; … … 166 158 } 167 159 168 169 160 //---- 全データ取得 170 161 $sql = "SELECT *, cast(news_date as date) as cast_news_date FROM dtb_news WHERE del_flg = '0' ORDER BY rank DESC"; … … 173 164 $sql = "SELECT MAX(rank) FROM dtb_news WHERE del_flg = '0'"; // rankの最大値を取得 174 165 $this->max_rank = $conn->getOne($sql); 175 176 $this->arrForm['news_select'] = 0;177 166 178 167 //---- ページ表示
Note: See TracChangeset
for help on using the changeset viewer.