ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: APPML :: °¸ÀýÑо¿£ºHTML ±¨¸æ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

APPML
AppML ¼ò½é
AppML °¸Àý
AppML °¸Àý˵Ã÷
AppML ÍøÂç·þÎñ
°¸ÀýÑо¿¼ò½é
°¸ÀýÑо¿£ºÊý¾Ý¿â
°¸ÀýÑо¿£ºAppML
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºÄ¿Â¼
°¸ÀýÑо¿£º²úÆ·
°¸ÀýÑо¿£ºÍÐÔËÈË
°¸ÀýÑо¿£º¹©Ó¦ÉÌ
°¸ÀýÑо¿£º¿Í»§
°¸ÀýÑо¿£º¹ÍÔ±
°¸ÀýÑо¿£ºÓ¦ÓóÌ..
°¸ÀýÑо¿£ºÏÂÔØ
AppML FAQ
AppML Îĵµ
AppML Êý¾Ý¿âÔªËØ

°¸ÀýÑо¿£ºHTML ±¨¸æ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:4233 :: ::

The AppML HTML Report Service
AppML HTML ±¨¸æ·þÎñ

AppML uses standard SQL to control the selection of data, and a query element to define data fields that can be queried at runtime.
AppMLʹÓñê×¼µÄSQLÀ´¿ØÖÆÊý¾ÝÑ¡Ôñ£¬Ê¹ÓòéÑ¯ÔªËØÀ´¶¨ÒåÔÚÔËÐÐʱ¼äÄÚÓÃÓÚ±»²éѯµÄÊý¾Ý×ֶΡ£

<appml>
<database>
<connection>northwind</connection>
<sql>
SELECT CompanyName,ContactName,City FROM Customers
</sql>
</database>
<filters>
<query>
<field>CompanyName</field>
</query>
</filters>
<htmlreport/>
</appml>

Click here to see the output produced by the HTML Report Service.
µã»÷ÕâÀï²é¿´Í¨¹ýHTML±¨¸æ·þÎñ²úÉúµÄ½á¹û¡£

When you run the example, use the FILTER link at the top of the report to filter the report!
µ±ÄãÔËÐÐÕâ¸ö°¸Àýʱ£¬Ê¹ÓÃλÓÚ±¨¸æ¶¥²¿µÄFILTERÁ´½ÓÀ´¹ýÂ˱¨¸æ¡£


A Report With Query And Order-By Filters
²éѯºÍ¶©µ¥±¨¸æ

This AppML description has added information about ordering, querying, and filtering the data:
AppMLÃèÊöÒѾ­Ìí¼ÓÁ˹ØÓÚ¶©µ¥¡¢²éѯºÍ¹ýÂËÊý¾ÝµÄÐÅÏ¢£º

<appml>

<database>
<connection>northwind</connection>
<sql>
SELECT CompanyName,ContactName,City FROM Customers
</sql>
</database>
<filters>
<orderby>CompanyName</orderby>
<query>
<field>CompanyName</field>
<value>a</value>
</query>
<query>
<field>City</field>
<sql>SELECT DISTINCT city FROM customers ORDER BY city</sql>
</query>

<orderselect>
<field>CompanyName</field>
<field>ContactName</field>
<field>City</field>
</orderselect>
</filters>
<htmlreport/>

</appml>

Click here to see the output produced by the HTML Report Service.
µã»÷ÕâÀï²é¿´Í¨¹ýHTML±¨¸æ·þÎñ²úÉúµÄ½á¹û¡£


Adding A Corporate Layout
Ìí¼ÓÒ»¸ö¹²Í¬²¼¾Ö

AppML is also perfect for producing HTML reports with a corporate layout.
AppML¶ÔÓÚʹÓù²Í¬²¼¾ÖÀ´²úÉúHTML±¨¸æÒ²ÊǷdz£ÍêÃÀµÄ¡£

By adding a <stylesheet> tag with the name of your own CSS file you can easily change the layout of a report.
ͨ¹ýÌí¼ÓÔÚÑëÊÓ±íÎļþÖÐÖ¸¶¨Ãû³ÆµÄ<stylesheet>±êÇ©£¬Äã¿ÉÒÔºÜÇáËɵظı䱨¸æµÄ²¼¾Ö¡£

By modifying the standard stylesheet ("appml_stylesheet.css"), you can easily change the layout of ALL your reports.
ͨ¹ýÐ޸ıê×¼µÄÑùʽ±íÎļþ£¨"appml_stylesheet.css"£©£¬Äã¿ÉÒÔºÜÇáËɵĸıäËùÓб¨¸æµÄ²¼¾Ö¡£

<appml>

<database>
<connection>northwind</connection>
<sql>
SELECT CompanyName,ContactName,City FROM Customers
</sql>
</database>
<htmlreport>
<stylesheet>corp_stylesheet.css</stylesheet>
<header>
<h4><img src="images/factory.jpg" /> NORTHWIND
CUSTOMERS pr. #appml:date(format='dd.mm.yyyy')</h4>
</header>
</htmlreport>

</appml>

Click here to see the output produced by the HTML Report Service.
µã»÷ÕâÀï²é¿´Í¨¹ýHTML±¨¸æ·þÎñ²úÉúµÄ½á¹û¡£


A Report With Sections
±¨¸æÆ¬¶Ï

With AppML it is easy to create reports divided into sections, e.g. Sales per year, Sales per category, Customers by country, Sales per customer, etc.
ͨ¹ýAppML£¬Äã¿ÉÒÔºÜÇáËɵĴ´½¨±¨¸æÆ¬¶Ï¡£¾Ù¸öÀý×ÓÀ´Ëµ£¬±¨¸æÃ¿ÄêµÄÏúÊۼǼ¡¢¿Í»§¹ú¼®¡¢Ã¿»§Ïû·ÑÁ¿µÈµÈ¡£

The AppML <section> element divides the output into sections. Any legal HTML elements can be put inside this element. The AppML <break> element is used to define breaks in the report.
AppML<section>ÔªËØ½«²úÉúµÄ½á¹û·Ö³ÉÁËÈô¸ÉƬ¶Ï¡£ÈκÎÒ»¸öºÏ·¨µÄHTMLÔªËØ¿ÉÒÔ±»·Å½ø¸ÃÔªËØÄÚ¡£AppML<break>ÔªËØÊÇÓÃÓÚ¶¨Ò屨¸æÖеĻ»ÐзûµÄ¡£

View the output produced by the HTML Report Service
²é¿´ÓÉHTML±¨¸æ·þÎñµÄÊä³ö½á¹û

View the AppML source file
²é¿´AppMLÔ´Îļþ


Save A Lot Of Development Time
½ÚÔ¼´óÁ¿µÄ¿ª·¢Ê±¼ä

Note: ALL the examples above use the same AppML service to produce the HTML report! This saves you a lot of development time!
×¢Ò⣺ÉÏÊöËùÓеݸÀý¶¼Ê¹ÓÃÁËͬÑùµÄAppML·þÎñÀ´Êä³öHTML±¨¸æ£¡Õ⽫½ÚÊ¡´óÁ¿µÄ¿ª·¢Ê±¼ä£¡


ÆÀÂÛ (0) All