2003-12-28 12:44:05 +01:00
|
|
|
<?php
|
|
|
|
|
2004-03-01 07:13:32 +01:00
|
|
|
$allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers')));
|
2003-12-28 12:44:05 +01:00
|
|
|
|
2004-04-24 06:26:11 +02:00
|
|
|
$submitbutton_text = __('Edit Comment »');
|
|
|
|
$toprow_title = sprintf(__('Editing Comment # %s'), $commentdata['comment_ID']);
|
2004-02-13 16:36:28 +01:00
|
|
|
$form_action = 'editedcomment';
|
|
|
|
$form_extra = "' />\n<input type='hidden' name='comment_ID' value='$comment' />\n<input type='hidden' name='comment_post_ID' value='".$commentdata["comment_post_ID"];
|
2003-12-28 12:44:05 +01:00
|
|
|
?>
|
2004-02-13 16:36:28 +01:00
|
|
|
<div class="wrap">
|
2003-12-28 12:44:05 +01:00
|
|
|
|
|
|
|
<form name="post" action="post.php" method="post" id="post">
|
|
|
|
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
|
|
|
<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
function focusit() {
|
|
|
|
// focus on first input field
|
|
|
|
document.post.name.focus();
|
|
|
|
}
|
|
|
|
window.onload = focusit;
|
|
|
|
</script>
|
|
|
|
<fieldset id="namediv">
|
2004-04-24 06:26:11 +02:00
|
|
|
<legend><?php _e('Name:') ?></legend>
|
2003-12-28 12:44:05 +01:00
|
|
|
<div>
|
|
|
|
<input type="text" name="newcomment_author" size="22" value="<?php echo format_to_edit($commentdata['comment_author']) ?>" tabindex="1" id="name" />
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset id="emaildiv">
|
2004-04-24 06:26:11 +02:00
|
|
|
<legend><?php _e('E-mail:') ?></legend>
|
2003-12-28 12:44:05 +01:00
|
|
|
<div>
|
|
|
|
<input type="text" name="newcomment_author_email" size="30" value="<?php echo format_to_edit($commentdata['comment_author_email']) ?>" tabindex="2" id="email" />
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset id="uridiv">
|
2004-04-24 06:26:11 +02:00
|
|
|
<legend><?php _e('URI:') ?></legend>
|
2003-12-28 12:44:05 +01:00
|
|
|
<div>
|
|
|
|
<input type="text" name="newcomment_author_url" size="35" value="<?php echo format_to_edit($commentdata['comment_author_url']) ?>" tabindex="3" id="URL" />
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset style="clear: both;">
|
2004-04-24 06:26:11 +02:00
|
|
|
<legend><?php _e('Comment') ?></legend>
|
2003-12-28 12:44:05 +01:00
|
|
|
<div id="quicktags">
|
|
|
|
<?php
|
2004-04-24 06:26:11 +02:00
|
|
|
echo '<a href="http://wordpress.org/docs/reference/post/#quicktags" title="' . __('Help with quicktags') . '">' . __('Quicktags') . '</a>: ';
|
2003-12-28 12:44:05 +01:00
|
|
|
include('quicktags.php');
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
$rows = get_settings('default_post_edit_rows');
|
|
|
|
if (($rows < 3) || ($rows > 100)) {
|
|
|
|
$rows = 10;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content" style="width: 99%"><?php echo $content ?></textarea></div>
|
|
|
|
</fieldset>
|
|
|
|
|
2004-08-01 10:04:39 +02:00
|
|
|
<script type="text/javascript">
|
2003-12-28 12:44:05 +01:00
|
|
|
<!--
|
|
|
|
edCanvas = document.getElementById('content');
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
2004-04-19 10:09:27 +02:00
|
|
|
<p class="submit"><input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
|
2004-04-21 00:56:47 +02:00
|
|
|
<input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" />
|
2003-12-28 12:44:05 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
// if the level is 5+, allow user to edit the timestamp - not on 'new post' screen though
|
|
|
|
// if (($user_level > 4) && ($action != "post"))
|
|
|
|
if ($user_level > 4) {
|
|
|
|
touch_time(($action == 'edit'));
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
</form>
|
2004-07-28 06:01:45 +02:00
|
|
|
<p><a class="delete" href="post.php?action=confirmdeletecomment&noredir=true&comment=<?php echo $commentdata['comment_ID']; ?>&p=<?php echo $commentdata['comment_post_ID']; ?>"><?php _e('Delete comment') ?></a></p>
|
2003-12-28 12:44:05 +01:00
|
|
|
</div>
|