index.php 814 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <table id="files_sharing_log">
  2. <thead>
  3. <tr>
  4. <th><?php echo $l->t('File') ?></th>
  5. <th><?php echo $l->t('Who') ?></th>
  6. <th><?php echo $l->t('When') ?></th>
  7. <th><?php echo $l->t('What') ?></th>
  8. </tr>
  9. </thead>
  10. <tbody>
  11. <?php foreach($_['log'] as $log): ?>
  12. <tr>
  13. <td>
  14. <?php echo $log['source'] ?>
  15. </td>
  16. <td>
  17. <?php echo $log['uid_who'] ?>
  18. </td>
  19. <td>
  20. <?php echo date('Y-m-d H:i:s', $log['when']) ?>
  21. </td>
  22. <td>
  23. <?php switch ($log['mode']):
  24. case 'get':
  25. echo $l->t('Read');
  26. break;
  27. case 'put':
  28. echo $l->t('Write');
  29. break;
  30. default:
  31. if (strpos('r', $log['mode']) !== false):
  32. echo $l->t('Read');
  33. else:
  34. echo $l->t('Write');
  35. endif;
  36. endswitch;
  37. ?>
  38. </td>
  39. </tr>
  40. <?php endforeach; ?>
  41. </tbody>
  42. </table>