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

📄 ad_kf.asp

📁 1。玩家通过游戏里的帐号登陆到客服系统,系统记录玩家的帐号和角色1、角色2。 2.玩家需要自行选择自己的问题种类及所在游戏区、服(我就一个啦
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="fn/conn.asp"-->
<%
'下面开始成员过滤,非管理员不能登陆此界面
if session("admin")="" or session("step")<1 then
response.redirect "login.asp"
end if
%>
<!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=gb2312" />
<title></title>
<link href="newimages/css_global.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE5 {color: #FF0000}
body,td,th {
	font-size: 12px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style21 {font-size: 14px}
.STYLE22 {color: #0000FF}
.STYLE24 {color: #FF00FF}
-->
</style>
</head>
<body>
<script language="javascript">
function pageii(i){
document.gopage.currentpage.value=i;
document.gopage.submit();
}
function pagei(tname){
document.gopage.tname.value=tname;
document.gopage.submit();
}
</script>
<body>
<table width="810" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="middle"><hr align="left" width="98%" color="#4a7ac9" size="1" />
      <div align="center" class="STYLE5">无双客服后台处理系统        </div>
      <hr align="left" width="98%" color="#4a7ac9" size="1" /></td>
  </tr>
  <tr>
    <td><div align="center" class="STYLE22">请及时处理‘<span class="STYLE24">未处理问题</span>’和‘<span class="STYLE24">初步处理问题</span>’!</div></td>
  </tr>
  <tr>
    <td><table width="810" height="180" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#99CCFF">
      <tr>
        <td width="810" height="25"><form name="form1" method="post" action="ad_kf.asp?p=search">
          <input name="tname" type="radio" value="1" checked="checked" />
          全部未处理问题
          <input name="tname" type="radio" value="2" />
          全部初步处理问题
          <input name="tname" type="radio" value="3" />
          全部最终处理问题
          <input name="tname" type="radio" value="4" />
          按通行证查:
              <input name="xmid" id="xmid" size="15" maxlength="50" />
        <input name="orderButton" type="submit" class="button" value="开始查询" size="20" />   </form></td>
      </tr>
      <tr>
        <td height="165"><table width="805" border="1" cellpadding="0" cellspacing="0" bordercolor="#006600" bgcolor="#ffffff" id="tableBox">
            <tbody>
              <tr bgcolor="#eaeaea" height="24">
                <td width="46" align="middle"><div align="center">编号</div></td>
                <td width="101" align="middle"><div align="center">通行证</div></td>
                <td width="83" align="middle"><div align="center">游戏区</div></td>
                <td width="94" align="middle"><div align="center">角色名</div></td>
                <td width="195" align="middle"><div align="center">所提问题</div></td>
                <td width="136" align="middle"><div align="center">递交日期</div></td>
                <td width="80" align="middle" bgcolor="#EAEAEA"><div align="center"><span class="smallw">当前处理</span></div></td>
                <td width="52" align="middle" bgcolor="#EAEAEA"><div align="center">删除</div></td>
              </tr>
              <tr>
                <td bgcolor="#dcdcdc" colspan="9" height="1"><div align="center"></div></td>
              </tr>
			  <%
			set rs=Server.createObject("adodb.recordset")
			
			if request("o")="deldata" then
rs.open "select * from kefu where id="&request("id")&"",conn,3,3
rs.delete
rs.update
rs.close
end if%>
 <%if request.form("tname")=4 then
		 tname=4
		 if request("xmid2")<>"" then
		 xmid=request("xmid2")
		 else		 
			  xmid=request.form("xmid")
		 end if
				strsql="select * from kefu where xmid like '%"&xmid&"%' order by 递交日期 desc"
else 
if request("tname")=2 then
tname=2
strsql="select * from kefu where state='初步处理' order by 递交日期 desc"
else
if request("tname")=3 then
tname=3
strsql="select * from kefu where state='最终处理' order by 递交日期 desc"
else
tname=1
strsql="select * from kefu where state='正在受理' order by 递交日期 desc"
end if
end if
end if
rs.open strsql,conn,1,1
    if rs.eof then
    %>
              <tr>
                <td height="25" colspan="18"><p align="center"><font color="#FF0000">暂时没有客服问题!</font></p></td>
              </tr>
              <%
else
const maxperpage=20 '定义每一页显示的数据记录的常量
dim currentpage '定义当前页的变量
rs.pagesize=maxperpage
currentpage=request.form("currentpage")
if currentpage="" or not Isnumeric(currentpage) then
currentpage=1
elseif currentpage<1 then
currentpage=1
else
currentpage=clng(currentpage)
	if currentpage > rs.pagecount then
	currentpage=rs.pagecount
	end if
end if
''如果变量currentpage的数据类型不是数值型
'就1赋给变量currentpage
if not isnumeric(currentpage) then'
currentpage=1
end if
dim totalput,n ''定义变量
totalput=rs.recordcount
if totalput mod maxperpage=0 then
n=totalput\maxperpage
else
n=totalput\maxperpage+1
end if
if n=0 then
n=1
end if
rs.move(currentpage-1)*maxperpage
i=0
%>
              <%do while i< maxperpage and not rs.eof%>
              <tr bgcolor="#ffffff" height="24">
                <td align="middle"><div align="center"><%=rs("id")%></div></td>
                <td align="middle"><div align="center"><%=rs("xmid")%></div></td>
                <td align="middle"><div align="center"><span class="STYLE5"><%=rs("qu")%></span></div></td>
                <td align="middle"><div align="center"><%=rs("js")%></div></td>
                <td align="middle"><div align="center"><%=left(rs("事件"),14)%></div></td>
                <td align="middle"><div align="center"><%=rs("递交日期")%></div></td>
                <td align="middle"><div align="center"><a href="ad_kfback.asp?id=<%=rs("id")%>" target="_self"><%if rs("state")="最终处理" then%>
								  <font color=red>
								  <%else%>
								  <font color=blue>
								  <%end if%>
								  <%=rs("state")%></font></a></div></td>
                <td align="middle"><div align="center"><a href="ad_kf.asp?id=<%=rs("id")%>&o=deldata"><font color=red>删除</font></a></div></td>
              </tr>
              <tr>
                <td bgcolor="#dcdcdc" colspan="9" height="1"></td>
              </tr>
              <%
      i=i+1
    rs.movenext
    loop
    end if
    %>
            </tbody>
          </table>
            <table>
              <tbody>
                <tr>
                  <td align="middle"><form action="viewNetcafe.billing" method="post" name="pag" id="pag">
                    页数:<font color="red"><%=currentpage%></font>/
                    <% =n%>
                    <% k=currentpage                    
   	if k<>1 then%>
                    [<a class="link" href="javascript:pageii(1);">首页</a>]                    
                    [<a class="link" href="javascript:pageii(<%=k-1%>);">上一页</a>]
                    <%else%>
                    [首页]&nbsp;[上一页]
                    <%end if%>
                    <%if k<>n then%>
                    [<a class="link" href="javascript:pageii(<%=k+1%>);">下一页</a>]                    
                    [<a class="link" href="javascript:pageii(<%=n%>);">尾页</a>]
                    <%else%>
                    [下一页]&nbsp;[尾页]
                    <%end if%>
                    共有<font color="red"><%=totalput%></font>个提交问题
                    <select onchange="javascript:pageii(document.pag.pag.value)" size="1" id="pag" name="pag" style="background-attachment: scroll; background-repeat: repeat; font-size: 9pt; height: 23; width: 96; background-color: #FFFFFF; border: 1 solid #000000; background-position: none 0%">
                      <%
          i=1
          do while not i > n
          %>
                      <option value="<%=I%>" selected="selected" <%if i=currentpage then %>selected<%end if%>>第 <%=i%> 页</option>
                      <%
          i=i+1
          loop
          %>
                    </select>
                  </form></td>
                </tr>
              </tbody>
          </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
	  <form action="" method="post" name="gopage">
<input type="hidden" name="currentpage" value="">
<input type="hidden" name="tname" value="<%=tname%>">
<input type="hidden" name="xmid" value="<%=xmid%>">
<input type="hidden" name="ip" value="<%=ip%>">
      </form>
</body>
</html>

⌨️ 快捷键说明

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