ticket_assign_log.php 999 B

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