NAME

FS::CGI - Subroutines for the web interface


SYNOPSIS

  use FS::CGI qw(header menubar idiot eidiot popurl);
  print header( 'Title', '' );
  print header( 'Title', menubar('item', 'URL', ... ) );
  idiot "error message"; 
  eidiot "error message";
  $url = popurl; #returns current url
  $url = popurl(3); #three levels up


DESCRIPTION

Provides a few common subroutines for the web interface.


SUBROUTINES

header TITLE, MENUBAR
Returns an HTML header.

menubar ITEM, URL, ...
Returns an HTML menubar.

idiot ERROR
This is depriciated. Don't use it.

Sends headers and an HTML error message.

eidiot ERROR
This is depriciated. Don't use it.

Sends headers and an HTML error message, then exits.

popurl LEVEL
Returns current URL with LEVEL levels of path removed from the end (default 0).

table
Returns HTML tag for beginning a table.

itable
Returns HTML tag for beginning an (invisible) table.

ntable
This is getting silly.

small_custview CUSTNUM || CUST_MAIN_OBJECT, COUNTRYDEFAULT
Sheesh. I should just switch to Mason.


BUGS

Not OO.

Not complete.

small_custview sooooo doesn't belong here. i should just switch to Mason.


SEE ALSO

the CGI manpage, the CGI::Base manpage