|
@@ -40,21 +40,20 @@ switch ($_GET['action']) {
|
40
|
40
|
</div>
|
41
|
41
|
<form class="<?= ($_GET['action'] == 'news') ? 'create_form' : 'edit_form';?>" name="news_post" action="tools.php" method="post">
|
42
|
42
|
<div class="box pad">
|
43
|
|
- <input type="hidden" name="action" value="<?= ($_GET['action'] == 'news') ? 'takenewnews' : 'takeeditnews';?>" />
|
44
|
|
- <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
|
43
|
+ <input type="hidden" name="action" value="<?= ($_GET['action'] == 'news') ? 'takenewnews' : 'takeeditnews';?>">
|
|
44
|
+ <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>">
|
45
|
45
|
<? if ($_GET['action'] == 'editnews') { ?>
|
46
|
|
- <input type="hidden" name="newsid" value="<?=$NewsID; ?>" />
|
|
46
|
+ <input type="hidden" name="newsid" value="<?=$NewsID; ?>">
|
47
|
47
|
<? } ?>
|
48
|
48
|
<h3>Title</h3>
|
49
|
|
- <input type="text" name="title" size="95"<? if (!empty($Title)) { echo ' value="'.display_str($Title).'"'; } ?> />
|
|
49
|
+ <input type="text" name="title" size="95"<? if (!empty($Title)) { echo ' value="'.display_str($Title).'"'; } ?>>
|
50
|
50
|
<!-- Why did someone add this? <input type="datetime" name="datetime" value="<?=sqltime()?>" /> -->
|
51
|
|
- <br />
|
|
51
|
+ <br>
|
52
|
52
|
<h3>Body</h3>
|
53
|
|
- <textarea name="body" cols="95" rows="15"><? if (!empty($Body)) { echo display_str($Body); } ?></textarea> <br /><br />
|
54
|
|
-
|
55
|
|
-
|
|
53
|
+<? $Textarea = new TEXTAREA_PREVIEW('body', '', display_str($Body), 95, 15, true, false); ?>
|
56
|
54
|
<div class="center">
|
57
|
|
- <input type="submit" value="<?= ($_GET['action'] == 'news') ? 'Create news post' : 'Edit news post';?>" />
|
|
55
|
+ <input type="button" value="Preview" class="hidden button_preview_<?=$Textarea->getID()?>">
|
|
56
|
+ <input type="submit" value="<?= ($_GET['action'] == 'news') ? 'Create news post' : 'Edit news post';?>">
|
58
|
57
|
</div>
|
59
|
58
|
</div>
|
60
|
59
|
</form>
|