{php} $categoryarray=$this->GetMysqlArray('catid,total,name'," ".$this->GetTable('category')." WHERE type='$appvalue[id_phpapp]'AND upid='0' ORDER BY displayorder ASC ");{/php}
{if $categoryarray}
{for $categoryarray $onevalue}
{php} $taskonecategorysubclass=$this->GetMysqlArray('*'," ".$this->GetTable('category')." WHERE type='$appvalue[id_phpapp]' AND upid='$onevalue[catid]' ORDER BY displayorder ASC");{/php}
{if $taskonecategorysubclass}