admin.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <h2>you're in admin sheeeet</h2>
  2. <h1>Invite</h1>
  3. <form class="form-horizontal" action="?view=admin&action=invite" method="post">
  4. <div class="form-group">
  5. <label for="inviteMail" class="col-sm-2 control-label">Email</label>
  6. <div class="col-sm-6">
  7. <input type="email" class="form-control" id="inviteMail" name="inviteMail" placeholder="Email">
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <div class="col-sm-offset-2 col-sm-10">
  12. <button type="submit" class="btn btn-default">Invite</button>
  13. </div>
  14. </div>
  15. </form>
  16. <h1>Sources</h1>
  17. <?php
  18. foreach($this->_['sources'] as $source) {
  19. echo "<a href=\"/?view=scrape&action=scrape&sourceID=" . $source['id'] . "\"><i class=\"fa fa-search\"></i></a> " . $source['name'] . " - " . $source['path'];
  20. echo "<br>";
  21. }
  22. ?>
  23. <hr>
  24. <h1>Series</h1>
  25. <table class="table table-striped">
  26. <thead>
  27. <tr>
  28. <td>#</td>
  29. <td>MovieDB-ID</td>
  30. <td>Name</td>
  31. <td></td>
  32. <td></td>
  33. </tr>
  34. </thead>
  35. <?php
  36. foreach($this->_['series'] as $series) {
  37. echo "<tr>";
  38. echo "<td>" . $series['id'] . "</td>";
  39. echo "<td>" . $series['moviedb-id'] . "</td>";
  40. echo "<td>" . $series['name'] . "</td>";
  41. echo "<td><a href=\"?view=admin&action=updateSeries&seriesID=" . $series['id'] . "\"><i class=\"fa fa-refresh\"></i></a></td>";
  42. echo "<td><a href=\"?view=admin&action=removeSeries&seriesID=" . $series['id'] . "\"><i class=\"fa fa-trash\"></i></a></td>";
  43. }
  44. ?>
  45. </table>