%%image-view-editor-html%%
2002-07-18 21:44

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

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

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

// 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
if (file_exists($this->path)) {
	$size= filesize($this->path);
	if ($size<1024) {
		$this->filesize= "$size Bytes";
		}
	elseif ($size < 1048576) {
		$size= $size/1024;
		$size= round($size,2);
		$this->filesize= "$size KB";
		}
	else	{
		$size= $size/1048576;
		$size= round($size,2);
		$this->filesize= "$size MB";
		}
	}
else {
	$this->filesize= "file not found!";
	}


%%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 width='1' valign='middle'>$this->iconTag</td>
					<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'>
							<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><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->sourcetag
			$this->copyrighttag
			$this->proptag
			<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>
		</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%%
