Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/pic/private/admin.tar
Назад
anniversary.php 0000644 00000003450 15233463225 0007625 0 ustar 00 <?php require_once('../include.php'); $admin = new admin($db); $log = new log($db); $year = date("Y"); $years = []; $admin->passwordResetCheck(); if (!$admin->admin_level(0)) { header("location: /static/401.php"); die(); } include('../static/header.php'); ?> <?php foreach ($admin->getAnniversaryYears() AS $y) { array_push($years, $year-(int)$y[0]); } ?> <div class="container" style="padding-top:70px;"> <div class="row"> <div class="col-lg-12"> <table id="userTable" class="table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>Skyttenummer</th> <th>Navn</th> <th>Jubilæum</th> </tr> </thead> <tfoot> <tr> <th>Skyttenummer</th> <th>Navn</th> <th>Jubilæum</th> </tr> </tfoot> <tbody> <?php foreach($admin->getAnniversaryUsers(implode(', ', $years)) AS $row) { echo "<tr>"; echo "<td>$row[0]</td>"; echo "<td><a href='/user/profile.php?user=$row[3]'>$row[1]</a></td>"; echo "<td>" . ((int)$year-(int)$row[2]) . " år</td>"; echo "</tr>"; } ?> </tbody> </table> </div> </div> </div> <script> $(document).ready(function () { $('#userTable').DataTable(); }); </script>