%%generic-toggleRank-editor-html%%
2002-07-18 11:16

%%preprocess%%
$this->getBaseUrl();

switch (true) {
	case ($this->rank < 100) : 
		$this->rank= 100;
		break;
	
	case ($this->rank >= 100) :
		$this->rank= 50;
		break;
		
	/* unused -- four-way switch is too much for me...
	case ($this->rank < 1000) :
		$this->rank= 1000;
		break;
		
	case ($this->rank >= 1000) :
		$this->rank= 50;
		break;
	*/
	}
$this->updateObject();

%%header%%

%%css%%

%%template%%
Toggled rank on $this->objtype:$this->id ($this->title). Rank is now $this->rank.<br>
<a href="$this->idUrl?method=view$session->cgi">Continue</a>...

%%listrow%%

%%nullobject%%

%%footer%%

%%postprocess%%
if (!$GLOBALS['debug']) {
	header("Location: $this->idUrl?method=view$session->cgi");
	print "Redirecting to $this->idUrl now.";
	}
 
%%end of context%%
