WhizBase Report Template

Unlike the previous versions of WhizBase when report template had to be invoked using EXE CGIprogram(e.g.<ahref="/cgi-bin/wb3.exe?wb_config=mycfg.cfg&wb_tempname=mytemplate.htm">) with WhizBase Server Pages any file with extension .wbsp will start WBSP engine which will open the file and start processing it.
WhizBase report templates (.wbsp files) have the same structure as ordinary documents ot selected type (HTML, XML, XHML, RTF, JS, TXT, etc.) extended with WhizBase configuration variables and WhizBase report tags and functions ("placeholders" - reserved words starting with $WB).

Depending of its type, WBSP file can be divided in up to six (6) sections – Configuration section, Top section, Header, Detail and Footer sections and Bottom section, but it can also be ordinary document with no sections at all. The number of sections depends upon type of operation that WBSP page is created for.

For example, this is a WBSP file divided in four sections (section dividers are marked red):
[FormFields]
WB_basename=biblio.mdb
wb_rcdset=publishers
WB_Command=Q
wb_showlogo=F
wb_order=name
<!--WB_BeginTemplate-->
<html>
<head>
<title>Publishers</title>
</head>
<body>
<!--WB_BeginDetail-->
<span style="font-family:Verdana;font-size:14px;font-weight:bold;color:#0066cc;">$wbf[Name]</span><br>
$wbsr[titles.sr]<br>
<!--WB_EndDetail-->
</body>
</html>

and this one has no sections at all:
<html>
<head>
<title>Publishers</title>
</head>
<body>
Hello!
Today is $wbfn[Weekdays], $wbfn[fdt(dd.mmm.yyyy)]!
</body>
</html>


Here is a brief explanation for all 6 sections:

<!--Start of Configuration section-->
<!-- comment tag to prevent WYSIWYG editors from destroying the file structure
[FormFields]
#this subsection contains most of the WB variables needed by WBSP to run properly
[MsgAndLbl]
#this subsection contains custom messages and labels
[Upload]
#this subsection contains variables needed for processing multipart form data
[ErrorMessages]
#this subsection contains custom error messages
[Include]
#this subsection contains paths to include files with WB variables
[Referrer Check]
#this subsection defines valid referrers for current page
[UserData]
#this subsection defines custom, user-defined variables
-->
<!--WB_BeginTemplate-->
<!--End of Configuration section-->
<!--Start of Top section-->
    <html>
    <body>
<!--End of Top section-->
    <!--Start of Detail section-->
    <!--WB_BeginDetail-->
        <!--Start of Header section-->
        <!--WB_BeginHeader-->
        <!--this is where WB report tags and functions for header section should be placed-->
        <!--WB_EndHeader-->
        <!--End of Header section-->
    <!--this is where WB report tags and functions for detail section should be placed-->
        <!--Start of Footer section-->
        <!--WB_BeginFooter-->
        <!--this is where WB report tags and functions for footer section should be placed-->
        <!--WB_EndFooter-->
        <!--End of Footer section-->
    <!--WB_EndDetail-->
    <!--End of Detail section-->
<!--Start of Bottom section-->

    </body>
    </html>
<!--End of Bottom section-->