%%image-edit-editor-html%%
progmin : / (context #130)
2002-06-05 15:56:06

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

$this->proportion(200,200);
$this->imagetag= "<img src='$this->uri' height='$this->height' width='$this->width' alt='$this->description' border='0'>";

if ($this->id!="") {
	$this->hiddenvars= "<input type='hidden' name='id' value=\"$this->id\">";
	}

if ($this->flavor=="") $this->flavor= "generic";
$fflavor= "flavor".str_replace(" ","",$this->flavor);
$this->{$fflavor}= "selected";

$sstatus= "status".$this->status;
$this->{$sstatus}= "selected";
$ppublic= "public".$this->public; 
$this->{$ppublic}= "checked";

// proper icon
if (!$this->public) $this->iconpvt= "-pvt";

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

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



%%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>Filesize: $this->filesize | Imagesize: $this->origWidth x $this->origHeight pixels </span> 
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
			<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>
			<p align=center><a href='$this->uri'>$this->imagetag</a></p></td>
	</tr>
</table>
<form enctype='multipart/form-data' method='post' action='$this->baseURL?method=save$session->cgi' class='.form'>
$this->hiddenvars
<table border='0'>
<tr> 
	<td colspan='2'><b>$session->alert</b> </td>
</tr>
<tr>
	<td align='right' valign='top'>image name:</td>
	<td valign='top'><input type='text' name='name' size='42' maxlength='255' value="$this->name"><br>
		&nbsp;must be unique within this folder</td>
<tr valign='top'> 
	<td align='right'>type of image:</td>
	<td> 
		<select name='flavor'>
		<option value="generic" $this->flavorgeneric>generic (select one:)</option>
		<option value="snapshot" $this->flavorsnapshot>snapshot</option>
		<option value="photograph" $this->flavorphotograph>photograph</option>
		<option value="artwork" $this->flavorartwork>artwork</option>
		<option value="evidence" $this->flavorevidence>evidence</option>
		<option value="scan" $this->flavorscan>scan</option>
		<option value="mystery" $this->flavormystery>mystery</option>
		<option value="random image" $this->flavorrandomimage>random image</option>
		</select>
	</td>
</tr>
<tr> 
	<td align='right' valign='top'>image title:</td>
	<td valign='top'><input type='text' name='title' size='42' maxlength='255' value="$this->title"></td>
</tr>
<tr>
	<td align='right' valign='top'>image description:</td>
	<td valign='top'>(bml)</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='description' cols='60' wrap='OFF' rows='6'>$this->description</textarea></td>
</tr>
<tr>
	<td colspan='2' align='right'><img src='/bicons/spacer.png' width=10 height=5 border=0 alt=space></td>
</tr>
<tr> 
	<td align='right' valign='top'>upload a new image:</td>
	<td valign='top'><input name="imagefile" type="file" size="32"><br>
		&nbsp;Warning: this will replace the current image.</td>
</tr>
<tr> 
<td align='right' valign='top'>import new image:</td>
<td valign='top'><input type='text' name='imageurl' size='42' maxlength='255' value="$this->imageurl"><br>
		&nbsp;Internet URL of image. Warning: this will replace the current image.</td>
</tr>
<tr> 
	<td align='right' valign='top'>creator:</td>
	<td valign='top'><input type='text' name='author' size='42' maxlength='255' value="$this->author"><br>
		&nbsp;photographer or artist's name</td>
</tr>
<tr> 
	<td align='right' valign='top'>copyright info:</td>
	<td valign='top'><input type='text' name='copyright' size='42' maxlength='255' value="$this->copyright"><br>
		&nbsp;use [copy:] to insert a &copy;</td>
</tr>
<tr> 
	<td align='right' valign='top'>source:</td>
	<td valign='top'><input type='text' name='source' size='42' maxlength='255' value="$this->source"><br>
		&nbsp;use [link:http://some-url.com;link text] to insert a hyperlink</td>
</tr>
<tr valign='top'> 
	<td align='right'>status:</td>
	<td> 
		<select name='status'>
		<option value='new' $this->statusnew>new</option>
		<option value='posted' $this->statusposted>posted</option>
		<option value='hidden' $this->statushidden>hidden</option>
		<option value='deleted' $this->statusdeleted>deleted</option>
		</select>
	</td>
</tr>
<tr valign='top'>
	<input type=hidden name=public value=0>
	<td align='right'>public:</td>
	<td><input type='checkbox' name='public' value='1' $this->public1></td>
</tr>
<tr valign='top'>
	<td align='right'>rank:</td>
	<td><input type='text' name='rank' size='6' maxlength='6' value="$this->rank"></td>
</tr>
<tr> 
	<td>&nbsp;</td>
	<td><input type='submit' name='submit' value='update' class='buttonstyle'></td>
</tr>
</table>
</form>



%%listrow%%
 



%%nullobject%%
<img src='/bicons/warning.png' alt='Warning' align=absmiddle> Sorry, that image is not available for editing. 



%%footer%%




%%postprocess%%




%%end of context%%
