%%folder-subnavbar-anonymous-html%%
$Date: 2003/02/25 16:57:23 $

%%preprocess%%
berror("folder-subnavbar: preprocessing $this->name.",1);
$this->beryliumToHtml();
$this->getRuntimeVars();

if ($this->name) $isparent= array_key_exists($this->name,$containers);

if ($this->name==$folder->name || $isparent) {
  berror("folder-navbar: listing contents of current folder...",1);
  $this->classname="currentfolder";
  $this->iconopen="-open";
  $this->subfolderlist= "{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.folderid='$this->id' $session->publicwhere ORDER BY obj.rank DESC;subnavbar}";
  }
else {
	$this->classname="otherfolder";
	$this->iconopen="";
	$this->subfolderlist= "";
	}

if (0 && $this->name==$folder->name) {
	$this->contentsTag= "
	<tr>
	<td>&nbsp;</td>
	<td class='info' align=left><a href='$this->baseUrl/document-.html?method=listall'>documents</a><br />
	<a href='$this->baseUrl/image-.html?method=listall'>images</a><br /></td>
	</tr>";
	}

$this->icontag= "<img src='/bicons/folder$this->iconopen$this->iconpvt.gif' border=0 alt='' title='folder:$this->id' align=middle>";
$this->shortdescription= strip_tags(addslashes($this->description));

%%header%%
<table width='100%' class='foldertree'>

%%css%%

%%template%%
<tr>
<td class='$this->classname' align=right valign=top><a href='$this->baseURL'>$this->icontag</a></td>
<td class='$this->classname' align=left><a href='$this->baseURL' title='$this->shortdescription'>$this->title</a>$this->subfolderlist
</td>
</tr>
$this->contentsTag

%%listrow%%

%%nullobject%%
<!-- no subfolders -->

%%footer%%
</table>

%%postprocess%%

%%end of context%%
