%%image-view-editor-html%%
progmin : / (context #150)
2002-06-07 20:35:37

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

$this->beryliumToHtml(); 
$this->timeFormat('D, M j, Y, \a\t H:i:s');
$this->getBaseUrl();

$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>";
	}
	
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>";

if ($sitemember->id==$this->sitememberid) $this->editextras= "<a href='$this->url?method=edit$session->cgi'>edit this image</a> ";

if ($this->public) $this->ispublic= "| <b>this item is public</b>";
else $this->iconpvt= "-pvt";

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!";
	}

if ($this->title=="") $this->title= "Untitled ($this->name)";



%%header%%




%%css%%
.editorinfo {font-size: 12px; color: #999999; }
.editorinfo b {font-size: 12px; color: #aa9999; font-weight: bold; }

.imagetable TD {padding: 0px; margin: 0px; }
.imageflavor {font-size: 12px; }
.imagetitle {font-size: 18px; font-weight: bold; color: #006699; }
.imagebyline {font-size: 12px; line-height: 18px; }
.imagedescription {font-size: 12px; line-height: 18px; }

.imagesource {font-size: 10px; line-height: 12px; color: #999999;}
.imagesource b {font-size: 10px; line-height: 12px; 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 border=0 class=imagetable>
	<tr>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=image width=20 height=1></td>
		<td width='99%'><span class='imageflavor'>$this->flavor:</span></td>
	</tr>
	<tr>
		<td colspan=2>
			<span class='imagetitle'>
			<img src='/bicons/image$this->iconpvt.png' border=0 alt='image:$this->id' title='image:$this->id' align=absmiddle>
			$this->title</span>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><span class="imagebyline">By $this->author on $this->created.</span>
			<span class='editorinfo'><br>status: $this->status | rank: $this->rank $this->ispublic
				<br>Filesize: $this->filesize | Imagesize: $this->origWidth x $this->origHeight pixels</span> 
		</td>
	</tr>
	<tr>
		<td colspan=2>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><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 colspan=2>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
			<span class='imagedescription'>$this->description</span>
			$this->sourcetag
			$this->copyrighttag
			$this->proptag
			<p class=editorinfo>
				<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>
				<br>To insert this image into a document, type the bml tag <b>[image:$this->id]</b> where you want the image to appear.</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%%
