TCB::Internal - shared functions for TCB scripts
use CGI::SHTML; use TCB::Internal; $HTMLHEAD = \&tbhtml_head; $HTMLFOOT = \&tbhtml_foot;
$TITLE = "Testing Page"; print CGI->header(), &$HTMLHEAD($TITLE), "\n"; print "<h2>$TITLE</h2>\n"; print &$HTMLFOOT(); exit(0);
This pseudo-module is used by TCB scripts to offer a consistent user interface with the outside world. The above script is an example of how to use it.
Uses the default configurations found in /home/webserver/conf/shtml.pm with CGI::SHTML to load pages.
TITLE
is the title of the page (appears in the headers and the top of
the page); ARGS
are extra arguments to pass into CGI's start_html().
The following routines help run individual sections of the TCB web site. More can be added regularly.
html_menu()
and a link back to the main database in the sidebar, plus
whatever the standard sidebar was.
html_foot()
, except it includes a couple of extra table close tags.
ARGS
is used to pass extra information into the
headers/footers, such as stylesheet information. Returns the actual text
of the headers and footers.
ARGS
is used to pass extra information into the
headers/footers, such as stylesheet information. Returns the actual text
of the headers and footers.
ARGS
is used to pass extra information into the
headers/footers, such as stylesheet information. Returns the actual text
of the headers and footers.
These aren't being used anymore, to the best of my knowledge.
The file locations of these things are not very consistent. Most scripts are using /home/DBI/Shared/tbinternal.pm; better scripts are using /home/webserver/conf/tbinternal.pm. It would be best if we just put this into the main tree and used 'use TCB::Internal' instead.
Now uses CGI::SHTML; therefore this may be usable for others, and perhaps distributable.
CGI::SHTML
Tim Skirvin <tskirvin@ks.uiuc.edu>
This code is distributed under the University of Illinois Open Source
License. See
http://www.ks.uiuc.edu/Development/MDTools/tcb-internal/license.html
for details.
http://www.ks.uiuc.edu/Development/MDTools/tcb-internal/
Copyright 2000-2004 by the University of Illinois Board of Trustees and Tim Skirvin <tskirvin@ks.uiuc.edu>.