<!-- #include file="../conn.asp" -->
<!--#include file="admin.asp"-->
<%Call Head()
call saycarda("报错记录")
%>




<%
Dim yd,ydd,softname,errcontent
	Set Rs = Server.CreateObject("Adodb.Recordset")
	Sql = "SELECT id,Sid,ids,cid,softname,msg,errtype,errcontent,errtime from xzerr order by errtime desc"
	Rs.Open Sql,conn,1,1
	If Not rs.eof	Then
	PageSize=10					
	Dim Count,page,pagecount,gopage,parent			
	gopage="err.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;"
	Count=rs.recordcount
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize	
        if page>pagecount then page=pagecount	
	rs.move(pagesize*(page-1))				
	For i=1 To PageSize       						
	If rs.eof Then Exit For	
if rs("errtype")="1" then yd="下载链接无效"
if rs("errtype")="2" then yd="软件无法安装"
if rs("errtype")="3" then yd="携带恶意插件"
if rs("errtype")="4" then yd="软件资料有误"
if rs("errtype")="5" then yd="其他报错"	
if rs("msg")<>"0" then 
ydd="不存在"	
else
ydd="存在"	
end if
if rs("softname")<>"" then 
softname=rs("softname")
else
softname="不存在的记录"
end if
%><%=i+(page-1)*PageSize%>.<a href="../../soft_view.asp?id=<%=rs("sid")%>&amp;cid=<%=rs("cid")%>&amp;class=<%=rs("ids")%>"><%=ubb(softname)%></a><br/>
出错类型:<%=ubb(yd)%> 系统数据:<%=ubb(ydd)%><br/>
错误描述:<%
if rs("errcontent")<>"" then 
errcontent=rs("errcontent")
else
errcontent="无"
end if%>
<%=ubb(errcontent)%><br/>
报错时间:<%=rs("errtime")%><br/>
<%     
	rs.moveNext
  								
	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/><b>"&page&"</b>/"&pagecount&"页<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">[GO]</a>"
Else
%>
	(没有记录)

<%end if
rs.close
set rs=nothing%>
<br/>--------<br/>
<a href='qkerr.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>'>[清空记录]</a><br/>
<a href='wjcl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>'>[文件管理]</a><br/>
<a href="../index.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[后台管理]</a>

<%call headsay()%>