home *** CD-ROM | disk | FTP | other *** search
- <includeonce
- // (C) 1996-97 H.E.I. GmbH and suppliers all rights reseved
- //
- // Redistribution and use in source and binary forms, with or without
- // modification, are permitted provided that the following conditions
- // are met:
- // 1. Redistributions of source code must retain the above copyright
- // notice, this list of conditions and the following disclaimer.
- // 2. Redistributions in binary form must reproduce the above copyright
- // notice, this list of conditions and the following disclaimer in the
- // documentation and/or other materials provided with the distribution.
- // 3. Neither the name of H.E.I. GmbH nor the names of its contributors
- // may be used to endorse or promote products derived from this software
- // without specific prior written permission.
- // 4. The complete licensing conditions of heitml apply also to this file,
- // be sure to have read and accepted these conditions before using this
- // file. This file may be used and modified freely in conjunction with
- // a valid heitml license.
- //
- // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
- // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- // IN NO EVENT SHALL THE H.E.I. OR CONTRIBUTORS BE LIABLE FOR ANY
- // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- // GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
- // IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- // IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- /***********************************************************************
- Procedure: signheitml
- Author: Helmut Emmelmann
- Purpose: Prints a message and generates a link to the
- heitml Homepage.
- **********************************************************************/
- def signheitml>
- This page was dynamically generated by
- <a href=http://www.heitml.com/> <b>h<i>ei</i>tml</b> </a>
- </def;
- /***********************************************************************
- Defined Tag: mheitml
- Author: Helmut Emmelmann
- Purpose: Defines the appearance heitml product name.
- **********************************************************************/
- def mheitml><font color="red"><b>h</b><i>ei</i><b>tml</b></font></def;
-
-
- /***********************************************************************
- Environment: stdpage
- Purpose: Sets up the standard layout
- **********************************************************************/
-
- def stdtitle title><TITLE><? title html></TITLE></def;
- def stdhead></def;
- def stdHeading></def;
- def stdFooting></def;
- def stdFrameHeading></def;
- def stdFrameFooting></def;
- def stdIncHeading></def;
- def stdIncFooting></def;
-
- defenv stdNormalPage><stdHeading><defbody><stdFooting></defenv
- defenv stdFramePage><stdFrameHeading><defbody><stdFrameFooting></defenv
- defenv stdIncPage><stdIncHeading><defbody><stdIncFooting></defenv
-
- if !isdecl(se.start);
- defenv session; defbody; /defenv; // do nothing
- defenv sa href=SrvLocalUrl par=null urlpar=null target=null;
- > <a href="<? href>?<
- ? ff.card "&%UDn"; ? ff.step "&%UDn";
- if !isnull(par) >&< ? par "UDn"; /if;
- if !isnull(ff.s) >&< ? ff.s "UDnt"; /if;
- ? urlpar "&%AD";>" <
- ? target "PDn">><defbody></a><
- /defenv;
- def sessionurl;
- ? ff.card "&%UDn"; ? ff.step "&%UDn" >&< ? ff.s "UDnt";
- /def;
- def sessionhidden;
- ? ff.card "FDNvh"; ? ff.step "FDNvh"; ? ff.s "FDth";
- /def;
- /if;
-
-
- def stdParam background=null bgcolor=null text=null link=null
- alink=null vlink=null;
- gl.stdlay = default(gl.stdlay,emptytuple);
-
- if !isnull(background); gl.stdlay.background = background; /if;
- if !isnull(bgcolor); gl.stdlay.bgcolor =bgcolor;/if;
- if !isnull(text); gl.stdlay.text = text;/if;
- if !isnull(link); gl.stdlay.link = link;/if;
- if !isnull(alink); gl.stdlay.alink = alink;/if;
- if !isnull(vlink); gl.stdlay.vlink = vlink;/if;
- /def;
-
-
- defenv stdpage title par=null;
- s = default(gl.stdlay,emptytuple); gl.stdlay=s;
- if isempty(s.title); // we are called outside
- s.title = title>
- <HTML>
- <HEAD>
- <stdhead>
- <stdtitle title>
- </HEAD>
- <BODY < ? s.bgcolor "PDn"; ?s.background "PDn"; ? s.text "PDn";
- ? s.link "PDn"; ?s.alink "PDn"; ?s.vlink "PDn" >>
- <if isempty(ff.s.inframe);
- s.kind=null;
- stdNormalPage par=par; defbody; /stdNormalPage;
- else
- s.kind="frame";
- stdFramePage par=par; defbody; /stdFramePage;
- /if>
- </BODY>
- </HTML>
- <else // we are already processing a page, so we are called inside
- s.kind="inc";
- stdIncPage par=par; defbody; /stdIncPage;
- /if;
- /defenv;
-
- if isempty(ff.s); ff.s=emptytuple; /if;
- >
-