#153 got basic output going. just need to add links and color-coded circles with tooltips
This commit is contained in:
parent
069c2ebc26
commit
93ffba2a43
@ -640,6 +640,26 @@ if ( defined('HESK_DEMO') )
|
|||||||
$ticket['ip'] = '127.0.0.1';
|
$ticket['ip'] = '127.0.0.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If an email address is tied to this ticket, check if there are any others
|
||||||
|
$recentTickets = NULL;
|
||||||
|
if($ticket['email'] != '') {
|
||||||
|
$recentTicketsSql = hesk_dbQuery("SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets`
|
||||||
|
WHERE `email` = '".hesk_dbEscape($ticket['email'])."' AND `trackid` <> '".hesk_dbEscape($trackingID)."' ORDER BY `lastchange` DESC LIMIT 5");
|
||||||
|
while ($recentRow = hesk_dbFetchAssoc($recentTicketsSql)) {
|
||||||
|
if ($recentTickets === NULL) {
|
||||||
|
$recentTickets = array();
|
||||||
|
}
|
||||||
|
array_push($recentTickets, $recentRow);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($recentTickets as $recentTicket) {
|
||||||
|
$thisTicketStatusRS = hesk_dbQuery("SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` WHERE `ID` = ".intval($recentTicket['status']));
|
||||||
|
$theStatusRow = hesk_dbFetchAssoc($thisTicketStatusRS);
|
||||||
|
$recentTicket['statusText'] = $hesklang[$theStatusRow['ShortNameContentKey']];
|
||||||
|
$recentTicket['statusColor'] = $theStatusRow['TextColor'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Print admin navigation */
|
/* Print admin navigation */
|
||||||
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||||
?>
|
?>
|
||||||
@ -789,6 +809,17 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</li>
|
</li>
|
||||||
|
<?php if ($recentTickets != NULL): ?>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<strong><?php echo $hesklang['recent_tickets']; ?></strong>
|
||||||
|
<?php foreach ($recentTickets as $recentTicket): ?>
|
||||||
|
<p style="margin: 0">
|
||||||
|
<i class="fa fa-circle"></i>
|
||||||
|
<?php echo $recentTicket['trackid']; ?>
|
||||||
|
</p>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</li>
|
||||||
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,6 +59,7 @@ $hesklang['staff_only'] = 'Staff only';
|
|||||||
$hesklang['yes_title_case'] = 'Yes';
|
$hesklang['yes_title_case'] = 'Yes';
|
||||||
$hesklang['no_title_case'] = 'No';
|
$hesklang['no_title_case'] = 'No';
|
||||||
$hesklang['autoclose_ticket_status'] = 'When a ticket is closed automatically, change the status to';
|
$hesklang['autoclose_ticket_status'] = 'When a ticket is closed automatically, change the status to';
|
||||||
|
$hesklang['recent_tickets'] = 'Recent tickets';
|
||||||
|
|
||||||
// ADDED OR MODIFIED IN Mods for HESK 2.1.1
|
// ADDED OR MODIFIED IN Mods for HESK 2.1.1
|
||||||
$hesklang['new_article_default_type'] = 'Default Type for New Articles';
|
$hesklang['new_article_default_type'] = 'Default Type for New Articles';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user