ticket_assign_log.php 953 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once __DIR__.'/../inc/global.inc.php';
  4. api_protect_admin_script();
  5. if (!isset($_POST['ticket_id'])) {
  6. exit;
  7. }
  8. $ticket_id = (int) $_POST['ticket_id'];
  9. $history = TicketManager::get_assign_log($ticket_id);
  10. ?>
  11. <table width="200px" border="0" cellspacing="2" cellpadding="2">
  12. <?php
  13. if (count($history) == 0) {
  14. ?>
  15. <tr>
  16. <td colspan="2"><?php echo api_ucfirst(get_lang('No history')); ?></td>
  17. </tr>
  18. <?php
  19. }
  20. foreach ($history as $item) {
  21. ?>
  22. <tr>
  23. <td width="50px">
  24. <?php echo api_convert_encoding($item['insertuser'], 'UTF-8', $charset); ?>
  25. </td>
  26. <td width="80px">
  27. <?php echo api_convert_encoding($item['assigned_date'], 'UTF-8', $charset); ?>
  28. </td>
  29. <td width="50px">
  30. <?php echo api_convert_encoding($item['assignuser'], 'UTF-8', $charset); ?>
  31. </td>
  32. </tr>
  33. <?php
  34. } ?>
  35. </table>