From 8dc95d26047a08ccabced652556441901b0c4951 Mon Sep 17 00:00:00 2001 From: Quitta Date: Wed, 10 Jul 2013 02:41:21 +0200 Subject: [PATCH] forgot to add the files <,< --- .../ryzom_ams/www/html/inc/show_ticket.php | 32 ++++++++++++++ .../www/html/templates/show_ticket.tpl | 44 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 code/ryzom/tools/server/ryzom_ams/www/html/inc/show_ticket.php create mode 100644 code/ryzom/tools/server/ryzom_ams/www/html/templates/show_ticket.tpl diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_ticket.php b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_ticket.php new file mode 100644 index 000000000..9f81961b2 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/inc/show_ticket.php @@ -0,0 +1,32 @@ +getTitle(); + $result['ticket_replies'] = Gui_Elements::make_table($entire_ticket['reply_array'], Array("getTReplyId","getContent()->getContent","getTimestamp"), Array("tReplyId","replyContent","timestamp")); + //$result['ticket_replies'][0]['replyContent'] = nl2br($result['ticket_replies'][0]['replyContent']); + return $result; + + /*}else{ + //ERROR: No access! + $_SESSION['error_code'] = "403"; + header("Location: index.php?page=error"); + exit; + }*/ + }else{ + //ERROR: not logged in! + header("Location: index.php"); + exit; + } +} \ No newline at end of file diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_ticket.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_ticket.tpl new file mode 100644 index 000000000..27c5df365 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/show_ticket.tpl @@ -0,0 +1,44 @@ +{block name=content} +
+
+
+

Ticket

+
+ + +
+
+
+
+ Title: {$ticket_title} + + + {foreach from=$ticket_replies item=reply} + + + + {/foreach} + + + + +
+

[ID{$reply.tReplyId}] {$reply.timestamp}

+

{$username}{$reply.replyContent}

+
+ Reply on the ticket: +
+ +
+
+ +
+
+
+
+
+
+
+
+{/block} +