select top {$Param(0)} ID,FolderName from KS_Class where TN=(select TN from KS_Class where FolderName='{$Param(1)}') order by FolderOrder
[loop={$Param(0)}]<li class='classspecial'><a href="{$Field(id,GetInfoUrl,100,1)}">{$Field(foldername,Text,0,...,0,)}</a></li>[/loop]
效果参见 http://www.zwzg.net/xstd/index.html