%%document-save-member-html%%
roots.encielo.org /recipients
2002-08-16 11:10:00

%%preprocess%%
$recipient= new Document;
$query= "SELECT obj.* FROM document AS obj WHERE obj.id='".$_GET['recipientid']."' AND obj.status!='deleted' ";
$recipient->selectObject($query);
$recipient->originalid= $recipient->id;
$recipient->id= "";
$recipient->name= "childof:$this->id:document:$recipient->originalid";
$recipient->parentid= $this->id;
$recipient->parentobjtype= "document";
$recipient->insertObject();

%%header%%

%%css%%

%%template%%


%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%
$this->getBaseURL();
$method="view";
$redirect="Location: $this->baseURL?method=$method"; 
if ($GLOBALS[debug]) {
 print "<b>Added</b><br><a href='$redirect'>Click here to continue.</a><hr>";
 }
else {
 header($redirect); 
 exit;
 }

%%end of context%%
