mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
log + reply ingame page
This commit is contained in:
parent
47861c19d3
commit
1de3c2b40c
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ class Ticket_Log{
|
||||||
//return all logs that are related to a ticket
|
//return all logs that are related to a ticket
|
||||||
public static function getLogsOfTicket( $ticket_id) {
|
public static function getLogsOfTicket( $ticket_id) {
|
||||||
$dbl = new DBLayer("lib");
|
$dbl = new DBLayer("lib");
|
||||||
$statement = $dbl->execute("SELECT * FROM ticket_log INNER JOIN ticket_user ON ticket_log.Author = ticket_user.TUserId and ticket_log.Ticket=:id ORDER BY ticket_log.TLogId DESC", array('id' => $ticket_id));
|
$statement = $dbl->execute("SELECT * FROM ticket_log INNER JOIN ticket_user ON ticket_log.Author = ticket_user.TUserId and ticket_log.Ticket=:id ORDER BY ticket_log.TLogId ASC", array('id' => $ticket_id));
|
||||||
$row = $statement->fetchAll();
|
$row = $statement->fetchAll();
|
||||||
$result = Array();
|
$result = Array();
|
||||||
foreach($row as $log){
|
foreach($row as $log){
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
<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="red"> {$reply.author}</font>{else} {$reply.author} {/if}</a></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="red"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
|
||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
<p><pre> {if $reply.hidden eq 1}{/if}{$reply.replyContent}{if $reply.hidden eq 1}{/if}</pre></p>
|
<p><pre>{$reply.replyContent}</pre></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<table class="table table-bordered" >
|
<table class="table table-bordered" >
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p><span class="label label-info"> {$reply_timestamp} {$author_permission}</span>
|
<p><span class="label label-info"> {$reply_timestamp}</span>
|
||||||
{if $author_permission eq '1'}
|
{if $author_permission eq '1'}
|
||||||
<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>
|
<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 gt '1'}
|
{else if $author_permission gt '1'}
|
||||||
|
|
Loading…
Reference in a new issue