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

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

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

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

APPML
AppML HTML ±¨¸æ
AppML ¹ýÂ˺¯Êý
AppML HTML Áбí
AppML HTML ±íµ¥
AppML XML ±¨¸æ

°¸ÀýÑо¿£ºHTML ±íµ¥


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

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±íµ¥·þÎñ¶ÔÓÚʹÓù²Í¬²¼¾Ö²úÉúÁбíºÍ±íµ¥À´ËµÒ²ÊǷdz£ÍêÃÀµÄ¡£

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