widget.logs.php 775 B

1234567891011121314151617
  1. <?php
  2. $logs = Log::loadAll(array(),array('created DESC'),array(30));
  3. $lastDate = '';
  4. ?>
  5. <ul class="dashboard-widget-log">
  6. <?php foreach($logs as $log): ?>
  7. <li>
  8. <?php if($lastDate!=date('d-m-y',$log->created)):
  9. $lastDate = date('d-m-y',$log->created); ?>
  10. <h2 class="text-muted"><i class="far fa-calendar-alt"></i> <?php echo day_name(date('N',$log->created)).' '.date('d ',$log->created).' '.month_name(date('m',$log->created)).' '.date('Y',$log->created); ?></h2>
  11. <?php endif; ?>
  12. <span class="font-weight-bold"><i class="far fa-clock"></i> <?php echo date('H:i:s',$log->created); ?></span> | <small class="text-primary pr-1"><i class="far fa-meh-blank"></i> <?php echo $log->creator; ?></small>
  13. <?php echo $log->label(); ?>
  14. </li>
  15. <?php endforeach; ?>
  16. </ul>