mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
forward to show ticket after creating ticket, also build basis for replying on ticket!
This commit is contained in:
parent
423982a9d1
commit
23df1f8479
3 changed files with 10 additions and 5 deletions
|
@ -18,7 +18,10 @@ function create_ticket(){
|
||||||
}else{
|
}else{
|
||||||
$author= Ticket_User::constr_ExternId($_POST['target_id'])->getTUserId();
|
$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) {
|
}catch (PDOException $e) {
|
||||||
//ERROR: LIB DB is not online!
|
//ERROR: LIB DB is not online!
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<input type="hidden" name="function" value="add_user">
|
<input type="hidden" name="function" value="add_user">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label"></label>
|
<label class="control-label"></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="row-fluid sortable ui-sortable">
|
<div class="row-fluid sortable ui-sortable">
|
||||||
<div class="box span12">
|
<div class="box span12">
|
||||||
<div class="box-header well" data-original-title="">
|
<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">
|
<div class="box-icon">
|
||||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
<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>
|
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||||
|
@ -23,22 +23,24 @@
|
||||||
{/foreach}
|
{/foreach}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
<form id="reply" class="form-vertical" method="post" action="index.php">
|
||||||
<legend>Reply on the ticket:</legend>
|
<legend>Reply on the ticket:</legend>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label">Description</label>
|
<label class="control-label">Fill in your reply</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-prepend">
|
<div class="input-prepend">
|
||||||
<textarea rows="6" class="span12" id="Content" name="Content"></textarea>
|
<textarea rows="6" class="span12" id="Content" name="Content"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<input type="hidden" name="function" value="ticket_reply">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label"></label>
|
<label class="control-label"></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<button type="submit" class="btn btn-primary" >Send Reply</button>
|
<button type="submit" class="btn btn-primary" >Send Reply</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue