diff options
author | ivan <ivan> | 2002-08-12 06:17:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-08-12 06:17:09 +0000 |
commit | 3ef62a0570055da710328937e7f65dbb2c027c62 (patch) | |
tree | d549158b172fd499b4f81a2981b62aabbde4f99b /rt/webrt/Search/TicketCell | |
parent | 030438c9cb1c12ccb79130979ef0922097b4311a (diff) |
import rt 2.0.14
Diffstat (limited to 'rt/webrt/Search/TicketCell')
-rw-r--r-- | rt/webrt/Search/TicketCell | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/rt/webrt/Search/TicketCell b/rt/webrt/Search/TicketCell new file mode 100644 index 000000000..aaded88e9 --- /dev/null +++ b/rt/webrt/Search/TicketCell @@ -0,0 +1,28 @@ +%#$Header: /home/cvs/cvsroot/freeside/rt/webrt/Search/Attic/TicketCell,v 1.1 2002-08-12 06:17:09 ivan Exp $ +<% $link |n%><%$Column->{Constant} || eval("\$Ticket->$Column->{TicketAttribute}") || "-" %><% $endlink|n %> +<%INIT> + +my $link = ""; +my $endlink = ""; +if ($Column->{TicketLink}) { + $link = "<A HREF=\""; + if ($Column->{TicketLink} == 1 ) { + $link .= "../Ticket/Display.html?"; + } + else { + $link .= $Column->{TicketLink}; + } + + $link .= "id=".$Ticket->Id . $Column->{ExtraLinks}; + + if ($session{NewWindowOption}) { + $link .= "TARGET=\"TicketDisplay".$session{AlwaysNewWindowOption} && (time() . rand(1024))."\" "; + } + $link .= "\">"; + $endlink = "</a>"; +} +</%INIT> +<%ARGS> +$Ticket => undef +$Column => undef +</%ARGS> |