1 % if ( $curuser->access_right('List prospects') ) {
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="Search prospects" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px;padding-left:1px;padding-right:1px">
8 <% $menu_position eq 'left' ? '<BR>' : '' |n %>
12 <SCRIPT TYPE="text/javascript">
14 function clearhint_search_prospect (what) {
15 if ( what.value == '<% $prospect_label |n %>' )
22 my $prospect_label = '(name, company or phone)';
27 my $curuser = $FS::CurrentUser::CurrentUser;
29 my $menu_position = $curuser->option('menu_position') || 'top';
31 my $width = $menu_position eq 'left' ? '190px' : '155px';