%%folder-navbar-anonymous-html%%
2003-01-08 13:17

%%preprocess%%
berror("folder-navbar: 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>";

$rootlevel= $containers['/'];
$this->rootfoldertitle= $rootlevel->title;
$this->rootfolderurl= $rootlevel->baseUrl;
$this->rootfolderid= $rootlevel->id;


%%header%%
<table width='100%' class='foldertree'>
	<tr>
		<td class='rootfolder' colspan='2'><a href='$this->rootfolderurl'><img src='/bicons/folder-open.gif' border=0 alt='homepage:' title='homepage (folder:$this->rootfolderid)' align='absmiddle'></a>
			<a href='$this->rootfolderurl'>$this->rootfoldertitle</a></td>
	</tr>

%%css%%
.foldertree { border: 1px; border-color:#006699; border-style: none; }
.foldertree TD { padding: 1px; border: 1px; margin: 0px; border-color:#cccccc; border-style: none;}
.currentfolder { font-size: 12px; font-weight: bold; }
.otherfolder { font-size: 12px; font-weight: normal; }
.rootfolder { font-size: 12px; font-weight: bold; }


%%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->description'>$this->title</a>$this->subfolderlist</td>
	</tr>
	$this->contentsTag


%%listrow%%
 



%%nullobject%%
<!--no folders found by navbar--> 



%%footer%%
</table>



%%postprocess%%




%%end of context%%
