diff options
| author | levinse <levinse> | 2010-12-17 01:16:04 +0000 |
|---|---|---|
| committer | levinse <levinse> | 2010-12-17 01:16:04 +0000 |
| commit | 7c5c97fd11e04b0e71afed4d014ca5de6e05015a (patch) | |
| tree | b76e8ce3114fb9f3f1c31f84b7bbcfa3e8ec7678 /fs_selfservice/FS-SelfService/cgi/tktview.html | |
| parent | f73dba57a29dea6dc340f61592ea32e081a74a1f (diff) | |
self-service improvements, RT10883
Diffstat (limited to 'fs_selfservice/FS-SelfService/cgi/tktview.html')
| -rw-r--r-- | fs_selfservice/FS-SelfService/cgi/tktview.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/tktview.html b/fs_selfservice/FS-SelfService/cgi/tktview.html new file mode 100644 index 000000000..6f540bcf4 --- /dev/null +++ b/fs_selfservice/FS-SelfService/cgi/tktview.html @@ -0,0 +1,31 @@ +<%= $url = "$selfurl?session=$session_id;action="; ''; %> +<%= include('header', "View ticket #$ticket_id") %> + +<%= +if($error) { + $OUT .= qq! <div style="font-weight: bold; color: red; font-size: 110%">Error: $error</div> !; +} +elsif(@transactions) { + $OUT .= qq! <TABLE border="1">!; + foreach my $txn ( @transactions ) { + next if $txn->{content} eq 'This transaction appears to have no content'; + $OUT .= "<TR><TD><B>$txn->{created} $txn->{description}</B>"; + $OUT .= "<PRE>$txn->{content}</PRE></TD></TR>"; + } + $OUT .= "</TABLE>"; +} +else { + $OUT .= "No transactions on this ticket"; +} +%> +<BR><BR><BR> +<FORM ACTION="<%=$selfurl%>" METHOD=POST> + <input type="hidden" name="session" value="<%=$session_id%>"> + <input type="hidden" name="ticket_id" value="<%=$ticket_id%>"> + <input type="hidden" name="action" value="tktview"> + Add reply to ticket: + <BR><textarea name="reply" cols="60" rows="10"></textarea> + <BR><input type="submit" value="Reply"> +</form> + +<%= include('footer') %> |
