Update lua versions
[ryzomcore.git] / web / private_php / ams / ingame_templates / show_ticket.tpl
blob97f1d3c53b06221edc0100eaafba75dfafacdf5c
1 {block name=content}
2 <tr><td>
3       <table width="100%" cellspacing="0" cellpadding="0" border="0">
4         <tr bgcolor="{$second_menu_bg_color}" valign="middle">
5           <td>
6           <table>
7             <tr>
8               <td>
9                 <table cellspacing="0" cellpadding="4">
10                   <tr>              
11                         {if isset($isMod) and $isMod eq "TRUE"}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_tId}">Show Ticket Log</a></td>{/if}
12                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></td>
13                         {if $hasInfo}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_info&id={$ticket_tId}">Show Additional Info</a></td>{/if}
14                   </tr>
15                 </table>
16               </td>
17             </tr>
18           </table>
19           </td>
20         </tr>
21         <tr>
22                 <td height="3" bgcolor="#000000"></td>
23         </tr>
24       </table>
25   </td></tr>
27   <tr><td>
28         <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
29         <tr><td height="7"></td><td></td></tr>
30         <tr>
31                 <td width="3%"></td>
32                 <td width="100%" height="12" valign="middle"><h1>[{$t_title}-#{$ticket_tId}] {$ticket_title}</h1></td>
33         </tr>
34         <tr>
35           <td height="5"></td><td></td>
36         </tr>
37         </table>
38   </td></tr>
39   <tr><td>
40       <table width="100%" cellspacing="0" cellpadding="0" border="0">
41         <tr bgcolor="#000000" valign="middle">
42           <td>
43             <table>
44               <tr><td height="8"></td></tr>
45             </table>
46           </td>
47         </tr>
48         <tr><td height="2"></td></tr>
49         <tr><td height="1" bgcolor="#000000"></td></tr>
50         <tr><td height="10"></td></tr>
51         <tr valign="middle">
52           <td>
53             <table width="100%" height="100%" cellpadding="10">
54               <tr><td>
55                 <table width="100%" bgcolor="{$main_tbl_color}" border="2">
56                         <tr><td>
57                                 <table cellpadding="10" width="100%">
58                                         <tr><td>
59                                             <table cellpadding="5" width="100%">
60                                                     <tr><td>
61                                                         <table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
62                                                             <tr><td>
63                                                             <table cellpadding="3" width="100%">
64                                                                 <tr>
65                                                                     <td><font color="{$info_color}">Submitted: </font>{$ticket_timestamp}</td>
66                                                                     <td><font color="{$info_color}">Last Updated: </font>{$ticket_lastupdate}</td>
67                                                                     <td><font color="{$info_color}">Status: </font>{if $ticket_status neq 3}<font color="green">Open</font>{/if} {if $ticket_status eq 3} <font color="red">{$ticket_statustext}</font>{else}{$ticket_statustext} {/if}</td> 
68                                                               </tr>
69                                                                 <tr>
70                                                                     <td><font color="{$info_color}">Category: </font>{$ticket_category}</td>
71                                                                     <td><font color="{$info_color}">Priority </font>{$ticket_prioritytext}</td>
72                                                                     <td><font color="{$info_color}">Support Group: </font>
73                                                                         <span class="label label-info">
74                                                                             {if $ticket_forwardedGroupName eq "0"}
75                                                                                 {$public_sgroup}
76                                                                             {else}
77                                                                                 <a href="{$ingame_webpath}?page=show_sgroup&id={$ticket_forwardedGroupId}"><font color="white">{$ticket_forwardedGroupName}</font></a>
78                                                                             {/if}
79                                                                         </span>
80                                                                     </td>                  
81                                                                 </tr>
82                                                                 <tr>
83                                                                     <td><font color="{$info_color}">Assigned To:  </font>{if $ticket_assignedTo neq ""} <a href="{$ingame_webpath}?page=show_user&id={$ticket_assignedTo}">{$ticket_assignedToText}</a>{else} {$not_assigned} {/if}</td>
84                                                                     <td></td>
85                                                                     <td></td> 
86                                                               </tr>
87                                                             </table>
88                                                         </td></tr>
89                                                         </table>
90                                                     </td></tr>
91                                                     <tr><td>
92                                                         <table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">    
93                                                             {foreach from=$ticket_replies item=reply}
94                                                             <tr>
95                                                                 <td {if $reply.permission gt '1'} {if $reply.hidden eq 0} bgcolor="{$team_reply_tbl_color}"{else if $reply.hidden eq 1} bgcolor="{$hidden_reply_tbl_color}"{/if}{/if}>
96                                                                    <table cellpadding="3">
97                                                                         <tr><td>
98                                                                             <p>
99                                                                                 <font color="{$info_color}"> {$reply.timestamp}</font>
100                                                                                 {if $reply.permission eq '1'}
101                                                                                 <span class="label label-success"><strong><i class="icon-user icon-white"></i>{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>
102                                                                                 {else if $reply.permission gt '1'}
103                                                                                 <span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="{$team_color}"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
104                                                                                 {/if}
105                                                                             </p>
106                                                                             <p><pre>{$reply.replyContent}</pre></p>
107                                                                         </td></tr>
108                                                                    </table>
109                                                                 </td>
110                                                             </tr>
111                                                             {/foreach}
112                                                             
113                                                             {if $ticket_status eq 3}
114                                                             <tr>
115                                                                 <td bgcolor="{$closed_tbl_color}">
116                                                                      <table cellpadding="4">
117                                                                         <tr><td>
118                                                                             <p><pre><h4>[Ticket is closed]</h4></pre></p>
119                                                                         </td></tr>
120                                                                      </table>
121                                                                 </td>
122                                                             </tr>
123                                                             {/if}
124                                                             
125                                                             <tr>
126                                                                 <td>
127                                                                     
128                                                                     <form id="reply" class="form-vertical" method="post" action="{$ingame_webpath}"> 
129                                                                     <table cellpadding="4">
130                                                                     <tr><td height="5"></td></tr>
131                                                                     <tr>
132                                                                         <td>
133                                                                             <p><h4>{$t_reply}:</h4></p>
134                                                                         </td>
135                                                                     </tr>
136                                                                     {if $ticket_status neq 3}
137                                                                     <tr>
138                                                                         <td><textarea cols="50" id="Content" name="Content"><br><br><br></textarea></td>
139                                                                     </tr>
140                                                                         {if isset($isMod) and $isMod eq "TRUE"}
141                                                                         <tr>
142                                                                             <td><input type="checkbox" name="hidden">Hide reply for user.</td>
143                                                                         </tr>
144                                                                         {/if}
145                                                                     {/if}
146                                                                     <tr>
147                                                                         <td>
148                                                                         {if isset($isMod) and $isMod eq "TRUE"}
149                                                                             <table>
150                                                                                 <tr>
151                                                                                     <td>
152                                                                                         Change status to
153                                                                                         <select name="ChangeStatus">
154                                                                                             {foreach from=$statusList key=k item=v}
155                                                                                                     <option value="{$k}">{$v}</option>
156                                                                                             {/foreach}
157                                                                                         </select>       
158                                                                                     </td>
159                                                                                     <td>
160                                                                                         Change priority to
161                                                                                         <select name="ChangePriority">
162                                                                                             {foreach from=$ticket_priorities key=k item=v}
163                                                                                                     <option value="{$k}" {if $k eq $ticket_priority}selected="selected"{/if}>{$v}</option>
164                                                                                             {/foreach}
165                                                                                         </select>
166                                                                                     </td>
167                                                                                 </tr>
168                                                                             </table>
169                                                                         {/if}
170                                                                         </td>
171                                                                     </tr>
172                                                                     <tr>
173                                                                         <td>
174                                                                             <input type="hidden" name="function" value="reply_on_ticket">
175                                                                             <input type="hidden" name="ticket_id" value="{$ticket_id}">
176                                                                             <input type="submit" value="{$t_send}"/>
177                                                                         </td>
178                                                                     </tr>
179                                                                     </table>
180                                                                     </form>
181                                                                 </td>
182                                                             </tr>
183                                                         </table>
184                                                     </td></tr>
185                                                     
186                                                         {if isset($isMod) and $isMod eq "TRUE"}
187                                                         <tr><td>
188                                                         <table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
189                                                             <tr><td>
190                                                             <table cellpadding="3" width="100%">
191                                                                 <tr>
192                                                                     <td>
193                                                                          <p>
194                                                                             Ticket Assigning: 
195                                                                             {if $ticket_assignedTo eq 0}
196                                                                                <form id="assign_ticket" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}">
197                                                                                    <input type="hidden" name="ticket_id" value="{$ticket_tId}">
198                                                                                    <input type="hidden" name="action" value="assignTicket">
199                                                                                    <input type="submit" value="Assign Ticket"/>
200                                                                                </form>
201                                                                            {else if $ticket_assignedTo eq $user_id}
202                                                                                <form id="assign_ticket" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}">
203                                                                                    <input type="hidden" name="ticket_id" value="{$ticket_tId}">
204                                                                                    <input type="hidden" name="action" value="unAssignTicket">
205                                                                                    <input type="submit"value="Remove Assign"/>
206                                                                                </form>
207                                                                            {/if}
208                                                                          </p>               
209                                                                         {if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
210                                                                         <p>
211                                                                                 <font color="green">{$success_assigned}</font>
212                                                                         </p>
213                                                                         {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"}
214                                                                         <p>
215                                                                                 <font color="green">{$success_unassigned}</font>
216                                                                         </p>
217                                                                         {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
218                                                                         <p>
219                                                                                 <font color="red">{$ticket_not_existing}</font>
220                                                                         </p>
221                                                                         {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"}
222                                                                         <p>
223                                                                                 <font color="red">{$ticket_already_assigned}</font>
224                                                                         </p>
225                                                                         {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"}
226                                                                         <p>
227                                                                                 <font color="red">{$ticket_not_assigned}</font>
228                                                                         </p>
229                                                                         {/if}
230                                                                         
231                                                                         
232                                                                     </td>
233                                                                     <td>
234                                                                         <p>
235                                                                             Forward to Group:               
236                                                                             <form id="forward" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}" >
237                                                                                 <select name="group">
238                                                                                             <option></option>
239                                                                                     {foreach from=$sGroups key=k item=v}
240                                                                                             <option value="{$k}">{$v}</option>
241                                                                                     {/foreach}
242                                                                                 </select>       
243                                                                                 
244                                                                                 <input type="hidden" name="ticket_id" value="{$ticket_tId}">
245                                                                                 <input type="hidden" name="action" value="forward">                                                                             
246                                                                                 <input type="submit"value="Forward"/>    
247                                                                             </form>
248                                                                         </p>
249                                                                         {if isset($ACTION_RESULT) and $ACTION_RESULT eq "INVALID_SGROUP"}
250                                                                         <p>
251                                                                                 <font color="red">{$invalid_sgroup}</font>
252                                                                         </p>
253                                                                         {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
254                                                                         <p>
255                                                                                 <font color="red">{$ticket_not_existing}</font>
256                                                                         </p>
257                                                                         {else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_FORWARDED"}
258                                                                         <p>
259                                                                                 <font color="green">{$success_forwarded}</font>
260                                                                         </p>
261                                                                         {/if}
262                                                                     </td>
263                                                               </tr>
264                                                             </table>
265                                                         </td></tr>
266                                                         </table>
267                                                     </td></tr>
268                                                     <tr><td>
269                                                     {/if}
270                                                     
271                                             </table>
272                                         </td></tr>
273                                 </table>
274                         </td></tr>
275                 </table>
276               </td></tr>
277             </table>
278           </td>
279         </tr>
280       </table>
281       
282   </td></tr>
284 {/block}
285