%%image-view-anonymous-html%%
2002-12-28

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

if ($this->id=="") {
	header("HTTP/1.0 404 Not Found");
	}

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

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

// copyright and source tags
if ($this->copyright!="") $this->copyrighttag= "<span class='imagecopyright'><br><b>Copyright:</b> $this->copyright</span>";
if ($this->source!="") $this->sourcetag= "<span class='imagesource'><br><b>Source:</b> $this->source</span>";

// reduce to a sane size
$this->proportion(560,480);
if ($this->isProportioned) {
	$this->proptag= "<p class='imageproptag'>This image has been reformatted for size. Its <a href='$this->uri'>original size</a> is $this->origWidth x $this->origHeight.</p>";
	}
	
// get the filesize
$this->getFileSize();

if ($this->parentid!="" && $this->parentid!=0) {
	$parent= $this->getParent();
	$parent->getBaseUrl();
	$this->parentTag= "<p class='info'>Registered as a pose of <span class='objTitle'><a href='$parent->baseUrl'>$parent->title</a></span></p>";
	}
	
if ($this->itemOwner || $this->itemEditor) {
	$this->editorControls= "
		<img src='/bicons/event.png' alt='updated $this->updated' title='created $this->created - updated $this->updated' align=absmiddle border=0> | 
		<a href='$this->baseUrl?method=toggleRank$session->cgi'><img src='/bicons/bulbsgif/$this->glow.gif' alt='$this->publishStatus' title='image:$this->id is $this->publishStatus' align=absmiddle border=0></a> |
		<a href='$this->baseUrl?method=edit$session->cgi'><img src='/bicons/edit.png' alt='edit' title='edit this object' align=absmiddle border=0></a>
		<a href='$this->baseUrl?method=edit$session->cgi'>edit</a>";
	$this->editorControls2= "
		<p class='info'>
			<a href='$this->baseUrl?method=resize$session->cgi'><img src='/bicons/rotate.png' border=0 alt='resize/rotate' title='resize/rotate' align=absmiddle></a>&nbsp;<a href='$this->baseUrl?method=resize$session->cgi'>resize/rotate</a> |
			<a href='$this->baseUrl?method=filter$session->cgi'><img src='/bicons/filter.png' border=0 alt='adjust/filter' title='adjust/filter' align=absmiddle></a>&nbsp;<a href='$this->baseUrl?method=filter$session->cgi'>adjust/filter</a> |
			<a href='$this->baseUrl?method=crop$session->cgi'><img src='/bicons/crop.png' border=0 alt='crop' title='crop' align=absmiddle></a>&nbsp;<a href='$this->baseUrl?method=crop$session->cgi'>crop</a> |
			<a href='$this->baseUrl?method=edit$session->cgi'><img src='/bicons/edit.png' alt='edit' title='edit this object' align=absmiddle border=0></a>
			<a href='$this->baseUrl?method=edit$session->cgi'>edit</a> |
			<a href='$this->baseUrl?method=toggleRank$session->cgi'><img src='/bicons/bulbsgif/$this->glow.gif' alt='$this->publishStatus' title='image:$this->id is $this->publishStatus' align=absmiddle border=0></a>
		</p>";
	}

%%header%%


%%css%%
.imagesource {font-size: 12px; line-height: 14px; color: #999999;}
.imagesource b {font-size: 12px; line-height: 14px; color: #9999aa; font-weight: bold;}
.imagecopyright {font-size: 10px; line-height: 12px; color: #999999; }
.imagecopyright b {font-size: 10px; line-height: 12px; color: #9999aa; font-weight: bold;}
.imageproptag {font-size: 12px; line-height: 32px; color: #666699; }


%%template%%
<table cellspacing=5 cellpadding=5>
	<tr>
		<td>
			<table class='objHeader'>
				<tr>
					<td>
						<span class='objFlavor'>$this->flavor:<br></span>
						<span class='objTitle'><a href="$this->baseUrl">$this->title</a></span>
						<span class='objByline'> <br> 
							By $this->authorTag (#$this->sitememberid) on $this->dateTag.</span>
						<span class='info'>
							$this->editorControls<br>
							Filesize: $this->filesize | Imagesize: $this->origWidth x $this->origHeight pixels</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table border=0>
	<tr>
		<td width="2%">&nbsp;</td>
		<td width="99%">
			<a href='$this->uri'><img src='$this->uri' border=0 width='$this->width' height='$this->height' alt="$this->copyright" title="$this->copyright"></a>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
			<span class='objDescription'>$this->description<br>&nbsp;</span>
			$this->parentTag
			$this->sourcetag
			$this->copyrighttag
			$this->proptag
			$this->editorControls2
		</td>
	</tr>
</table>



%%listrow%%
 



%%nullobject%%
<p><img src='/bicons/warning.png' alt='Warning' align=left><br>
	<b>The image you requested was not found.</b></p>
<p><a href='$session->scriptname$folder->name/image-.html?method=listall$session->cgi'>Here is a list</a> of all the images in this folder.</p> 



%%footer%%




%%postprocess%%




%%end of context%%
