BioTorrents.de’s version of Gazelle
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.

edit.php 553B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. #declare(strict_types = 1);
  3. if (!check_perms('users_mod')) {
  4. error(403);
  5. }
  6. if (is_number($_GET['id'])) {
  7. $ID = $_GET['id'];
  8. $Event = SiteHistory::get_event($ID);
  9. }
  10. if ($ID) {
  11. $Title = "Edit";
  12. } else {
  13. $Title = "Create";
  14. }
  15. View::show_header(
  16. $Title,
  17. "vendor/jquery.validate.min,form_validate,site_history"
  18. );
  19. ?>
  20. <div class="header">
  21. <?php if ($ID) { ?>
  22. <h2>Edit event</h2>
  23. <?php } else { ?>
  24. <h2>Create new event</h2>
  25. <?php } ?>
  26. </div>
  27. <?php
  28. SiteHistoryView::render_edit_form($Event);
  29. View::show_footer();