当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > table

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

APPML 中的 table


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

The <table> element provides a way to define the style and layout of the report table.
<table>元素提供了一个用于定义报告表样式和布局的方式。

Tip: If you only want to change the headers in the table you may define the new headers in the <sql> element (e.g. SELECT companyname AS Company,contactname AS [Contact person ] FROM Customers) instead of adding a <thead> element.
提示:如果你只希望改变表格中的标题,那么你可以在<sql>元素中定义全新的标题(举个例子来说,SELECT companyname AS Company,contactname AS [Contact person ] FROM Customers),而不需要添加<thead>元素。


<table> Child Elements
<table>子元素

The <table> element may have the following child elements:
<table>元素可以包含下面这些子元素:

Element
元素
Description
描述
thead Defines a table header different from the default
定义一个与默认值不同的表格标题
tbody Defines a table body different from the default
定义一个与默认值不同的表格主体


Example
案例

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
</database>

<htmlreport>
<sql>
SELECT companyname,contactname
FROM Customers
</sql>
<table>
<thead>
<tr>
<th style="color:blue">Company</th>
<th style="color:blue">Contact</th>
</tr>
</thead>
</table>
</htmlreport>
</appml>

View the output produced by the AppML HTML List Service
查看由AppML HTML 报告服务输出的结果

View the XML source file
查看XML 源文件

评论 (0) All

登陆 | 还没注册?