984c7470 by sayhoChun

privacy info and agreement API tested

1 parent a704acc3
......@@ -114,7 +114,8 @@ if(! class_exists("ApiBase") ) {
function getInfoOfProvision()
{
$agreeTypeID = $this->req["agreeTypeID"];
$agreeTypeID = 2;
$agree = "";
if($agreeTypeID == "1")
......@@ -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) ;
}
/***************************************************************************
* 제 목 : 팝업 정보 조회
......
......@@ -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="
......
......@@ -137,7 +137,7 @@ if (! class_exists("ApiStatic")){
$result=$this->getArray($sql);
return $this->makeResultJson("1", "", $result);
}
}
}
......
......@@ -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>
......
......@@ -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 로그기록
......