"OdenseTrack" is a school assignment/project from AspIT https://aspit.dfine.net/odensetrack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. $setup = array();
  3. $setup['title'] = "Bestil";
  4. $setup['headline'] = "Odense Track - Bestil";
  5. $setup['keywords'] = "bestil,bestilnu,betal,order";
  6. $setup['description'] = "Odense Track Bestillingsside";
  7. if (isset($_GET['rem'])) {
  8. Alter::attentDel($_SESSION['user'],$_GET['rem']);
  9. header('Location: '.Config::$sys_url.'?page=order&rel=success');
  10. die();
  11. }
  12. if (isset($_GET['att'])) {
  13. Alter::attentAdd($_SESSION['user'],$_GET['att']);
  14. header('Location: '.Config::$sys_url.'?page=order&rel=success');
  15. die();
  16. }
  17. Design::header($setup, 25);
  18. ?>
  19. <div class="page">
  20. <h1>Bestil</h1>
  21. <div class="border"></div>
  22. <br />
  23. <p>Bestil en billet til event.</p>
  24. <?php
  25. foreach (Get::attentEventList() as $row) {
  26. ?>
  27. <div class="eventslice">
  28. <div class="eventslice-top"><img src="<?php echo $row['img']; ?>" alt="" /></div>
  29. <div class="eventslice-middle"><?php echo $row['title']; ?></div>
  30. <?php
  31. if (Get::attentDouble($_SESSION['user'],$row['id']) == true){
  32. ?>
  33. <div class="eventslice-bottom"><a href="?page=order&rem=<?php echo $row['id']; ?>"><button>Afmeld</button></a></div>
  34. <?php
  35. } else {
  36. ?>
  37. <div class="eventslice-bottom"><a href="?page=order&att=<?php echo $row['id']; ?>"><button>Tilmeld</button></a></div>
  38. <?php
  39. }
  40. ?>
  41. </div>
  42. <?php
  43. }
  44. ?>
  45. <div class="clear"></div>
  46. </div>
  47. <?php
  48. Design::footer(false);