{if $apps} {/if} {if $apps} {for $apps $appvalue}
{php} $categoryarray=$this->GetMysqlArray('catid,total,name,color'," ".$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} {/if} {/for} {else} {/if}
{/for} {/if}