Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sayhoChun
/
kcSpecialVehicle
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4250d0bc
authored
2017-02-16 09:21:41 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
board/comment modify unhandled
1 parent
2afe39d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
common/classes/ApiBoard.php
common/classes/ApiBoard.php
View file @
4250d0b
...
...
@@ -226,6 +226,42 @@ if (! class_exists("ApiBoard"))
}
}
function
modifyBoard
(){
//미완성
$imgResult
=
$this
->
inFn_Common_fileSave
(
$_FILES
);
$title
=
$this
->
req
[
"title"
];
//$userFk = $this->appUser["no"];
$userFk
=
$this
->
req
[
"userFk"
];
$imgPathBoard1
=
$imgResult
[
"imgPathBoard1"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathBoard1"
][
"saveURL"
]
:
$this
->
req
[
"imgPathBoard1"
];
$imgPathBoard2
=
$imgResult
[
"imgPathBoard2"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathBoard2"
][
"saveURL"
]
:
$this
->
req
[
"imgPathBoard2"
];
$imgPathBoard3
=
$imgResult
[
"imgPathBoard3"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathBoard3"
][
"saveURL"
]
:
$this
->
req
[
"imgPathBoard3"
];
$imgPathBoard4
=
$imgResult
[
"imgPathBoard4"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathBoard4"
][
"saveURL"
]
:
$this
->
req
[
"imgPathBoard4"
];
$imgPathBoard5
=
$imgResult
[
"imgPathBoard5"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathBoard5"
][
"saveURL"
]
:
$this
->
req
[
"imgPathBoard5"
];
$content
=
$this
->
req
[
"content"
];
$sql
=
"
INSERT INTO tblBoard(userFk, title, imgPathBoard1, imgPathBoard2, imgPathBoard3, imgPathBoard4, imgPathBoard5, content, status, regDate)
VALUES
(
'
{
$userFk
}
',
'
{
$title
}
',
'
{
$imgPathBoard1
}
',
'
{
$imgPathBoard2
}
',
'
{
$imgPathBoard3
}
',
'
{
$imgPathBoard4
}
',
'
{
$imgPathBoard5
}
',
'
{
$content
}
',
1,
NOW()
)
"
;
$this
->
update
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
"저장되었습니다"
);
}
//고객센터 게시물 저장
function
saveCS
(){
$imgResult
=
$this
->
inFn_Common_fileSave
(
$_FILES
);
...
...
Please
register
or
sign in
to post a comment