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
ec5e2223
authored
2017-04-10 17:09:51 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
minor bug fixed
1 parent
7640bf9a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
154 additions
and
36 deletions
admin/productionSpecManage/psView.php
admin/pushManage/agreementView.php
common/classes/AdminProductionSpec.php
common/classes/AdminPush.php
common/classes/ApiBoard.php
log/simpleLog/201704/20170407.txt
log/simpleLog/201704/20170408.txt
log/simpleLog/201704/20170410.txt
setting/agree.txt
setting/privacy.txt
admin/productionSpecManage/psView.php
View file @
ec5e222
...
...
@@ -198,7 +198,11 @@
<!-- 계약일 -->
<th
style=
"height:25px;"
>
차종
</th>
<td
class=
"center"
colspan=
'7'
>
<input
type=
"text"
name=
"vehicleTON"
style=
"width:5%;"
value=
"
<?=
$info
[
"vehicleTON"
]
?>
"
/>
TON
<select
name=
"vehicleTON"
>
<?
for
(
$i
=
0
;
$i
<=
25
;
$i
++
){
?>
<option
value=
'
<?=
$i
?>
'
<?=
$info
[
"vehicleTON"
]
==
$i
?
"selected"
:
""
?>
>
<?=
$i
?>
</option>
<?
}
?>
</select>
TON
<input
type=
"text"
name=
"vehicleText"
style=
"margin-right:50px;"
value=
"
<?=
$info
[
"vehicleText"
]
?>
"
/>
<input
type=
"radio"
name=
"vehicleType"
value=
"HY"
<?=
$info
[
"vehicleType"
]
==
"HY"
?
"CHECKED"
:
""
?>
>
현대
<input
type=
"radio"
name=
"vehicleType"
value=
"DW"
<?=
$info
[
"vehicleType"
]
==
"DW"
?
"CHECKED"
:
""
?>
>
대우
...
...
admin/pushManage/agreementView.php
View file @
ec5e222
...
...
@@ -17,7 +17,9 @@
$.ajax({
url : "
/
setting
/
agree
.
txt
",
dataType : "
html
",
cache : false,
success : function(data){
console.log(data);
$("
#
content
").val(data);
}});
...
...
@@ -57,6 +59,7 @@
$.ajax({
url : "
/
setting
/
privacy
.
txt
",
dataType : "
html
",
cache : false,
success : function(data){
$("
#
content
").val(data);
}
...
...
@@ -66,6 +69,7 @@
$.ajax({
url : "
/
setting
/
agree
.
txt
",
dataType : "
html
",
cache : false,
success : function(data){
$("
#
content
").val(data);
}
...
...
@@ -81,8 +85,8 @@
forceSync : true,
dataType : "
json
"
,
success
:
function
(
data
){
alert
(
data
.
returnMessage
);
location
.
href
=
_rurl
;
//
alert(data.returnMessage);
//
location.href = _rurl;
}
});
...
...
common/classes/AdminProductionSpec.php
View file @
ec5e222
...
...
@@ -34,10 +34,11 @@ if (! class_exists("AdminProductionSpec")){
$sql
=
"
SELECT COUNT(*) AS rn
FROM tblProductionSpec PS
JOIN tblUser U ON PS.userFk=U.userNo
LEFT
JOIN tblUser U ON PS.userFk=U.userNo
{
$where
}
ORDER BY PS.regDate DESC
"
;
$this
->
initPage
();
$this
->
rownum
=
$this
->
getValue
(
$sql
,
'rn'
);
$this
->
setPage
(
$this
->
rownum
);
...
...
@@ -47,14 +48,14 @@ if (! class_exists("AdminProductionSpec")){
$sql
=
"
SELECT productionNo, DATE_FORMAT(PS.requestDate, '%Y-%m-%d') AS requestDate, PS.companyName, PS.productName, U.userName
FROM tblProductionSpec PS
JOIN tblUser U ON PS.userFk=U.userNo
LEFT
JOIN tblUser U ON PS.userFk=U.userNo
{
$where
}
ORDER BY PS.productionNo DESC
{
$limit
}
"
;
$result
=
$this
->
getArray
(
$sql
);
//echo json_encode($result)
;
// echo $sql
;
return
$result
;
}
...
...
@@ -130,6 +131,7 @@ if (! class_exists("AdminProductionSpec")){
$specialAddition3
=
$this
->
req
[
"specialAddition3"
];
$specialAddition4
=
$this
->
req
[
"specialAddition4"
];
$specialAddition5
=
$this
->
req
[
"specialAddition5"
];
$sql
=
"
UPDATE `tblProductionSpec`
SET
...
...
common/classes/AdminPush.php
View file @
ec5e222
...
...
@@ -201,6 +201,7 @@ if(!class_exists("AdminPush")){
$type
=
$this
->
req
[
"type"
];
$content
=
$this
->
req
[
"content"
];
if
(
$type
==
"AG"
){
$filePath
=
$this
->
agreeInfoPath
;
$files
=
fopen
(
$filePath
,
"w"
);
...
...
common/classes/ApiBoard.php
View file @
ec5e222
...
...
@@ -343,8 +343,8 @@ if (! class_exists("ApiBoard"))
$title
=
$this
->
req
[
"title"
];
$targetType
=
$this
->
req
[
"targetType"
];
//
$userFk = $this->appUser["no"];
$userFk
=
$this
->
req
[
"userFk"
];
$userFk
=
$this
->
appUser
[
"no"
];
//
$userFk=$this->req["userFk"];
$content
=
$this
->
req
[
"content"
];
$imgPathCS1
=
$imgResult
[
"imgPathCS1"
][
"saveURL"
]
!=
null
?
$imgResult
[
"imgPathCS1"
][
"saveURL"
]
:
$this
->
req
[
"imgPathCS1"
];
...
...
@@ -380,11 +380,14 @@ if (! class_exists("ApiBoard"))
//고객센터 게시물 리스트
function
getListOfCS
(){
$userFk
=
$this
->
appUser
[
"no"
];
$searchText
=
$this
->
req
[
"searchText"
];
$searchType
=
$this
->
req
[
"searchType"
];
$where
=
"CS.status=1 AND targetType = 1"
;
/*
$where
=
"WHERE CS.status=1 AND (targetType = 1 OR (targetType=2 AND CS.userFk='
{
$userFk
}
'))"
;
if
(
!
empty
(
$searchText
)){
if
(
empty
(
$search_type
)){
$where
.=
" AND (U.userID LIKE '%
{
$searchText
}
%' OR CS.title LIKE '%
{
$searchText
}
%')"
;
...
...
@@ -396,13 +399,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 AND CS.targetType=1
{
$where
}
ORDER BY csNo DESC
"
;
$this
->
initPageForDevice
();
...
...
@@ -447,6 +450,7 @@ if (! class_exists("ApiBoard"))
WHERE targetFk='
{
$csNo
}
' AND commentType='CS'
"
;
$this
->
rownum
=
$this
->
getValue
(
$sql
,
"rn"
);
$this
->
initPageForDevice
();
$this
->
setPageForDevice
(
$this
->
rownum
);
$sql
=
"
...
...
@@ -458,6 +462,8 @@ if (! class_exists("ApiBoard"))
LIMIT
{
$this
->
startNum
}
,
{
$this
->
endNum
}
"
;
// echo $sql;
$commentList
=
$this
->
getArray
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
,
Array
(
...
...
@@ -473,7 +479,7 @@ if (! class_exists("ApiBoard"))
//AS엄체 리스트
function
getListOfCompany
(){
$provinceNumber
=
$this
->
req
[
"provinceNumber"
];
$productCode
r
=
$this
->
req
[
"productCode"
];
$productCode
=
$this
->
req
[
"productCode"
];
$searchText
=
$this
->
req
[
"searchText"
];
$where
=
"WHERE status=1"
;
...
...
@@ -482,9 +488,10 @@ if (! class_exists("ApiBoard"))
$where
.=
" AND provinceCode='
{
$provinceNumber
}
'"
;
}
if
(
!
empty
(
$product
Number
)){
if
(
!
empty
(
$product
Code
)){
$where
.=
" AND productCode='
{
$productCode
}
'"
;
}
if
(
!
empty
(
$searchText
)){
$where
.=
" AND name LIKE '%
{
$searchText
}
%'"
;
}
...
...
@@ -680,8 +687,9 @@ if (! class_exists("ApiBoard"))
//제작사양서 저장
function
saveProductionSpec
(){
//$userFk = $this->appUser["no"];
$userFk
=
$this
->
req
[
"userFk"
];
$userFk
=
$this
->
appUser
[
"no"
];
// $userFk = $this->req["userFk"];
$requestDate
=
$this
->
req
[
"requestDate"
];
$customerName
=
$this
->
req
[
"customerName"
];
$companyName
=
$this
->
req
[
"companyName"
];
...
...
@@ -724,11 +732,12 @@ if (! class_exists("ApiBoard"))
$balance
=
$this
->
req
[
"balance"
];
$specialAddition
=
$this
->
req
[
"specialAddition"
];
if
(
empty
(
$requestDate
)
||
empty
(
$customerName
)
||
empty
(
$companyName
)
||
empty
(
$productName
)
||
empty
(
$telephone
)
||
empty
(
$userFk
)
||
empty
(
$balance
)
||
empty
(
$type
)
||
empty
(
$alCoil
)
||
empty
(
$floor
)
||
empty
(
$tent
)
||
empty
(
$sideBoard
)
||
empty
(
$windStopper
)
||
empty
(
$freezer
)
||
empty
(
$gateType
)
||
empty
(
$gateSize
)
||
empty
(
$load
)
||
empty
(
$frontBack
)
||
empty
(
$eTrackGate
)
||
empty
(
$eTrackWing
)
||
empty
(
$toolBucket
)
||
empty
(
$bumperFootHold
)
||
empty
(
$wingProtector
)
||
empty
(
$axis
)){
return
$this
->
makeResultJson
(
"-1"
,
"저장오류"
);
}
// if(empty($requestDate) || empty($customerName) || empty($companyName) || empty($productName) || empty($telephone) || empty($userFk) || empty($balance) || empty($type) || empty($alCoil) || empty($floor) || empty($tent) || empty($sideBoard)
// || empty($windStopper) || empty($freezer) || empty($gateType) || empty($gateSize) || empty($load) || empty($frontBack) || empty($eTrackGate) || empty($eTrackWing) || empty($toolBucket) || empty($bumperFootHold) || empty($wingProtector)
// || empty($axis)){
// return $this->makeResultJson("-1", "저장오류");
// }
$sql
=
"
INSERT INTO tblProductionSpec(
...
...
@@ -773,7 +782,11 @@ if (! class_exists("ApiBoard"))
axis,
axisValue,
balance,
specialAddition,
specialAddition1,
specialAddition2,
specialAddition3,
specialAddition4,
specialAddition5,
status,
regDate
)
...
...
@@ -820,7 +833,11 @@ if (! class_exists("ApiBoard"))
'
{
$axis
}
',
'
{
$axisValue
}
',
'
{
$balance
}
',
'
{
$specialAddition
}
',
'
{
$specialAddition1
}
',
'
{
$specialAddition2
}
',
'
{
$specialAddition3
}
',
'
{
$specialAddition4
}
',
'
{
$specialAddition5
}
',
1,
NOW()
)
...
...
@@ -831,8 +848,8 @@ if (! class_exists("ApiBoard"))
//내 제작사양서
function
getListOfMyProductionSpec
(){
//
$userFk=$this->appUser["no"];
$userFk
=
1
;
$userFk
=
$this
->
appUser
[
"no"
];
//
$userFk=1;
$sql
=
"
SELECT COUNT(*) AS rn
...
...
@@ -853,6 +870,7 @@ if (! class_exists("ApiBoard"))
LIMIT
{
$this
->
startNum
}
,
{
$this
->
endNum
}
"
;
$list
=
$this
->
getArray
(
$sql
);
//echo $sql;
if
(
sizeof
(
$list
)
>
0
)
return
$this
->
makeResultJson
(
"1"
,
""
,
$list
);
...
...
@@ -864,7 +882,8 @@ if (! class_exists("ApiBoard"))
function
getListOfProductionSpec
(){
$dateFormer
=
$this
->
req
[
"dateFormer"
];
$dateLatter
=
$this
->
req
[
"dateLatter"
];
$userFk
=
$this
->
req
[
"userFk"
];
$userFk
=
$this
->
req
[
"userFk"
];
//매니저별 검색
$where
=
"WHERE status=1"
;
if
(
!
empty
(
$dateFormer
)){
...
...
@@ -897,6 +916,7 @@ if (! class_exists("ApiBoard"))
LIMIT
{
$this
->
startNum
}
,
{
$this
->
endNum
}
"
;
$list
=
$this
->
getArray
(
$sql
);
// echo $sql;
if
(
sizeof
(
$list
)
>
0
)
return
$this
->
makeResultJson
(
"1"
,
""
,
$list
);
...
...
@@ -906,18 +926,18 @@ if (! class_exists("ApiBoard"))
//제작사양서 상세정보
function
getInfoOfProductionSpec
(){
$userNo
=
$this
->
appUser
[
"
userN
o"
];
$userNo
=
$this
->
appUser
[
"
n
o"
];
$productionNo
=
$this
->
req
[
"productionNo"
];
//$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
JOIN tblUser U ON PS.userFk=U.userNo
LEFT
JOIN tblUser U ON PS.userFk=U.userNo
WHERE productionNo='
{
$productionNo
}
'
"
;
$info
=
$this
->
getRow
(
$sql
);
if
(
$userNo
=
=
$info
[
"userNo"
])
if
(
$userNo
!
=
$info
[
"userNo"
])
$info
[
"balance"
]
=
null
;
return
$this
->
makeResultJson
(
"1"
,
""
,
$info
);
...
...
@@ -926,7 +946,7 @@ if (! class_exists("ApiBoard"))
//좋아요
function
productionLike
(){
$userNo
=
$this
->
appUser
[
"
userN
o"
];
$userNo
=
$this
->
appUser
[
"
n
o"
];
$productionNo
=
$this
->
req
[
"productionNo"
];
$sql
=
"
...
...
@@ -939,7 +959,8 @@ if (! class_exists("ApiBoard"))
//좋아요 취소
function
productionLikeCancel
(){
$userNo
=
$this
->
req
[
"userNo"
];
$userNo
=
$this
->
appUser
[
"no"
];
// $userNo=$this->req["userNo"];
$productionNo
=
$this
->
req
[
"productionNo"
];
$sql
=
"DELETE FROM tblLike WHERE userNo='
{
$userNo
}
' AND productionNo='
{
$productionNo
}
'"
;
...
...
@@ -950,13 +971,14 @@ if (! class_exists("ApiBoard"))
//제작사양서 보관함 리스트(좋아요 리스트)
function
productionLikeList
(){
$userNo
=
$this
->
appUser
[
"no"
];
// $userNo=1;
$sql
=
"
SELECT COUNT(*) AS rn
FROM tblProductionSpec PS
JOIN tblLike L ON PS.productionNo=L.productionNo
WHERE L.userNo='
{
$userNo
}
' AND PS.status=1
ORDER BY regDate DESC
ORDER BY
PS.
regDate DESC
"
;
$this
->
initPageForDevice
();
$this
->
rownum
=
$this
->
getValue
(
$sql
,
"rn"
);
...
...
@@ -968,7 +990,7 @@ if (! class_exists("ApiBoard"))
FROM tblProductionSpec PS
JOIN tblLike L ON PS.productionNo=L.productionNo
WHERE L.userNo='
{
$userNo
}
' AND PS.status=1
ORDER BY regDate DESC
ORDER BY
PS.
regDate DESC
LIMIT
{
$this
->
startNum
}
,
{
$this
->
endNum
}
"
;
$result
=
$this
->
getArray
(
$sql
);
...
...
@@ -1026,7 +1048,6 @@ if (! class_exists("ApiBoard"))
//array_push($result, $contents);
//array_push($result, $imgs);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
...
...
log/simpleLog/201704/20170407.txt
View file @
ec5e222
...
...
@@ -36,3 +36,5 @@ log Date : 2017-04-07 15:59:14 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-07 16:04:16 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-07 18:23:34 // Api : saveComment // userFk : 76
============================================================================
...
...
log/simpleLog/201704/20170408.txt
0 → 100644
View file @
ec5e222
log Date : 2017-04-08 14:19:20 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 15:46:35 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 15:49:30 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 15:49:36 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 15:57:51 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 15:57:56 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:16:43 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:16:56 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:17:00 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:18:05 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:19:11 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:20:37 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:20:45 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:21:00 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:21:23 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:21:37 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:25:11 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:27:13 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:31:00 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:32:23 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:40:24 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:43:27 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:44:40 // Api : saveComment // userFk : 76
============================================================================
log Date : 2017-04-08 16:47:28 // Api : saveComment // userFk : 76
============================================================================
log/simpleLog/201704/20170410.txt
0 → 100644
View file @
ec5e222
log Date : 2017-04-10 10:03:02 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:03:07 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:11:24 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:11:42 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:12:01 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:12:16 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:12:44 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:12:51 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:14:16 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:14:54 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:28:55 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:29:03 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:31:18 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:36:57 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:42:30 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:43:11 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:45:15 // Api : saveComment // userFk : 20
============================================================================
log Date : 2017-04-10 10:53:49 // Api : saveComment // userFk : 20
============================================================================
setting/agree.txt
View file @
ec5e222
제 1 조 (목적)
제 1 조 (목적)
aaaa
본 이용약관(이하 '본 약관')은 그룹바이 주식회사 (이하 '회사'라 칭한다.) 가 제공하는 제휴 상점 할인 및 민원관리 모바일 서비스(이하 '서비스'라 칭한다.)를 이용함에 있어 이용자(이하 '회원'이라 칭한다.)와 회사의 권리와 의무를 규정함을 목적으로 합니다.
제 2 조 (용어의 정의)
...
...
setting/privacy.txt
View file @
ec5e222
'그룹바이‘ (이하 '회사'는)
'그룹바이‘ (이하 '회사'는)
asdasdasdsad
고객님의 개인정보를 중요시하며, "정보통신망 이용촉진 및 정보보호"에 관한 법률을 준수하고 있습니다.
회사는 개인정보취급방침을 통하여 고객님께서 제공하시는 개인정보가 어떠한 용도와 방식으로 이용되고 있으며, 개인정보보호를 위해 어떠한 조치가 취해지고 있는지 알려드립니다.
...
...
Please
register
or
sign in
to post a comment