"OdenseTrack" is a school assignment/project from AspIT https://aspit.dfine.net/odensetrack
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

eventadmin.php 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. $setup = array();
  3. $setup['title'] = "Eventcenter";
  4. $setup['headline'] = "Odense Track - Administration";
  5. $setup['keywords'] = "administration,admin";
  6. $setup['description'] = "Odense Track Administration";
  7. Design::header($setup, 100);
  8. ?>
  9. <div class="page">
  10. <h1>Eventcenter</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
  11. <div class="border"></div>
  12. <br />
  13. <p>Velkommen til administrations-interfacet.<br /><br /></p>
  14. <div class="amenu pull_right">
  15. <a href="?page=addevent"><button type="button" class="btn btn-success"><i class="fa fa-plus" title="Opret Event"></i> Opret Event</button></a>
  16. </div>
  17. <div class="nmin">
  18. <h4>Liste over Events</h4>
  19. <table cellspacing="0">
  20. <tr>
  21. <th>ID</th>
  22. <th>Type</th>
  23. <th>Titel</th>
  24. <th>Tidspunkt</th>
  25. <th>Indstillinger</th>
  26. </tr>
  27. <?php
  28. foreach (Get::EventList() as $row) {
  29. ?>
  30. <tr>
  31. <td><?php echo $row['id']; ?></td>
  32. <td><?php if ($row['type'] == 1) {echo "Event";}else{echo "Aktivitet";} ?></td>
  33. <td><?php echo $row['title']; ?></td>
  34. <td><?php echo date('H:i d/m-Y', $row['time']); ?></td>
  35. <td>
  36. <a href="?page=editevent&id=<?php echo $row['id']; ?>"><button type="button" class="btn btn-primary"><i class="fa fa-pencil" title="Rediger artikel"></i></button></a>
  37. <a href="?page=editevent&action=del&id=<?php echo $row['id']; ?>" onclick="return confirm('Er du sikker på du vil slette dette event?');"><button type="button" class="btn btn-danger"><i class="fa fa-trash" title="Slet artikel"></i></button></a>
  38. </td>
  39. </tr>
  40. <?php
  41. }
  42. ?>
  43. </table>
  44. </div>
  45. </div>
  46. <?php
  47. Design::footer(false);