%%folder-view-anonymous-html%%
weblog version
2002-06-28 12:59

%%preprocess%%
// if anonymous, make sure on non-secure site to get static pages unless creating sitemember
if ($session->request->connection!="http" AND $sitemember->role=="anonymous" AND $session->request->method!="login" AND $session->request->method!="createmember") {
	$newlocation= "http://$site->name$session->refreshURL";
	berror("Anonymous connects to http. Trying to redirect to $newlocation.",0);
	header("Location: $newlocation");
	exit;
	}

// format the object for display
$this->beryliumToHtml(); 
$this->timeFormat("F j, Y, \a\\t g:ia");
$this->getBackPath();

if ($sitemember->role!="anonymous") {
	$sitemember->getBaseUrl();
	$this->memberheader= "<a href='$folder->baseURL/document-.html?method=listall$session->cgi'>list documents</a> | <a href='$folder->baseURL/image-.html?method=listall$session->cgi'>list images</a> ";
	$this->loginfooter= "Prepared for <a href='$sitemember->idUrl'>$sitemember->name</a>. ";
	if ($this->sitemember->role!="none") {
		$this->memberheader.= "| <a href='$folder->baseURL/folder-.html?method=listall$session->cgi'>view folders</a> ";
		$this->loginfooter.=" Your role here is $sitemember->role. ";
		}
	$this->loginfooter.= "<a href='$object->baseUrl?method=logout$session->cgi'>Log Out</a>.&nbsp;";
	}
else {
	$this->loginfooter= "You are being anonymous. <a href='$object->baseUrl?method=login$session->cgi'>Log-in</a>.&nbsp;";
	}

if ($sitemember->role!="anonymous" AND $sitemember->role!="none") {
	  $this->memberaddchild= "<a href='$session->scriptname$folder->name/comment.html?method=create$session->cgi'>add a comment</a>";
	  }

// show sitemember if no author defined
if ($this->author== "") $this->author="Anonymous";

// show default icon or alt icon from imageid
if ($this->imageid!="0") $this->iconTag= bparsebml("[image:$this->imageid;100,100;right]");
else $this->iconTag= "<img src='/bicons/weblog.png' border=0 alt='folder:$this->id' title='folder:$this->id' align=right hspace=10 vspace=10>";


%%header%%
<table>
	<tr> 
		<td width=70%>
			<span class='folderFlavor'><a href='$site->baseUrl'>$site->name</a> $this->backpath <br></span>
			<span class='folderTitle'><span class='siteTitle'>$site->title:</span> $folder->title</span>
		</td>
		<td width=30%>$this->loginfooter</td>
	</tr>
	<tr> 
		<td colspan=2 align='center' class='buttons'>
				<a href='$session->refreshURL'><img src='/bicons/refresh.png' border=0 alt='refresh page' title='refresh page' align=middle></a>&nbsp;<a href='$session->refreshURL'>refresh</a> |  
				<a href='#bottom'>bottom of page</a>
				&nbsp; &nbsp; 
		</td>
	</tr>
</table>
<table>
	<tr>
		<td valign='top' width='20%' class='navigationcell'>
			{list:SELECT obj.* FROM folder AS obj, folder WHERE obj.rank>=100 AND obj.siteid='$site->id' AND obj.status='posted' AND folder.id=obj.folderid AND obj.name!='/'  AND obj.folderid='$site->folderid' $session->publicwhere ORDER BY obj.rank DESC;navbar}
			<hr>
		</td>
		<td valign='top' width='80%' class='contentcell'>
<!-- begin object content -->


%%css%%
.foldertable td { border: 0px; border-style: none; border-color: #666688; }
.navigationcell { border: 0px; margin: 0px; border-style: none; }
.navigationcell hr { height: 1px; width: 96%; color: #006699; }
.contentcell { border: 1px; margin:0px; border-style: solid; border-color: #006699; }

.folderInfo {font-size: 12px; color: #999999; }
.folderInfo b {font-size: 12px; color: #aa9999; font-weight: bold; }
.folderTable TD {padding: 0px; margin: 0px; }
.folderHeader TD {padding: 0px; margin: 0px; }
.folderFlavor {font-size: 12px; }
.folderTitle {font-size: 18px; line-height: 24px; font-weight: bold; color: #006699; }
.folderHeadline {font-size: 18px; line-height: 24px; font-weight: bold; color: #006699; }
.folderByline {font-face: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14px; font-weight: normal; color: green; }
.folderBody {font-size: 12px; line-height: 18px; }


%%template%%
$this->iconTag
<span class='folderHeadline'>$this->headline</span>
<span class="folderByline"><br>Weblog By $this->author on $this->created.</span>
<span class="folderInfo"><br>status: $this->status | rank: $this->rank $this->ispublic<br>&nbsp;<br></span>
<span class='folderBody'>$this->body<br>&nbsp;<br></span>
{list:SELECT obj.* FROM document AS obj, folder WHERE obj.siteid='$site->id' AND folder.id=obj.folderid AND obj.folderid=$folder->id AND obj.rank>='100' AND obj.status='posted' $session->publicwhere ORDER BY obj.created DESC $session->limit;index}



%%listrow%%


%%nullobject%%
<p><img src='/bicons/warning.png' alt='Warning' align=left><br>
	<b>The folder you requested was not found.</b></p>
<p>Please see the <a href='$site->baseUrl'>site homepage</a> or choose one of the folders at left. Thanks!</p>


%%footer%%
<!-- end object content -->
		</td>
	</tr>
</table>
<a name='bottom'></a>
<table>
	<tr> 
		<td align='center'>
			<a href='$session->refreshURL'><img src='/bicons/refresh.png' border=0 alt='refresh page' title='refresh page' align=middle></a>&nbsp;<a href='$session->refreshURL'>refresh</a> | 
			<a href='#top'>top of page</a>
			<p align='right'>$this->loginfooter</p>
		</td>
	</tr>
</table>


%%postprocess%%



%%end of context%%
