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.

create.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. declare(strict_types = 1);
  3. View::show_header(
  4. 'Create an article',
  5. 'bbcode,vendor/easymde.min',
  6. 'vendor/easymde.min'
  7. );
  8. ?>
  9. <div>
  10. <div class="box pad">
  11. <form class="create_form" name="wiki_article" action="wiki.php" method="post">
  12. <input type="hidden" name="action" value="create" />
  13. <input type="hidden" name="auth"
  14. value="<?=$LoggedUser['AuthKey']?>" />
  15. <div>
  16. <h3>Title</h3>
  17. <input type="text" name="title" size="92" maxlength="100" />
  18. <h3>Body</h3>
  19. <?php
  20. $ReplyText = new TEXTAREA_PREVIEW(
  21. $Name = 'body',
  22. $ID = 'body',
  23. $Value = '',
  24. );
  25. if (check_perms('admin_manage_wiki')) { ?>
  26. <h3>Access</h3>
  27. <p>There are some situations in which the viewing or editing of an article should be restricted to a certain
  28. class.</p>
  29. <strong>Restrict read:</strong> <select name="minclassread"><?=class_list()?></select>
  30. <strong>Restrict edit:</strong> <select name="minclassedit"><?=class_list()?></select>
  31. <?php } ?>
  32. <div style="text-align: center;">
  33. <input type="button" value="Preview"
  34. class="hidden button_preview_<?=$ReplyText->getID()?>"
  35. tabindex="1" />
  36. <input type="submit" class="button-primary" value="Submit" />
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. <?php
  43. View::show_footer();