apiTest.php 4.05 KB
<? 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>