当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > 案例研究:HTML 表单

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 案例研究:HTML 表单


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 933 ::
收藏到网摘: n/a

AppML can be used to display an input form.
AppML可以用于显示输入表单。

AppML can be used to display an input list.
AppML可以用于显示输入列表。


HTML Input Form
HTML 输入表单

The following AppML description defines all necessary elements to run the AppML HTML Form Service:
下面的AppML描述定义了用于运行AppML HTML 表单服务的所有必要元素:

<appml>
<title>Suppliers</title>

<database>
<connection>northwind</connection>
<maintable>suppliers</maintable>
<keyfield>supplierid</keyfield>
<sql>
SELECT CompanyName,ContactName,Address,City FROM Suppliers
</sql>
</database>
<htmlform />

</appml>

Click here to run the HTML Form Service.
点击这里运行HTML表单服务。


HTML Input List With a Query Filter
带有查询语句的HTML输入列表

The following AppML description defines all necessary elements to run the AppML HTML List Service. In addition it has information about how the user can filter the application at runtime:
下面的AppML描述定义了所有用于运行AppML HTML 列表服务的必要元素。另外,它还包含了用于如何过滤应用程序的具体信息。

<appml>
<title>Suppliers</title>
<database>
<connection>northwind</connection>
<maintable>suppliers</maintable>
<keyfield>supplierid</keyfield>
<sql>
SELECT CompanyName,ContactName,Address,City FROM Suppliers
</sql>
</database>
<filters>
<query>
<field>CompanyName</field>
</query>
</filters>
<htmllist />
<htmlform />
<htmlreport />

</appml>

Click here to run the HTML List and Form Services.
点击这里运行HTML列表和表单服务。

When you run the example, use the FILTER link to filter the list!
当你运行这个案例时,是用FILTER链接来过滤该列表!


Add a Corporate Layout
添加一个共同布局

The HTML List and HTML Forms Services are also perfect for producing lists and forms with a corporate layout.
HTML列表和HTML表单服务对于使用共同布局产生列表和表单来说也是非常完美的。

You can easily change the standard look and style of all your applications by modifying the standard stylesheet "appml_stylesheet.css", or you can specify a different stylesheet for each application.
你可以很轻松地通过修改标准样式表“appml_stylesheet.css” 或对每个应用程序指定不同的样式表来改变所用应用程序的外观和样式。

You can also put a header and a footer element into your AppML description to add application-specific information:
你同样可以在AppML描述中放置页眉和页脚元素来添加应用程序的描述信息:

<appml>
<title>Suppliers</title>
<database>
<connection>northwind</connection>
<maintable>suppliers</maintable>
<keyfield>supplierid</keyfield>
<sql>
SELECT CompanyName,ContactName,Address,City FROM Suppliers
</sql>
</database>
<filters>
<query>
<field>CompanyName</field>
</query>
</filters>
<htmllist>
<header>
<center>
<h2>Northwind Traders Products and Suppliers Database</h2>
</center>
</header>
<footer>
<center><p><b>
Copyright ?1999-2007 by Refsnes Data. All Rights Reserved.
</b></p></center>
</footer>
</htmllist>
<htmlform />

</appml>

Click here to run the HTML Form Service.
点击这里运行HTML表单服务。


Next Chapters
下一章

The next chapters will explain the different Northwind tables and how they can work with AppML.
下一章将介绍不同的Northwind表以及它们如何与AppML协同工作的。


评论 (0) All

登陆 | 还没注册?