<%SetDataTable categorylist=get_category_child_list (channel,0)%><%foreach (DataRow cdr in categorylist.rows)%><Divclass= "section clearfix"> <Divclass= "Ntitle"> <H2> <ahref= "<%linkurl" ("news_list ", {Cdr[id]})%>">{cdr[title]}<em></em></a> </H2> <P> <!--Small Class - <%SetDataTable bcategorylist=Get_category_child_list (Channel,{strtoint ({Cdr[id]})})%> <%LoopCDR2 bcategorylist%> <%if(cdr2__loop__id==1)%> <aclass= "NO-BG"href= "<%linkurl" ("news_list ", {Cdr2[id]})%>">{cdr2[title]}</a> <%Else%> <ahref= "<%linkurl" ("news_list ", {Cdr2[id]})%>">{cdr2[title]}</a> <%/if%> <%/Loop%> </P> </Div> <Divclass= "wrapper Clearfix"> <Divclass= "Sidebar-left"> <Divclass= "T-list"> <ul> <%SetDataTable DT=Get_article_list (channel, {strtoint ({Cdr[id]})},4, "status=0 and Img_url<> "")%> <%foreach (DataRow dr1 in dt. Rows)%> <Li> <aclass= "Img-box"title= "{Dr1[title]}"href= "<%linkurl" ("News_show ", {Dr1[id]})%>"><imgsrc= "{Dr1[img_url]}"Border= "0"> </a> <H3><atitle= "{Dr1[title]}"href= "<%linkurl" ("News_show ", {Dr1[id]})%>">{dr1[title]}</a></H3> <P>{Dr1[zhaiyao]}</P> <I>{Dr1[add_time]}</I> </Li> <%/foreach%> </ul> </Div> </Div> <Divclass= "Sidebar-right"style= "padding-top:10px;"> <ulclass= "Rank-list"> <%SetDataTable hotList=Get_article_list (channel, {strtoint ({Cdr[id]})},Ten, "status=0", "Click Desc,id desc")%> <%LoopDR2 hotList%> <%if(dr2__loop__id==1)%> <Liclass= "Active"> <%Else%> <Li> <%/if%> <span><%datetostr ({dr2[add_time]},mm-dd)%></span> <Iclass= "num">{dr2__loop__id}</I> <ahref= "<%linkurl" ("News_show ", {Dr2[id]})%>">{dr2[title]}</a> </Li> <%/Loop%> </ul> </Div> </Div></Div><%/foreach%>
Dtcms column homepage, loop output sub-column and news