API2 tester iets prettiger
svn path=/Website/trunk/; revision=32224
This commit is contained in:
@@ -7,11 +7,15 @@
|
||||
ANONYMOUS_Allowed = 1;
|
||||
%>
|
||||
<!-- #include file="../../Shared/common.inc" -->
|
||||
<%
|
||||
var fac_id = Request.QueryString("fac_id").Count > 0&&String(Request.QueryString("fac_id"))||"";
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
||||
<title>API2 Tester</title>
|
||||
<script src="jquery-1.11.3.min.js"></script>
|
||||
<script src="tester.js"></script>
|
||||
<script src="jquery.iecors.js"></script>
|
||||
@@ -43,7 +47,7 @@ ANONYMOUS_Allowed = 1;
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><label>fac_id</label></td>
|
||||
<td><input id="facid" type="text" style="width:100px" value="">
|
||||
<td><input id="facid" type="text" style="width:100px" value="<%=safe.htmlattr(fac_id)%>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><label>APIKEY</label></td>
|
||||
@@ -56,7 +60,6 @@ ANONYMOUS_Allowed = 1;
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><label>Website</label></td>
|
||||
<!-- <td><input id="urlbase" type="text" style="width:250px" value="http://uwva.5iwork/Facilitor5iwork"> -->
|
||||
<td><input id="urlbase" type="text" style="width:250px" value="<%=safe.htmlattr(HTTP.urlzelf())%>">
|
||||
</td>
|
||||
</tr>
|
||||
@@ -84,10 +87,10 @@ ANONYMOUS_Allowed = 1;
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><label>Method</label></td>
|
||||
<td><input type='radio' id='method' name='method' value='GET' checked='1'>GET</input>
|
||||
<input type='radio' id='method' name='method' value='PUT'>PUT (update)</input>
|
||||
<input type='radio' id='method' name='method' value='POST'>POST (insert)</input>
|
||||
<input type='radio' id='method' name='method' value='DELETE'>DELETE</input>
|
||||
<td><label><input type='radio' id='method' name='method' value='GET' checked='1'>GET</label>
|
||||
<label><input type='radio' id='method' name='method' value='PUT'>PUT (update)</label>
|
||||
<label><input type='radio' id='method' name='method' value='POST'>POST (insert)</label>
|
||||
<label><input type='radio' id='method' name='method' value='DELETE'>DELETE</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><label>Request body</label></td>
|
||||
|
||||
Reference in New Issue
Block a user