log + reply ingame page

--HG--
branch : quitta-gsoc-2013
This commit is contained in:
Quitta 2013-08-02 19:43:43 +02:00
parent 785684f923
commit 7ee2ce596f
3 changed files with 3 additions and 3 deletions

View file

@ -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){

View file

@ -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}

View file

@ -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'}