hide customer search if user does not have "List customers" ACL, closes: RT#3105
[freeside.git] / rt / html / Elements / FreesideSearch
1 % if ( $FS::CurrentUser::CurrentUser->access_right('List customers') ) {
2 <form action="<% $RT::URI::freeside::URL %>/search/cust_main.cgi" STYLE="margin:0">
3     <SCRIPT TYPE="text/javascript">
4       function clearhint_search_cust (what) {
5         if ( what.value == '(cust #, name, company or phone)' )
6           what.value = '';
7       }
8     </SCRIPT>
9 <input name="search_cust" accesskey="0" VALUE="(cust #, name, company or phone)" SIZE="28" onFocus="clearhint_search_cust(this);" onClick="clearhint_search_cust(this);" STYLE="text-align:right; font-family: Arial, Verdana, Helvetica, sans-serif;"><BR>
10 <A HREF="<% $RT::URI::freeside::URL %>/search/report_cust_main.html" STYLE="color: #ffffff; font-size: 70%; font-weight:normal">Advanced</A>
11 <input type="submit" value="<&|/l&>Search customers</&>" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:70%">
12 </form>
13 % }