othercode1.asp
来自「源码源源码 源码 源码码源 码源 码源 码源 码」· ASP 代码 · 共 66 行
ASP
66 行
<!--#include file="conn.asp"-->
document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
<%userid=request("userid")
set rs=server.createobject("adodb.recordset")
sql ="select * from myweb_other where userid="&userid&" order by id Desc"
rs.open sql,conn,1,1
do while not rs.eof
%>
document.writeln(" <tr>");
document.writeln(" <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln(" <tr>");
document.writeln(" <td><div align=\"center\"><a href=e_showother.asp?userid=<%=userid%>&id=<%=rs("id")%>><font color=#006600><%=rs("title")%></font><\/a><\/div><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table><\/td>");
<%
rs.recordcount=rs.recordcount-1
if rs.recordcount<1 then exit do
rs.movenext
%>
document.writeln(" <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln(" <tr>");
document.writeln(" <td><div align=\"center\"><a href=e_showother.asp?userid=<%=userid%>&id=<%=rs("id")%>><font color=#006600><%=rs("title")%></font><\/a><\/div><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table><\/td>");
<%
rs.recordcount=rs.recordcount-2
if rs.recordcount<1 then exit do
rs.movenext
%>
document.writeln(" <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln(" <tr>");
document.writeln(" <td><div align=\"center\"><a href=e_showother.asp?userid=<%=userid%>&id=<%=rs("id")%>><font color=#006600><%=rs("title")%></font><\/a><\/div><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table><\/td>");
<%
rs.recordcount=rs.recordcount-3
if rs.recordcount<1 then exit do
rs.movenext
%>
document.writeln(" <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln(" <tr>");
document.writeln(" <td><div align=\"center\"><a href=e_showother.asp?userid=<%=userid%>&id=<%=rs("id")%>><font color=#006600><%=rs("title")%></font><\/a><\/div><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table><\/td>");
<%
rs.recordcount=rs.recordcount-4
if rs.recordcount<1 then exit do
rs.movenext
%>
document.writeln(" <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln(" <tr>");
document.writeln(" <td><div align=\"center\"><a href=e_showother.asp?userid=<%=userid%>&id=<%=rs("id")%>><font color=#006600><%=rs("title")%></font><\/a><\/div><\/td>");
document.writeln(" <\/tr>");
document.writeln(" <\/table><\/td>");
<%
rs.recordcount=rs.recordcount-5
if rs.recordcount<1 then exit do
rs.movenext
loop
%>
<%rs.close
set rs=nothing
conn.close
set conn=nothing%>
document.writeln("<\/tr><\/table>");
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?