%%comment-edit-anonymous-html%%
$Date: 2003/02/06 20:41:32 $

%%preprocess%%
$this->beryliumToForm(); 
$this->getRuntimeVars();
$this->applyPolicy();

berror("this->update= $this->update | sitemember->role= $sitemember->role | this->p_sessionid= $this->p_sessionid | session->id= $session->id",1);
if ($sitemember->role=="anonymous" && $this->p_sessionid!=$session->id) {
	berror("You do not have permission to edit this anonymous comment, because you are browsing in a different session.",0);
	exit;
	}
elseif (!$this->update) {
	berror("You do not have permission to update this comment. $this->policyReport.",0);
	exit;
	}

%%header%%

%%css%%

%%template%%
<form method='post' action='$this->baseUrl?method=save$session->cgi' class=commentForm>
        <input type=hidden name='id' value='$this->id'>
	<table border='0' align='center'>
		<tr> 
			<td colspan='2' class=commentTitle><img src='/bicons/comment.gif' align=absmiddle>&nbsp;Edit your comment:</td>
		</tr>
		<tr> 
			<td align='right' valign='top'>Subject:</td>
			<td valign='top'><input type='text' name='title' size='42' maxlength='255' value="$this->title"></td>
		</tr>
		<tr> 
			<td align='right' valign='top'>Comment:</td>
			<td><textarea name='body' cols='46' wrap='VIRTUAL' rows='8'>$this->body</textarea></td>
		</tr>
		<tr> 
			<td>&nbsp;</td>
			<td><input type='submit' name='submit' value='post' class='buttonstyle'></td>
		</tr>
	</table>
</form>

%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%

%%end of context%%
