%%document-stage2-member-scene%%
$Date $

%%preprocess%%
// ROOM SETTINGS
berror("Getting imagesize on $folder->p_background now...",1);
if ($background= getimagesize($folder->p_background)) {
	berror("Got it.",1);
	$width= $background[0];
	$height= $background[1];

	$targetwidth= 630;
	$targetheight= 430;

	if ($width>$targetwidth) {
		//$height= $height * ($targetwidth/$width);
		$width= $targetwidth;
		}
	if ($height>$targetheight) {
		//$width= $width * ($targetheight/$height);
		$height= $targetheight;
		}

	$this->backgroundwidth= $width."px";
	$this->bgnumericwidth= $width;
	$this->backgroundheight= $height."px";
	$this->bgnumericheight= $height;
	}

// SCENEINFO COLOR
if ($folder->p_infoColor!="") $this->infoColor= $folder->p_infoColor;
else $this->infoColor= "white";

// INFO POSITION
$bgcenter= $this->bgnumericwidth / 2;
$this->infoLeft= ($bgcenter - 230)."px";
$bgmiddle= $this->bgnumericheight / 2;
$this->infoTop= ($bgmiddle - 120)."px";

%%header%%

%%css%%
.boothtable	{ background-color: #f9f9fb;
			border: 3px; border-color: #0e47b2; border-style: solid;
			color: #223344;
			font-family: Tahoma, Geneva, sans-serif; font-size: 12px; line-height: 18px;
			width: $this->backgroundwidth;
			}
.boothtable A { color: #135b9f; }
.frameInfo { font-family: Arial, Helvetica, sans-serif; font-size: 10px; line-height: 14px; color: $this->infoColor; text-align: center; }
.frameInfo A { color: $this->infoColor; font-weight: bold; }

%%template%%

%%listrow%%

%%nullobject%%
<a name="top"> </a>
<img src="/bicons/spacer.gif" width="$this->bgnumericwidth" height="$this->bgnumericheight" border=0>
<div id='background' style='position: absolute; left: 0px; top: 0px; width: $this->backgroundwidth; height: $this->backgroundheight; z-index:1; background-color: #333333; background-image: url($folder->p_background); background-position: center center;'>
</div>
<div id='frameInfo' class='boothTable' style='position: absolute; width: 460px; height: 240px; z-index: 1; left: $this->infoLeft; top: $this->infoTop;' >
	<form method='post' action='$this->baseURL?method=save' class='.form'>
	<input type='hidden' name='rank' value='100'>
	<input type='hidden' name='status' value='posted'>
	<input type='hidden' name='public' value='1'>
	<input type='hidden' name='flavor' value='Scene'>
	<table border='0' class='editTable'>
		<tr>
			<td colspan=2 class='objTitle'>New Scene in $folder->title: Step 2</td>
		</tr>
		<tr>
			<td colspan=2 align='center'>Give your new scene a title, and maybe a short description.<br/>You can change these later.<br/>&nbsp;</td>
		</tr>
		<tr>
			<td align='right' valign='top'>scene 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'>
				optional description:<br/>
				(<a href='http://berylium.org/berylium/docs/quickbml.html' target='_blank'>bml capable</a>)
			</td>
			<td valign='top'><textarea name='description' cols='24' rows='3'>$this->description</textarea></td>
		</tr>
		<tr>
			<td align='right' valign='top'>&nbsp;</td>
			<td><input type='submit' name='submit' value='save' class='buttonstyle' title='Create, then add Characters'>
			</td>
		</tr>
	</table>
	</form>
</div>

%%footer%%

%%postprocess%%

%%end of context%%
