%%document-stage1create-member-scene%%
$Date $

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

//$this->name= date("Ymd").".".substr(uniqid(""),-4);

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

$this->hiddenvars.= "<input type='hidden' name='name' value='$this->name'>
		<input type='hidden' name='status' value='posted'>
		<input type='hidden' name='public' value='1'>
		<input type='hidden' name='rank' value='100'>";

if ($this->flavor=="") $this->flavor= "Character";

$this->imageidTag= "<img src='/bicons/document$this->iconpvt.gif' align='right'>";
$this->realAuthorTag= bparsebml("[sitemember:$sitemember->id]");

%%header%%

%%css%%

%%template%%
<img src='/bicons/warning.png' alt='Warning' align=absmiddle> 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' cellspacing=5 cellpadding=5>
	<tr>
		<td>
			<table class='objHeader'>
				<tr>
					<td width='1' valign='middle'><img src='/bicons/document.gif'></td>
					<td>

						<span class='objTitle'>Create a New Character</span>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<form method='post' enctype='multipart/form-data' action='$this->baseURL?method=stage1save$session->cgi' class='.form'>
$this->hiddenvars
<input type='hidden' name='flavor' value='Character'>
<!-- <input type="hidden" name="MAX_FILE_SIZE" value="30720"> -->
<table border='0' class='editTable'>
<tr>
	<td align='right' valign='top' width="20%">Chracter Name:</td>
	<td valign='top'><input type='text' name='title' size='42' maxlength='255' value="$sitemember->name"></td>
</tr>
<tr>
	<td colspan='2'>
		<p>Your new Character needs a Pose, an image to represent it in Scenes. The best Poses are GIF images with transparent backgrounds.</p>
		<p>Choose from one of ours, or upload/import your own using the fields below. Poses should be smaller than 150x150 pixels. Filesize is limited to 30KB.</p>
	</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'><b>OR</b> 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 colspan=2 align='center'>
		<p>&nbsp</p>
		<table class='infoBar'>
			<tr>
				<td>You may continue editing this Character after you create it.</td>
				<td align="right"><input type='submit' name='submit' value='create' class='buttonstyle' title='Save new discussion'></td>
			</tr>
		</table>
	</td>
</tr>
</table>
</form>

%%footer%%

%%postprocess%%

%%end of context%%
