Esmith::cgi
Contents
- 1 NAME
- 2 VERSION
- 3 SYNOPSIS
- 4 DESCRIPTION
- 4.1 genHeaderNonCacheable($q, $confref, $title)
- 4.2 genHeaderCacheableNoPasswordCheck($q, $confref, $title)
- 4.3 genHeaderCacheableNoPasswordCheck($q, $confref, $title)
- 4.4 genHeader($q, $confref, $title, $expiry, $checkpassword)
- 4.5 genNavigationHeader($q)
- 4.6 genNoframesHeader($q)
- 4.7 genHeaderStartHTML($q)
- 5 WEB PAGE FOOTER GENERATION ROUTINES
- 6 FONT ROUTINES
- 7 TABLE GENERATION ROUTINES
- 7.1 genCell($q, $text)
- 7.2 genDoubleCell($q, $text);
- 7.3 genSmallCell($q, $text, $type, $colspan)
- 7.4 genSmallCellCentered($q, $text)
- 7.5 genSmallCellRightJustified($q, $text)
- 7.6 genSmallRedCell($q, $text)
- 7.7 genTextRow($q, $text)
- 7.8 genButtonRow($q, $button)
- 7.9 genNameValueRow($q, $fieldlabel, $fieldname, $fieldvalue)
- 7.10 sub genWidgetRow($q, $fieldlabel, $popup)
- 8 STATUS AND ERROR REPORT GENERATION ROUTINES
- 9 genResult($q, $msg)
- 10 AUTHOR
NAME
esmith::cgi - Useful CGI routines for e-smith server and gateway In a root terminal you can do the command below if you want to display the up-to-date content
perldoc esmith::esmith::cgi
VERSION
This file documents "esmith::cgi" version 1.4.0
SYNOPSIS
use esmith::cgi;
DESCRIPTION
This module contains a collection of useful routines for working with the e-smith manager’s CGI interface. =head1 WEB PAGE HEADER GENERATION ROUTINES
genHeaderNonCacheable($q, $confref, $title)
genHeaderCacheableNoPasswordCheck($q, $confref, $title)
genHeaderCacheableNoPasswordCheck($q, $confref, $title)
genHeader($q, $confref, $title, $expiry, $checkpassword)
genNoframesHeader($q)
genHeaderStartHTML($q)
WEB PAGE FOOTER GENERATION ROUTINES
FONT ROUTINES
curFont()
Returns the preferred font faces eg. "Verdana, Arial, Helvetica, sans-serif". This should be done by CSS now, so if you’re calling this, you shouldn’t be.
TABLE GENERATION ROUTINES
genCell($q, $text)
genDoubleCell($q, $text);
Generates a cell which spans two columns, containing the text specified.
genSmallCell($q, $text, $type, $colspan)
Generates a cell with "small" text (font size is 80%). "$type" can be one of: "normal" : creates cell "header" : creates cell
genSmallCellCentered($q, $text)
Generates a cell with "small" text (font size is 80%), centered. creates cell
genSmallCellRightJustified($q, $text)
Generates a cell with "small" text (font size is 80%), right justified. creates cell
genSmallRedCell($q, $text)
Generates a cell with "small" text (font size is 80%), left justified. creates cell
genTextRow($q, $text)
Returns a table row containing a two-column cell containing $text.
genButtonRow($q, $button)
Returns a table row containing an empty first cell and a second cell containing a button with the value $button.
genNameValueRow($q, $fieldlabel, $fieldname, $fieldvalue)
Returns a table row with two cells. The first has the text "$fieldlabel:" in it, and the second has a text field with the default value $fieldvalue and the name $fieldname.
sub genWidgetRow($q, $fieldlabel, $popup)
STATUS AND ERROR REPORT GENERATION ROUTINES
genResult($q, $msg)
Generates a "status report" page, including the footer
genStateError($q, $confref)
Subroutine to generate "unknown state" error message.
AUTHOR
Mitel Networks Corporation
For more information, see http://e-smith.org/