| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- $setup = array();
- $setup['title'] = "Eventcenter";
- $setup['headline'] = "Odense Track - Administration";
- $setup['keywords'] = "administration,admin";
- $setup['description'] = "Odense Track Administration";
-
- Design::header($setup, 100);
- ?>
-
- <div class="page">
- <h1>Eventcenter</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
- <div class="border"></div>
- <br />
- <p>Velkommen til administrations-interfacet.<br /><br /></p>
- <div class="amenu pull_right">
- <a href="?page=addevent"><button type="button" class="btn btn-success"><i class="fa fa-plus" title="Opret Event"></i> Opret Event</button></a>
- </div>
-
-
- <div class="nmin">
- <h4>Liste over Events</h4>
-
-
- <table cellspacing="0">
- <tr>
- <th>ID</th>
- <th>Type</th>
- <th>Titel</th>
- <th>Tilmeldte</th>
- <th>Tidspunkt</th>
- <th>Indstillinger</th>
- </tr>
- <?php
- foreach (Get::EventList() as $row) {
- ?>
- <tr>
- <td><?php echo $row['id']; ?></td>
- <td><?php if ($row['type'] == 1) {echo "Event";}else{echo "Aktivitet";} ?></td>
- <td><?php echo $row['title']; ?></td>
- <td><?php echo Get::attendees($row['id']); ?></td>
- <td><?php echo date('H:i d/m-Y', $row['time']); ?></td>
- <td>
- <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>
- <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>
- </td>
- </tr>
-
- <?php
- }
- ?>
-
- </table>
- </div>
- </div>
-
- <?php
- Design::footer(false);
|