Multiple column display

Source: Internet
Author: User
Show <table width= "100%" height= "100%" border= "0" >


<tr>


<%


Set rs= Server.CreateObject ("ADODB. Recordset ")


rs.open "SELECT * from Btype ORDER by ID ASC", conn,1,1


%>


<%


Dim tempnum2


tempnum2=1


do, not rs.eof


%>


<td>


<img src=http://www.163design.net/a/y/"Images/sanjiao.gif" width= "9" height= "9" >


</td>


<td>


<strong>


<a href= "Infos.asp?id=<%=trim (RS (" id ")%>" Name= "<%=trim (RS (" id ")%>" ><%=trim "(RS (" type ") ))%></a>


<%


set Rs2=server. CreateObject ("Adodb.recordset")


Rs2.open "Select count (*) as GS from St_infos where btype= '" &rs ("id") & "' and flag= ' 0 '", Conn


gs=rs2 (0)


%>


<font color= "#83837E" >[<%response. Write (GS)%>]</font>


<%


Rs2.close


Set rs2=nothing


%>


</strong>


</td>


<%


if (tempnum2 mod 2) =0 then Response.Write "</tr>" two columns show mod 2


tempnum2=tempnum2+1


Rs.movenext


Loop


%>


</tr>


<%


Rs.close


Set rs=nothing


%>


</table>








Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.