%%folder-subnavbar-anonymous-html%%
progmin : / (context #149)
2002-06-02 18:30:41

%%preprocess%%
berror("folder-subnavbar: 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='subfolder #$this->id' align=middle>";



%%header%%
<table width='100%' cellpadding=0 border=0>



%%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'>$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%%
