admin.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <div class="container">
  2. <h2>you're in admin sheeeet</h2>
  3. <h1>Invite</h1>
  4. <form class="form-horizontal" action="<?php echo $GLOBALS['conf']['baseURL']; ?>?view=admin&action=invite" method="post">
  5. <div class="form-group">
  6. <label for="inviteMail" class="col-sm-2 control-label">Email</label>
  7. <div class="col-sm-6">
  8. <input type="email" class="form-control" id="inviteMail" name="inviteMail" placeholder="Email">
  9. </div>
  10. </div>
  11. <div class="form-group">
  12. <div class="col-sm-offset-2 col-sm-10">
  13. <button type="submit" class="btn btn-default">Invite</button>
  14. </div>
  15. </div>
  16. </form>
  17. <h1>Sources</h1>
  18. <?php
  19. foreach($this->_['sources'] as $source) {
  20. echo "<a href=\"" . $GLOBALS['conf']['baseURL'] . "?view=scrape&action=scrape&sourceID=" . $source['id'] . "\"><i class=\"fa fa-search\"></i></a> " . $source['name'] . " - " . $source['path'];
  21. echo "<br>";
  22. }
  23. ?>
  24. <hr>
  25. <h1>Series</h1>
  26. <table class="table table-striped">
  27. <thead>
  28. <tr>
  29. <td>#</td>
  30. <td>MovieDB-ID</td>
  31. <td>Name</td>
  32. <td></td>
  33. <td></td>
  34. </tr>
  35. </thead>
  36. <?php 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=\"" . $GLOBALS['conf']['baseURL'] . "?view=admin&action=updateSeries&seriesID=" . $series['id'] . "\"><i class=\"fa fa-refresh\"></i></a></td>";
  42. echo "<td><a href=\"" . $GLOBALS['conf']['baseURL'] . "?view=admin&action=removeSeries&seriesID=" . $series['id'] . "\"><i class=\"fa fa-trash\"></i></a></td>";
  43. echo "</tr>";
  44. } ?>
  45. </table>
  46. <br />
  47. <h1>Movies</h1>
  48. <table class="table table-striped">
  49. <thead>
  50. <td>#</td>
  51. <td>MovieDB-ID</td>
  52. <td>Name</td>
  53. <td></td>
  54. <td></td>
  55. </thead>
  56. <?php foreach ($this->_['movies'] as $movie) {
  57. echo "<tr>";
  58. echo "<td>" . $movie['id'] . "</td>";
  59. echo "<td>" . $movie['moviedb-id'] . "</td>";
  60. echo "<td>" . $movie['name'] . "</td>";
  61. echo "<td><a href=\"" . $GLOBALS['conf']['baseURL'] . "?view=admin&action=updateMovie&movieID=" . $movie['id'] . "\"><i class=\"fa fa-refresh\"></i></a></td>";
  62. echo "<td><a href=\"" . $GLOBALS['conf']['baseURL'] . "?view=admin&action=removeMovie&movieID=" . $movie['id'] . "\"><i class=\"fa fa-trash\"></i></a></td>";
  63. echo "</tr>";
  64. } ?>
  65. </table>
  66. </div>