4250d0bc by sayhoChun

board/comment modify unhandled

1 parent 2afe39d5
...@@ -226,6 +226,42 @@ if (! class_exists("ApiBoard")) ...@@ -226,6 +226,42 @@ if (! class_exists("ApiBoard"))
226 } 226 }
227 } 227 }
228 228
229 function modifyBoard(){ //미완성
230 $imgResult = $this->inFn_Common_fileSave($_FILES);
231
232 $title=$this->req["title"];
233 //$userFk = $this->appUser["no"];
234 $userFk=$this->req["userFk"];
235
236 $imgPathBoard1 = $imgResult["imgPathBoard1"]["saveURL"] != null ? $imgResult["imgPathBoard1"]["saveURL"] : $this->req["imgPathBoard1"];
237 $imgPathBoard2 = $imgResult["imgPathBoard2"]["saveURL"] != null ? $imgResult["imgPathBoard2"]["saveURL"] : $this->req["imgPathBoard2"];
238 $imgPathBoard3 = $imgResult["imgPathBoard3"]["saveURL"] != null ? $imgResult["imgPathBoard3"]["saveURL"] : $this->req["imgPathBoard3"];
239 $imgPathBoard4 = $imgResult["imgPathBoard4"]["saveURL"] != null ? $imgResult["imgPathBoard4"]["saveURL"] : $this->req["imgPathBoard4"];
240 $imgPathBoard5 = $imgResult["imgPathBoard5"]["saveURL"] != null ? $imgResult["imgPathBoard5"]["saveURL"] : $this->req["imgPathBoard5"];
241
242
243 $content=$this->req["content"];
244
245 $sql="
246 INSERT INTO tblBoard(userFk, title, imgPathBoard1, imgPathBoard2, imgPathBoard3, imgPathBoard4, imgPathBoard5, content, status, regDate)
247 VALUES
248 (
249 '{$userFk}',
250 '{$title}',
251 '{$imgPathBoard1}',
252 '{$imgPathBoard2}',
253 '{$imgPathBoard3}',
254 '{$imgPathBoard4}',
255 '{$imgPathBoard5}',
256 '{$content}',
257 1,
258 NOW()
259 )
260 ";
261 $this->update($sql);
262 return $this->makeResultJson("1", "저장되었습니다");
263 }
264
229 //고객센터 게시물 저장 265 //고객센터 게시물 저장
230 function saveCS(){ 266 function saveCS(){
231 $imgResult = $this->inFn_Common_fileSave($_FILES); 267 $imgResult = $this->inFn_Common_fileSave($_FILES);
......