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} +