请教asp高手一个问题,关于一个商城代码的商品分类问题

来源:百度知道 编辑:UC知道 时间:2024/09/21 20:38:18
原代码小类nsort是分为一行两个,我想把它改成一行4个并且全部靠左对齐,但代码看了半天搞不定,请高手帮我看下,修改那里可以搞定。希望能帮我直接把它标出来,本人不会写代码,多谢了。
源代码:
function allsort_left(sortb)
select case sortb
case 1
set rs=server.createobject("adodb.recordset")
sql="select sort_id,sort_name from venshop_sort order by sort_xu desc,sort_id desc"
rs.open sql,conn,1,1
do while not rs.eof
insortid=rs("sort_id")
response.write "<table cellpadding=0 width=""90%"" border=0 cellspacing=""0""><tr><td colspan=""3"" height=""30"">  <IMG src=""Skin/"&venshop_skin&"/dot.gif"" border=0 align=""absmiddle""> "
response.write "<a class=""sort"" href=""sort"&rs("sort_id")&"-1.html"">"&rs("sort_name")&"</a></td><

不好意思,代码比较长,我在补充一部分
rs8.open "select nsort_id,nsort_name from venshop_nsort where sort_id="&insortid&" order by nsort_xu desc,nsort_id desc",conn,1,1
i=-1
do while not rs8.eof and not rs8.bof
i=-i
if i=1 then
response.write "<td align=""right"" width=""45%""><a class=""nsort"" href=""nsort"&rs8("Nsort_id")&"-1.html"">"&rs8("Nsort_name")&"</a></td><td width=""10%"" align=""center"" height=""23"">|</td>"
elseif i=-1 then
response.write "<td width=""45%""><a class=""nsort"" href=""nsort"&rs8("Nsort_id")&"-1.html"">"&rs8("Nsort_name")&"</a></td></tr><tr><td colspan=