%%sitemember-edit-editor-html%%
progmin : / (context #110)
2002-06-11 21:45:47

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


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

$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'>";

if ($this->role!="admin") {
	$this->roleSelect= "		
		<select name='role'>
			<option value='member' $this->rolemember>member</option>
			<option value='editor' $this->roleeditor>editor</option>
		</select>";
	}
else $this->roleSelect= "<b>admin</b>";

if ($sitemember->role!="admin" && $this->role!="member" && $this->memberid!=$sitemember->memberid ) {
	$this->showNull=1;
	}

%%header%%



%%css%%
.sitememberInfo {font-size: 12px; color: #999999; }
.sitememberInfo b {font-size: 12px; color: #aa9999; font-weight: bold; }
.sitememberHeader TD {padding: 0px; margin: 0px; }
.sitememberFlavor {font-size: 12px; }
.sitememberTitle {font-size: 18px; line-height: 24px; font-weight: bold; color: #006699; }
.sitememberHeadline {font-size: 18px; line-height: 24px; font-weight: bold; color: #006699; }
.sitememberByline {font-size: 12px; line-height: 18px; }
.sitememberBody {font-size: 12px; line-height: 18px; }



%%template%%
<table border=0 class=sitememberHeader>
	<tr>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=sitemember width=20 height=1></td>
		<td width='99%'><span class='sitememberFlavor'>$this->flavor:</span></td>
	</tr>
	<tr>
		<td colspan=2>
			<span class='sitememberTitle'>
			<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="sitememberByline">Created by $this->authorTag on $this->created.</span>
			<span class='sitememberInfo'><br>status: $this->status | rank: $this->rank $this->ispublic</span> 
		</td>
	</tr>
</table>
<form method='post' action='$this->baseURL?method=save$session->cgi' class='.form'>
$this->hiddenvars
<table border='0'>
<tr> 
	<td colspan='2'><b>$session->alert</b> </td>
</tr>
<tr> 
	<td colspan='2'><b><a href="$session->refreshUrl?method=updatemember">Change your email address and/or password.</a></b> (separate form) </td>
</tr>
<tr>
	<td align='right' valign='top'>sitemember name:</td>
	<td valign='top'><input type='text' name='name' size='42' maxlength='255' value="$this->name"></td>
</tr>
<tr>
	<td align='right' valign='top'>sitemember title:</td>
	<td valign='top'><input type='text' name='headline' size='42' maxlength='255' value="$this->headline"></td>
</tr>
<tr> 
	<td align='right' valign='top'>sitemember role:</td>
	<td valign='top'> 
		$this->roleSelect
	</td>
</tr>
<tr>
	<td align='right' valign='top'>sitemember mission:</td>
	<td valign='top'>(bml) A short summary or abstract.</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='description' cols='60'  rows='3'>$this->description</textarea></td>
</tr>
<tr>
	<td align='right' valign='top'>sitemember bio:</td>
	<td valign='top'>(bml)</td>
</tr>
<tr>
	<td colspan='2' align='right'><textarea name='body' cols='60'  rows='12'>$this->body</textarea></td>
</tr>
<tr>
	<td align='right' valign='top'>font factor:</td>
	<td valign='top'>
	    <input type='text' name='p_fontfactor' size='4' maxlength='8' value="$this->p_fontfactor">
	    <br> &nbsp;pixels added to font-size - try 4 for big text, -2 for tiny.
	    <br> &nbsp;(may not work on all type- try also your browser's font size setting)
	</td>
</tr>
<tr>
	<td colspan='2' align='right'><img src='/bicons/spacer.png' width=10 height=5 border=0 alt=space></td>
</tr>
<tr> 
	<td align='right' valign='top'>alternate icon:</td>
	<td valign='top'>$this->imageidTag<input type='text' name='imageid' size='4' maxlength='8' value="$this->imageid"><br>
		id number of berylium image / 0=none</td>
</tr>
<tr valign='top'> 
	<td align='right'>status:</td>
	<td> 
		<select name='status'>
		<option value='new' $this->statusnew>new</option>
		<option value='posted' $this->statusposted>posted</option>
		<option value='hidden' $this->statushidden>hidden</option>
		<option value='deleted' $this->statusdeleted>deleted</option>
		</select>
	</td>
</tr>
<tr valign='top'>
	<input type=hidden name=public value=0>
	<td align='right'>public:</td>
	<td><input type='checkbox' name='public' value='1' $this->public1></td>
</tr>
<tr valign='top'>
	<td align='right'>rank:</td>
	<td><input type='text' name='rank' size='6' maxlength='6' value="$this->rank"></td>
</tr>
<tr> 
	<td>&nbsp;</td>
	<td><input type='submit' name='submit' value='update' class='buttonstyle' title='Save, then view finished sitemember'> <input type='submit' name='submit' value='save' class='buttonstyle' title='Save, then continue editing'><br>Use the <tt>save</tt> button to save your work periodically!</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%%
