From 23df1f847948331b39a92ded2056639122666379 Mon Sep 17 00:00:00 2001 From: Quitta Date: Wed, 10 Jul 2013 13:05:05 +0200 Subject: [PATCH] forward to show ticket after creating ticket, also build basis for replying on ticket! --- .../server/ryzom_ams/www/html/func/create_ticket.php | 5 ++++- .../server/ryzom_ams/www/html/templates/register.tpl | 2 +- .../server/ryzom_ams/www/html/templates/show_ticket.tpl | 8 +++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php b/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php index b805433f4..045cb688d 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/func/create_ticket.php @@ -18,7 +18,10 @@ function create_ticket(){ }else{ $author= Ticket_User::constr_ExternId($_POST['target_id'])->getTUserId(); } - Ticket::create_Ticket($title, $content, $category, $author); + $ticket_id = Ticket::create_Ticket($title, $content, $category, $author); + header("Location: index.php?page=show_ticket&id=".$ticket_id); + exit; + }catch (PDOException $e) { //ERROR: LIB DB is not online! header("Location: index.php"); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl index c97323520..59b0fa857 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/register.tpl @@ -105,7 +105,7 @@ {/if} - +
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 index d8a04fdd9..a6f0680da 100644 --- 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 @@ -2,7 +2,7 @@
-

Ticket [ID#{$ticket_tId}]

+

Ticket [ID#{$ticket_tId}]

@@ -23,22 +23,24 @@ {/foreach} +
Reply on the ticket:
- +
- +
+