2 my($title, $menubar) = ( shift, shift );
3 my $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
4 my $head = @_ ? shift : ''; #$head is for things that go in the <HEAD> section
5 my $conf = new FS::Conf;
7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
13 <META HTTP-Equiv="Cache-Control" Content="no-cache">
14 <META HTTP-Equiv="Pragma" Content="no-cache">
15 <META HTTP-Equiv="Expires" Content="0">
17 <%= include('menu.html', 'freeside_baseurl' => $fsurl ) %>
19 <SCRIPT TYPE="text/javascript">
20 function clearhint_search_cust (what) {
21 if ( what.value = '(cust #, name or company)' )
25 function clearhint_search_svc (what) {
26 if ( what.value = '(user, user@domain or domain)' )
30 function clearhint_search_ticket (what) {
31 if ( what.value = '(ticket # or subject string)' )
39 <BODY BACKGROUND="<%=$fsurl%>images/background-cheat.png" <%= $etc %> STYLE="margin-top:0; margin-bottom:0; margin-left:0; margin-right:0">
40 <table width="100%" CELLPADDING=0 CELLSPACING=0 STYLE="padding-left:0; padding-right:4">
42 <td rowspan=2 BGCOLOR="#ffffff">
43 <IMG BORDER=0 ALT="freeside" SRC="<%=$fsurl%>images/small-logo.png">
45 <td align=left rowspan=2 BGCOLOR="#ffffff"> <!-- valign="top" -->
46 <font size=6><%= $conf->config('company_name') || 'ExampleCo' %></font>
48 <td align=right valign=top BGCOLOR="#ffffff">Logged in as <b><%= getotaker %> </b><br><FONT SIZE="-2"><a href="<%=$fsurl%>pref/XXXwritethis">Preferences</a> <BR><BR></FONT>
52 <td align=right valign=bottom BGCOLOR="#ffffff">
56 <td align=right BGCOLOR="#ffffff">
58 <A HREF="http://www.sisd.com/freeside">Freeside</A> v<%= $FS::VERSION %><BR>
59 <A HREF="<%= $fsurl %>docs/">Documentation</A><BR>
62 <% if ( $conf->config('ticket_system') eq 'RT_Internal' ) { %>
64 <td bgcolor=#000000></td>
67 <A HREF="http://www.bestpractical.com/rt">RT<A> v<%= $RT::VERSION %><BR>
68 <A HREF="http://wiki.bestpractical.com/">Documentation</A><BR>
80 <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=4>
82 <TD COLSPAN=4 WIDTH="100%" STYLE="padding:0"><IMG BORDER=0 ALT="" SRC="<%=$fsurl%>images/black-gradient.png" HEIGHT="13" WIDTH="100%"></TD>
85 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right" WIDTH="15%">
86 <FORM ACTION="<%=$fsurl%>edit/cust_main.cgi" METHOD="GET" STYLE="margin:0">
87 <INPUT TYPE="submit" VALUE="New customer">
90 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
91 <FORM ACTION="<%=$fsurl%>search/cust_main.cgi" METHOD="GET" STYLE="margin:0">
92 <INPUT NAME="search_cust" TYPE="text" VALUE="(cust #, name or company)" SIZE="22" onFocus="clearhint_search_cust(this);" onClick="clearhint_search_cust(this);" STYLE="text-align:right">
93 <INPUT TYPE="submit" VALUE="Search customers">
96 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
97 <FORM ACTION="<%=$fsurl%>search/svc_Smart.html" METHOD="GET" STYLE="margin:0">
98 <INPUT NAME="search_svc" TYPE="text" VALUE="(user, user@domain or domain)" SIZE="26" onFocus="clearhint_search_svc(this);" onClick="clearhint_search_svc(this);" STYLE="text-align:right">
99 <INPUT TYPE="submit" VALUE="Search services">
102 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
103 <FORM ACTION="<%=$fsurl%>rt/index.html" METHOD="GET" STYLE="margin:0">
104 <INPUT NAME="q" TYPE="text" VALUE="(ticket # or subject string)" onFocus="clearhint_search_ticket(this);" onClick="clearhint_search_ticket(this);" STYLE="text-align:right">
105 <INPUT TYPE="submit" VALUE="Search tickets">
110 <TABLE WIDTH="100%" HEIGHT="100%" CELLSPACING=0 CELLPADDING=4>
112 <TD BGCOLOR="#000000" STYLE="padding:0" WIDTH="154"></TD>
113 <TD STYLE="padding:0" WIDTH="13"><IMG BORDER=0 ALT="" SRC="<%=$fsurl%>images/black-gray-corner.png"></TD>
114 <TD STYLE="padding:0"><IMG BORDER=0 ALT="" SRC="<%=$fsurl%>images/black-gray-top.png" HEIGHT="13" WIDTH="100%"></TD>
117 <TD BGCOLOR="#000000" ALIGN="left" HEIGHT="100%" WIDTH="154" VALIGN="top" ALIGN="right">
118 <SCRIPT TYPE="text/javascript">
119 document.write(myBar);
122 <IMG SRC="<%=$fsurl%>images/32clear.gif" HEIGHT="1" WIDTH="154">
125 <TD STYLE="padding:0" HEIGHT="100%" WIDTH=13 VALIGN="top"><IMG WIDTH="13" HEIGHT="100%" BORDER=0 ALT="" SRC="<%=$fsurl%>images/black-gray-side.png"></TD>
126 <TD BGCOLOR="#e8e8e8" HEIGHT="100%"> <!-- WIDTH="100%"> -->
133 <%= $menubar !~ /^\s*$/ ? "$menubar<BR><BR>" : '' %>