|
| |
精品推荐 |
 |
|
| |
|
|
|
|
ASP分页代码,已经写成类了,值得参考
|
日期:2008年1月6日 作者: 查看:[大字体
中字体 小字体]
|
Do While (Not SW_objRS.Eof AND j<SW_intPageSize) Response.Write(" <table class=""css_showdata_tb"" width=""" & SW_strShowWidth & """ align=""center"">" & vbcrlf) For i = LBound(SW_aryFldName) To UBound(SW_aryFldName) Response.Write(" <tr class=""css_showdata_title_H"" height=""28"">" & vbcrlf) Response.Write(" <td class=""css_showdata_V"" align=""center"" width=""" & SW_strTleWidth & """>" & vbcrlf & "") If (IsArray(SW_aryFldNote)) Then Response.Write(SW_aryFldNote(i) & vbcrlf) Else Response.Write(SW_aryFldName(i) & vbcrlf) End If
Response.Write(" </td>" & vbcrlf & " <td class=""css_showdata_td"" ")
If (IsArray(SW_aryFldWidth)) Then Response.Write(" width=""" & SW_aryFldWidth(i) & """")
If (IsArray(SW_aryFldAlign)) Then Response.Write(" align=""" & SW_aryFldAlign(i) & """")
Response.Write(">" & vbcrlf)
If (IsArray(SW_aryFldLink) AND (Trim(SW_aryFldLink(i))<>"")) Then Response.Write("<a href=""" & SW_aryFldLink(i) & """ target=""_blank"">" & SW_objRS(SW_aryFldName(i)) & "</a></td>" & vbcrlf) Else Response.Write(SW_objRS(SW_aryFldName(i)) & "</td>" & vbcrlf) End If
Response.Write(" </tr>" & vbcrlf) Next Response.Write(" </table>" & vbcrlf) '空行 Response.Write("<table><tr><td height=""5""></td></tr></table>" & vbcrlf) SW_objRS.MoveNext j = j + 1 Loop CASE SW_intVerticalView '竖排 If SW_intTleBDType = SW_intTleNoBorder Then Response.Write(" <table class=""css_showdata_tb"" align=""center"" width=""" & SW_strShowWidth & """>" & vbcrlf) Response.Write(" <tr class=""css_title""><td colspan=""" & CStr(UBound(SW_aryFldName)+1) & """>" & vbcrlf) Response.Write(" <table border=""0"" width=""100%""><tr>")
上一篇:asp彩色验证码图像生成脚本
下一篇:用ASP实现分页的源码
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|
|