%%sitemember-edit-member-html%%
2002-09-10 21:57:00

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


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

$frole= "role".str_replace(" ","",$this->role);
$this->{$frole}= "selected";

if ($this->flavor=="") $this->flavor= "primary";
$fflavor= "flavor".str_replace(" ","",$this->flavor);
$this->{$fflavor}= "selected";
$this->hiddenvars.= "<input type=hidden name=flavor value=\"$this->flavor\">";

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

// proper icon
if ($this->public) $this->ispublic= "<b>This item is public</b>";

if ($this->imageid!="0") $this->imageidTag= bparsebml("[image:$this->imageid;50,50;right]");
else $this->imageidTag= "<img src='/bicons/sitemember$this->iconpvt.png' align='right'>";


// members/writers/editors may only edit themselves
if ($this->id!=$sitemember->id && $sitemember->role!="admin" ) {
	$this->showNull=1;
	}
	

// is xobot active?
if ($this->p_xobot==1) {
	$this->xobotactivated= "checked";
	}


%%header%%



%%css%%



%%template%%
<table class='objTable'>
<tr>
<td>
<table border=0 class='objHeader'>
	<tr>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=sitemember width=20 height=1></td>
		<td width='99%'><span class='objFlavor'>$this->flavor:</span></td>
	</tr>
	<tr>
		<td colspan=2>
			<span class='objTitle'>
			<img src='/bicons/sitemember$this->iconpvt.png' border=0 alt='sitemember:$this->id' title='sitemember:$this->id' align=absmiddle>
			$this->name</span>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><span class='objByline'>Created by $this->authorTag on $this->created.</span>
			<span class='info'><br>status: $this->status | rank: $this->rank $this->ispublic</span> 
		</td>
	</tr>
</table>
</td>
</tr>
</table>
<form method='post' action='$folder->baseUrl/sitemember-$this->id.html?method=save' class='.form'>
$this->hiddenvars
<table border='0' class='editTable'>
<tr> 
	<td colspan='2'><b>$session->alert</b> </td>
</tr>
<tr>
	<td colspan='2'><b><a href='$this->idUrl?method=updatemember'>Change your email address and/or password.</a></b> (separate form)
	     <br> &nbsp; </td>
</tr>
<tr> 
	<td colspan='2'><b><a href='$this->idUrl?method=edit'>Change your sitewide preferences.</a></b> (separate form)
	     <br> &nbsp; </td>
</tr>
<tr>
	<td align='right' valign='top'>auto-response message:</td>
	<td valign='top'>(bml)</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='p_xobotmessage' cols='60'  rows='3'>$this->p_xobotmessage</textarea></td>
</tr>
<tr> 
	<td align='right' valign='top'>activate:</td>
	<td valign='top'>
	<input type='hidden' name='p_xobot' value='0'>
	<input type='checkbox' name='p_xobot' value='1' $this->xobotactivated> (responses will be sent if box is checked)</td>
</tr>
<tr> 
	<td>&nbsp;</td>
	<td><input type='submit' name='submit' value='update' class='buttonstyle' title='Save these settings'></td>
</tr>
</table>
</form>



%%listrow%%
 



%%nullobject%%
<img src='/bicons/warning.png' alt='Warning' align=absmiddle> Sorry, that sitemember is not available for editing. 



%%footer%%



%%postprocess%%



%%end of context%%
