⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jzz_index.asp

📁 本程序采用ACC数据核心构件!! 功能介绍: 程序代码重新设计与优化
💻 ASP
字号:
<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/code.asp"-->
<!--#include file="inc/inc.asp"-->
<%call head()%>
<body>
<div id="top-bg">
<div id="public-body">
<!--#include file="Top.asp"-->
<div id="page-link">
<%
start="家族战信息,"&Renovates&""
if not isempty(request("page")) then
	currentPage=cint(request("page"))
else
	currentPage=1
end if
menu=htmlencode(request("menu"))
if menu="" or (not isnumeric(menu)) or isnull(menu) then
	menu="all"
end if
set rs = server.createobject("adodb.recordset")
call head()
%>
<script>

function show(tips,flag,url){
var my_tips=document.all.mytips;
if(flag){
    my_tips.style.display="";
    if (url!=null){my_tips.innerHTML="<table><tr><td><table width=300 cellpadding='5' style='border-left: 1 solid #E6E6E6; border-right: 1 solid #E6E6E6; border-bottom: 1 solid #E6E6E6; border-top: 1 solid #E6E6E6'><tr><td>"+tips+"</td></tr><table>";}
    else{ my_tips.innerHTML=tips;}
my_tips.style.left=event.clientX+10;
my_tips.style.top=document.body.scrollTop+event.clientY;
   }
else 
  {
   my_tips.style.display="none";
   }
}
</script>
<div id=mytips style="position:absolute;width:300;height:16;border:1 gray solid;font-size:9pt;background-color:#ffffff;color:red;display:none;filter: progid:DXImageTransform.Microsoft.Shadow(color=#808080,direction=135,strength=3);"></div>
<TABLE width=984 border=0 align=center cellPadding=5 cellSpacing=1 bgColor=#990000>
  <tr bgColor=#FF9900 height="30">
    <td width="120" align="center"><b><FONT color=#ffffff>对战家族①</FONT></b></td>
    <td width="120" align="center"><b><FONT color=#ffffff>对战家族②</FONT></b></td>
    <td width="115" align="center"><b><FONT color=#ffffff>对战时间</FONT></b></td>
    <td width="55" align="center"><b><FONT color=#ffffff>所在游戏</FONT></b></td>
    <td width="125" align="center"><b><FONT color=#ffffff>对战服务器</FONT></b></td>
    <td width="103" align="center"><b><FONT color=#ffffff>战果</FONT></b></td>
    <td width="42" align="center"><b><FONT color=#ffffff>关注度</FONT></b></td>
    <td width="80" align="center"><b><FONT color=#ffffff>关注一下</FONT></b></td>
  </tr>
  <%
'固定家族列表
if menu<>"all" then
sql="select Gq_jzzdata.id,Gq_jzzdata.jzname,Gq_jzzdata.vsname,Gq_jzzdata.vstime,Gq_jzzdata.jzmaster,Gq_jzzdata.jzqq,Gq_jzzdata.jzTel,Gq_jzzdata.vsserver,Gq_jzzdata.about,Gq_jzzdata.vsweb,Gq_jzzdata.vswebqq,Gq_jzzdata.vswebtel,Gq_jzzdata.addtime,Gq_jzzdata.gameid,Gq_jzzdata.hits,Gq_jzzdata.gameover,Gq_jzzdata.ulock,Gq_jzzdata.top,Gq_gametype.game "
sql=sql&" from Gq_Jzzdata,Gq_gametype where Gq_Jzzdata.gameid=Gq_gametype.id and Gq_Jzzdata.top=true and Gq_Jzzdata.gameid="&menu
sql=sql&" and Gq_Jzzdata.ulock=true order by Gq_Jzzdata.hits desc"
else
sql="select Gq_jzzdata.id,Gq_jzzdata.jzname,Gq_jzzdata.vsname,Gq_jzzdata.vstime,Gq_jzzdata.jzmaster,Gq_jzzdata.jzqq,Gq_jzzdata.jzTel,Gq_jzzdata.vsserver,Gq_jzzdata.about,Gq_jzzdata.vsweb,Gq_jzzdata.vswebqq,Gq_jzzdata.vswebtel,Gq_jzzdata.addtime,Gq_jzzdata.gameid,Gq_jzzdata.hits,Gq_jzzdata.gameover,Gq_jzzdata.ulock,Gq_jzzdata.top,Gq_gametype.game "
sql=sql&" from Gq_Jzzdata,Gq_gametype where Gq_Jzzdata.gameid=Gq_gametype.id and Gq_Jzzdata.top=true "
sql=sql&" and Gq_Jzzdata.ulock=true order by Gq_Jzzdata.hits desc"
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
	rs.close
else
%>
  <%do while not rs.eof%>
  <TR bgColor='#ffff00' onmouseover=javascript:this.bgColor='#FFCCFF' onmouseout=javascript:this.bgColor='#ffff00'>
    <td><a href="#" onClick="window.open('Jzz_display.asp?id=<%=rs("id")%>','info','scrollbars=yes,resizable=no,width=520,height=420,menubar=no,left=0')" tips="对战家族名称:<%=rs("jzname")%> VS <%=rs("vsname")%><BR>对战时间:<%=formatdatetime(rs("vstime"),2)%>&nbsp;<%=formatdatetime(rs("vstime"),4)%><BR>所在游戏:<%=rs("game")%><br>对战服务器:<%=rs("vsserver")%><br>对战结果:<%if rs("gameover")=0 then response.write "<font color=#ff0000>对战尚无结果</font>" else if rs("gameover")=1 then response.write ""&rs("jzname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=2 then response.write ""&rs("vsname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=3 then response.write "<font color=#ff0000>双方战和</font>" end if end if end if end if%>" onmousemove=show(this.tips,1,'<%=pic%>') onmouseout=show(this.tips,0)><%=rs("jzname")%></a></td>
    <td><a href="#" onClick="window.open('Jzz_display.asp?id=<%=rs("id")%>','info','scrollbars=yes,resizable=no,width=520,height=420,menubar=no,left=0')" tips="对战家族名称:<%=rs("jzname")%> VS <%=rs("vsname")%><BR>对战时间:<%=formatdatetime(rs("vstime"),2)%>&nbsp;<%=formatdatetime(rs("vstime"),4)%><BR>所在游戏:<%=rs("game")%><br>对战服务器:<%=rs("vsserver")%><br>对战结果:<%if rs("gameover")=0 then response.write "<font color=#ff0000>对战尚无结果</font>" else if rs("gameover")=1 then response.write ""&rs("jzname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=2 then response.write ""&rs("vsname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=3 then response.write "<font color=#ff0000>双方战和</font>" end if end if end if end if%>" onmousemove=show(this.tips,1,'<%=pic%>') onmouseout=show(this.tips,0)><%=rs("vsname")%></a></td>
    <td><%=formatdatetime(rs("vstime"),2)%>&nbsp;<%=formatdatetime(rs("vstime"),4)%></td>
    <td align="center"><%=rs("game")%></td>
    <td align="center"><%=rs("vsserver")%></td>
    <td align="center"><%if rs("gameover")=0 then response.write "<font color=#ff0000>对战尚无结果</font>" else if rs("gameover")=1 then response.write ""&rs("jzname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=2 then response.write ""&rs("vsname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=3 then response.write "<font color=#ff0000>双方战和</font>" end if end if end if end if%></td>
    <td><INPUT id=hits maxLength=20 size=5 value=<%=rs("hits")%> name=hits disabled></td>
    <form method=POST action='jzzvote.asp'>
      <td><input name="rc" type="hidden" value="<%=rs("id")%>">
          <input type=hidden name=IsSub value=YES>
          <input type=hidden name=SS value=<%=rs("id")%>>
          <input name="submit" type=submit style=background-color: value=关注一下></td>
    </form>
  </tr>
  <% 
rs.movenext
loop
rs.close
end if
%>
  <%
'非固定家族列表
if menu<>"all" then
sql="select Gq_jzzdata.id,Gq_jzzdata.jzname,Gq_jzzdata.vsname,Gq_jzzdata.vstime,Gq_jzzdata.jzmaster,Gq_jzzdata.jzqq,Gq_jzzdata.jzTel,Gq_jzzdata.vsserver,Gq_jzzdata.about,Gq_jzzdata.vsweb,Gq_jzzdata.vswebqq,Gq_jzzdata.vswebtel,Gq_jzzdata.addtime,Gq_jzzdata.gameid,Gq_jzzdata.hits,Gq_jzzdata.gameover,Gq_jzzdata.ulock,Gq_jzzdata.top,Gq_gametype.game "
sql=sql&" from Gq_Jzzdata,Gq_gametype where Gq_Jzzdata.gameid=Gq_gametype.id and Gq_Jzzdata.top=false and Gq_Jzzdata.gameid="&menu
sql=sql&" and Gq_Jzzdata.ulock=true order by Gq_Jzzdata.hits desc"
else
sql="select Gq_jzzdata.id,Gq_jzzdata.jzname,Gq_jzzdata.vsname,Gq_jzzdata.vstime,Gq_jzzdata.jzmaster,Gq_jzzdata.jzqq,Gq_jzzdata.jzTel,Gq_jzzdata.vsserver,Gq_jzzdata.about,Gq_jzzdata.vsweb,Gq_jzzdata.vswebqq,Gq_jzzdata.vswebtel,Gq_jzzdata.addtime,Gq_jzzdata.gameid,Gq_jzzdata.hits,Gq_jzzdata.gameover,Gq_jzzdata.ulock,Gq_jzzdata.top,Gq_gametype.game "
sql=sql&" from Gq_Jzzdata,Gq_gametype where Gq_Jzzdata.gameid=Gq_gametype.id and Gq_Jzzdata.top=false "
sql=sql&" and Gq_Jzzdata.ulock=true order by Gq_Jzzdata.hits desc"
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
	rs.close
else
	totalPut=rs.recordcount 
	if currentpage<1 then 
		currentpage=1 
	end if 
	if (currentpage-1)*MaxPerPage>totalput then 
		if (totalPut mod MaxPerPage)=0 then 
	  		currentpage= totalPut \ MaxPerPage 
		else 
			currentpage= totalPut \ MaxPerPage + 1 
		end if 
	end if 
 	if currentPage=1 then 
		showContent 
		showpage totalput,MaxPerPage,"jzz_index.asp" 
 	else 
 		if (currentPage-1)*MaxPerPage<totalPut then 
			rs.move  (currentPage-1)*MaxPerPage 
			showContent 
 			showpage totalput,MaxPerPage,"jzz_index.asp" 
  		else 
	  		currentPage=1 
  			showContent 
  			showpage totalput,MaxPerPage,"jzz_index.asp" 
			end if 
		end if 
		rs.close 
	end if
	sub showContent 
 	dim i 
	i=0 
%>
  <%do while not rs.eof%>
  <TR bgColor=#FFFFEE onmouseover=javascript:this.bgColor='#FFFFCC' onmouseout=javascript:this.bgColor='#FFFFEE'>
    <td><a href="#" onClick="window.open('Jzz_display.asp?id=<%=rs("id")%>','info','scrollbars=yes,resizable=no,width=520,height=420,menubar=no,left=0')" tips="对战家族名称:<%=rs("jzname")%> VS <%=rs("vsname")%><BR>对战时间:<%=formatdatetime(rs("vstime"),2)%>&nbsp;<%=formatdatetime(rs("vstime"),4)%><BR>所在游戏:<%=rs("game")%><br>对战服务器:<%=rs("vsserver")%><br>对战结果:<%if rs("gameover")=0 then response.write "<font color=#ff0000>对战尚无结果</font>" else if rs("gameover")=1 then response.write ""&rs("jzname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=2 then response.write ""&rs("vsname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=3 then response.write "<font color=#ff0000>双方战和</font>" end if end if end if end if%>" onmousemove=show(this.tips,1,'<%=pic%>') onmouseout=show(this.tips,0)><%=rs("jzname")%></a></td>
    <td><a href="#" onClick="window.open('Jzz_display.asp?id=<%=rs("id")%>','info','scrollbars=yes,resizable=no,width=520,height=420,menubar=no,left=0')" tips="对战家族名称:<%=rs("jzname")%> VS <%=rs("vsname")%><BR>对战时间:<%=formatdatetime(rs("vstime"),2)%>&nbsp;<%=formatdatetime(rs("vstime"),4)%><BR>所在游戏:<%=rs("game")%><br>对战服务器:<%=rs("vsserver")%><br>对战结果:<%if rs("gameover")=0 then response.write "<font color=#ff0000>对战尚无结果</font>" else if rs("gameover")=1 then response.write ""&rs("jzname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=2 then response.write ""&rs("vsname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=3 then response.write "<font color=#ff0000>双方战和</font>" end if end if end if end if%>" onmousemove=show(this.tips,1,'<%=pic%>') onmouseout=show(this.tips,0)><%=rs("vsname")%></a></td>
    <td><%=formatdatetime(rs("vstime"),2)%>&nbsp;<%=formatdatetime(rs("vstime"),4)%></td>
    <td align="center"><%=rs("game")%></td>
    <td align="center"><%=rs("vsserver")%></td>
    <td align="center"><%if rs("gameover")=0 then response.write "<font color=#ff0000>对战尚无结果</font>" else if rs("gameover")=1 then response.write ""&rs("jzname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=2 then response.write ""&rs("vsname")&" <font color=#ff0000>胜</font>" else if rs("gameover")=3 then response.write "<font color=#ff0000>双方战和</font>" end if end if end if end if%></td>
    <td><INPUT id=hits maxLength=20 size=5 value=<%=rs("hits")%> name=hits2 disabled></td>
    <form method=POST action='jzzvote.asp'>
      <td><input name="rc" type="hidden" value="<%=rs("id")%>">
          <input type=hidden name=IsSub value=YES>
          <input type=hidden name=SS value=<%=rs("id")%>>
          <input name="submit" type=submit style=background-color: value=关注一下></td>
    </form>
  </tr>
  <%
i=i+1
if i>=MaxPerPage then exit do
	rs.movenext 
loop
rs.close
end sub
%>
</table>
</TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=770 align=center border=0>
  <TBODY>
  <TR>
    <TD height=3></TD></TR></TBODY></TABLE>
<%
function showpage(totalnumber,maxperpage,filename)
  	dim n
  	if totalnumber mod maxperpage=0 then
  		n= totalnumber \ maxperpage
  	else
  		n= totalnumber \ maxperpage+1
  	end if
  	response.write "<TABLE cellSpacing=1 cellPadding=5 width=964 align=center bgColor=#FFFFCC border=0><tr><form method=Post action="&filename&"?menu="&menu&"><td align=right>"

  	if CurrentPage<2 then
 		response.write "<font color=#000000>共"&totalnumber&"条记录&nbsp;首页 上页&nbsp;</font>"
  	else
 		response.write "<font color=#000000>共"&totalnumber&"条记录&nbsp;<a href="&filename&"?page=1&menu="&menu&">首页</a>&nbsp;"
 		response.write "<font color=#000000><a href="&filename&"?page="&CurrentPage-1&"&menu="&menu&">上页</a>&nbsp;"
  	end if

  	if n-currentpage<1 then
 		response.write "<font color=#000000>下页 尾页</font>"
  	else
 		response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&menu="&menu&">"
 		response.write "<font color=#000000>下页</a> <a href="&filename&"?page="&n&"&menu="&menu&">尾页</a></font>"
  	end if
	response.write "<font color=#000000>&nbsp;页次:</font><b><font color=#000000>"&CurrentPage&"/"&n&"</b>页</font> "
 	response.write "<font color=#000000>&nbsp;<b>"&maxperpage&"</b>条记录/页 </font>"
    response.write "</td></form></tr></table>"
end function
set rs=nothing
call footer()
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -