RT# 82137 - default payment amount now has processing fee in total if processing...
[freeside.git] / httemplate / elements / searchbar-cust_svc.html
1 % if ( $curuser->access_right('View customer services') ) {
2
3   <FORM ACTION="<%$fsurl%>search/cust_svc.html" METHOD="GET" STYLE="margin:0">
4     <INPUT NAME="search_svc" TYPE="text" VALUE="<% $svc_label |n %>" STYLE="width:<% $width %>" onFocus="clearhint_search_svc(this);" onClick="clearhint_search_svc(this);" CLASS="fstext"><BR>
5     <A NOTYET="<%$fsurl%>search/svc_Smarter.html" STYLE="color: #cccccc; font-size:11px"><% mt('Advanced') |h %></A>
6     <INPUT TYPE="submit" VALUE="<% mt('Search services') |h %>" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
7   </FORM>
8   <% $menu_position eq 'left' ? '<BR>' : '' |n %>
9
10 % }
11
12 <SCRIPT TYPE="text/javascript">
13
14   function clearhint_search_svc (what) {
15     if ( what.value == '<% $svc_label |n %>' )
16       what.value = '';
17   }
18
19 </SCRIPT>
20 <%once>
21
22 my $svc_label = mt('(user, email, ip, mac, domain or service phone)');
23
24 </%once>
25 <%init>
26
27 my $curuser = $FS::CurrentUser::CurrentUser;
28
29 my $menu_position = $curuser->option('menu_position') || 'top';
30
31 my $width = $menu_position eq 'left' ? '190px' : '271px';
32
33 </%init>