Template-Driven Web Pages
by Jay Johansen

Example 1: 

year ge "1997" and event eq "convention" 


Listing One
<html><title>Dynadd Demo -- A Link Page</title>
<h1>Dynadd Demo -- A Link Page</h1>

<hr>
Return to <a href="index.html">home page</a>

<hr>
Add a link to this page using
<a href="dyndemoa.htm">this handy form!</a><p>

<i>Probably some introductory text here, maybe disclaimers about not
taking responsibility for the content of links people added themselves,
etc.
The headings are, of course, intended only for illustration.</i><p>

<h2>Computers</h2>
<ul>

<detail><if subj = "compute" and xdate ge xtoday>
<li><a href="&url">&title</a>
<if submit><br>
submited by &submit
</if></if></detail>
</ul>

<h2>Government</h2>
<ul>
<detail><if subj = "gov" and xdate ge xtoday>
<li><a href="&url">&title</a>
<if submit><br>
submited by &submit
</if></if></detail>
</ul>

<h2>Miscellaneous</h2>
<ul>
<detail><if subj = "misc" and xdate ge xtoday>
<li><a href="&url">&title</a>
<if submit><br>
submited by &submit
</if></if></detail>
</ul>

<hr>
Copyright 1997 by me<p>
</html>

Listing Two
#limit=3
#fields=url|title|submit|subj|xmonth|xday|xyear
cmh.infinet.com|http://hoohoo.ncsa.uiuc.edu|NCSA 
                                     Web Server Documentation||compute|
abc.org|http://www.ddj.com|Dr Dobb's Journal||compute
abc.org|http://www.wpafb.af.mil|Write-Patterson Air Force Base|Mary Jones|gov
abc.org|http://www.dole96.com|Dole for President||gov|Nov|4|1996
day-p005.infinet.com|http://www.cs.cmu.edu/books.html|
                                     On-Line Books||misc|Jun|30|1997

Listing Three
<html><title>Dynadd demo: Add to link page</title>
<h1>Dynadd demo: Add to link page</h1>
<hr>
Return to <a href="dyndemo.htm">link page |
<a href="index.html">home</a>
<hr>
Use this form to add to our link page!<p>

<form action="/cgi-bin/dynadd/test/dyndemo" method=post>
<table>
<tr><td align=right>URL<br>
    <td><input name=url size=40>
<tr><td align=right>Page title<br>
    <td><input name=title size=40>
<tr><td align=right>Submitter's name
    <td><input name=submit size=40>
<tr><td align=right valign=top>Heading you belong under<br>
    <td><input type=radio name=subj value=compute>Computers<br>
      <input type=radio name=subj value=gov>Government<br>
      <input type=radio name=subj value=misc>Miscellaneous<br>
<tr><td align=right>If this URL will no longer be valid after a
       certain date, enter expiration date here
    <td><select name=xmonth>
      <option value="">
      <option value="Jan">Jan <option value="Feb">Feb <option value="Mar">Mar
      <option value="Apr">Apr <option value="May">May <option value="Jun">Jun
      <option value="Jul">Jul <option value="Aug">Aug <option value="Sep">Sep
      <option value="Oct">Oct <option value="Nov">Nov <option value="Dec">Dec
      </select>
      <select name=xday>
      <option value="">
      <option value="1">1 <option value="2">2 <option value="3">3
      <option value="4">4 <option value="5">5 <option value="6">6
      <option value="7">7 <option value="8">8 <option value="9">9
      <option value="10">10 <option value="11">11 <option value="12">12
      <option value="13">13 <option value="14">14 <option value="15">15
      <option value="16">16 <option value="17">17 <option value="18">18
      <option value="19">19 <option value="20">20 <option value="21">21
      <option value="22">22 <option value="23">23 <option value="24">24
      <option value="25">25 <option value="26">26 <option value="27">27
      <option value="28">28 <option value="29">29 <option value="30">30
      <option value="31">31
      </select>
      <select name=xyear>
      <option value=""> <option value=1997>1997 <option value=1998>1998
      </select><br>
</table>

<p align=center>
<input type=submit value=" Add ">
<input type=reset value="Reset">
<p>
</form>
<hr>
Copyright 1997 by me<p>
</html>


3


