1 %# $Header: /home/cvs/cvsroot/freeside/rt/webrt/Search/Attic/PickRestriction,v 1.1 2002-08-12 06:17:09 ivan Exp $
2 <FORM ACTION="Listing.html" METHOD="GET">
3 <INPUT TYPE=HIDDEN NAME="Bookmark" VALUE="<% $session{'tickets'}->FreezeLimits()|u %>">
4 <& /Elements/TitleBoxStart, title => 'Refine Search'&>
5 <INPUT TYPE=HIDDEN NAME="CompileRestriction" VALUE=1>
8 <li>Owner is <& /Elements/SelectBoolean, Name => "OwnerOp",
12 <& /Elements/SelectOwner, Name => "ValueOfOwner" &>
15 Requestor email address
16 <& /Elements/SelectMatch, Name => "RequestorOp" &>
17 <INPUT Name="ValueOfRequestor" SIZE=20>
20 Subject <& /Elements/SelectMatch, Name => "SubjectOp" &>
21 <INPUT Name="ValueOfSubject" SIZE=20>
23 <li>Queue <& /Elements/SelectBoolean, Name => "QueueOp" ,
28 <& /Elements/SelectQueue, Name => "ValueOfQueue" &>
31 <li>Priority <& /Elements/SelectEqualityOperator, Name => "PriorityOp" &>
33 <INPUT Name="ValueOfPriority" SIZE=5>
37 <& /Elements/SelectDateType, Name => 'DateType' &>
38 <& /Elements/SelectDateRelation, Name=>"DateOp" &>
39 <& /Elements/SelectDate, Name => "ValueOfDate", ShowTime => 0, Default => '' &>
42 <& /Elements/SelectBoolean, Name => "ContentOp",
44 False => "does not match",
46 FalseVal => 'NOT LIKE'
48 <Input Name="ValueOfContent" Size=20>
51 <& /Elements/SelectBoolean, Name => "StatusOp",
57 <& /Elements/SelectStatus, Name => "ValueOfStatus" &>
59 % while ( my $KeywordSelect = $KeywordSelects->Next ) {
61 <li><% $KeywordSelect->Name %>
62 <& /Elements/SelectBoolean, Name => "KeywordSelectOp". $KeywordSelect->id,
63 True => "is", False => "isn't",
64 TrueVal=> '=', FalseVal => '!=' &>
66 <& /Elements/SelectKeyword, Name => "KeywordSelect".$KeywordSelect->id,
67 KeywordObj => $KeywordSelect->KeywordObj
73 <& /Elements/TitleBoxEnd &>
75 <& /Elements/TitleBoxStart, title => 'Ordering and sorting'&>
79 <li>Results per page <& /Elements/SelectResultsPerPage, Name => "RowsPerPage",
80 Default => $session{'tickets_rows_per_page'} || '50'
83 <li>Sort results by <& /Elements/SelectTicketSortBy, Name => "TicketsSortBy",
84 Default => $session{'tickets_sort_by'}
86 <& /Elements/SelectSortOrder, Name => 'TicketsSortOrder', Default => $session{'tickets_sort_order'} &>
88 <li> <& /Elements/Refresh, Name => 'RefreshSearchInterval' , Default => $session{'tickets_refresh_interval'} &>
98 <& /Elements/TitleBoxEnd &>
100 <& /Elements/Submit, Label => 'Show Results', AlternateLabel => 'Refine', Name => 'Action'&>
106 my $KeywordSelects = new RT::KeywordSelects $session{'CurrentUser'};
107 foreach ( $session{'tickets'}->RestrictionValues('Queue') ) {
108 $KeywordSelects->LimitToQueue($_);
111 $KeywordSelects->IncludeGlobals;