%%comment-list-anonymous-html%%
progmin : / (context #145)
2002-06-11 21:20:23

%%preprocess%%

$this->beryliumToHtml();
$this->getBaseURL();
$this->timeFormat('F j, Y \a\t g:ia');

if ($this->title=="") $this->title= "Comment";

if ($sitemember->role!="anonymous") {
	$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=\"$sitemember->name\">
			<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->objtype:</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>";
	}
else $this->commentForm= "
		<table border='0' align='center' class=commentForm>
			<tr> 
				<td colspan='2' class=commentTitle><img src='/bicons/comment.png' align=absmiddle>&nbsp;You must be <a href='$session->refreshUrl?method=login&$session->cgi'>logged-on</a> to add comments to this $object->objtype.</td>
			</tr>
		</table>";

$this->iconTag= "<img src='/bicons/comment.png' alt='' title='comment:$this->id' align=absmiddle>";


%%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; }



%%template%%
		<td class='comments'><hr><span class=commentTitle>$this->iconTag&nbsp;$this->title</span><span class=commentByline> by $this->author on $this->created.</span>
		<span class=commentBody><blockquote>$this->body</blockquote></span></td>



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



%%nullobject%%



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



%%postprocess%%



%%end of context%%
