privacy info and agreement API tested
Showing
5 changed files
with
66 additions
and
2 deletions
... | @@ -114,6 +114,7 @@ if(! class_exists("ApiBase") ) { | ... | @@ -114,6 +114,7 @@ if(! class_exists("ApiBase") ) { |
114 | function getInfoOfProvision() | 114 | function getInfoOfProvision() |
115 | { | 115 | { |
116 | $agreeTypeID = $this->req["agreeTypeID"]; | 116 | $agreeTypeID = $this->req["agreeTypeID"]; |
117 | $agreeTypeID = 2; | ||
117 | 118 | ||
118 | $agree = ""; | 119 | $agree = ""; |
119 | 120 | ||
... | @@ -144,6 +145,46 @@ if(! class_exists("ApiBase") ) { | ... | @@ -144,6 +145,46 @@ if(! class_exists("ApiBase") ) { |
144 | return json_encode($resultJson) ; | 145 | return json_encode($resultJson) ; |
145 | } | 146 | } |
146 | 147 | ||
148 | function getPrivacyInfo(){ | ||
149 | $filePath = $this->privacyInfoPath; | ||
150 | $files = fopen($filePath, "r"); | ||
151 | |||
152 | while($ss = fgets($files, 1024)) | ||
153 | { | ||
154 | $agree .= $ss; | ||
155 | } | ||
156 | |||
157 | fclose($files); | ||
158 | |||
159 | $resultJson = array( | ||
160 | "returnCode" => "1" , | ||
161 | "returnMessage" => "" , | ||
162 | "entity" => $agree | ||
163 | ) ; | ||
164 | |||
165 | return json_encode($resultJson) ; | ||
166 | } | ||
167 | |||
168 | function getAgreeInfo(){ | ||
169 | $filePath = $this->agreeInfoPath; | ||
170 | $files = fopen($filePath, "r"); | ||
171 | |||
172 | while($ss = fgets($files, 1024)) | ||
173 | { | ||
174 | $agree .= $ss; | ||
175 | } | ||
176 | |||
177 | fclose($files); | ||
178 | |||
179 | $resultJson = array( | ||
180 | "returnCode" => "1" , | ||
181 | "returnMessage" => "" , | ||
182 | "entity" => $agree | ||
183 | ) ; | ||
184 | |||
185 | return json_encode($resultJson) ; | ||
186 | } | ||
187 | |||
147 | 188 | ||
148 | /*************************************************************************** | 189 | /*************************************************************************** |
149 | * 제 목 : 팝업 정보 조회 | 190 | * 제 목 : 팝업 정보 조회 | ... | ... |
... | @@ -61,6 +61,17 @@ if (! class_exists("ApiBoard")) | ... | @@ -61,6 +61,17 @@ if (! class_exists("ApiBoard")) |
61 | return $this->makeResultJson("1", "", $result); | 61 | return $this->makeResultJson("1", "", $result); |
62 | } | 62 | } |
63 | 63 | ||
64 | function getListCountBoard(){ | ||
65 | $sql="SELECT COUNT(*) FROM tblBoard WHERE status=1"; | ||
66 | $result=$this->getValue($sql, "rn"); | ||
67 | return $this->makeResultJson("1", "", $result); | ||
68 | } | ||
69 | |||
70 | function getListCountCS(){ | ||
71 | $sql="SELECT COUNT(*) FROM tblCustomerService WHERE status=1"; | ||
72 | } | ||
73 | |||
74 | |||
64 | //자유게시판 게시물 작성 | 75 | //자유게시판 게시물 작성 |
65 | function saveBoard(){ | 76 | function saveBoard(){ |
66 | $title=$this->req["title"]; | 77 | $title=$this->req["title"]; |
... | @@ -226,6 +237,7 @@ if (! class_exists("ApiBoard")) | ... | @@ -226,6 +237,7 @@ if (! class_exists("ApiBoard")) |
226 | ORDER BY csNo DESC | 237 | ORDER BY csNo DESC |
227 | "; | 238 | "; |
228 | $this->rownum = $this->getValue($sql, "rn"); | 239 | $this->rownum = $this->getValue($sql, "rn"); |
240 | $this->initPage(); | ||
229 | $this->setPageForDevice($this->rownum); | 241 | $this->setPageForDevice($this->rownum); |
230 | 242 | ||
231 | $sql=" | 243 | $sql=" |
... | @@ -303,6 +315,7 @@ if (! class_exists("ApiBoard")) | ... | @@ -303,6 +315,7 @@ if (! class_exists("ApiBoard")) |
303 | ORDER BY companyNo DESC | 315 | ORDER BY companyNo DESC |
304 | "; | 316 | "; |
305 | $this->rownum=$this->getValue($sql, "rn"); | 317 | $this->rownum=$this->getValue($sql, "rn"); |
318 | $this->initPage(); | ||
306 | $this->setPageForDevice($this->rownum); | 319 | $this->setPageForDevice($this->rownum); |
307 | 320 | ||
308 | $sql=" | 321 | $sql=" | ... | ... |
... | @@ -19,6 +19,8 @@ | ... | @@ -19,6 +19,8 @@ |
19 | $productionSpecInfo=$obj2->getInfoOfProductionSpec(); | 19 | $productionSpecInfo=$obj2->getInfoOfProductionSpec(); |
20 | $vehicleList=$obj->getListOfVehicle(); | 20 | $vehicleList=$obj->getListOfVehicle(); |
21 | $vehicleInfo=$obj->getInfoOfVehicle(); | 21 | $vehicleInfo=$obj->getInfoOfVehicle(); |
22 | $privacyInfo=$obj2->getPrivacyInfo(); | ||
23 | $agreeInfo=$obj2->getAgreeInfo(); | ||
22 | 24 | ||
23 | 25 | ||
24 | //$vnum = $obj->virtualNum ; | 26 | //$vnum = $obj->virtualNum ; |
... | @@ -301,6 +303,14 @@ $(document).ready(function(){ | ... | @@ -301,6 +303,14 @@ $(document).ready(function(){ |
301 | <td class="center">vehicleInfo</td> | 303 | <td class="center">vehicleInfo</td> |
302 | <td class=""><?echo $vehicleInfo;?></td> | 304 | <td class=""><?echo $vehicleInfo;?></td> |
303 | </tr> | 305 | </tr> |
306 | <tr> | ||
307 | <td class="center">privacyInfo</td> | ||
308 | <td class=""><?echo $privacyInfo;?></td> | ||
309 | </tr> | ||
310 | <tr> | ||
311 | <td class="center">agreeInfo</td> | ||
312 | <td class=""><?echo $agreeInfo;?></td> | ||
313 | </tr> | ||
304 | </table> | 314 | </table> |
305 | </div> | 315 | </div> |
306 | <br> | 316 | <br> | ... | ... |
... | @@ -12,8 +12,8 @@ if(! class_exists("Constants") ) | ... | @@ -12,8 +12,8 @@ if(! class_exists("Constants") ) |
12 | var $fileSavePath_480 = "C:/Users/p/workspace_php/KCSpecialVehicle/480" ; | 12 | var $fileSavePath_480 = "C:/Users/p/workspace_php/KCSpecialVehicle/480" ; |
13 | var $fileSavePath_320 = "C:/Users/p/workspace_php/KCSpecialVehicle/320" ; | 13 | var $fileSavePath_320 = "C:/Users/p/workspace_php/KCSpecialVehicle/320" ; |
14 | var $fileSavePath_100 = "C:/Users/p/workspace_php/KCSpecialVehicle/100" ; | 14 | var $fileSavePath_100 = "C:/Users/p/workspace_php/KCSpecialVehicle/100" ; |
15 | var $agreeInfoPath = "D:/workspace_php/KCSpecialVehicle/setting/agree.txt"; // 이용약관 파일 경로 | 15 | var $agreeInfoPath = "C:/Users/p/workspace_php/KCSpecialVehicle/setting/agree.txt"; // 이용약관 파일 경로 |
16 | var $privacyInfoPath = "D:/workspace_php/KCSpecialVehicle/setting/privacy.txt"; // 개인정보취급방침 파일 경로 | 16 | var $privacyInfoPath = "C:/Users/p/workspace_php/KCSpecialVehicle/setting/privacy.txt"; // 개인정보취급방침 파일 경로 |
17 | 17 | ||
18 | 18 | ||
19 | // var $logPath = "C:/Users/p/workspace_php/groupby/log" ; // simple 로그기록 | 19 | // var $logPath = "C:/Users/p/workspace_php/groupby/log" ; // simple 로그기록 | ... | ... |
-
Please register or sign in to post a comment