X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fwebrt%2FSearch%2FListing.html;fp=rt%2Fwebrt%2FSearch%2FListing.html;h=0000000000000000000000000000000000000000;hp=da927fec74e6c0752e14a39c5e40e6c077085d71;hb=ded0451e9582df33cae6099a2fb72b4ea25076cf;hpb=0ebeec96313dd7edfca340f01f8fbbbac1f4aa1d diff --git a/rt/webrt/Search/Listing.html b/rt/webrt/Search/Listing.html deleted file mode 100755 index da927fec7..000000000 --- a/rt/webrt/Search/Listing.html +++ /dev/null @@ -1,134 +0,0 @@ -%# $Header: /home/cvs/cvsroot/freeside/rt/webrt/Search/Attic/Listing.html,v 1.1 2002-08-12 06:17:09 ivan Exp $ -%# Copyright 1996-2001 Jesse Vincent -<& /Elements/Header, Title => "Search", Refresh => $session{'tickets_refresh_interval'} &> -<& /Elements/Tabs, current_toptab => 'Search/Listing.html' &> - - -% unless ($ARGS{'Action'} eq 'Refine') { - - -%foreach my $col (@{Config(\%ARGS, 'QueueListingCols')}) { - -%} - - -<%PERL> - -my $i; - -$session{'tickets'}->RedoSearch(); -while (my $Ticket = $session{'tickets'}->Next) { - $i++; - if ($i % 2) { - $bgcolor = "#dddddd"; - } - else { - $bgcolor = "#ffffff"; - } - - -%# The ticket view is controlled by config.pm, WebOptions -%foreach my $col (@{Config(\%ARGS,'QueueListingCols')}) { - -%} - -%} - - - -
- -<%PERL> -my ($order); - my $attr = $col->{'TicketAttribute'}; - $attr =~ s/Obj->(Name|AsString|AgeAsString)//g; - if ($session{'tickets_sort_order'} =~ /^asc$/i) { - $order = 'DESC'; - } else { - $order = 'ASC'; - } - - -% if (grep (/^$attr$/i, $session{'tickets'}->SortFields)) { - -<%$col->{Header}%> - -% } else { -<% $col->{Header} %> -% } -
<& TicketCell , Ticket=>$Ticket, Column=>$col &>
- -
- -First page -   -<Previous page -   -Next page> -%#  
Goto page
-
-
-% if ($session{'tickets'}->Count()) { -
-Update all these tickets at once -
-% } -
- -% } #endif {$ARGS{'Action'} eq 'Refine') - - - - - -
-<& /Elements/TitleBoxStart, title => 'Search Criteria'&> - -New search
-Bookmarkable URL for this search -
-
-% my %restrictions=$session{'tickets'}->DescribeRestrictions(); -% my %seen_restrictions=(); -% foreach $row (keys %restrictions){ -% my $tmp=$restrictions{"$row"}; -% if( ! defined( $seen_restrictions{"$tmp"} ) ){ -<%$restrictions{"$row"}%> [delete]
-% } else { -% $session{'tickets'}->DeleteRestriction($row); -Deleted Duplicate Restriction <%$tmp%>
-% } -% $seen_restrictions{"$tmp"}++; -%} -<& /Elements/TitleBoxEnd&> -
- -<& PickRestriction &> - -
- -<%INIT> - -my $bgcolor; -require RT::Interface::Web; - -$session{'i'}++; -if ($session{'tickets'}) { - if ( ($ARGS{'ClearRestrictions'}) || - ($ARGS{'NewSearch'}) ) { - $session{'tickets'}->ClearRestrictions; - } - - if ($ARGS{'DeleteRestriction'}) { - $session{'tickets'}->DeleteRestriction($ARGS{'DeleteRestriction'}); - } -} -&ProcessSearchQuery(ARGS=>\%ARGS); - -my $row; - -