
%%client-view-member-html%%
chateau : /clients (context88)
2002-03-09 19:30:03


%%preprocess%%
if ($this->imageid!=0 AND $this->imageid!="") {
  $this->imagetag= "[link:$session->scriptname$folder->name/image-$this->imageid.html?method=view$session->cgi;[image:$this->imageid;200,200;right]]";
  $this->imageidtag= " | imageid=$this->imageid ";
  }
$this->beryliumToHtml(); 
$this->timeFormat();
$this->propertiesList= $this->getPropertiesList();
if ($sitemember->id==$this->sitememberid OR $foldermember->role=="editor") $this->editextras= "| <a href='$this->url?method=edit$session->cgi'>edit this client<a/> ";
if ($foldermember->role=="editor") {
  if ($this->public) $ispublic= "| <b>this item is public</b>";
  $this->editorinfo= "<br><span class='editorinfo'>status: $this->status | rank: $this->rank $ispublic $this->imageidtag</span>";
  $this->addwindow= "<br> &nbsp; <a href='$session->scriptname$folder->name/window-.html?method=create&clientid=$this->id&clientname=$this->name$session->cgi'>create a new window</a>";
  }
if ($this->canCreate) {
  $this->createextras= "| <a href='$session->scriptname$folder->name/client-.html?method=create$session->cgi'>create new client</a>";
  }

// get $this->ipaddress by looking up $this->hostname
$this->ipaddress= gethostbyname($this->hostname);

// ping hostname
$this->pingresponse=`ping -c 4 $this->hostname`;

// try logging in
// $this->loginresponse= $this->login();





%%header%%



%%css%%
.editorinfo {font-size: 12px; font-color: #999999; }
.editorinfo b {font-size: 12px; font-color: #999999; font-weight: bold; }








%%template%%
<table>
<tr> 
<td><p>$this->imagetag
    <b>client (#$this->id): $this->name</b> is at <i>$this->hostname</i> ($this->ipaddress)</p>
    <p>$this->description</p>
    <p>Pinging: <blockquote><pre>$this->pingresponse</pre></blockquote></p>
    <p>Attempting login with username=$this->username... $this->loginresponse.</p>
    <p>Last updated on $this->updated. $this->editorinfo</p>
    <p><a href='$session->refreshURL'>refresh</a> $this->editextras $this->createextras
        | <a href='#top'>top</a></p></td>
</tr>
<tr><td>
<b>Windows attached to $this->name:</b> $this->addwindow
{list:SELECT obj.* FROM window AS obj WHERE obj.rank>=100 AND obj.siteid='$site->id' AND obj.status='posted' AND obj.parentobjtype='client' AND obj.parentid=$this->id $session->publicwhere ORDER BY obj.rank DESC;list}</td></tr>
</table>








%%listrow%%



%%nullobject%%
Sorry, client not found.







%%footer%%



%%postprocess%%



%%end of context%%