%%document-save-member-html%%
progmin : / (context #112)
2002-06-11 21:48:36

%%preprocess%%
// elevate member policy
berror("Current role is $sitemember->role",1);
if ($GLOBALS['sitemember']->role=="member") {
	$session->insertstatus= "posted";
	$session->insertpublic= 1;
	$session->publicwhere= "";
	$session->updatestatus= "posted";
	$session->updatepublic= "1";
	$session->updaterank= "100";
	$GLOBALS[session]= $session;
	}

%%header%%

%%css%%

%%template%%
<table width='90%' border='0' cellspacing='20' cellpadding='5' align='center'>
<tr> <td> <p><b>UPDATED! $this->objtype object id#$this->id ($this->name):</b></p>
<p>$this->propertiesList</p>
<p><a href='$session->refreshURL'>refresh</a> | <a href='$this->baseURL?method=edit$session->cgi'>edit</a> | <a href='$this->baseURL?method=create$session->cgi'>create new</a> | <a href='$this->baseURL?method=addchild$session->cgi'>add child</a> | <a href='#top'>top</a></p>
</td>
</tr>
</table>


%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%
// reset policy to normal levels.
$GLOBALS['session']->applyPolicy();

$this->getBaseURL();
if ($this->submit=="save") $method="edit";
else $method="view";
$redirect="Location: ".$this->baseURL."?method=$method".$session->cgi; 
if ($GLOBALS[debug]) {
 print "<b>Updated!</b><br><a href='$this->baseurl?method=view$session->cgi'>Click here to continue.</a>";
 }
else {
 header($redirect); 
 exit;
 }


%%end of context%%
