%%document-mailto-anonymous-scene%%
$Date: 2003/01/31 20:42:04 $

%%preprocess%%
// REQUEST VARS
$this->sendername= $_POST['sendername'];
$this->senderemail= $_POST['senderemail'];
$this->recipientemail= $_POST['recipientemail'];
$this->sendermessage= $_POST['sendermessage'];
$this->sendtext= $_POST['sendtext'];

// OBJECT FORMATTING
// format the object for display
$cleanbody= $this->body;
$this->beryliumToHtml();
$this->getRuntimeVars();

// convert generic flavor to objtype:
if ($this->flavor=="Generic") $this->flavor= "Scene";

// 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 - 160)."px";

// SETUP FORM VARS
if (!$this->senderemail) $this->senderemail= $member->email;
if (!$this->sendername) $this->sendername= $sitemember->name;
if (!$this->sendermessage) $this->sendermessage= "I saw this and thought of you!";


%%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%%
<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: 320px; z-index: 1; left: $this->infoLeft; top: $this->infoTop;' >
		<form name='mailtoform' action='$this->baseUrl?method=mailtosend' method='POST'>
		<table class='editTable'>
			<tr>
				<td colspan=2 class='objTitle'>Share "$this->title":</td>
			</tr>
			<tr>
				<td align=right valign=top width='25%'>Your name:</td>
				<td valign=top width='75%'><input type='text' size='32' name='sendername' value='$this->sendername'></td>
			</tr>
			<tr>
				<td align=right valign=top>Your email:</td>
				<td valign=top><input type='text' size='32' name='senderemail' value='$this->senderemail'></td>
			</tr>
			<tr>
				<td align=right valign=top>Recipient's email:</td>
				<td valign=top><input type='text' size='32' name='recipientemail' value='$this->recipientemail'></td>
			</tr>
			<tr>
				<td align=right valign=top>&nbsp;</td>
				<td valign=top><input type='checkbox' name='sendtext' value=1>Send text-only &nbsp; <a href='#' onclick='window.alert("Scenes are normally sent as HTML email. If you think your recipient is using an old-school email client, you should check this box.")';>huh?</a></td>
			</tr>
			<tr>
				<td align=right valign=top>Message:</td>
				<td valign=top><textarea name='sendermessage' rows=3 cols=18>$this->sendermessage</textarea></td>
			</tr>
			<tr>
				<td align=right valign=top>&nbsp;</td>
				<td valign=top><input type='submit' name='submit' value='send' class='buttonstyle'></td>
			</tr>
			<tr>
				<td align=right valign=top>&nbsp;</td>
				<td><a href="http://chxo.com/berylium/about/document-privacy_policy.html" target='_blank'>Our ISP's Privacy Policy</a> prohibits us from sharing/selling addresses entered on this form.</td>
			</tr>
		</table>
		</form>
</div>

%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%

%%end of context%%
