2 <div class="row-fluid sortable ui-sortable">
3 <div class="box col-md-9">
4 <div class="panel panel-default">
5 <div class="panel-heading" data-original-title="">
6 <span class="icon-tag"></span>{$t_title} #{$ticket_tId}
8 <div class="panel-body">
9 <div class="row-fluid">
10 <legend>{$title}: {$ticket_title} </legend>
13 <form id="changeTicket" class="form-vertical" method="post" action="index.php">
14 <table class="table table-bordered table-condensed ">
16 <td><strong>Original Submitted: </strong>{$ticket_timestamp}</td>
17 <td><strong>Last Updated: </strong>{$ticket_lastupdate}</td>
18 <td><strong>Status: </strong>{if $ticket_status neq 3}<span class="label label-success">Open</span>{/if} <span class="label {if $ticket_status eq 0}label-success{else if $ticket_status eq 1}label-warning{else if $ticket_status eq 2}label-important{/if}"><strong>{$ticket_statustext}</strong></span></td>
21 <td><strong>Category: </strong>{$ticket_category}</td>
22 <td><strong>Priority: </strong>{$ticket_prioritytext}</td>
23 <td><strong>Support Group: </strong>
24 <span class="label label-info">
25 {if $ticket_forwardedGroupName eq "0"}
26 <i>{$public_sgroup}</i>
28 <a href="index.php?page=show_sgroup&id={$ticket_forwardedGroupId}"><font color="white">{$ticket_forwardedGroupName}</font></a>
34 <table class="table table-bordered table-condensed ">
36 <td><strong>Filename: </strong></td>
37 <td><strong>Uploaded: </strong></td>
38 <td><strong>Filesize: </strong></td>
39 <td><strong>Uploaded by: </strong></td>
41 {foreach from=$ticket_attachments item=array}
43 <td><a href="{$FILE_WEB_PATH}{$array['Path']}">{$array['Filename']}</a></td>
44 <td>{$array['Timestamp']}</td>
45 <td>{$array['Filesize']}</td>
46 <td>{if $permission > 1}
47 <a href="{$BASE_WEBPATH}index.php?page=show_user&id={$array['Uploader']}">{$array['Username']}</a>
57 <table class="table table-bordered" >
59 {foreach from=$ticket_replies item=reply}
63 <span class="label label-info"> {$reply.timestamp}</span>
64 {if $reply.permission eq '1'}
65 <span class="label label-success"><strong><span class="icon-user icon-white"></span>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
66 {else if $reply.permission gt '1'}
67 <span class="label label-warning"><strong><span class="icon-star icon-white"></span>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
70 <p><pre{if $reply.permission gt '1'} {if $reply.hidden eq 0} style="background-color:rgb(248, 200, 200);"{else if $reply.hidden eq 1}style="background-color:rgb(207, 254, 255);"{/if}{/if}> {if $reply.hidden eq 1}<i>{/if}{$reply.replyContent}{if $reply.hidden eq 1}</i>{/if}</pre></p>
75 {if $ticket_status eq 3}
78 <p><pre style="background-color:rgb(255, 230, 153);">Ticket is closed.</pre></p>
85 <form id="reply" class="form-vertical" method="post" action="index.php">
86 {if $ticket_status neq 3}
87 <legend>{$t_reply}:</legend>
88 <div class="control-group">
89 <label class="control-label">{$t_fill}</label>
90 <div class="controls">
91 <div class="input-prepend">
92 <textarea rows="6" class="span12" id="Content" name="Content"></textarea>
96 {if isset($isMod) and $isMod eq "TRUE"}
97 <div class="control-group">
98 <label class="control-label">Options</label>
99 <div class="controls">
100 <div class="input-prepend">
101 <input type="checkbox" name="hidden">Hide reply for user.
107 {if isset($isMod) and $isMod eq "TRUE"}
108 <div class="control-group" style="display: inline-block;">
109 <label class="control-label">Change status to</label>
110 <div class="controls">
111 <select name="ChangeStatus">
112 {foreach from=$statusList key=k item=v}
113 <option value="{$k}">{$v}</option>
118 <div class="control-group" style="display: inline-block; margin-left:10px;"">
119 <label class="control-label">Change priority to</label>
120 <div class="controls">
121 <select name="ChangePriority">
122 {foreach from=$ticket_priorities key=k item=v}
123 <option value="{$k}" {if $k eq $ticket_priority}selected="selected"{/if}>{$v}</option>
129 <input type="hidden" name="function" value="reply_on_ticket">
130 <input type="hidden" name="ticket_id" value="{$ticket_id}">
132 <h3>Upload Attachment</h3>
133 <input data-no-uniform="true" type="file" name="file_upload" id="file_upload">
135 <script language='JavaScript'>
136 $(document).ready( function () {
138 $('#file_upload').uploadify({
139 'formData' : {'PHPSESSID': '{/literal}{nocache}{$sessionid}{/nocache}{literal}'},
143 'swf': 'misc/uploadify.swf',
144 'displayData': 'percentage',
145 'uploader': 'func/upload.php?id='+{/literal}{$ticket_id}{literal},
146 'removeCompleted' : false
151 <div id="filesUploaded"></div>
152 <div class="control-group">
153 <label class="control-label"></label>
154 <div class="controls">
155 <button type="submit" class="btn btn-primary" >{$t_send}</button>
170 <div class="box col-md-3">
171 <div class="panel panel-default">
172 <div class="panel-heading" data-original-title="">
173 <span class="icon-th"></span>Actions
175 <div class="panel-body">
176 <div class="row-fluid">
178 {if isset($isMod) and $isMod eq "TRUE"}
180 <legend style="margin-bottom:9px;">Ticket Assigning</legend>
181 {if $ticket_assignedTo eq 0}
182 <form id="assign_ticket" class="form-vertical" method="post" action="" style="margin:0px 0px 0px;">
183 <input type="hidden" name="ticket_id" value="{$ticket_tId}">
184 <input type="hidden" name="action" value="assignTicket">
185 <button type="submit" class="btn btn-primary" style="margin-bottom:9px;><span class="icon-flag icon-white"></span> Assign Ticket</button>
187 {else if $ticket_assignedTo eq $user_id}
188 <form id="assign_ticket" class="form-vertical" method="post" action="" style="margin:0px 0px 0px;">
189 <input type="hidden" name="ticket_id" value="{$ticket_tId}">
190 <input type="hidden" name="action" value="unAssignTicket">
191 <button type="submit" class="btn btn-warning" style="margin-bottom:9px;><span class="icon-remove icon-white"></span> Remove Assign</button>
195 {if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
196 <div class="alert alert-success">
199 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"}
200 <div class="alert alert-success">
201 {$success_unassigned}
203 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
204 <div class="alert alert-error">
205 {$ticket_not_existing}
207 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"}
208 <div class="alert alert-error">
209 {$ticket_already_assigned}
211 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"}
212 <div class="alert alert-error">
213 {$ticket_not_assigned}
217 <legend style="margin-bottom:9px;">Forward to Group</legend>
218 <form id="forward" class="form-vertical" method="post" action="" style="margin-bottom:9px;" >
220 <div class="control-group">
221 <div class="controls" >
222 <select name="group">
224 {foreach from=$sGroups key=k item=v}
225 <option value="{$k}">{$v}</option>
230 <input type="hidden" name="ticket_id" value="{$ticket_tId}">
231 <input type="hidden" name="action" value="forward">
232 <div class="control-group">
233 <div class="controls">
234 <button type="submit" class="btn btn-primary" >Forward</button>
238 {if isset($ACTION_RESULT) and $ACTION_RESULT eq "INVALID_SGROUP"}
239 <div class="alert alert-error">
242 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
243 <div class="alert alert-error">
244 {$ticket_not_existing}
246 {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_FORWARDED"}
247 <div class="alert alert-success">
252 <legend style="margin-bottom:9px;">Other actions</legend>
253 <div class="btn-group">
254 <button class="btn btn-primary btn-large dropdown-toggle" data-toggle="dropdown">Actions<span class="caret"></span></button>
255 <ul class="dropdown-menu">
256 <li class="divider"></li>
257 {if isset($isMod) and $isMod eq "TRUE"}<li><a href="index.php?page=show_ticket_log&id={$ticket_tId}">Show Ticket Log</a></li>{/if}
258 <li><a href="index.php?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></li>
259 {if $hasInfo}<li><a href="index.php?page=show_ticket_info&id={$ticket_tId}">Show ticket Info</a></li>{/if}
260 <li class="divider"></li>