%%sitemember-view-editor-html%%
progmin : / (context #156)
2002-06-11 21:37:51

%%preprocess%%
if ($this->id=="") header("HTTP/1.0 404 Not Found");

//look up the member's email?
$query= "SELECT obj.email FROM member AS obj WHERE obj.id='$this->memberid' ";
$member= new Member;
$member->selectObject($query);
$this->email= $member->email;

 // format the object for display
$this->beryliumToHtml(); 
$this->getBaseUrl();
$this->timeFormat();

// get proper icon for private object
if (!$this->public) $this->iconpvt= "-pvt";
else $this->ispublic= "| <b>This item is public</b>";

// show sitemember if no author defined
if ($this->author== "") $this->author="sitemember:$this->sitememberid";

// if no headline, create one
if ($this->headline=="" && $this->role=="member") $this->headline= "A Member";
elseif ($this->headline=="") $this->headline= "An $this->role";
	
// show default icon or alt icon from imageid
if ($this->imageid!="0") {
	$this->altIconTag= "<td rowspan=3 width=100 align=center valign=middle>".bparsebml("[image:$this->imageid;100,75]")."</td>";
	}
else $this->altIconTag= "";

$this->iconTag= "<img src='/bicons/sitemember$this->iconpvt.png' border=0 alt='sitemember:$this->id' title='sitemember:$this->id' align=middle>";

if ($sitemember->role=="admin" || $this->role=="member" || $this->memberid==$sitemember->memberid ) {
	$this->editTag= "<a href='$refreshURL?method=edit$session->cgi'><img src='/bicons/$object->objtype$object->iconpvt.png' border=0 alt='edit $object->objtype' title='edit $object->objtype #$object->id' align=middle></a>&nbsp;<a href='$refreshURL?method=edit$session->cgi'>edit this $object->objtype</a> |";
	}
else $this->editTag= "You may not edit this sitemember. |";

%%header%%



%%css%%
.sitememberInfo {font-size: 12px; color: #999999; }
.sitememberInfo b {font-size: 12px; color: #aa9999; font-weight: bold; }
.sitememberTable 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-family: Times New Roman, Times, serif; color: #333344; font-size: 12pt; line-height: 15pt; text-align: left; }
.sitememberBody IMG { margin-right: 10px; margin-left: 10px; margin-top: 4px; margin-bottom: 4px; }

.sitememberBody .celltable {border: 0px;}
.sitememberBody .celltable .cell { font-family: Times New Roman, Times, serif; color: #333344; font-size: 12pt; line-height: 15pt; text-align: left; }
.sitememberBody .celltable .cellodd IMG { margin-right: 0px; margin-left: 10px; margin-top: 0px; margin-bottom: 0px; border: 1px; }
.sitememberBody .celltable .celleven IMG { margin-right: 10px; margin-left: 0px; margin-top: 0px; margin-bottom: 0px; border: 1px; }



%%template%%
<table border=0 class=sitememberTable>
	<tr>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=sitemember width=20 height=1></td>
		<td width='99%' class='sitememberFlavor'>$this->name:</td>
		$this->altIconTag
	</tr>
	<tr>
		<td colspan=2 class="sitememberHeadline">$this->iconTag $this->headline</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><span class="sitememberByline"><b>$this->role</b> created $this->created.</span>
			<span class='sitememberInfo'><br>status: $this->status | rank: $this->rank $this->ispublic</span>
		</td>
	</tr>
</table>
<table border=0 class=sitememberTable>
	<tr>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=sitemember width=20 height=1></td>
		<td width='98%'>&nbsp;</td>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=sitemember width=20 height=1></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td class='sitememberBody'>
			<p><b>Email Address:</b> $this->email</p>
			<p><b>Mission:</b> $this->description</p>
			<b>Bio:</b> $this->body
			<p>&nbsp;</p>
		</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td class='buttons' align=right>$this->editTag <a href='javascript:back();'><img src='/bicons/cancel.png' border=0 alt='cancel' title='cancel' align=middle></a>&nbsp;<a href='javascript:back();'>cancel</a></td>
		<td>&nbsp;</td>
	</tr>
</table>




%%listrow%%
 



%%nullobject%%
<p><img src='/bicons/warning.png' alt='Warning' align=left><br>
	<b>The sitemember you requested was not found.</b></p>
<p><a href='$session->scriptname$folder->name/sitemember-.html?method=listall$session->cgi'>Here is a list</a> of all the sitemembers in this folder.</p> 




%%footer%%
<table border=0 class=sitememberTable>
	<tr>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=sitemember width=20 height=1></td>
		<td width='98%'>&nbsp;</td>
		<td width='1%'><img src='/bicons/spacer.png' border=0 alt=sitemember width=20 height=1></td>
	</tr>
</table>




%%postprocess%%



%%end of context%%
