stray closing /TABLE in the no-ticket case
[freeside.git] / httemplate / elements / searchbar-prospect.html
1 % if ( $curuser->access_right('List prospects') ) {
2
3   <FORM ACTION="<%$fsurl%>search/prospect_main.html" METHOD="GET" STYLE="margin:0">
4     <INPUT NAME="search_prospect" TYPE="text" VALUE="<% $prospect_label |n %>" STYLE="width:<%$width%>" onFocus="clearhint_search_prospect(this);" onClick="clearhint_search_prospect(this);" CLASS="fstext"><BR>
5     <A HREF="<%$fsurl%>search/report_prospect_main.html" CLASS="fslink" STYLE="font-size: 11px"><% mt('Adv') |h %></A>
6     <INPUT TYPE="submit" VALUE="<% mt("Search prospects") |h %>" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px;padding-left:1px;padding-right:1px">
7   </FORM>
8   <% $menu_position eq 'left' ? '<BR>' : '' |n %>
9
10 % }
11
12 <SCRIPT TYPE="text/javascript">
13
14   function clearhint_search_prospect (what) {
15     if ( what.value == '<% $prospect_label |n %>' )
16       what.value = '';
17   }
18
19 </SCRIPT>
20 <%once>
21
22 my $prospect_label = mt('(name, company or 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' : '155px';
32
33 </%init>