Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

usersSessions.view.php 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php echo $this->partial('Layout/nav'); ?>
  2. <div class="container">
  3. <div class="container-page-wrapper">
  4. <div class="container-page-container">
  5. <h1><?php echo $this->actionTitle; ?></h1>
  6. <hr>
  7. <?php //debug($this->view->sessions); ?>
  8. <?php if(is_array($this->view->sessions) && !empty($this->view->sessions)): ?>
  9. <div class="table-overflow">
  10. <table class="table table-hover">
  11. <thead class="thead-light">
  12. <tr>
  13. <th><?php echo _('Username'); ?></th>
  14. <th><?php echo _('Surname'); ?></th>
  15. <th><?php echo _('Name'); ?></th>
  16. <th><?php echo _('IP'); ?></th>
  17. <th><?php echo _('GMT action'); ?></th>
  18. <th><?php echo _('Last action'); ?></th>
  19. <th></th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <?php foreach($this->view->sessions as $session): ?>
  24. <tr>
  25. <td><?php echo $session['username']; ?></td>
  26. <td><?php echo $session['surname']; ?></td>
  27. <td><?php echo $session['name']; ?></td>
  28. <td><?php echo $session['user_ip']; ?></td>
  29. <td><?php echo $this->helper->getDateString($session['session_updated_at']); ?></td>
  30. <td><?php echo $this->helper->dateIntervalString($session['session_updated_at']); ?></td>
  31. <td><button type="button" class="btn btn-info btn-sm"><?php echo _('Disconnect'); ?></button></td>
  32. </tr>
  33. <?php endforeach; ?>
  34. </tbody>
  35. </table>
  36. </div>
  37. <?php echo $this->partial('Layout/pagination'); ?>
  38. <?php else: ?>
  39. <?php endif; ?>
  40. </div>
  41. </div>
  42. </div>