| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 596 人关注过本帖
标题:帮我看看
取消只看楼主 加入收藏
1000mb
Rank: 1
等 级:新手上路
帖 子:214
专家分:0
注 册:2005-11-7
收藏
 问题点数:0 回复次数:1 
帮我看看

<%
mm="admin25175" '登陆密码修改处

flag=Trim(Request.QueryString("flag"))
if flag="0" then
if Trim(Request.Form("user"))=mm then
response.Cookies("links")="www.25175.com"
end if

end if
user=request.Cookies("links")
id=Trim(Request.QueryString("id"))

if user="" then
Response.Write("<form name=""myform"" action=""?flag=0"" method=""post""><table width=""500"" height=""300"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0""><tr><td align=""center"">请输入密码:<input name=""user"" type=""text"" id=""user""><input type=""submit"" name=""Submit"" value="" 确 定 ""></td></tr></table></form>")
response.End()
end if

set conn=server.createobject("ADODB.CONNECTION")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("links.mdb")
conn.open connstr

if flag="1" then
conn.execute("update links set sp25175_pass='Y' where id="&id)
elseif flag="2" then
conn.execute("update links set sp25175_pass='N' where id="&id)
elseif flag="3" then
conn.execute("delete from links where id="&id)
elseif flag="4" then
set rs=conn.execute("select sp25175_logo,sp25175_url from links where sp25175_pass='Y' and sp25175_class='2' order by id asc")
while not rs.eof
i=i+1
if i>6 then
i=0
all=all&"&nbsp;"
end if
all=all&"<a href="&server.HTMLEncode(rs(1))&" target=""_blank""><img src="&server.HTMLEncode(rs(0))&" border=0 width=88 height=31></a> "
rs.movenext
wend
rs.close
all=all&"&nbsp;"
set rs=conn.execute("select sp25175_name,sp25175_url from links where sp25175_pass='Y' and sp25175_class='1' order by id asc")
while not rs.eof
all=all&"<a href="&server.HTMLEncode(rs(1))&" target=""_blank"">"&server.HTMLEncode(rs(0))&"</a>&nbsp;&nbsp;"
'Response.Write("<br>")
rs.movenext
wend
rs.close
all="document.write('"&all&"');"
path=Server.MapPath("25175home.js")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
set file1=fso.CreateTextFile(path,true)
file1.writeline(all)
file1.close
set fso=nothing
ttt="<font color=red>已经生成文件</font>"
end if
set rs=server.CreateObject("ADODB.RecordSet")
sql="select * from links order by sp25175_pass, id desc"
rs.open sql,conn,1,1
ars=rs.GetRows(-1)
rs.close
set rs=nothing
conn.close
set conn=nothing
%>


<%
for i=0 to ubound(ars,2)
txt=""
if ars(1,i)="1" then
t="文字链接"
else
t="LOGO链接"
end if
if ars(9,i)="N" then
tt="<font color=red>审核中</font>"
elseif ars(9,i)="Y" then
tt="已认证"
end if
txt="链接类型:"&t&"<BR>网站名称:"&server.HTMLEncode(ars(2,i))&"<BR>网站地址:"&server.HTMLEncode(ars(3,i))&"<BR>LOGO地址:"&server.HTMLEncode(ars(4,i))&"<BR>QQ 号码:"&server.HTMLEncode(ars(5,i))&"<BR>邮箱地址:"&server.HTMLEncode(ars(6,i))&"<BR>留 言:"&server.HTMLEncode(ars(7,i))&"<BR>申请时间:"&ars(8,i)&"<BR>状 态:"&tt&"------<a href=?flag=1&id="&ars(0,i)&">通过</a> - <a href=?flag=2&id="&ars(0,i)&">未通过</a> - <a href=?flag=3&id="&ars(0,i)&">删除</a>"&chr(13)

Response.Write("<p>"&txt&"</p><HR>")
next
%>

搜索更多相关主题的帖子: flag Request Trim user 
2005-11-12 14:42
1000mb
Rank: 1
等 级:新手上路
帖 子:214
专家分:0
注 册:2005-11-7
收藏
得分:0 

怎么显示出来的链接 第一行是4个半 第二行8个半

能不能显示8个了自动换行 ?

[此贴子已经被作者于2005-11-12 20:35:30编辑过]

2005-11-12 20:34
快速回复:帮我看看
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.030784 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved