1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
7 <META HTTP-Equiv="Cache-Control" Content="no-cache">
8 <META HTTP-Equiv="Pragma" Content="no-cache">
9 <META HTTP-Equiv="Expires" Content="0">
11 <% include('menu.html', 'freeside_baseurl' => $fsurl,
12 'position' => $menu_position,
16 <% include('init_overlib.html') %>
18 <SCRIPT TYPE="text/javascript">
19 function clearhint_search_cust (what) {
20 if ( what.value == '(cust #, name, company or phone)' )
24 function clearhint_search_address2 (what) {
25 if ( what.value == '(Unit #)' )
29 function clearhint_search_invoice (what) {
30 if ( what.value == '(inv #)' )
34 function clearhint_search_svc (what) {
35 if ( what.value == '(user, email, ip, mac, or domain)' )
39 function clearhint_search_ticket (what) {
40 if ( what.value == '(ticket # or subject string)' )
48 <BODY <% $menu_position eq 'left' ? qq( BACKGROUND="${fsurl}images/background-cheat.png" ) : ' BGCOLOR="#e8e8e8" ' %> <% $etc %> STYLE="margin-top:0; margin-bottom:0; margin-left:0; margin-right:0">
49 <table width="100%" CELLPADDING=0 CELLSPACING=0 STYLE="padding-left:0; padding-right:4">
51 <td rowspan=2 BGCOLOR="#ffffff"><IMG BORDER=0 ALT="freeside" SRC="<%$fsurl%>images/small-logo.png"></td>
52 <td align=left rowspan=2 BGCOLOR="#ffffff"> <!-- valign="top" -->
53 <font size=6><% $conf->config('company_name') || 'ExampleCo' %></font>
55 <td align=right valign=top BGCOLOR="#ffffff"><FONT SIZE="-1">Logged in as <b><% getotaker %> </b><br></FONT><FONT SIZE="-2"><a href="<%$fsurl%>pref/pref.html">Preferences</a> <BR></FONT>
59 <td align=right valign=bottom BGCOLOR="#ffffff">
63 <td align=right BGCOLOR="#ffffff">
65 <% include('/elements/popup_link.html',
66 'action' => $fsurl.'docs/about.html',
67 'label' => 'Freeside',
68 'actionlabel' => 'About',
74 %> v<% $FS::VERSION %><BR>
75 <A HREF="<% $conf->config('support-key') ? "http://www.freeside.biz/mediawiki/index.php/Supported:Documentation" : "http://www.freeside.biz/mediawiki/index.php/Freeside:1.9:Documentation" %>" TARGET="_blank">Documentation</A><BR>
78 % if ( $conf->config('ticket_system') eq 'RT_Internal' ) {
81 <td bgcolor=#000000></td>
84 <A HREF="http://www.bestpractical.com/rt" TARGET="_blank">RT<A> v<% $RT::VERSION %><BR>
85 <A HREF="http://wiki.bestpractical.com/" TARGET="_blank">Documentation</A><BR>
98 <style type="text/css">
100 background-color:#333333;
103 border-top-color:#cccccc;
104 border-left-color:#cccccc;
105 border-right-color:#aaaaaa;
106 border-bottom-color:#aaaaaa;
111 filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff333333',EndColorStr='#ff666666')
114 input.fsblackbuttonselected {
115 background-color:#7e0079;
118 border-top-color:#cccccc;
119 border-left-color:#cccccc;
120 border-right-color:#aaaaaa;
121 border-bottom-color:#aaaaaa;
126 filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff330033',EndColorStr='#ff7e0079')
130 <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=0>
132 <TD COLSPAN=6 WIDTH="100%" STYLE="padding:0"><IMG BORDER=0 ALT="" SRC="<%$fsurl%>images/black-gradient.png" HEIGHT="13" WIDTH="100%"></TD>
135 % if ( $menu_position eq 'top' ) {
139 <TD COLSPAN="6" WIDTH="100%" STYLE="padding:0">
140 <SCRIPT TYPE="text/javascript">
141 document.write(myBar);
148 <TD COLSPAN="6" WIDTH="100%" HEIGHT="2px" STYLE="padding:0" BGCOLOR="#000000">
153 <TD COLSPAN="6" WIDTH="100%" HEIGHT="4px" STYLE="padding:0" BGCOLOR="#000000">
161 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
162 <FORM ACTION="<%$fsurl%>edit/cust_main.cgi" METHOD="GET" STYLE="margin:0">
163 <INPUT TYPE="submit" VALUE="New customer" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="vertical-align:bottom; font-size:100%">
167 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
168 % if ( $FS::CurrentUser::CurrentUser->access_right('List customers') ) {
169 <FORM ACTION="<%$fsurl%>search/cust_main.cgi" METHOD="GET" STYLE="margin:0">
170 <INPUT NAME="search_cust" TYPE="text" VALUE="(cust #, name, company or phone)" SIZE="28" onFocus="clearhint_search_cust(this);" onClick="clearhint_search_cust(this);" STYLE="vertical-align:bottom;text-align:right"><BR>
171 <A HREF="<%$fsurl%>search/report_cust_main.html" STYLE="color: #ffffff; font-size: 70%">Advanced</A>
172 <INPUT TYPE="submit" VALUE="Search customers" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:70%">
177 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="center">
178 % if ( $conf->exists('address2-search') ) {
179 <FORM ACTION="<%$fsurl%>search/cust_main.cgi" METHOD="GET" STYLE="margin:0;display:inline">
180 <INPUT TYPE="hidden" NAME="address2_on" VALUE="1">
181 <INPUT NAME="address2_text" TYPE="text" VALUE="(Unit #)" SIZE="4" onFocus="clearhint_search_address2(this);" onClick="clearhint_search_address2(this);" STYLE="vertical-align:bottom;text-align:right;margin-bottom:1px">
183 <INPUT TYPE="submit" VALUE="Search units" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:70%;padding-left:2px;padding-right:2px">
188 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
189 % if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) {
191 <FORM ACTION="<%$fsurl%>search/cust_bill.html" METHOD="GET" STYLE="margin:0;display:inline">
192 <INPUT NAME="invnum" TYPE="text" VALUE="(inv #)" SIZE="4" onFocus="clearhint_search_invoice(this);" onClick="clearhint_search_invoice(this);" STYLE="vertical-align:bottom;text-align:right;margin-bottom:1px">
193 % if ( $FS::CurrentUser::CurrentUser->access_right('List invoices') ) {
195 <A HREF="<%$fsurl%>search/report_cust_bill.html" STYLE="color: #ffffff; font-size: 70%">Advanced</A>
199 <INPUT TYPE="submit" VALUE="Search invoices" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:70%">
204 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
205 <FORM ACTION="<%$fsurl%>search/cust_svc.html" METHOD="GET" STYLE="margin:0">
206 <INPUT NAME="search_svc" TYPE="text" VALUE="(user, email, ip, mac, or domain)" SIZE="26" onFocus="clearhint_search_svc(this);" onClick="clearhint_search_svc(this);" STYLE="vertical-align:bottom;text-align:right"><BR>
207 <A NOTYET="<%$fsurl%>search/svc_Smarter.html" STYLE="color: #000000; font-size: 70%">Advanced</A>
208 <INPUT TYPE="submit" VALUE="Search services" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:70%">
212 <TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right" STYLE="padding-right:4px">
213 % if ( $conf->config("ticket_system") ) {
214 <FORM ACTION="<% FS::TicketSystem->baseurl %>index.html" METHOD="GET" STYLE="margin:0">
215 <INPUT NAME="q" TYPE="text" VALUE="(ticket # or subject string)" onFocus="clearhint_search_ticket(this);" onClick="clearhint_search_ticket(this);" STYLE="vertical-align:bottom;text-align:right"><BR>
216 <A HREF="<% FS::TicketSystem->baseurl %>Search/Build.html" STYLE="color: #ffffff; font-size: 70%">Advanced</A>
217 <INPUT TYPE="submit" VALUE="Search tickets" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:70%;padding-left:2px;padding-right:2px">
225 <TABLE WIDTH="100%" HEIGHT="100%" CELLSPACING=0 CELLPADDING=4>
229 % if ( $menu_position eq 'left' ) {
231 <TD BGCOLOR="#000000" STYLE="padding:0" WIDTH="154"></TD>
232 <TD STYLE="padding:0" WIDTH="13"><IMG BORDER=0 ALT="" SRC="<%$fsurl%>images/black-gray-corner.png"></TD>
236 <TD STYLE="padding:0" WIDTH="100%"><IMG BORDER=0 ALT="" SRC="<%$fsurl%>images/black-gray-top.png" HEIGHT="13" WIDTH="100%"></TD>
242 % if ( $menu_position eq 'left' ) {
244 <TD BGCOLOR="#000000" ALIGN="left" HEIGHT="100%" WIDTH="154" VALIGN="top" ALIGN="right">
245 <SCRIPT TYPE="text/javascript">
246 document.write(myBar);
249 <IMG SRC="<%$fsurl%>images/32clear.gif" HEIGHT="1" WIDTH="154">
252 <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>
256 <TD BGCOLOR="#e8e8e8" HEIGHT="100%" VALIGN="top"> <!-- WIDTH="100%"> -->
263 <% $menubar !~ /^\s*$/ ? "$menubar<BR><BR>" : '' %>
266 my($title, $menubar) = ( shift, shift );
267 my $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
268 my $head = @_ ? shift : ''; #$head is for things that go in the <HEAD> section
269 my $conf = new FS::Conf;
271 my $menu_position = $FS::CurrentUser::CurrentUser->option('menu_position')