⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.csp

📁 eybuild-x86-arm920t-2.6.7.tar 很好的嵌入式WEB开发环境
💻 CSP
字号:
<html>
<head>
	<title><% ="CSP/eybuild sample" %></title>
</head>
<style><!--
#checkbox  {font-size: 10px;}
#radiobox  {font-size: 10px;}
#listbox   {font-size: 10px;}
--></style>
<body>
<h2>Test output</h3>
<table border=1>
<tr>
	<th>Output</th>
	<th>CSP sentence</th>
	<th>Result</th>
</tr>
<tr>
	<td>string</td>
	<td>&lt;% ="This is a string" %&gt;</td>
	<td><% ="This is a string" %></td>
</tr>
<tr>
	<td>number</td>
	<td>&lt;% =$123456 %&gt;</td>
	<td><% =$123456 %></td>
</tr>
<tr>
	<td>format string</td>
	<td>&lt;% =%s/0x%x, "Hex number", 12345 %&gt;</td>
	<td><% =%s/0x%x, "Hex number", 12345 %></td>
</tr>
</table>

<h2>Test post form:</h3>
<form method="post" action="<% =cgiPrefix(NULL) %>/result.csp">
	Input something: <input type="text" name="inputbox1" value="Hello world" size="25"><BR>

	<p>
	<textarea name="textarea1" value="" cols="45" rows="3" >Input some lines here</textarea>

	<p>
	select one radio:
	1. <% RADIO_BOX("choices", "1", "", "id=\"radiobox\"") %>
	2. <% RADIO_BOX("choices", "2", "2", "") %>
	3. <% RADIO_BOX("choices", "3", "", NULL) %>

	<br>
	check following: 
	1. <% CHECK_BOX("checkbox1", "1", "", "id=\"checkbox\"") %>
	2. <% CHECK_BOX("checkbox2", "2", "", "") %>
	3. <% CHECK_BOX("checkbox3", "3", "3", "") %>

	<p>Select more than one(default 2):
	<% SELECT_BEGIN("selone", "2", NULL) %>
		<% OPTIONS_ADD("1", "the 1st") %>
		<% OPTIONS_ADD("2", "the second") %>
		<% OPTIONS_ADD("3", "the third") %>
		<% OPTIONS_ADD("4", "the forth") %>
	<% SELECT_END() %>

	<p>
	Select one (default 3):<br>
	<% SELECT_BEGIN2("selmore", 2, "size=4") %>
		<% OPTIONS_ADD2(1, "this is the 1st") %>
		<% OPTIONS_ADD2(2, "this is the second") %>
		<% OPTIONS_ADD2(3, "this is the third") %>
		<% OPTIONS_ADD2(4, "this is the forth") %>
	<% SELECT_END2() %>

	<p>
	
	<hr>
	<input type="submit" name="testit" value="submit test test case">
	<input type="hidden" name="submit_flags" value="yes">
</form>
</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -