用户审核问题
在线的朋友帮忙看一下,急用的,在后台审核用户后,前台再登录,它都会弹出第二个if语句的(未通过审核.)! 后台设置用户审核的字段是passed值为数值型:0未审核,1已审核!
<%
if request.cookies("shopxp")("username")="" then
'response.Write ("非注册会员不能查看此信息!")
response.Write "<script LANGUAGE='javascript'>alert('非注册会员不能查看此信息!');history.go(-1);</script>"
else
if request.cookies("shopxp")("passed")=0 then
response.Write "<script LANGUAGE='javascript'>alert('未通过审核用户不能查看此信息!请与管理员联系!');history.go(-1);</script>"
%>
<%else%>
<td height="380" align="left" valign="top">
<%if rsPro.eof then%>
对不起,找不到你所需要的记录!
<%else
PageSetup=8 '设定每页的显示数量
TotalPage=Abs(Int(Count/PageSetup*(-1))) '总页数
PageCount = cint(request.QueryString("PageIndex")) '获取当前页
if PageCount <1 then PageCount = 1
if PageCount > TotalPage then PageCount = TotalPage
if TotalPage>1 then rsPro.Move (PageCount-1) * pagesetup
i=0
do while not rsPro.eof and i<pageSetup
%>
<div id="proList"><a href="productDetail.asp?ID=<%=rsPro("ID")%>" target="_self"><img src="manage/<%=rsPro("defaultPicUrl")%>" width="110" height="110" <%if rsPro("passed")=true then%>style="border:1px #ff0000 solid;"<%else%>style="border:1px #000000 solid;"<%end if%>></a></div>
<%
rsPro.movenext
i=i+1
loop
rsPro.close
set rsPor=nothing
end if%></td>
</tr>
<tr>
<td align="right">
<%if totalPage>1 then%>
<%dim pageUrl
pageUrl=ReplaceText(request.QueryString,"PageIndex=([0-9]*)&","")
if request.Form<>empty then PageUrl=""&PageUrl&"&"&request.Form&""
%><script type="text/javascript">ShowPage(<%=TotalPage%>,<%=PageCount%>,"<%=PageUrl%>")</script>
<%end if%>
</td>
<%
end if
end if
%>