1 % if ( $conf->config("ticket_system") ) {
3 <FORM ACTION="<% FS::TicketSystem->baseurl %>index.html" METHOD="GET" STYLE="margin:0">
4 <INPUT NAME="q" TYPE="text" VALUE="<% $ticketing_label |n %>" STYLE="width:<% $width %>" onFocus="clearhint_search_ticket(this);" onClick="clearhint_search_ticket(this);" CLASS="fstext"><BR>
5 <A HREF="<% FS::TicketSystem->baseurl %>Search/Build.html?NewQuery=1" CLASS="fslink" STYLE="font-size:11px"><% mt('Advanced') |h %></A>
6 <INPUT TYPE="submit" VALUE="<% mt('Search tickets') |h %>" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
8 <% $menu_position eq 'left' ? '<BR>' : '' %>
12 <SCRIPT TYPE="text/javascript">
14 function clearhint_search_ticket (what) {
15 if ( what.value == '<% $ticketing_label |n %>' )
22 my $ticketing_label = emt('(ticket #, subject, email or fulltext:text)');
27 my $conf = new FS::Conf;
29 my $curuser = $FS::CurrentUser::CurrentUser;
31 my $menu_position = $curuser->option('menu_position') || 'top';
33 my $width = $menu_position eq 'left' ? '190px' : '223px';