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

📄 userscoreedit_save.asp

📁 网络棋牌服务端简单的聊天程序界面
💻 ASP
字号:
<!--#include file="../inc/conn.asp"-->
<% 
if session("chat_admin")<>"yes" then
  response.redirect "login.asp"
  response.end
end if
reg_err=""
username=trim(request.form("username"))
gameid=request.form("gameid")
userid=request.form("userid")
score=request.form("score")
gamecount=request.form("gamecount")
ying=request.form("ying")
shu=request.form("shu")
he=request.form("he")
taopao=request.form("taopao")
diaoxian=request.form("diaoxian")
myurl=request.form("myurl")
function formatint(ival)
 if isnull(ival) or ival="" then ival=0
 intval=0
 on error resume next
 intval=cint(ival)
 formatint=intval
end function
if username="" or gameid="" or userid="" or score="" then
  reg_err="修改资料失败,用户名,游戏ID,用户ID,游戏积分不能为空!"
else
 Conn = DBCN()
 set rs = Server.CreateObject("ADODB.Recordset")
 sql="select * from "&gameid&"_score where userid=" & userid
 rs.open sql,conn,3,3
 if Not rs.eof then
    rs("score")=formatint(score)
    rs("ying")=formatint(ying)
    rs("shu")=formatint(shu)
    rs("he")=formatint(he)
    rs("gamecount")=formatint(gamecount)
    rs("taopao")=formatint(taopao)
    rs("diaoxian")=formatint(diaoxian)
    rs.update
    reg_err=""
  else
    reg_err="没有找到相应的用户游戏积分记录。"
  end if
  rs.close
  set rs=nothing
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户管理(修改用户游戏积分)</title>
<style type="text/css">
<!--
.p9 {font-size: 10pt; line-height: 14pt }
-->
</style>
</head>
<body topmargin="3" leftmargin="3">
<table border="0" width="100%" bgcolor="#C8C9D2">
  <tr>
    <td width="52%"><strong>JChat注册用户管理面板</strong></td>
    <td width="48%">
      <p align="right" class="p9"><a href="logout.asp"><font color=red>退出系统</font></a>&nbsp;&nbsp; <a href="http://www.easyfad.com">技术支持</a>&nbsp;&nbsp; <a href="http://www.jchat.com.cn">关于JChat</a></td>
  </tr>
</table>
<table border="0" width="100%" height="85%" bgcolor="#E7E7EB">
  <tr>
    <td width="100%" class="p9" valign="top"><br>
<%
if reg_err="" then
   response.write "<p>修改用户游戏积分成功。<a href=""#"" onclick=""history.back(0);return false;"">返回</a>"
else
   response.write reg_err & "<a href=""#"" onclick=""history.back(0);return false;"">返回</a>"
end if
%>
 </td>
  </tr>
</table>
<table border="0" width="100%" bgcolor="#C8C9D2">
  <tr>
    <td width="100%" class="p9">
      <p align="right">版本:<font color="#FF0000">JGame V2.0.2</font>&nbsp;&nbsp;</p> 
    </td> 
  </tr> 
</table> 
</body>
</html>

⌨️ 快捷键说明

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