建站代码网

热门标签

输入密码才能访问网页

dim pwd,cpwd,act,sname
set rsx=conn.execute("select pwd,sortnamech from YunXin_NewsSort where id="&SortId)
pwd=rsx(0)
sname=rsx(1)

cpwd=Trim(Request.Form("pwd"))

IF Trim(Request.QueryString("act"))="very" then

if pwd<>cpwd then
response.Write "<script language=javascript>alert('请输入正确密码!');history.go(-1);</script>" 
response.End() 
else
Response.cookies("xuan"&SortId)="ok"
Response.cookies("xuan"&SortId).Expires=Date+30
end if 

END IF

'调用新闻信息所属分类
'set rs2 = conn.execute("select ID,SortName"&Language&" From YunXin_ProductSort where ID="&SortID)
'ProductSortName = rs2("SortName"&Language)
'rs2.close
'set rs2 = nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><% =webtitle %></title>
<meta name="Keywords" content="<% =seokeywords %>" />
<meta name="Description" content="<% =seodescriptions %>" />
<script language="javascript" src="../script/Html.js"></script>
<link href="Css/Style.css" rel="stylesheet" type="text/css">
</head>

<body>
<%
 

 If Request.cookies("xuan"&SortId)<>"ok"  Then %>
<form action="?act=very&id=<%=id%>" method="post" name="formx" id="formx" style="text-align:center;margin-top:200px">
请输入<%=sname%>密码:<input name="pwd" type="text" id="pwd">
<input type="submit" value="提交">
</form>
<%
RESponse.End()
   End If %>
X