%%document-list-anonymous-html%%
roots.encielo.org
2002-08-15 18:49:00

%%preprocess%%
// format the object for display
$this->beryliumToHtml(); 
$this->timeFormat("F j, Y \a\\t g:ia");
$this->getBaseUrl();

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

// show sitemember if no author defined, show sitename if no sitemember found...
if (trim($this->author)== "") $this->author= bparsebml("[sitemember:$this->sitememberid]");
if (trim($this->author)== "") $this->author= $site->title;

// determine dateTag
if ($this->p_originaldate) {
	$origdate= mysql_timestamp($this->p_originaldate);
	$this->originaldate= date("D, M j, Y", $origdate);
	$this->dateTag= $this->originaldate;
	}
else $this->dateTag= $this->created;
	
// compile publishStatus ( like: public-posted-100 ) and glow
switch (true) {
	case ($this->rank < 100) : 
		$lightrank= 50;
		break;	
	case ($this->rank < 500) :
		$lightrank= 100;
		break;
	case ($this->rank < 1000) :
		$lightrank= 500;
		break;
	case ($this->rank >= 1000) :
		$lightrank= 1000;
		break;
	}
if ($this->public) {
	$this->publishStatus= "public-$this->status-$this->rank";
	$this->glow= "public-$this->status-$lightrank";
	}
else {
	$this->publishStatus= "private-$this->status-$this->rank";
	$this->glow= "private-$this->status-$lightrank";
	$this->iconpvt= "-pvt";
	}
if ($this->status=="deleted") $this->glow= "deleted";

// show default icon or alt icon from imageid
if ($this->imageid!="0") {
	$this->iconTag= bparsebml("[icon:$this->imageid;document:$this->id]");
	}
else $this->iconTag= "<img src='/bicons/document$this->iconpvt.png' border=0 alt='document:$this->id' title='document:$this->id'><br>&nbsp;";

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

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

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


%%css%%


%%template%%
<tt>
<b>
<a href="$this->baseUrl">$this->title</a></b>
&nbsp;$this->dateTag by $this->author
<br>
$this->description
<br>
<br>
</tt>


%%listrow%%


%%nullobject%%
<p align="center">Sorry, no documents match that criteria.</p>
<p>&nbsp;</p>

%%footer%%


%%postprocess%%


%%end of context%%
