%%image-create-member-html%%
$Date: 2003/02/06 20:41:32 $

%%preprocess%%
$this->beryliumToForm(); 
$this->getRuntimeVars();

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

if ($this->status=="") $this->status= "posted";
if ($this->public=="") $this->public= 1;
if ($this->rank=="") $this->rank= 100;

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

// generate a default, unique name
//$this->name= date("Ymd").".".substr(uniqid(""),-4);
$this->realAuthorTag= bparsebml("[sitemember:$sitemember->id]");

if ($this->id!="") {
	$this->hiddenvars= "<input type='hidden' name='id' value=\"$this->id\">";
	}
if ($sitemember->role=="member") {
	$this->hiddenvars.= "<input type='hidden' name='name' value='$this->name'>
		<input type='hidden' name='status' value='posted'>
		<input type='hidden' name='public' value='0'>
		<input type='hidden' name='rank' value='100'>";
	}

%%header%%




%%css%%




%%template%%
<img src='/bicons/warning.png' alt='Warning'> You seem to be in the wrong place. <a href='$session->refreshUrl?method=edit&$session->cgi'>Try this page</a> instead.



%%listrow%%




%%nullobject%%
<table class='objTable'>
<tr>
<td>
<table border=0 class='objHeader'>
	<tr>
		<td>
			<span class='objTitle'>
			<img src='/bicons/image.gif' border=0 alt='image:$this->id' title='image:$this->id' align=absmiddle>
			New image in $folder->name</span>
		</td>
	</tr>
</table>
</td>
</tr>
</table>
<form enctype='multipart/form-data' method='post' action='$this->baseURL?method=save$session->cgi' class='.form'>
$this->hiddenvars
<table border='0' class='editTable'>
<tr> 
	<td colspan='2'> 
		<p><b>Important:</b> use "upload image" (from your harddrive) OR "import image" (from another website) but not both!</p>
	</td>
</tr>
<tr>
	<td colspan=2 align='center'>
		<table class='infoBar'>
			<tr>
				<td><a name="required"> </a>Required Fields:</td>
				<td align="right"><a href="#top">top</a>&nbsp; <input type='submit' name='submit' value='update' class='buttonstyle' title='Save, then view finished document'> <input type='submit' name='submit' value='save' class='buttonstyle' title='Save, then continue editing'></td>
			</tr>
		</table>
	</td>
</tr>
<tr> 
	<td align='right' valign='top'>upload a new image:</td>
	<td valign='top'><input name="imagefile" type="file" size="32"></td>
</tr>
<tr> 
	<td align='right' valign='top'></td>
	<td valign='top'>- OR -</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;Public internet URL of image.</td>
</tr>
<tr> 
	<td align='right' valign='top'></td>
	<td valign='top'>&nbsp;</td>
</tr>
<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'>(<a href='http://berylium.org/berylium/docs/quickbml.html' target='_blank'>bml</a>)</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='description' cols='60' rows='10'>$this->description</textarea></td>
</tr>
<tr>
	<td colspan=2 align='center'>
		<p>&nbsp</p>
		<table class='infoBar'>
			<tr>
				<td><a name="optional"> </a>Optional Fields:</td>
				<td align="right"><a href="#top">top</a>&nbsp; <input type='submit' name='submit' value='update' class='buttonstyle' title='Save, then view finished document'> <input type='submit' name='submit' value='save' class='buttonstyle' title='Save, then continue editing'></td>
			</tr>
		</table>	
	</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 colspan=2 align='center'>
		<p>&nbsp</p>
		<table class='infoBar'>
			<tr>
				<td>Use the <tt>save</tt> button to save your work periodically.</td>
				<td align="right"><a href="#top">top</a>&nbsp; <input type='submit' name='submit' value='update' class='buttonstyle' title='Save, then view finished document'> <input type='submit' name='submit' value='save' class='buttonstyle' title='Save, then continue editing'></td>
			</tr>
		</table>
	</td>
</tr>
</table>
</form>


%%footer%%




%%postprocess%%




%%end of context%%
