%%comment-toggleRank-editor-html%%
2003-01-03 00:59

%%preprocess%%
switch (true) {
	// three-way switch
	case ($this->rank < 100) : 
		$this->rank= 100;
		break;
	
	case ($this->rank >= 1000) :
		$this->rank= 50;
		break;
		
	default: $this->rank=1000;
		break;
	}
$this->updateObject();
$parent= $this->getParent();
$parent->getBaseUrl();
$this->redirect= $parent->baseUrl."#comment:$this->id";

%%header%%

%%css%%

%%template%%
Toggled rank on $this->objtype:$this->id ($this->title). Rank is now $this->rank.<br>
<a href="$this->redirect">Continue</a>...

%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%
if (!$GLOBALS['debug']) {
	if ($_GET['return']) header("Location: $_GET[return]?method=view$session->cgi");
	else header("Location: $this->redirect");
	}
 
%%end of context%%
