%%document-characterSelect-writer-scene%%
$Date: 2003/01/19 15:30:57 $

%%preprocess%%
// format the object for display
$this->beryliumToHtml();

// PRIMARY CHARACTER
if (is_numeric($sitemember->p_characterId) && $sitemember->p_characterId!=0) {
	$this->primeCharacterTag= "{document:$sitemember->p_characterId}";
	}
else {
	$this->primeCharacterTag= "<a href=''>Select a Primary Character</a>";
	}

%%header%%
<form name="addCharacter" action="$folder->baseUrl/comment-$object->frameid.scene?method=addObject" method="post">
<table class='editTable'>
<tr>
<td colspan='3'>Add something to this Frame:</td>
</tr>
<tr>
<td align='right' valign='top'><input type='radio' class='radiostyle' name='which' value='primarychar' checked=1></td>
<td align='left' valign='top' colspan='2'>Primary Character:
	<input type='text' name='primarychar' size='4' value='$sitemember->p_characterId' onFocus="this.value='';document.addCharacter.which[0].checked=1;">
	$this->primeCharacterTag
</td>
</tr>
<tr>
<td width='10%' align='right' valign='top'><input type='radio' class='radiostyle' name='which' value='character'></td>
<td width='40%' align='left' valign='top'>Character:
<select name='newobject' onChange="document.addCharacter.which[1].checked=1;">
<option value=''>Select one:</option>

%%css%%



%%template%%
<option value='document:$this->id'>$this->title</option>



%%listrow%%



%%nullobject%%
 



%%footer%%
<option value='new'>New Character</option>
</select>
</td>
<td width='50%' align='left' valign='middle' rowspan='2'><input type='submit' name='submit' value='Add It' class='buttonstyle'></td>
</tr>
<tr>
<td align='right' valign='top'><input type='radio' class='radiostyle' name='which' value='object'></td>
<td align='left' valign='top'>Object: <input type='text' name='objectRef' value='objtype:id' onFocus="this.value='';document.addCharacter.which[2].checked=1;"></td>
</tr>
</table>
</form>


%%postprocess%%



%%end of context%%
