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
8b44cd93
authored
2017-03-08 20:05:44 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
end of day commit
1 parent
71def015
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
30 deletions
admin/index.php
admin/productionSpecManage/psView.php
common/classes/ApiBoard.php
admin/index.php
View file @
8b44cd9
...
...
@@ -31,7 +31,7 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/admin/inc/css/base.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/admin/inc/css/login.css"
>
<title>
GROUPBY
Application Back Office
</title>
<title>
한중특장
Application Back Office
</title>
<script
language=
"javascript"
type=
"text/javascript"
>
...
...
admin/productionSpecManage/psView.php
View file @
8b44cd9
...
...
@@ -83,6 +83,9 @@
});
$
(
".jMod"
).
click2
(
function
(){
pickupRows
();
var
data
=
$
(
"#jData"
).
serialize
();
...
...
common/classes/ApiBoard.php
View file @
8b44cd9
...
...
@@ -39,7 +39,7 @@ if (! class_exists("ApiBoard"))
//공지사항 정보
function
getInfoOfNotice
(){
$noticeNo
=
$this
->
req
[
"no"
];
$noticeNo
=
$this
->
req
[
"no
ticeNo
"
];
$sql
=
"
SELECT *
...
...
@@ -75,7 +75,7 @@ if (! class_exists("ApiBoard"))
//이벤트 정보
function
getInfoOfEvent
(){
$eventNo
=
$this
->
req
[
"
n
o"
];
$eventNo
=
$this
->
req
[
"
eventN
o"
];
$sql
=
"
SELECT *
FROM tblEvent
...
...
@@ -155,11 +155,12 @@ if (! class_exists("ApiBoard"))
//자유게시판 리스트
function
getListOfBoard
(){
$searchText
=
$this
->
req
[
"searchText"
];
$searchType
=
$this
->
req
[
"searchType"
];
$where
=
"WHERE B.status=1"
;
/*
if(!empty($searchText)){
if(empty($search_type)){
$where.=" AND (U.userID LIKE '%{$searchText}%' OR B.title LIKE '%{$searchText}%')";
...
...
@@ -172,7 +173,7 @@ if (! class_exists("ApiBoard"))
}
}
*/
$sql
=
"
SELECT COUNT(*) AS rn
FROM tblBoard B
...
...
@@ -203,8 +204,7 @@ if (! class_exists("ApiBoard"))
//게시물 정보
function
getInfoOfBoard
(){
//$boardNo = $this->req["no"];
$boardNo
=
1
;
$boardNo
=
$this
->
req
[
"boardNo"
];
$sql
=
"
SELECT B.*, U.userID, U.userName
FROM tblBoard B
...
...
@@ -238,8 +238,8 @@ if (! class_exists("ApiBoard"))
$imgResult
=
$this
->
inFn_Common_fileSave
(
$_FILES
);
$title
=
$this
->
req
[
"title"
];
//
$userFk = $this->appUser["no"];
$userFk
=
$this
->
req
[
"userFk"
];
$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"
];
...
...
@@ -247,7 +247,6 @@ if (! class_exists("ApiBoard"))
$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
=
"
...
...
@@ -284,8 +283,8 @@ if (! class_exists("ApiBoard"))
$imgPathCS5
=
$imgResult
[
"imgPathCS5"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathCS5"
][
"saveURL"
]
:
$this
->
req
[
"imgPathCS5"
];
$title
=
$this
->
req
[
"title"
];
//
$userFk = $this->appUser["no"];
$userFk
=
$this
->
req
[
"userFk"
];
$userFk
=
$this
->
appUser
[
"no"
];
//
$userFk=$this->req["userFk"];
$targetType
=
$this
->
req
[
"targetType"
];
$content
=
$this
->
req
[
"content"
];
...
...
@@ -308,7 +307,6 @@ if (! class_exists("ApiBoard"))
"
;
$this
->
update
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
"저장되었습니다"
);
}
function
modifyCS
(){
//미완성
...
...
@@ -327,9 +325,6 @@ if (! class_exists("ApiBoard"))
$imgPathCS4
=
$imgResult
[
"imgPathCS4"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathCS4"
][
"saveURL"
]
:
$this
->
req
[
"imgPathCS4"
];
$imgPathCS5
=
$imgResult
[
"imgPathCS5"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathCS5"
][
"saveURL"
]
:
$this
->
req
[
"imgPathCS5"
];
$sql
=
"
UPDATE tblCustomerService
SET
...
...
@@ -361,7 +356,7 @@ if (! class_exists("ApiBoard"))
$searchType
=
$this
->
req
[
"searchType"
];
$where
=
"CS.status=1 AND targetType = 1"
;
/*
if(!empty($searchText)){
if(empty($search_type)){
$where.=" AND (U.userID LIKE '%{$searchText}%' OR CS.title LIKE '%{$searchText}%')";
...
...
@@ -373,13 +368,13 @@ if (! class_exists("ApiBoard"))
$where.=" AND CS.title LIKE '%{$searchText}%'";
}
}
*/
$sql
=
"
SELECT COUNT(*) AS rn
FROM tblCustomerService CS
JOIN tblUser U ON CS.userFk=U.userNo
WHERE CS.status=1
WHERE CS.status=1
AND CS.targetType=1
ORDER BY csNo DESC
"
;
$this
->
initPage
();
...
...
@@ -388,10 +383,10 @@ if (! class_exists("ApiBoard"))
$this
->
setPageForDevice
(
$this
->
rownum
);
$sql
=
"
SELECT CS.
*
, U.userID, U.userNo
SELECT CS.
csNo, CS.title
, U.userID, U.userNo
FROM tblCustomerService CS
JOIN tblUser U ON CS.userFk=U.userNo
WHERE CS.status=1
WHERE CS.status=1
AND CS.targetType=1
ORDER BY csNo DESC
LIMIT
{
$this
->
startNum
}
,
{
$this
->
endNum
}
"
;
...
...
@@ -405,8 +400,8 @@ if (! class_exists("ApiBoard"))
//고객센터 게시물 내용
function
getInfoOfCS
(){
//$csNo=$this->req["n
o"];
$csNo
=
2
;
$csNo
=
$this
->
req
[
"csN
o"
];
$sql
=
"
SELECT CS.*, U.userID, U.userName
FROM tblCustomerService CS
...
...
@@ -440,7 +435,7 @@ if (! class_exists("ApiBoard"))
//AS엄체 리스트
function
getListOfCompany
(){
$provinceNumber
=
$this
->
req
[
"provinceNumber"
];
$product
Number
=
$this
->
req
[
"productNumber
"
];
$product
Coder
=
$this
->
req
[
"productCode
"
];
$searchText
=
$this
->
req
[
"searchText"
];
$where
=
"WHERE status=1"
;
...
...
@@ -450,7 +445,7 @@ if (! class_exists("ApiBoard"))
}
if
(
!
empty
(
$productNumber
)){
$where
.=
" AND productCode='
{
$product
Number
}
'"
;
$where
.=
" AND productCode='
{
$product
Code
}
'"
;
}
if
(
!
empty
(
$searchText
)){
$where
.=
" AND name LIKE '%
{
$searchText
}
%'"
;
...
...
@@ -484,8 +479,7 @@ if (! class_exists("ApiBoard"))
//AS업체 상세
function
getInfoOfCompany
(){
//$companyNo=$this->req["no"];
$companyNo
=
1
;
$companyNo
=
$this
->
req
[
"no"
];
$sql
=
"
SELECT C.*
...
...
@@ -518,8 +512,8 @@ if (! class_exists("ApiBoard"))
function
saveComment
(){
$commentType
=
$this
->
req
[
"commentType"
];
$targetFk
=
$this
->
req
[
"targetFk"
];
//
$userFk = $this->appUser["no"];;
$userFk
=
$this
->
req
[
"userFk"
];
$userFk
=
$this
->
appUser
[
"no"
];;
//
$userFk=$this->req["userFk"];
$content
=
$this
->
req
[
"content"
];
$parentNo
=
$this
->
req
[
"parentNo"
];
//부모 댓글의 기본키
...
...
@@ -611,6 +605,7 @@ if (! class_exists("ApiBoard"))
WHERE commentNo='
{
$commentNo
}
'
"
;
$this
->
update
(
$sql
);
return
$this
->
makeResultJson
(
1
,
"수정되었습니다"
);
}
function
delComment
(){
...
...
@@ -623,6 +618,8 @@ if (! class_exists("ApiBoard"))
commentGroup=(SELECT commentGroup FROM (SELECT * FROM tblComment) AS c WHERE commentNo='
{
$commentNo
}
')
AND depth > (SELECT depth FROM (SELECT * FROM tblComment) AS c WHERE commentNo='
{
$commentNo
}
'))
"
;
$this
->
update
(
$sql
);
return
$this
->
makeResultJson
(
1
,
"삭제되었습니다"
);
}
//제작사양서 저장
...
...
@@ -853,7 +850,7 @@ if (! class_exists("ApiBoard"))
function
getInfoOfProductionSpec
(){
$userNo
=
$this
->
appUser
[
"userNo"
];
$productionNo
=
$this
->
req
[
"productionNo"
];
$productionNo
=
3
;
//
$productionNo=3;
$sql
=
"
SELECT PS.*, U.userNo, U.userName, IFNULL((SELECT userNo FROM tblLike WHERE userNo='
{
$userNo
}
' AND productionNo='
{
$productionNo
}
'), 0) AS likeStatus
FROM tblProductionSpec PS
...
...
@@ -950,6 +947,8 @@ if (! class_exists("ApiBoard"))
WHERE ppNo='
{
$ppNo
}
'
LIMIT 0, 1
"
;
$result
=
$this
->
getArray
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
...
...
Please
register
or
sign in
to post a comment