Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / elements / searchbar-cust_bill.html
1 % if ( $curuser->access_right('View invoices') ) { 
2
3   <FORM ACTION="<%$fsurl%>search/cust_bill.html" METHOD="GET" STYLE="margin:0;display:inline">
4     <INPUT NAME="invnum" TYPE="text" VALUE="<% $inv_label |n %>" STYLE="width:56px" onFocus="clearhint_search_invoice(this);" onClick="clearhint_search_invoice(this);" CLASS="fstext">
5 %   if ( $curuser->access_right('List invoices') ) { 
6     <A HREF="<%$fsurl%>search/report_cust_bill.html" CLASS="fslink" STYLE="font-size: 11px"><% mt('Adv') |h %></A>\
7 %   } 
8     <BR>
9     <INPUT TYPE="submit" VALUE="<% mt('Search invoices') |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;margin-top:3px">
10   </FORM>
11   <% $menu_position eq 'left' ? '<BR><BR>' : '' |n %>
12
13 % } 
14
15 <SCRIPT TYPE="text/javascript">
16
17   function clearhint_search_invoice (what) {
18     if ( what.value == '<% $inv_label |n %>' )
19       what.value = '';
20   }
21
22 </SCRIPT>
23 <%once>
24
25 my $inv_label = emt('(inv #)');
26
27 </%once>
28 <%init>
29
30 my $curuser = $FS::CurrentUser::CurrentUser;
31
32 my $menu_position = $curuser->option('menu_position') || 'top';
33
34 </%init>