forward to show ticket after creating ticket, also build basis for replying on ticket!

This commit is contained in:
Quitta 2013-07-10 13:05:05 +02:00
parent 423982a9d1
commit 23df1f8479
3 changed files with 10 additions and 5 deletions

View file

@ -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");

View file

@ -105,7 +105,7 @@
</div>
{/if}
<input type="hidden" name="function" value="add_user">
<input type="hidden" name="function" value="add_user">
<div class="control-group">
<label class="control-label"></label>
<div class="controls">

View file

@ -2,7 +2,7 @@
<div class="row-fluid sortable ui-sortable">
<div class="box span12">
<div class="box-header well" data-original-title="">
<h2><i class="icon-user"></i>Ticket [ID#{$ticket_tId}] </h2>
<h2><i class="icon-tag"></i> Ticket [ID#{$ticket_tId}] </h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
@ -23,22 +23,24 @@
{/foreach}
<tr>
<td>
<form id="reply" class="form-vertical" method="post" action="index.php">
<legend>Reply on the ticket:</legend>
<div class="control-group">
<label class="control-label">Description</label>
<label class="control-label">Fill in your reply</label>
<div class="controls">
<div class="input-prepend">
<textarea rows="6" class="span12" id="Content" name="Content"></textarea>
</div>
</div>
</div>
<input type="hidden" name="function" value="ticket_reply">
<div class="control-group">
<label class="control-label"></label>
<div class="controls">
<button type="submit" class="btn btn-primary" >Send Reply</button>
</div>
</div>
</form>
</td>
</tr>
</tbody>