選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

loadLastAccesses.view.php 1.1KB

12345678910111213141516171819202122232425262728
  1. <?php if(is_array($this->view->accesses) && !empty($this->view->accesses)): ?>
  2. <div class="clearfix">
  3. <a href="<?php echo $this->helper->setHash('users-access-logs/1'); ?>" class="float-right"><?php echo _('Show more...'); ?></a>
  4. </div>
  5. <table class="table table-hover">
  6. <thead class="thead-light">
  7. <tr>
  8. <th width="1%"></th>
  9. <th><?php echo _('Surname'); ?></th>
  10. <th><?php echo _('Name'); ?></th>
  11. <th class="text-right"><?php echo _('Interval'); ?></th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. <?php foreach($this->view->accesses as $access): ?>
  16. <tr>
  17. <td><?php echo $this->helper->setAvatarView($this->user->getAvatar($access['user_id']), ['timestamp'=>md5($access['user_updated_at'])]); ?></td>
  18. <td><?php echo $access['surname']; ?></td>
  19. <td><?php echo $access['name']; ?></td>
  20. <td class="text-right"><?php echo $this->helper->dateIntervalString($access['created_at']); ?></td>
  21. </tr>
  22. <?php endforeach; ?>
  23. </tbody>
  24. </table>
  25. <?php else: ?>
  26. <div class="alert alert-light" role="alert"><?php echo _('The accesses content is currently empty, please try again in a few minutes.'); ?></div>
  27. <?php endif; ?>