%%comment-list-editor-html%%
2002-07-21 14:11

%%preprocess%%
// format the object for display
$this->beryliumToHtml(); 
$this->getRuntimeVars();

// If untitled, just title it Comment
if ($this->title=="") $this->title= "Comment";


// set up delete/undelete icon
if ($this->status=="deleted") $this->deleteTag= "<img src='/bicons/undelete.png' alt='un-delete' title='set status to hidden' align=absmiddle border=0>";
else $this->deleteTag= "<img src='/bicons/delete.png' alt='delete' title='set status to deleted' align=absmiddle border=0>";

// alternating rows
$session=$GLOBALS[session];
if ($session->row=="" || $session->row==1) {
	$this->rowclass="oddrow";
	$GLOBALS[session]->row=2;
	}
else {
	$this->rowclass="evenrow";
	$GLOBALS[session]->row=1;
	}

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



%%header%%
<table width='96%'>
	<tr>

%%css%%
.comments { border: 1px; padding: 3px; border-style: none; border-color: #0099cc; }
.comments HR { height: 1px; background-color: #ff9900; border-style: none; }
.commentForm TD { padding: 5px; }
.commentTitle { color: #006699; font-weight: bold; }
.commentByline { color: #006699; }
.commentBody { color: #333344; font-size: 12px; line-height: 18px; }
.commentControls {font-size: 12px; line-height: 14px; font-weight: normal; }

%%template%%
		<td class='comments'><hr><span class=commentTitle><a name="comment:$this->id"></a>$this->iconTag&nbsp;$this->title</span><span class=commentByline> by $this->authorTag on $this->created.</span>
		<span class=commentBody><blockquote>$this->body</blockquote></span>
			<p align="right" class='commentControls'> 
				<a href="$this->idUrl?method=toggleRank$session->cgi"><img src='/bicons/bulbsgif/$this->glow.gif' alt='$this->publishStatus' title='comment:$this->id is $this->publishStatus' align=absmiddle border=0></a> |
				<a href="$this->idUrl?method=edit$session->cgi"><img src='/bicons/edit.png' alt='edit' title='edit this object' align=absmiddle border=0></a> 
				<a href="$this->idUrl?method=edit$session->cgi">edit</a> |
				<!-- <a href="$this->idUrl?method=pickup$session->cgi"><img src='/bicons/pickup.png' alt='pick up' title='pick up this object' align=absmiddle border=0></a>
				<a href="$this->idUrl?method=pickup$session->cgi">pick up</a> | -->
				<a href="$this->idUrl?method=delete$session->cgi">$this->deleteTag</a>
				&nbsp;
			</p>
		</td>

%%listrow%%
	</tr>
	<tr>

%%nullobject%%

%%footer%%
	</tr>
	<tr>
		<td class='comments'>
			$this->commentForm
		</td>
	</tr>
</table>

%%postprocess%%

%%end of context%%
