summaryrefslogtreecommitdiff
path: root/httemplate/docs/man/FS/CGI.html
blob: 54a0bf39b7e075a51e6e100c864e11ab910c6fa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<HTML>
<HEAD>
<TITLE>FS::CGI - Subroutines for the web interface</TITLE>
<LINK REV="made" HREF="mailto:perl@packages.debian.org">
</HEAD>

<BODY>

<A NAME="__index__"></A>
<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#name">NAME</A></LI>
	<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
	<LI><A HREF="#description">DESCRIPTION</A></LI>
	<LI><A HREF="#subroutines">SUBROUTINES</A></LI>
	<LI><A HREF="#bugs">BUGS</A></LI>
	<LI><A HREF="#see also">SEE ALSO</A></LI>
</UL>
<!-- INDEX END -->

<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>FS::CGI - Subroutines for the web interface</P>
<P>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
  use FS::CGI qw(header menubar idiot eidiot popurl);</PRE>
<PRE>
  print header( 'Title', '' );
  print header( 'Title', menubar('item', 'URL', ... ) );</PRE>
<PRE>
  idiot &quot;error message&quot;; 
  eidiot &quot;error message&quot;;</PRE>
<PRE>
  $url = popurl; #returns current url
  $url = popurl(3); #three levels up</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>Provides a few common subroutines for the web interface.</P>
<P>
<HR>
<H1><A NAME="subroutines">SUBROUTINES</A></H1>
<DL>
<DT><STRONG><A NAME="item_header">header TITLE, MENUBAR</A></STRONG><BR>
<DD>
Returns an HTML header.
<P></P>
<DT><STRONG><A NAME="item_menubar_ITEM%2C_URL%2C_%2E%2E%2E">menubar ITEM, URL, ...</A></STRONG><BR>
<DD>
Returns an HTML menubar.
<P></P>
<DT><STRONG><A NAME="item_idiot">idiot ERROR</A></STRONG><BR>
<DD>
This is depriciated.  Don't use it.
<P>Sends headers and an HTML error message.</P>
<P></P>
<DT><STRONG><A NAME="item_eidiot">eidiot ERROR</A></STRONG><BR>
<DD>
This is depriciated.  Don't use it.
<P>Sends headers and an HTML error message, then exits.</P>
<P></P>
<DT><STRONG><A NAME="item_popurl">popurl LEVEL</A></STRONG><BR>
<DD>
Returns current URL with LEVEL levels of path removed from the end (default 0).
<P></P>
<DT><STRONG><A NAME="item_table">table</A></STRONG><BR>
<DD>
Returns HTML tag for beginning a table.
<P></P>
<DT><STRONG><A NAME="item_itable">itable</A></STRONG><BR>
<DD>
Returns HTML tag for beginning an (invisible) table.
<P></P>
<DT><STRONG><A NAME="item_ntable">ntable</A></STRONG><BR>
<DD>
This is getting silly.
<P></P>
<DT><STRONG><A NAME="item_small_custview_CUSTNUM_%7C%7C_CUST_MAIN_OBJECT%2C_">small_custview CUSTNUM || CUST_MAIN_OBJECT, COUNTRYDEFAULT</A></STRONG><BR>
<DD>
Sheesh. I should just switch to Mason.
<P></P></DL>
<P>
<HR>
<H1><A NAME="bugs">BUGS</A></H1>
<P>Not OO.</P>
<P>Not complete.</P>
<P>small_custview sooooo doesn't belong here.  i should just switch to Mason.</P>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF=".././FS/CGI.html">the CGI manpage</A>, <A HREF="../CGI/Base.html">the CGI::Base manpage</A></P>

</BODY>

</HTML>