3 <TITLE>FS::CGI - Subroutines for the web interface</TITLE>
4 <LINK REV="made" HREF="mailto:perl@packages.debian.org">
9 <A NAME="__index__"></A>
14 <LI><A HREF="#name">NAME</A></LI>
15 <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
16 <LI><A HREF="#description">DESCRIPTION</A></LI>
17 <LI><A HREF="#subroutines">SUBROUTINES</A></LI>
18 <LI><A HREF="#bugs">BUGS</A></LI>
19 <LI><A HREF="#see also">SEE ALSO</A></LI>
25 <H1><A NAME="name">NAME</A></H1>
26 <P>FS::CGI - Subroutines for the web interface</P>
29 <H1><A NAME="synopsis">SYNOPSIS</A></H1>
31 use FS::CGI qw(header menubar idiot eidiot popurl);</PRE>
33 print header( 'Title', '' );
34 print header( 'Title', menubar('item', 'URL', ... ) );</PRE>
36 idiot "error message";
37 eidiot "error message";</PRE>
39 $url = popurl; #returns current url
40 $url = popurl(3); #three levels up</PRE>
43 <H1><A NAME="description">DESCRIPTION</A></H1>
44 <P>Provides a few common subroutines for the web interface.</P>
47 <H1><A NAME="subroutines">SUBROUTINES</A></H1>
49 <DT><STRONG><A NAME="item_header">header TITLE, MENUBAR</A></STRONG><BR>
51 Returns an HTML header.
53 <DT><STRONG><A NAME="item_menubar_ITEM%2C_URL%2C_%2E%2E%2E">menubar ITEM, URL, ...</A></STRONG><BR>
55 Returns an HTML menubar.
57 <DT><STRONG><A NAME="item_idiot">idiot ERROR</A></STRONG><BR>
59 This is depriciated. Don't use it.
60 <P>Sends headers and an HTML error message.</P>
62 <DT><STRONG><A NAME="item_eidiot">eidiot ERROR</A></STRONG><BR>
64 This is depriciated. Don't use it.
65 <P>Sends headers and an HTML error message, then exits.</P>
67 <DT><STRONG><A NAME="item_popurl">popurl LEVEL</A></STRONG><BR>
69 Returns current URL with LEVEL levels of path removed from the end (default 0).
71 <DT><STRONG><A NAME="item_table">table</A></STRONG><BR>
73 Returns HTML tag for beginning a table.
75 <DT><STRONG><A NAME="item_itable">itable</A></STRONG><BR>
77 Returns HTML tag for beginning an (invisible) table.
79 <DT><STRONG><A NAME="item_ntable">ntable</A></STRONG><BR>
81 This is getting silly.
85 <H1><A NAME="bugs">BUGS</A></H1>
90 <H1><A NAME="see also">SEE ALSO</A></H1>
91 <P><A HREF=".././FS/CGI.html">the CGI manpage</A>, <A HREF="../CGI/Base.html">the CGI::Base manpage</A></P>