summaryrefslogtreecommitdiff
path: root/httemplate/misc/timeworked.html
diff options
context:
space:
mode:
authorivan <ivan>2007-10-09 01:01:41 +0000
committerivan <ivan>2007-10-09 01:01:41 +0000
commitf481fcc27b20d1a3aee48a613a52395e7cffd871 (patch)
tree0fcd71fe292e2193f3c6ec5c2427329084291980 /httemplate/misc/timeworked.html
parent206ef97f0c2a84e71edd0cf325e4f411d6f935a0 (diff)
i think this should fix timeworked subjects, and link to the transactions as well
Diffstat (limited to 'httemplate/misc/timeworked.html')
-rwxr-xr-xhttemplate/misc/timeworked.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/httemplate/misc/timeworked.html b/httemplate/misc/timeworked.html
index f85a62835..ac5996087 100755
--- a/httemplate/misc/timeworked.html
+++ b/httemplate/misc/timeworked.html
@@ -29,27 +29,28 @@
</TR>
</THEAD>
-% foreach ( keys %ticketmap ) {
-% my (@customers) = @{$customers{$ticketmap{$_}}};
+% foreach my $tr_id ( keys %ticketmap ) {
+% my (@customers) = @{$customers{$ticketmap{$tr_id}}};
% next unless @customers;
% my $multiplier = sprintf("%.2f", 1/@customers);
% my ($custnum, $name) = split(':', pop @customers, 2);
+% my $link = $p. 'rt/Ticket/Display.html?id='. $ticketmap{$tr_id}.
+% '#txn-'. $tr_id;
<TBODY>
<TR>
- <TD><% $_ %></TD>
- <TD><% $ticketmap{$_} %></TD>
- <TD><% $ticket{$_} %></TD>
- <TD><% sprintf("%0.2f", $cgi->param("seconds$_")/3600) %></TD>
+ <TD><a href="$link"><% $tr_id %></a></TD>
+ <TD><a href="$link"><% $ticketmap{$tr_id} %></a></TD>
+ <TD><a href="$link"><% $ticket{$ticketmap{$tr_id}} %></a></TD>
+ <TD><% sprintf("%0.2f", $cgi->param("seconds$tr_id")/3600) %></TD>
<TD ALIGN="right"><% $custnum %></TD>
<TD ALIGN="right"><% $name %></TD>
<TD>
- <INPUT TYPE="hidden" NAME="transactionid<% $_ %>" VALUE="1" >
- <INPUT TYPE="hidden" NAME="seconds<% $_ %>" VALUE="<% $cgi->param("seconds$_") %>" >
- <INPUT TYPE="text" NAME="multiplier<% $_ %>_<% $custnum %>" SIZE="5" VALUE="<% $cgi->param("multiplier${_}_$custnum") ? $cgi->param("multiplier${_}_$custnum") : $multiplier %>" >
+ <INPUT TYPE="hidden" NAME="transactionid<% $tr_id %>" VALUE="1" >
+ <INPUT TYPE="hidden" NAME="seconds<% $tr_id %>" VALUE="<% $cgi->param("seconds$tr_id") %>" >
+ <INPUT TYPE="text" NAME="multiplier<% $tr_id %>_<% $custnum %>" SIZE="5" VALUE="<% $cgi->param("multiplier${_}_$custnum") ? $cgi->param("multiplier${_}_$custnum") : $multiplier %>" >
</TR>
-% my $tr_id = $_;
% foreach ( @customers ) {
% ($custnum, $name) = split(':', $_, 2);