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

📄 index_mb2.asp

📁 发布整站源码 可以再开发~ 本人实用中 效果嗷嗷滴~
💻 ASP
📖 第 1 页 / 共 4 页
字号:
  	if rs.eof and rs.bof then 
 		response.write "<tr bgColor=#FFFFFF><td colspan=9 align=center>当前没有相关私服!请到“<a href=add.asp><font color=red>发布中心</font></a>”发布您的私服。</td></tr>"
 		'call search()
	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,"index.asp" 
 		else 
 		if (currentPage-1)*MaxPerPage<totalPut then 
			rs.move  (currentPage-1)*MaxPerPage 
			showContent 
 			showpage totalput,MaxPerPage,"index.asp" 
  		else 
	  		currentPage=1 
  			showContent 
  			showpage totalput,MaxPerPage,"index.asp" 
			end if 
		end if 
	rs.close 
	end if
	sub showContent 
 	dim i 
	i=0 
	%>
  <%do while not rs.eof%> 
<tr bgColor=#F5F2AF>
    <td width="117">&nbsp;<a href=display.asp?id=<%=rs("id")%> target=show><%=rs("name")%></a></td>
    <td width="145">&nbsp;<%=rs("IP")%></td>
    <td width="218">&nbsp;
    <%if rs("Sdate")<>"" then response.write month(rs("sdate"))&"月"&day(rs("Sdate"))&"日 "&hour(rs("sdate"))&"点开放"%></td>
    <td width="93" align='center'><%=rs("Addr")%></td>
    <td width="78" align='center'><%if menu="all" then response.write rs("game") else response.write split(rsign,",")(rs("renshu")) end if%></td>
    <td width="166"><%=rs("xingzhi")%></td>
    <td width="35" align='center'><a href=display.asp?id=<%=rs("id")%> target=show>查看</a></td>
    <td width="81" align='center'>☆☆☆</td>
  </tr>
   <tr bordercolor="#FFFFFF" bgcolor="#FFFFcc" onmouseover=javascript:this.bgColor='#FFee88' onmouseout=javascript:this.bgColor='#ffffcc'>
    <td >&nbsp;<a href=display.asp?id=<%=rs("id")%> target=show><%=rs("name")%></a></td>
    <tdwidth="108">&nbsp;<%=rs("IP")%></td>
    <td width="201">&nbsp;<%if rs("Sdate")<>"" then response.write year(rs("sdate"))&"年/"&month(rs("sdate"))&"月/"&day(rs("Sdate"))&"日/"&hour(rs("sdate"))&"点开放"%></td>
    <td width="77"><%=rs("Addr")%><%=split(ssign,",")(rs("Service"))%></td>
    <td width="131"><%=rs("xingzhi")%></td>
    <td width="126">客服QQ:<%=rs("email")%></a></td>
    <td width="92"><a href=display.asp?id=<%=rs("id")%> target=show>点击查看</a></td>
    <td width="82">★★★★★</td>
  </tr>   

  <% 
	i=i+1
	if i>=MaxPerPage then exit do
	rs.movenext 
	loop
%>
</table>
<table width="50%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 cellPadding=3 width=780 align=center border=1>
  <TBODY>
    <TR>
      <TD bgcolor="#FFFFFF"><%
		  call search()
		  end sub
		  %></TD>
    </TR>
  </TBODY>
</TABLE>
<table width="50%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<!--#include file="ad.asp"-->
<table width="1004" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
  <tr bordercolor="#FFFFFF" bgcolor="#FF0000" class="style52">
    <td colspan="8" class="style6" bgcolor="#F7941C"><div align="center"><b>
		<span class="style3">※ 私 服 家 族 联 盟 ※</span></b></div></td>
  </tr>
</table>
<div align="center">
<table width="1004" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
  <tr bordercolor="#FFFFFF" bgcolor="#F0F0F0" class="style52">
    <td class="style6" bgcolor="#009900"><b><font color="#FFFFFF">家族名称</font></b></td>
    <td class="style6" width="108" bgcolor="#009900"><b><font color="#FFFFFF">家族QQ群</font></b></td>
    <td class="style49" width="114" bgcolor="#009900"><b><font color="#FFFFFF">家族族长</font></b></td>
    <td class="style49 style6" width="135" bgcolor="#009900"><b><font color="#FFFFFF">创建家族时间</font></b></td>
    <td class="style49" width="111" bgcolor="#009900"><b><font color="#FFFFFF">家族所在游戏</font></b></td>
    <td class="style6" width="69" bgcolor="#009900"><b><font color="#FFFFFF">家族人数</font></b></td>
    <td class="style6" width="60" bgcolor="#009900"><b><font color="#FFFFFF">家族主页</font></b></td>
    <td class="style5" width="70" bgcolor="#009900"><b><font color="#FFFFFF">家族地区</font></b></td>
    <td class="style5" width="81" bgcolor="#009900"><b><font color="#FFFFFF">家族介绍</font></b></td>
  </tr>
  </table>
</div>

<div align="center">
<table width="1004" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<%
'固定家族列表
if menu<>"all" then
sql="select Jzdata.id,Jzdata.name,Jzdata.qq,Jzdata.master,Jzdata.bulid,Jzdata.peo,Jzdata.addr,Jzdata.web,Jzdata.gameid,Gametype.game "
sql=sql&" from Jzdata,Gametype where jzdata.gameid=gametype.id and jzdata.top=true and JzData.gameid="&menu
sql=sql&" and jzdata.ulock=true order by Jzdata.id desc"
else
sql="select Jzdata.id,Jzdata.name,Jzdata.qq,Jzdata.master,Jzdata.bulid,Jzdata.peo,Jzdata.addr,Jzdata.web,Jzdata.gameid,Gametype.game "
sql=sql&" from Jzdata,Gametype where jzdata.gameid=gametype.id and jzdata.top=true "
sql=sql&" and jzdata.ulock=true order by Jzdata.id 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 bordercolor="#FFFFFF" bgcolor="#F0F0F0" class="style52">
    <td class="style6" bgcolor="#FFCC99"><a href=Jz_display.asp?id=<%=rs("id")%> target=_blank><%=rs("name")%></a></td>
    <td class="style6" width="108" bgcolor="#FFCC99"><%=rs("QQ")%></td>
    <td class="style49" width="114" bgcolor="#FFCC99"><%=rs("master")%></td>
    <td class="style49 style6" width="135" bgcolor="#FFCC99"><%=formatdatetime(rs("Bulid"),1)%></td>
    <td class="style49" width="111" bgcolor="#FFCC99"><%=rs("game")%></td>
    <td class="style6" width="69" bgcolor="#FFCC99"><%=rs("peo")%>+</td>
    <td class="style6" width="60" bgcolor="#FFCC99"><%if rs("web")="" or rs("web")="无" or rs("web")="http://" then response.write "--" else response.write "<a href=go.htm?u="&rs("web")&" target=_blank>访问</a>" end if%></td>
    <td class="style5" width="70" bgcolor="#FFCC99"><%=rs("addr")%></td>
    <td class="style5" width="81" bgcolor="#FFCC99"><a href=Jz_display.asp?id=<%=rs("id")%> target=_blank>点击查看</a></td>
  </tr><% 
rs.movenext
loop
rs.close
end if
%>
 <%
'非固定家族列表
if menu<>"all" then
sql="select top 10 Jzdata.id,Jzdata.name,Jzdata.qq,Jzdata.master,Jzdata.bulid,Jzdata.peo,Jzdata.addr,Jzdata.web,Jzdata.gameid,Gametype.game "
sql=sql&" from Jzdata,Gametype where jzdata.gameid=gametype.id and jzdata.top=false and JzData.gameid="&menu
sql=sql&" and jzdata.ulock=true order by Jzdata.id desc"
else
sql="select top 10 Jzdata.id,Jzdata.name,Jzdata.qq,Jzdata.master,Jzdata.bulid,Jzdata.peo,Jzdata.addr,Jzdata.web,Jzdata.gameid,Gametype.game "
sql=sql&" from Jzdata,Gametype where jzdata.gameid=gametype.id and jzdata.top=false "
sql=sql&" and jzdata.ulock=true order by Jzdata.id desc" 
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
	response.write "<tr bgColor=#FFFFFF><td colspan=9 align=center>当前没有"&title3&"家族信息!请到“<a href=jz_add.asp><font color=red>家族发布中心</font></a>”发布您的私服。</td></tr>"
	rs.close
else
%>
  <%do while not rs.eof%>
  <tr bordercolor="#FFFFFF" bgcolor="#F0F0F0" class="style52">
    <td class="style6"><a href=Jz_display.asp?id=<%=rs("id")%> target=_blank><%=rs("name")%></a></td>
    <td class="style6" width="108"><%=rs("QQ")%></td>
    <td class="style49" width="114"><%=rs("master")%></td>
    <td class="style49 style6" width="135"><%=formatdatetime(rs("Bulid"),1)%></td>
    <td class="style49" width="111"><%=rs("game")%></td>
    <td class="style6" width="69"><%=rs("peo")%>+</td>
    <td class="style6" width="60"><%if rs("web")="" or rs("web")="无" or rs("web")="http://" then response.write "--" else response.write "<a href=go.htm?u="&rs("web")&" target=_blank>访问</a>" end if%></td>
    <td class="style5" width="70"><%=rs("addr")%></td>
    <td class="style5" width="81"><a href=Jz_display.asp?id=<%=rs("id")%> target=_blank>点击查看</a></td>
  </tr>
  <% 
rs.movenext
loop
rs.close
end if
%>

  </table>
</div>
<div align="center">
<table width="1004" height="5" border="0" cellpadding="5" cellspacing="1" bgcolor="#C0C0C0">
  <tr>
    <td width="1002" height="5" valign="top" bgcolor="#F0F0F0"> </td>
  </tr>
</table>
</div>
<!--#include file="link.asp"-->
<!--#include file="foot.asp"--> 
<%
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 align=right><tr><form method=Post action="&filename&"?menu="&menu&"><td>"

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

  	if n-currentpage<1 then
 		response.write "下页 尾页"
  	else
 		response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&menu="&menu&">"
 		response.write "下页</a> <a href="&filename&"?page="&n&"&menu="&menu&">尾页</a>"
  	end if
	response.write "&nbsp;页次:<strong><font color=red>"&CurrentPage&"</font>/"&n&"</strong>页 "
 	response.write "&nbsp;<b>"&maxperpage&"</b>条记录/页 "
	response.write "转:<select name='page' size=1 onchange=javascript:submit()>"
	for i = 1 to n
		response.write "<option value="&i&" "
			if cint(Page)=cint(i) then
				response.wirte "selected "
			end if
		response.write ">第"&i&"页</option>"
	next
	response.write "</select></td></form></tr></table>"
end function

sub search()
response.write "<table width=768><form method=get action=search.asp><tr height=30><td bcolspan=9>&nbsp;搜索关键字<input name=key type=text ><SELECT class=input name=otype><OPTION class=input value=name selected>私服名称</OPTION><OPTION class=input value=main>私服介绍</OPTION><OPTION class=input value=ip>私服IP</OPTION><OPTION class=input value=addr>所在地区</OPTION></SELECT>"
if menu="all" then
response.write "查找范围:所有范围<input name=menu type=radio value=all checked>"
else
response.write "查找范围:本类信息<input name=menu type=radio value="&menu&" checked> 所有范围<input name=menu type=radio value=all>"
end if 
response.write "<input type=submit value= 开始查找></td></tr></form></table>"
end sub
set rs=nothing
%>
</body>
</html>
<%
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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