%%document-list-anonymous-html%%
$Date: 2003/02/25 20:41:00 $

%%preprocess%%
// format the object for display
$this->beryliumToHtml(); 
$this->getRuntimeVars();

// convert generic flavor to objtype:
if ($this->flavor=="Generic") $this->flavor= "Document";

// headline fix if only title
if ($this->title=="" && $this->headline=="") $this->title= "Untitled ($this->name)";
elseif ($this->title=="") $this->title= $this->headline;

// icon fix for this layout...
if ($this->imageid==0) $this->iconTag= "<div style='margin-top: 4px;'>$this->iconTag</div>";

// folder tag
$this->folderTag= bparsebml("in [folder:$this->folderid;icon] ");

// short description
$this->shortdescription= substr(strip_tags(addslashes($this->description)),0,96);

// alternating rows
$session=$GLOBALS[session];
if ($session->row=="" || $session->row=="odd") {
	$this->rowclass="oddrow";
	}
else {
	$this->rowclass="evenrow";
	}

// EDITING
// edit tag for document owner
if ($this->owner && ( $this->canSave['document'] || $this->canSave['all'] )) {
	if ($this->rank > $sitemember->rank) $this->editTag= "";
	else $this->editTag= "|
			<img src='/bicons/bulbsgif/$this->glow.gif' alt='$this->publishStatus' title='document:$this->id is $this->publishStatus' align=absmiddle border=0> |
			<a href='$this->baseUrl?method=edit'><img src='/bicons/edit.gif' alt='edit' title='edit this object' align=absmiddle border=0 /></a> |
			<a href='$this->baseUrl?method=pickup'><img src='/bicons/pickup.gif' alt='pick up' title='pick up this object' align=absmiddle border=0 /></a>
			";
	}

// editor controls for editors
if ($this->editor) {
	$this->editTag= "|
			<a href='$this->baseUrl?method=toggleRank'><img src='/bicons/bulbsgif/$this->glow.gif' alt='$this->publishStatus' title='document:$this->id is $this->publishStatus' align=absmiddle border=0></a> |
			<a href='$this->baseUrl?method=edit'><img src='/bicons/edit.gif' alt='edit' title='edit this object' align=absmiddle border=0 /></a> |
			<a href='$this->baseUrl?method=pickup'><img src='/bicons/pickup.gif' alt='pick up' title='pick up this object' align=absmiddle border=0 /></a> |
			<img src='/bicons/event.gif' alt='updated $this->updated' title='created $this->created - updated $this->updated' align=absmiddle border=0 />&nbsp;
			";
	}
 
%%header%%
<table class='objTable' cellspacing=5 cellpadding=5>

%%css%%

%%template%%
<tr class='$this->rowclass'>
	<td>
		<table class='objHeader'>
			<tr>
				<td width='1' valign='top'>$this->iconTag</td>
				<td>
					<span class='objTitle'><a href="$this->baseUrl" title="$this->shortdescription">$this->title</a>
					<span class='objByline'> <br />
					$this->flavor by $this->authorTag on $this->dateTag.</span>
				</td>
			</tr>
		</table>
		<p align="right" class='info'>
			$this->folderTag $this->editTag
		</p>
	</td>
</tr>

%%listrow%%
 
%%nullobject%%
<tr class='$this->rowclass'>
	<td>
		<p align="center">Sorry, no documents match that criteria.</p>
		<p>&nbsp;</p>
	</td>
</tr>

%%footer%%
</table>

%%postprocess%%

%%end of context%%