{php} $uptask=$this->GetMysqlOne('cid,subject'," ".$this->GetTable('case')." WHERE cid<'$cid' ORDER BY cid DESC LIMIT 0,1"); {/php}
{php} $nexttask=$this->GetMysqlOne('cid,subject'," ".$this->GetTable('case')." WHERE cid>'$cid' LIMIT 0,1"); {/php}
{php}
$category=$this->GetMysqlArray('*'," ".$this->GetTable('category')." WHERE type='49' AND upid=0 ORDER BY displayorder ASC");
{/php}
{if $category}
{for $category $value}