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
984c7470
authored
2017-02-14 18:03:00 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
privacy info and agreement API tested
1 parent
a704acc3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
2 deletions
common/classes/ApiBase.php
common/classes/ApiBoard.php
common/classes/ApiStatic.php
common/classes/apiTest.php
common/classes/comm/Constants.php
common/classes/ApiBase.php
View file @
984c747
...
...
@@ -114,6 +114,7 @@ if(! class_exists("ApiBase") ) {
function
getInfoOfProvision
()
{
$agreeTypeID
=
$this
->
req
[
"agreeTypeID"
];
$agreeTypeID
=
2
;
$agree
=
""
;
...
...
@@ -144,6 +145,46 @@ if(! class_exists("ApiBase") ) {
return
json_encode
(
$resultJson
)
;
}
function
getPrivacyInfo
(){
$filePath
=
$this
->
privacyInfoPath
;
$files
=
fopen
(
$filePath
,
"r"
);
while
(
$ss
=
fgets
(
$files
,
1024
))
{
$agree
.=
$ss
;
}
fclose
(
$files
);
$resultJson
=
array
(
"returnCode"
=>
"1"
,
"returnMessage"
=>
""
,
"entity"
=>
$agree
)
;
return
json_encode
(
$resultJson
)
;
}
function
getAgreeInfo
(){
$filePath
=
$this
->
agreeInfoPath
;
$files
=
fopen
(
$filePath
,
"r"
);
while
(
$ss
=
fgets
(
$files
,
1024
))
{
$agree
.=
$ss
;
}
fclose
(
$files
);
$resultJson
=
array
(
"returnCode"
=>
"1"
,
"returnMessage"
=>
""
,
"entity"
=>
$agree
)
;
return
json_encode
(
$resultJson
)
;
}
/***************************************************************************
* 제 목 : 팝업 정보 조회
...
...
common/classes/ApiBoard.php
View file @
984c747
...
...
@@ -61,6 +61,17 @@ if (! class_exists("ApiBoard"))
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
function
getListCountBoard
(){
$sql
=
"SELECT COUNT(*) FROM tblBoard WHERE status=1"
;
$result
=
$this
->
getValue
(
$sql
,
"rn"
);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
function
getListCountCS
(){
$sql
=
"SELECT COUNT(*) FROM tblCustomerService WHERE status=1"
;
}
//자유게시판 게시물 작성
function
saveBoard
(){
$title
=
$this
->
req
[
"title"
];
...
...
@@ -226,6 +237,7 @@ if (! class_exists("ApiBoard"))
ORDER BY csNo DESC
"
;
$this
->
rownum
=
$this
->
getValue
(
$sql
,
"rn"
);
$this
->
initPage
();
$this
->
setPageForDevice
(
$this
->
rownum
);
$sql
=
"
...
...
@@ -303,6 +315,7 @@ if (! class_exists("ApiBoard"))
ORDER BY companyNo DESC
"
;
$this
->
rownum
=
$this
->
getValue
(
$sql
,
"rn"
);
$this
->
initPage
();
$this
->
setPageForDevice
(
$this
->
rownum
);
$sql
=
"
...
...
common/classes/ApiStatic.php
View file @
984c747
common/classes/apiTest.php
View file @
984c747
...
...
@@ -19,6 +19,8 @@
$productionSpecInfo
=
$obj2
->
getInfoOfProductionSpec
();
$vehicleList
=
$obj
->
getListOfVehicle
();
$vehicleInfo
=
$obj
->
getInfoOfVehicle
();
$privacyInfo
=
$obj2
->
getPrivacyInfo
();
$agreeInfo
=
$obj2
->
getAgreeInfo
();
//$vnum = $obj->virtualNum ;
...
...
@@ -301,6 +303,14 @@ $(document).ready(function(){
<td
class=
"center"
>
vehicleInfo
</td>
<td
class=
""
>
<?
echo
$vehicleInfo
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
privacyInfo
</td>
<td
class=
""
>
<?
echo
$privacyInfo
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
agreeInfo
</td>
<td
class=
""
>
<?
echo
$agreeInfo
;
?>
</td>
</tr>
</table>
</div>
<br>
...
...
common/classes/comm/Constants.php
View file @
984c747
...
...
@@ -12,8 +12,8 @@ if(! class_exists("Constants") )
var
$fileSavePath_480
=
"C:/Users/p/workspace_php/KCSpecialVehicle/480"
;
var
$fileSavePath_320
=
"C:/Users/p/workspace_php/KCSpecialVehicle/320"
;
var
$fileSavePath_100
=
"C:/Users/p/workspace_php/KCSpecialVehicle/100"
;
var
$agreeInfoPath
=
"
D:
/workspace_php/KCSpecialVehicle/setting/agree.txt"
;
// 이용약관 파일 경로
var
$privacyInfoPath
=
"
D:
/workspace_php/KCSpecialVehicle/setting/privacy.txt"
;
// 개인정보취급방침 파일 경로
var
$agreeInfoPath
=
"
C:/Users/p
/workspace_php/KCSpecialVehicle/setting/agree.txt"
;
// 이용약관 파일 경로
var
$privacyInfoPath
=
"
C:/Users/p
/workspace_php/KCSpecialVehicle/setting/privacy.txt"
;
// 개인정보취급방침 파일 경로
// var $logPath = "C:/Users/p/workspace_php/groupby/log" ; // simple 로그기록
...
...
Please
register
or
sign in
to post a comment