Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/event/index.php
Назад
<?php include_once('../include.php'); $event = new event($db); $admin = new admin($db); $admin->passwordResetCheck(); include('../static/header.php'); if (!isset($_GET['year'])) { $getYear = date("Y"); } else { $getYear = $_GET['year']; } $result = $event->getAll($getYear); ?> <div class="container"> <div class="row"> <div class="col-lg-12"> <?php echo "<h2>Træningsresultater i $getYear</h2>"; foreach ($event->getYears() as $year) { ?> <a href="?year=<?php echo $year[0] ?>"> <button class="btn btn-primary" type="button"> <?php echo $year[0] ?> <span class="badge"><?php $event->getYearCount($year[0]) ?></span> </button> </a> <?php } ?> <table id="eventTable" class="table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th style="display: none"></th> <th>Skyttenavn</th> <th>Point</th> <th>Krydstier</th> <th>Våbentype</th> <th></th> </tr> </thead> <tfoot> <tr> <th style="display: none"></th> <th>Skyttenavn</th> <th>Point</th> <th>Krydstier</th> <th>Våbentype</th> <th></th> </tr> </tfoot> <tbody> <?php foreach ($result as $row) { echo "<tr>"; echo "<td style='display: none'>$row[9]</td>"; echo "<td><a href='/user/profile.php?user=$row[5]'>$row[0]</a></td>"; echo "<td>$row[1]</a></td>"; echo "<td>$row[2]</td>"; echo "<td>$row[3]</td>"; echo "<td><a href='/event/edit.php?event=" . $row[9] . "'>Edit</a></td>"; echo "</tr>"; } ?> </tbody> </table> </div> </div> </div> <script> $(document).ready(function () { $('#eventTable').DataTable({ "order": [[0, "desc"]] }); }); </script> <?php include('../static/footer.php');
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка