<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>x_processplatform_assemble_surface_data</title>
<script src="./common.js"></script>
<script src="./jquery.js"></script>
<script src="./data.js"></script>
<script src="./image.js"></script>
<script src="./artTemplate-master/dist/template.js"></script>
<script>
	var request_config = {
		title: '实体数据类型服务测试',
		datatype: [
		        { "text" : "appinfo", "value" : "appinfo" },
				{ "text" : "catagoryinfo", "value" : "catagoryinfo" },
				{ "text" : "document", "value" : "document" },
				{ "text" : "appcatagorypermission", "value" : "appcatagorypermission" },
				{ "text" : "appcatagoryadmin", "value" : "appcatagoryadmin" },
				{ "text" : "log", "value" : "log" }
		]
	};
	
    $(document).ready(function() {
		data_query();
    });
</script>

<script id="data_query_template" type="text/html">
	<table border="1" width="100%">
    	<tr>
			<td>id:</td>
			<td><input type="text" id="id" style="width:95%"/></td>
		</tr>
    	<tr>
			<td>type:</td>
			<td>
    			<select id="type">
					{{each datatype as type i}}
        				<option value="{{type.value}}">{{type.text}}</option>
    				{{/each}}
    			</select>
    		</td>
		</tr>
    	<tr>
			<td colspan="2">
				<button id="get">get</button>&nbsp;
				<button id="put">put</button>&nbsp;
				<button id="post">post</button>&nbsp;
				<button id="uuid">UUID</button>
			</td>
		</tr>
    	<tr>
			<td colspan="2">
				<textarea id="data" style="width:95%;height:500px"/>
			</td>
		</tr>
    </table>
</script>

</head>
<body style="margin: 0; font-size: 1.0em; font-family: Microsoft Yahei">
	<div id="container" style="width: 1000px; margin: 0 auto;">
		<div id="header" style="background-color: #4682B4; clear: both; text-align: center;">
			x_cms_assemble_control_jest for x_cms_assemble_control
		</div>
		<div id="menu" style="background-color: #B0E0E6; height: 950px; width: 280px; float: left;">
			<ul>
				<li>Data
					<ul>
						<li><a onclick="data_query()" href="#">Query</a></li>
					</ul>
				</li>
				<li>Image
					<ul>
						<li><a onclick="image_file_init()" href="#">From File</a></li>
						<li><a onclick="image_url_init()" href="#">From Url</a></li>
					</ul>
				</li>
			</ul>
		</div>
		<div style="float: left; width: 720px;">
			<div id="content" style="width: 100%;">&nbsp;</div>
			<div id="result" style="width: 100%; white-space: pre; font-size: 10px; word-break: break-all; word-wrap: break-word;">&nbsp;</div>
		</div>
		<div id="footer"
			style="background-color: #4682B4; clear: both; text-align: center; display: none">
			Copyright © x</div>
	</div>
</body>
</html>