DAO2WEB Example Template


This is an actual template that I used for the movie reviews on my Movies site.
To help show the new tags that are parsed by DAO2WEB, I've highlighted the DAO tags in a lobster colour. Also note that all DAO tags do not cross over linefeeds in the real file, so if it looks like they are then it's because your browser is wrapping the text. Notice also in the SeenInCinema section that the DAO tag is being used to create an attribute of an HTML tag.
 

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.7 [en] (Win98; I) [Netscape]">
   <meta name="Author" content="Andrew McRae">
</head>
<body text=#D0D0FF bgcolor=#000000
  LINK="#9060FF" VLINK="#9060FF" ALINK="#FF00FF"
  MARGINHEIGHT="4" TOPMARGIN="4" MARGINWIDTH="4" LEFTMARGIN="4">

<table width="100%"><tr>
<td><font size=-1><A href="<DAO PAGELINK="PrevPage">">PREVIOUS PAGE</A></td>
<td><font size=-1><center><A href="http://members.optusnet.com.au/~andrewmcrae/">andrew's web page</A></center></td>
<td align=right><font size=-1><A href="<DAO PAGELINK="NextPage">">NEXT PAGE</A></td>
</tr>
</table>

<br>
<DAO BeginRec>
<table bgcolor=#201030 cellspacing=0 BORDER=0 COLS=2 WIDTH="500" NOBORDER >

<tr><td></td><td width="70"></td></tr>
<tr><td colspan=2 bgcolor=#503070><font face="Times" size=-6><A name="<DAO FIELD="Title">"> &nbsp; </A></font></td></tr>

<tr>
<td><b><font face="arial" size=+1>
<DAO FIELD="Title">
</font></b>
<br><i><DAO FIELD="Subtitle"> </i></td>
<td cellpadding=4 bgcolor=<DAO FIELD="RankColour"> ><b><font face="arial">RANK=</font><font face="Courier"> <DAO FIELD="Rank"></font></b><br>
</tr>

<tr>
<td><strong>Category</strong> : <DAO FIELD="category"></td>
<td rowspan=2 valign=top align=right>
<strong>Viewing Status</strong><br>
<img src="cin<DAO FIELD="SeenInCinema">.gif" alt="SeenInCinema is <DAO FIELD="SeenInCinema">"><br>
<img src="vid<DAO FIELD="SeenOnVideo">.gif" alt="SeenOnVideo is <DAO FIELD="SeenOnVideo">"><br>
<img src="tv<DAO FIELD="SeenOnTV">.gif" alt="SeenOnTV is <DAO FIELD="SeenOnTV">"><br>
#viewings=<DAO FIELD="times"><br>
First seen in <DAO FIELD="month">/<DAO FIELD="year">
</td>
</tr>

<tr>
<td><strong>Description :</strong><br>
<DAO FIELD="abstract"></td>
</tr>

<tr><td colspan=2 bgcolor=#000000><font face="Times" size=-6>&nbsp;</font></td></tr>
</table>

<DAO EndRec>
<br>

<table width="100%"><tr>
<td><font size=-1><A href="<DAO PAGELINK="PrevPage">">PREVIOUS PAGE</A></td>
<td align=right><font size=-1><A href="<DAO PAGELINK="NextPage">">NEXT PAGE</A></td>
</tr>
</table>

</body>
</html>