w3HtmlHeader

Syntax   Parameters   Example Programs

w3HtmlHeader outputs the header for this page.  Give your Web pages a consistent look and feel using w3HtmlHeader() and w3HtmlFooter() with the same header and footer text for all related Web pages.  For  instance, suppose you want all of your Web pages to have the same navigation bar on the left side of the Web page.  You can put the HTML code to display this in an item in the w3Html file, and build all of your Web pages using this standard item.  This way, if you ever want to change your navigation bar, you only have to do it once in the header.

w3HtmlHeader is used to process the template from the start of the file to the ##CONTENT## flag. w3HtmlFooter processes the template from after the ##CONTENT## flag to the end of the file.

The header should look something like this:

<HTML><BODY>

Really Interesting Header info goes here

##CONTENT##

Footer information goes here

</BODY></HTML>

The ##CONTENT## is replaced with the entire content of your Web page.

Syntax

call w3HtmlHeader (id, sub)

Parameters

id

In

The item-ID to insert.  If null is passed, then the HTML item named {appname}.headfoot.htm is used (where {appname} is the application name passed to w3HtmlInit).  If there is no  item in the w3Html file with that name, then the item named system.headfoot.htm is used. If system.headfoot.htm doesn't exist, then <HEAD><BODY> is used.

sub

In

The substitution matrix.  See w3HtmlParse for more information about the substitution matrix.

You can limit the text in the item that's inserted by bracketing it with ##BEGIN## and ##END##.  For instance, if you use the following call:

call w3HtmlHeader("xyz.html","")

 ... the xyz.html item looks like this:

<!-- Only "Inserted HTML" below is inserted -->

##BEGIN##

Inserted HTML

##CONTENT##

##END##

Be sure the ##CONTENT## is inside of the Begin/End block.

 

Example Programs

w3Admin.w3Config.form

receivedata

programming.bas8b

w3Redirect.html

act*24322

programming.bas9d

cookie1

programming.bas10

w3mvDTandemTest

disconnect

event

java1

act*23388

programming.bas1

w3rotator.html

MTSelectPayment

act*23235

w3Admin

act*22091

programming.bas2

MTDecline

cookie.show

act*22411

programming.bas3

w3Concurrent.html

MTAccept

w3Rotator.demo

programming.bas4

act*24326

w3Admin.w3Apps.create

id

programming.bas5

applet1-orig

programming.bas6

InsertSections

TemplateInsertTest

MTPayment

w3Admin.w3Apps.Maintain

wbp-doc-html

Myapp

programming.bas7

w3Lines.html

w3Admin.w3Groups.form

w3Sessions.html

w3Admin.w3LogsControl.form

w3Admin.w3Apps.Update

pragma1

FrameTest

ProfileTest

programming.bas9a

IHello

senddata

selectTest

w3Admin.w3User.form

nptest

Xlate1

programming.bas8a

TranslateTest

programming.bas9b

boo

w3Contacts.html