tj_you.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:3k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
- <%response.buffer=true%>
- <%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
- <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
- <!--#include file="conn.inc"-->
- <!--#include file="cnscu_sb.asp"-->
- <wml><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <head>
- <meta http-equiv="Cache-Control" content="no-Cache"/>
- <meta http-equiv="Cache-Control" content="max-age=0"/>
- <meta http-equiv="Expires" content="Mon, 1 Jan 1990 00:00:00 GMT"/>
- </head>
- <card id="main" title="添加友链" >
- <p>
- <%id=dlubb(request("id"))
- cz=dlubb(request("cz"))
- cw=dlubb(request("cw"))
- nam=dlubb(request("nam"))%>
- <%if cw="1" then%>
- 友链名称不能为空<br/>
- <%elseif cw="2" then%>
- 友链地址不能为空<br/>
- <%elseif cw="3" then%>
- 库中已经有该友链名称了<br/>
- <%end if%>
- <%if cz="" then%>
- 友链地址:<input name='dd"' title='友链地址' value='http://'/><br/>
- 友链名称:<input name='sm"' title='友链名称' value=''/><br/>
- 首链名称:<input name='syname"' title='首链名称' value=''/><br/>
- <anchor>确认添加<go href='tj_YOU.asp?sb=<%=sb%>&fs=<%=fs%>&cz=1' method='post' accept-charset='utf-8'>
- <postfield name='sm' value='$(sm)'/>
- <postfield name='syname' value='$(syname)'/>
- <postfield name='dd' value='$(dd)'/>
- </go></anchor><br/>
- <%elseif cz="1" then%>
- <%dd=usb(request("dd"))
- sm=usb(request("sm"))
- syname=usb(request("syname"))
- '----识别错误并跳转-----
- if sm="" or syname="" then response.redirect "tj_YOU.asp?sb="&sb&"&cw=1&ok="&lx&""
- if dd="" then response.redirect "tj_YOU.asp?sb="&sb&"&cw=2&ok="&lx&""
- '---开始增加----
- set rs=Server.CreateObject("ADODB.Recordset")
- rspl="select * from cnscu_YL order by id asc"
- rs.open rspl,conn,1,2
- if sm=rs("name") then response.redirect "tj_YOU.asp?sb="&sb&"&cw=3&ok="&lx&""
- rs.addnew
- if dd<>"" then rs("url")=dd
- if sm<>"" then rs("name")=sm
- if syname<>"" then rs("syname")=syname
- rs("zt")=1
- rs.update
- '---关闭数据----
- rs.close
- set rs=nothing%>
- 添加成功。。。<br/>
- <%end if%>
- ----------<br/>
- <a href="WAP_YOU.asp?fs=<%=fs%>&sb=<%=sb%>">返回友链管理</a><br/>
- <a href="admin_index.asp?fs=<%=fs%>&sb=<%=sb%>">返回管理首页</a><br/>
- <a href="../index.asp?fs=<%=fs%>&sb=<%=sb%>">返回网站首页</a><br/>
- 报时:<%=time%>
- </p></card></wml>