%%folder-navbar-anonymous-html%%
progmin : / (context #117)
2002-06-05 20:38:43

%%preprocess%%
berror("folder-navbar: preprocessing $this->name.",1);
$this->beryliumToHtml();
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 ($this->public) {
	$this->iconpvt= "";
	}
else {
	$this->iconpvt= "-pvt";
	}
	
$this->getBaseURL();

$this->icontag= "<img src='/bicons/folder$this->iconopen$this->iconpvt.png' border=0 alt='' title='folder #$this->id' align=middle>";

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



%%header%%
<table width='100%' class='foldertree'>
	<tr>
		<td class='rootfolder'><a href='$this->rootfolderurl'><img src='/bicons/rootfolder.png' border=0 alt='' title='homepage'></a>&nbsp;</td>
		<td class='rootfolder'><a href='$this->rootfolderurl'>$this->rootfoldertitle</a></td>
	</tr>



%%css%%
.foldertree { border: 0px; border-color:#006699; border-style: none; }
.foldertree TD { padding: 1px; border: 0px; margin: 0px;}
.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>



%%listrow%%
 



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



%%footer%%
	<tr>
		<td width='2%'><img src='/bicons/spacer.png' border=0 alt='' height=1 width=1></td>
		<td width='98%'><img src='/bicons/spacer.png' border=0 alt='' height=1 width=1></td>
	</tr>
</table>



%%postprocess%%




%%end of context%%
