Gazelle/sections/wiki/create.php

38 lines
1.4 KiB
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
2013-06-27 08:01:06 +00:00
View::show_header('Create an article');
2011-03-28 14:21:28 +00:00
?>
<div class="thin">
<div class="box pad">
2012-09-15 08:00:25 +00:00
<form class="create_form" name="wiki_article" action="wiki.php" method="post">
2011-03-28 14:21:28 +00:00
<input type="hidden" name="action" value="create" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<div>
<h3>Title</h3>
<input type="text" name="title" size="92" maxlength="100" />
2013-04-20 08:01:01 +00:00
<? /* if ($_GET['alias']) { ?>
2011-03-28 14:21:28 +00:00
<input type="hidden" name="alias" value="<?=display_str(alias($_GET['alias']))?>" />
<? } else { ?>
<h3>Alias</h3>
<p>An exact search string or name that should lead to this article. (More can be added later)</p>
<input type="text" name="alias" size="50" maxlength="50" />
<? } */?>
<h3>Body </h3>
2013-02-09 08:01:01 +00:00
<?
2013-04-20 08:01:01 +00:00
$ReplyText = new TEXTAREA_PREVIEW('body', 'body', '', 91, 22, true, false);
if (check_perms('admin_manage_wiki')) { ?>
2011-03-28 14:21:28 +00:00
<h3>Access</h3>
<p>There are some situations in which the viewing or editing of an article should be restricted to a certain class.</p>
2013-04-20 08:01:01 +00:00
<strong>Restrict read:</strong> <select name="minclassread"><?=class_list()?></select>
<strong>Restrict edit:</strong> <select name="minclassedit"><?=class_list()?></select>
<? } ?>
2011-03-28 14:21:28 +00:00
<div style="text-align: center;">
2013-11-04 08:01:08 +00:00
<input type="button" value="Preview" class="hidden button_preview_<?=$ReplyText->getID()?>" tabindex="1" />
2011-03-28 14:21:28 +00:00
<input type="submit" value="Submit" />
</div>
</div>
</form>
</div>
</div>
2013-04-20 08:01:01 +00:00
<? View::show_footer(); ?>