mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 12:50:53 +00:00
fixed some layoutwise stuff, like mods and admins will be shown the same way when replying on a ticket, because users won't be intrested in that anyway
This commit is contained in:
parent
c1132373e3
commit
a74de873c3
4 changed files with 16 additions and 9 deletions
|
@ -20,6 +20,7 @@ function show_user(){
|
||||||
$result['gender'] = $info['Gender'];
|
$result['gender'] = $info['Gender'];
|
||||||
|
|
||||||
$ticket_user = Ticket_User::constr_ExternId($result['target_id']);
|
$ticket_user = Ticket_User::constr_ExternId($result['target_id']);
|
||||||
|
$result['userPermission'] = $ticket_user->getPermission();
|
||||||
$ticketlist = Ticket::getTicketsOf($ticket_user->getTUserId());
|
$ticketlist = Ticket::getTicketsOf($ticket_user->getTUserId());
|
||||||
|
|
||||||
$result['ticketlist'] = Gui_Elements::make_table($ticketlist, Array("getTId","getTimestamp","getTitle","getStatus","getStatusText","getStatusText","getCategoryName"), Array("tId","timestamp","title","status","statustext","statusText","category"));
|
$result['ticketlist'] = Gui_Elements::make_table($ticketlist, Array("getTId","getTimestamp","getTitle","getStatus","getStatusText","getStatusText","getCategoryName"), Array("tId","timestamp","title","status","statustext","statusText","category"));
|
||||||
|
|
|
@ -16,11 +16,10 @@
|
||||||
<td>
|
<td>
|
||||||
<p><span class="label label-info"> {$reply_timestamp} {$author_permission}</span>
|
<p><span class="label label-info"> {$reply_timestamp} {$author_permission}</span>
|
||||||
{if $author_permission eq '1'}
|
{if $author_permission eq '1'}
|
||||||
<!-- <span class="label label-important"><strong></i>[User]:</strong></span>-->
|
<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={$author}"><font color="white"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span></p>
|
||||||
{else if $author_permission eq '2'}
|
{else if $author_permission gt '1'}
|
||||||
<span class="label label-important"><strong><i class="icon-star icon-white"></i>[CSR]</strong></span>
|
<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={$author}"><font color="white"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span></p>
|
||||||
{/if}
|
{/if}
|
||||||
<span class="label label-warning"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="white">{$authorName}</font>{else}{$authorName} {/if}</a></strong></span></p>
|
|
||||||
|
|
||||||
<p><pre{if $author_permission eq '2'} style="background-color:rgb(248, 200, 200);"{/if}>{$reply_content}</pre></p>
|
<p><pre{if $author_permission eq '2'} style="background-color:rgb(248, 200, 200);"{/if}>{$reply_content}</pre></p>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -35,12 +35,10 @@
|
||||||
<td>
|
<td>
|
||||||
<p><span class="label label-info"> {$reply.timestamp}</span>
|
<p><span class="label label-info"> {$reply.timestamp}</span>
|
||||||
{if $reply.permission eq '1'}
|
{if $reply.permission eq '1'}
|
||||||
<!-- <span class="label label-important"><strong></i>[User]:</strong></span>-->
|
<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></p>
|
||||||
{else if $reply.permission gt '1'}
|
{else if $reply.permission gt '1'}
|
||||||
<span class="label label-important"><strong><i class="icon-star icon-white"></i>[CSR]</strong></span>
|
<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="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span></p>
|
||||||
{/if}
|
{/if}
|
||||||
<span class="label label-warning"><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></p>
|
|
||||||
|
|
||||||
<p><pre{if $reply.permission gt '1'} style="background-color:rgb(248, 200, 200);"{/if}>{$reply.replyContent}</pre></p>
|
<p><pre{if $reply.permission gt '1'} style="background-color:rgb(248, 200, 200);"{/if}>{$reply.replyContent}</pre></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -17,6 +17,15 @@
|
||||||
<td><strong>Email:</strong></td>
|
<td><strong>Email:</strong></td>
|
||||||
<td>{$mail}</td>
|
<td>{$mail}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr >
|
||||||
|
<td><strong>Role:</strong></td>
|
||||||
|
<td>
|
||||||
|
{if $userPermission eq 1}<span class="label label-success">User</span>{/if}
|
||||||
|
{if $userPermission eq 2}<span class="label label-warning">Moderator</span>{/if}
|
||||||
|
{if $userPermission eq 3}<span class="label label-important">Admin</span>{/if}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
{if $firstName neq ""}
|
{if $firstName neq ""}
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>Firstname:</strong></td>
|
<td><strong>Firstname:</strong></td>
|
||||||
|
|
Loading…
Reference in a new issue