Update lua versions
[ryzomcore.git] / web / private_php / ams / ingame_templates / show_user.tpl
blob51c5bb77a8125d916469f8d2d6408aafc6eb54d8
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                     <td valign="middle" nowrap><a href="{$ingame_webpath}?page=settings&id={$target_id}"><h7>Edit User</h7></a></td>
12                     <td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td>
13                     {if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
14                         {if $userPermission eq 1}
15                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td>
16                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
17                         {else if $userPermission eq 2 }
18                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
19                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
20                         {else if $userPermission eq 3 }
21                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
22                         <td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td>
23                         {/if}
24                     {/if}
25                   </tr>
26                 </table>
27               </td>
28             </tr>
29           </table>
30           </td>
31         </tr>
32         <tr>
33                 <td height="3" bgcolor="#000000"></td>
34         </tr>
35       </table>
36   </td></tr>
38     <tr><td>
39         <table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
40         <tr><td height="7"></td><td></td></tr>
41         <tr>
42                 <td width="3%"></td>
43                 <td width="100%" height="12" valign="middle"><h1>Profile of {$target_name}</h1></td>
44         </tr>
45         <tr>
46           <td height="5"></td><td></td>
47         </tr>
48         </table>
49   </td></tr>
50   <tr><td>
51       <table width="100%" cellspacing="0" cellpadding="0" border="0">
52         <tr bgcolor="#000000" valign="middle">
53           <td>
54             <table>
55               <tr><td height="8"></td></tr>
56             </table>
57           </td>
58         </tr>
59         <tr><td height="2"></td></tr>
60         <tr><td height="1" bgcolor="#000000"></td></tr>
61         <tr><td height="10"></td></tr>
62         <tr valign="middle">
63           <td>
64             <table width="100%" height="100%" cellpadding="10">
65               <tr><td>
66                 <table width="100%" bgcolor="{$main_tbl_color}" border="2">
67                         <tr><td>
68                                 <table cellpadding="10">
69                                         <tr><td>
70                                                 
71                                         <p><h2>Info</h2></p>
72                                         <table cellpadding="4">
73                                             
74                                                     <tr>
75                                                         <td><strong>Email:</strong></td>
76                                                         <td>{$mail}</td>                           
77                                                     </tr>
78                                                     
79                                                     <tr>
80                                                         <td><strong>Role:</strong></td>
81                                                         <td>
82                                                         {if $userPermission eq 1}<font color="{$user_color}">User</font>{/if}
83                                                         {if $userPermission eq 2}<font color="{$mod_color}">Moderator</font>{/if}
84                                                         {if $userPermission eq 3}<font color="{$admin_color}">Admin</font>{/if}
85                                                         </td>                           
86                                                     </tr>
87                                                     {if $firstName neq ""}
88                                                     <tr>
89                                                         <td><strong>Firstname:</strong></td>
90                                                         <td>{$firstName}</td>                           
91                                                     </tr>
92                                                     {/if}
93                                                     {if $lastName neq ""}
94                                                     <tr>
95                                                         <td><strong>LastName:</strong></td>
96                                                         <td>{$lastName}</td>                           
97                                                     </tr>
98                                                     {/if}
99                                                     {if $country neq ""}
100                                                     <tr>
101                                                         <td><strong>Country:</strong></td>
102                                                         <td>{$country}</td>                           
103                                                     </tr>
104                                                     {/if}
105                                                     {if $gender neq 0}
106                                                     <tr>
107                                                         <td><strong>Gender:</strong></td>
108                                                         {if $gender eq 1}
109                                                         <td><strong>♂</strong></td>
110                                                         {else if $gender eq 2}
111                                                         <td><strong>♀</strong></td>
112                                                         {/if}
113                                                     </tr>
114                                                     {/if}
115                                     
116                                             </table>                                            
117                                         </td></tr>
118                                 </table>
119                         </td></tr>
120                 </table>
121               </td></tr>
122               <tr><td>
123                 <table width="100%" bgcolor="{$main_tbl_color}" border="2">
124                         <tr><td>
125                                 <table cellpadding="10">
126                                         <tr><td>
127                                                 <p><h3>Tickets</h3></p>
128                                                 <table cellpadding="3">
130                                                         <tr bgcolor="{$table_header_tr_color}">
131                                                                 <td>ID</td>
132                                                                 <td>Title</td>
133                                                                 <td>Timestamp</td>
134                                                                 <td>Category</td>
135                                                                 <td>Status</td>
136                                                         </tr>
138                                                       {foreach from=$ticketlist item=ticket}
139                                                       <tr>
140                                                             <td>{$ticket.tId}</td>
141                                                             <td><a href ="{$ingame_webpath}?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td>
142                                                             <td class="center">{$ticket.timestamp}</td>
143                                                             <td class="center">{$ticket.category}</td>
144                             
145                                                             <td class="center"><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}">{if $ticket.status eq 0} <i class="icon-exclamation-sign icon-white"></i>{/if} {$ticket.statusText}</span></td>  
146                                                       </tr>
147                                                       {/foreach}
149                                                 </table>            
150                                         </td></tr>
151                                 </table>
152                         </td></tr>
153                 </table>
154               </td></tr>
155             </table>
156           </td>
157         </tr>
158       </table>
159       
160   </td></tr>
162 {/block}
163