diner - THE HTTP-server for the BeOS | |||||
Contents | This module is able to perform a query. To do this, the content of the given block is repeated for every entry found and the variables are filled either by the attributes attached to that file or by some custom attributes like the name of that file. The Query module uses some additional header arguments, that can be given in the <Block> tag right after the module name.
The variables given are either some special variables or the name of the attribute to show. Currently, the only special variable is "name" which will be replaced by the name of the file or directory shown. Now, have a look at an example, and don't miss the included example pages : . . <Block Query "Query=BEOS:TYPE=application/x-vnd.Be-bookmark" CheckExistance=true> <table cellpadding=5 border=0 width=100%> <tr> <th bgcolor="blue"><font color="white">Name</font></th> <th bgcolor="blue"><font color="white">URL</font></th> </tr> <Block Query "Query=BEOS:TYPE=application/x-vnd.Be-bookmark"> <tr> <td bgcolor="#f0d000"><font color="black"><Var name></font></td> <td bgcolor="#f0d000"><font color="black"><a href=<Var META:url>><Var META:url></a></font></td> </tr> </Block> </Block> . . would result in the page . . . . if no files exist at all, or for example in the page . . <table cellpadding=5 border=0 width=100%> <tr> <th bgcolor="blue"><font color="white">Name</font></th> <th bgcolor="blue"><font color="white">URL</font></th> </tr> <tr> <td bgcolor="#f0d000"><font color="black">Lens Reviews</font></td> <td bgcolor="#f0d000"><font color="black"><a href=http://mypage.direct.ca/c/cyuill/equiprev.htm>http://mypage.direct.ca/c/cyuill/equiprev.htm </a></font></td> </tr> </table> . . |
||||
Copyright © 1997-99 Stegemann & Co., Inc., all rights reserved. Created: November 29, 1997. Last modified: April 30, 1999. |