%%sitemember-create-editor-html%%
progmin : / (context #109)
2002-06-08 13:52:02

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

if ($this->id!="") {
	$this->hiddenvars= "<input type='hidden' name='id' value=\"$this->id\">";
	}
	
if ($this->role=="") $this->role= "member";
$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\">";

if ($this->status=="") $this->status= "posted";
if ($this->public=="") $this->public= 1;
if ($this->rank=="") $this->rank= 100;

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

$this->imageidTag= "<img src='/bicons/sitemember.gif' align='right'>";

if (0 && $sitemember->role=="admin") {
	$this->passwordNote= "<input type=hidden name=overwritePassword value=0><input type=checkbox name=overwritePassword value=1>overwrite existing member password.";
	}
else {
	$this->passwordNote= "Only necessary for a new member, ignored otherwise.";
	}

if ($sitemember->role!="editor") $this->inviteChecked= "checked";

%%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%%
<img src='/bicons/warning.png' alt='Warning' align=absmiddle> You seem to be in the wrong place. <a href='$session->refreshUrl?method=edit&$session->cgi'>Try this page</a> instead.



%%listrow%%
 



%%nullobject%%
<table border=0 class=sitememberHeader>
	<tr>
		<td colspan=2>
			<span class='sitememberTitle'>
			<img src='/bicons/sitemember$this->iconpvt.gif' border=0 alt='sitemember:$this->id' title='sitemember:$this->id' align=absmiddle>
			New sitemember</span>
		</td>
	</tr>
</table>
<form method='post' action='$this->idUrl?method=save$session->cgi' >
$this->hiddenvars
<table border='0' class='editTable'>
<tr> 
	<td colspan='2'><b>$session->alert</b> </td>
</tr>
<tr>
	<td align='right' valign='top'>member's email:</td>
	<td valign='top'><input type='text' name='email' size='42' maxlength='255' value="$this->email"></td>
</tr>
<tr>
	<td align='right' valign='top'>member's password:</td>
	<td valign='top'><input type='password' name='password' size='42' maxlength='255' value=""><br>
		$this->passwordNote</td>
</tr>
<tr valign='top'>
	<input type=hidden name=sendinvite value=0>
	<td align='right'>send invitation:</td>
	<td><input type='checkbox' name='sendinvite' value='1' $this->inviteChecked> If this is checked, an invitation will be sent to the new member via email.</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'> 
		<select name='role'>
			<option value="member" $this->flavormember>member</option>
			<option value="editor" $this->flavoreditor>editor</option>
		</select>
	</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 colspan='2' align='right'><img src='/bicons/spacer.gif' 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'></td>
</tr>
</table>
</form> 



%%footer%%




%%postprocess%%




%%end of context%%
