fixing ticket-view (date and order);

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-26 06:22:12 +00:00
parent cb17e9db96
commit 74a41adb1c
4 changed files with 6 additions and 6 deletions

View File

@@ -285,7 +285,7 @@ if($page == 'tickets'
{ {
$ticket_replies = ''; $ticket_replies = '';
$mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id);
$lastchange = date("d.m.Y H:i\h", $mainticket->Get('lastchange')); $dt = date("d.m.Y H:i\h", $mainticket->Get('dt'));
$status = ticket::getStatusText($lng, $mainticket->Get('status')); $status = ticket::getStatusText($lng, $mainticket->Get('status'));
if($mainticket->Get('status') >= 0 if($mainticket->Get('status') >= 0
@@ -313,7 +313,7 @@ if($page == 'tickets'
$result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` $result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '`
WHERE `id`="' . (int)$mainticket->Get('category') . '"'); WHERE `id`="' . (int)$mainticket->Get('category') . '"');
$row = $db->fetch_array($result); $row = $db->fetch_array($result);
$andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '" ORDER BY `lastchange` DESC'); $andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '" ORDER BY `lastchange` ASC');
while($row2 = $db->fetch_array($andere)) while($row2 = $db->fetch_array($andere))
{ {

View File

@@ -302,7 +302,7 @@ elseif($page == 'tickets')
{ {
$ticket_replies = ''; $ticket_replies = '';
$mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id);
$lastchange = date("d.m.Y H:i\h", $mainticket->Get('lastchange')); $dt = date("d.m.Y H:i\h", $mainticket->Get('dt'));
$status = ticket::getStatusText($lng, $mainticket->Get('status')); $status = ticket::getStatusText($lng, $mainticket->Get('status'));
if($mainticket->Get('status') >= 0 if($mainticket->Get('status') >= 0
@@ -330,7 +330,7 @@ elseif($page == 'tickets')
$result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` $result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '`
WHERE `id`="' . (int)$mainticket->Get('category') . '"'); WHERE `id`="' . (int)$mainticket->Get('category') . '"');
$row = $db->fetch_array($result); $row = $db->fetch_array($result);
$andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '" ORDER BY `lastchange` DESC'); $andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '" ORDER BY `lastchange` ASC');
while($row2 = $db->fetch_array($andere)) while($row2 = $db->fetch_array($andere))
{ {

View File

@@ -1,6 +1,6 @@
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60"> <table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
<tr> <tr>
<td class="maintitle"><b><img src="images/title.gif" alt="" />&nbsp;&nbsp;{$lastchange}&nbsp;{$lng['ticket']['by']}&nbsp;{$by}&nbsp;({$status})</b></td> <td class="maintitle"><b><img src="images/title.gif" alt="" />&nbsp;&nbsp;{$dt}&nbsp;{$lng['ticket']['by']}&nbsp;{$by}&nbsp;({$status})</b></td>
</tr> </tr>
<tr> <tr>
<td class="main_field_display">{$subject}</td> <td class="main_field_display">{$subject}</td>

View File

@@ -1,6 +1,6 @@
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60"> <table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
<tr> <tr>
<td class="maintitle"><b><img src="images/title.gif" alt="" />&nbsp;&nbsp;{$lastchange}&nbsp;von&nbsp;{$by}&nbsp;({$status})</b></td> <td class="maintitle"><b><img src="images/title.gif" alt="" />&nbsp;&nbsp;{$dt}&nbsp;von&nbsp;{$by}&nbsp;({$status})</b></td>
</tr> </tr>
<tr> <tr>
<td class="main_field_display">{$subject}</td> <td class="main_field_display">{$subject}</td>