summaryrefslogtreecommitdiff
path: root/httemplate/elements/searchbar-cust_svc.html
blob: 36fb9b2982ab4bfc441cf4b8299cda280bdd8856 (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
% if ( $curuser->access_right('View customer services') ) {

  <FORM ACTION="<%$fsurl%>search/cust_svc.html" METHOD="GET" STYLE="margin:0">
    <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>
    <A NOTYET="<%$fsurl%>search/svc_Smarter.html" STYLE="color: #cccccc; font-size:11px"><% mt('Advanced') |h %></A>
    <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">
  </FORM>
  <% $menu_position eq 'left' ? '<BR>' : '' |n %>

% }

<SCRIPT TYPE="text/javascript">

  function clearhint_search_svc (what) {
    if ( what.value == '<% $svc_label |n %>' )
      what.value = '';
  }

</SCRIPT>
<%once>

my $svc_label = mt('(user, email, ip, mac, domain or service phone)');

</%once>
<%init>

my $curuser = $FS::CurrentUser::CurrentUser;

my $menu_position = $curuser->option('menu_position') || 'top';

my $width = $menu_position eq 'left' ? '190px' : '271px';

</%init>