apiTest.php
4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiStatic.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBoard.php" ?>
<?
$obj = new ApiStatic($_REQUEST, "") ;
$obj2= new ApiBoard($req);
$kcsInfo = $obj->getKCSpecialVehicleInfo();
$organizationCert = $obj->getOrganizationCert();
$notice = $obj2->getListOfNotice();
$event = $obj2->getListOfEvent();
$board = $obj2->getListOfBoard()
; //$list = $obj->getListOfAdminPush() ;
//$vnum = $obj->virtualNum ;
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/admin/inc/css/base.css">
<link rel="stylesheet" type="text/css" href="/admin/inc/css/layout.css">
<link rel="stylesheet" type="text/css" href="/admin/inc/css/common.css">
<link rel="stylesheet" type="text/css" href="/admin/inc/css/btn.css">
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/jsMap.js"></script>
<script type="text/javascript" src="/common/js/jquery-1.7.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/common/js/jquery.cookie.js"></script>
<!-- 리치 js -->
<script type="text/javascript" src="/common/js/jquery_rich/RichBaseExtends.js"></script>
<script type="text/javascript" src="/common/js/jquery_rich/RichBaseElementObject-1.0.js"></script>
<!--
<script type="text/javascript" src="/common/js/jquery_rich/RichFramework-1.0.js"></script>
<script type="text/javascript" src="/common/js/jquery_rich/RichElement-1.0.js"></script>
<script type="text/javascript" src="/common/js/jquery_rich/RHForm-1.0.js"></script>
-->
<script type="text/javascript" src="/common/js/ajaxupload.3.6.js"></script>
<script type="text/javascript" src="/common/js/imgPreview.js"></script>
<script type="text/javascript" src="/common/js/jquery.form.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".getKCS").click2(function(){
$.ajax({
url : "/action_front.php?cmd=ApiStatic.getKCSpecialVehicleInfo",
async : false,
cache : false,
dataType: 'json',
success : function(data){
alert(data["content"]+" || "+data["address"]);
},
error : function(req, res, error){
alert(req+res+error);
}
});
}) ;
$(".getOrganizationCert").click2(function(){
$.ajax({
url : "/action_front.php?cmd=ApiStatic.getOrganizationCert",
async : false,
cache : false,
dataType: 'json',
success : function(data){
alert(data["certNo"]+" || "+data["name"]+data["imgPathCert"]+" || "+data["regDate"]);
},
error : function(req, res, error){
alert(req+res+error);
}
});
}) ;
$(".saveComment").click2(function(){
$.ajax({
url : "/action_front.php?cmd=ApiBoard.saveComment",
async : false,
cache : false,
dataType: 'json',
success : function(data){
alert(data["certNo"]+" || "+data["name"]+data["imgPathCert"]+" || "+data["regDate"]);
},
error : function(req, res, error){
alert(req+res+error);
}
});
}) ;
}) ;
</script>
<html>
<head>
<title>API 테스트 ㅋ</title>
</head>
<body>
<div id="Contents" class="notice" style="width:1000px;">
<div class="data">
<table class="datacList" id="datacList">
<thead>
<tr class="datacLists">
<th width="8%">이름</th>
<th width="50%">내용</th>
</tr>
</thead>
<tr>
<td class="center" class="center"> KCSInfo</td>
<td class=""><?echo $kcsInfo;?></td>
</tr>
<tr>
<td class="center">OrganizationCert</td>
<td class=""><?echo $organizationCert;?></td>
</tr>
<tr>
<td class="center">Notice</td>
<td class=""><?echo $notice;?></td>
</tr>
<tr>
<td class="center">Event</td>
<td class=""><?echo $event;?></td>
</tr>
<tr>
<td class="center">Board</td>
<td class=""><?echo $board;?></td>
</tr>
</table>
</div>
</div>
</body>
</html>