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

APPML
AppML 简介
AppML 案例
AppML 案例说明
AppML 网络服务
案例研究简介
案例研究:数据库
案例研究:AppML
案例研究:HTML 报告
案例研究:HTML 表单
案例研究:目录
案例研究:产品
案例研究:托运人
案例研究:供应商
案例研究:客户
案例研究:雇员
案例研究:应用程序
案例研究:下载
AppML FAQ
AppML 文档
AppML 数据库元素

APPML 中的 table


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 339 ::
收藏到网摘: 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

登陆 | 还没注册?