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

📄 editinfo2.asp

📁 网络棋牌服务端简单的聊天程序界面
💻 ASP
字号:
<!--#include file="../inc/conn.asp"--><% if session("chat_admin")<>"yes" then  response.redirect "login.asp"  response.end end ifuserid=request("userid")if userid="" then   response.write "无效的用户ID,请先选择一个用户。"   response.endend if%><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>用户管理(修改用户资料)</title><style type="text/css"><!--.p9 {font-size: 9pt; line-height: 14pt }A:link {COLOR: #0000ff; TEXT-DECORATION: underline }A:hover{COLOR: #EB551D; TEXT-DECORATION: none }A:active{COLOR: #EB551D }--></style></head><script language="javascript">function verify(){  regform.userimg.value=""+document.UserImage.getUserImage();  regform.biguserimg.value=""+document.UserBigImage.getUserBigImage();  if(!valid_year(regform.iyear.value))  {     alert("请填写正确的生日。");     regform.iyear.focus();     return false;  }    return true;}function valid_year(str){ 	if(str.length!=4)	  return false;        else if(str.substring(0,1)=='0')          return false;	Re=/\D/;	A1=Re.exec(str);	if(A1)	    return false; 	else	    return true;}</script><% usersex="1" userimg="1" biguserimg="0,0,0,0" borthday="" question="" answer="" realname="" address="" phone="" iyear="19" imonth="1" iday="1" menpai="" zhiwu="" Conn = DBCN() set rs = Server.CreateObject("ADODB.Recordset") sql="select * from [userinfo] where userid=" & userid rs.open sql,conn,3,3 if Not rs.eof then  usersex=rs("usersex")  userimg=rs("userimg")  biguserimg=rs("biguserimg")  borthday=rs("borthday")  question=rs("question")  answer=rs("answer")  realname=rs("realname")  address=rs("address")  phone=rs("phone")  menpai=rs("menpai")  zhiwu=rs("zhiwu")  if len(borthday)>7 then   iyear=Mid(borthday,1,4)   imonth=Mid(borthday,6,2)   iday=right(borthday,2)   imonth = replace(imonth, "-", "")   iday = replace(iday, "-", "")  end if end if%><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="90%" bgcolor="#E7E7EB">  <tr>    <td width="100%" class="p9" valign="top"><br><br><a href="index.asp">首页</a>-&gt;<a href="user_edit.asp?userid=<%=userid%>">用户基本资料</a>-&gt;用户附加资料<form name="regform" METHOD=POST ACTION="editinfo2_save.asp" onsubmit="return verify();"><input type="hidden" name="userid" value="<%=userid%>"> <input type="hidden" name="userimg" value="<%=userimg%>"> <input type="hidden" name="biguserimg" value="<%=biguserimg%>"> <table border="1" width="93%" bordercolor="#71ACBD" cellspacing="0" cellpadding="0">        <tr>          <td width="16%" class="p9">用户ID:</td>          <td width="84%" class="p9"><font color=red><%=userid%></font></td>        </tr>        <tr>          <td width="16%" class="p9">性别:</td>          <td width="84%" class="p9"><select size="1" name="usersex"><option value="1">男</option><option value="2" <% if usersex="2"  then response.write "selected" %>>女</option></select></td>        </tr>        <tr>          <td width="16%" class="p9">聊天小头像:</td>          <td width="84%" class="p9"><applet code=UserImage.ImgApp.class codebase=../../chat370 archive="imgapp.jar" name="UserImage" width=85 height=25>       <param name="cabbase"  value="imgapp.cab">       <param name="isbigselect" value="0">       <param name="imgidx" value="<%=userimg%>">       <param name="bgcolor" value="E7E7EB">       你的浏览器不支持Java,请安装浏览器java的支持插件。       <br>请看<b><a href="../../help/javainstall.htm">浏览器安装java的支持的帮助</a></b>       </applet></td>        </tr>        <tr>          <td width="16%" class="p9">游戏室肖像:</td>          <td width="84%" class="p9"><applet code=UserImage.ImgApp.class codebase=../../jgame202/ archive="imgapp.jar" name="UserBigImage" width=106 height=52>       <param name="cabbase"  value="gameimages.cab,imgapp.cab">       <param name="bgcolor" value="E7E7EB">       <param name="isbigselect" value="1">       <param name="bigimgcount" value="20,16,46,21">       <param name="bigimg" value="<%=biguserimg%>">       </applet></td>        </tr>        <tr>          <td width="16%" class="p9">真实姓名:</td>          <td width="84%" class="p9"><input type="text" name="realname" size="10" maxlength="10" value="<%=realname%>"></td>        </tr>        <tr>          <td width="16%" class="p9">联系地址:</td>          <td width="84%" class="p9"><input type="text" name="address" size="30" maxlength="40" value="<%=address%>"></td>        </tr>        <tr>          <td width="16%" class="p9">联系电话:</td>          <td width="84%" class="p9"><input type="text" name="phone" size="12" maxlength="12" value="<%=phone%>"></td>        </tr>        <tr>          <td width="16%" class="p9">生日:</td>          <td width="84%" class="p9"><input type="text" name="iyear" size="4" maxlength="4" value="<%=iyear%>">年<select size="1" name="imonth"><script><%response.write "var omonth=" & imonth & ";" & vbcrlfresponse.write "var oday=" & iday & ";" & vbcrlf%>for(var i=1;i<13;i++){  var isel="";  if(i==omonth)    isel="selected";  document.write("<option value=\""+i+"\" "+isel+">"+i+"</option>");}</script></select>月<select size="1" name="iday"><script>for(var i=1;i<31;i++){  var isel="";  if(i==oday)    isel="selected";  document.write("<option value=\""+i+"\" "+isel+">"+i+"</option>");}</script></select>日</td>        </tr>        <tr>          <td width="16%" class="p9">密码取回提示的问题:</td>          <td width="84%" class="p9"><input type="text" name="question" size="20" maxlength="30" value="<%=question%>"><font color="#7C7C7C">(例如:我的哥哥是谁?)</font></td>        </tr>        <tr>          <td width="16%" class="p9">问题的答案:</td>          <td width="84%" class="p9"><input type="text" name="answer" size="20" maxlength="20" value="<%=answer%>"></td>        </tr>        <tr>          <td width="16%" class="p9">门派:</td>          <td width="84%" class="p9"><input type="text" name="menpai" size="20" maxlength="20" value="<%=menpai%>"></td>        </tr>        <tr>          <td width="16%" class="p9">职务:</td>          <td width="84%" class="p9"><input type="text" name="zhiwu" size="20" maxlength="20" value="<%=zhiwu%>"></td>        </tr>      </table>      <div align="center"><center><p><br>      <input type="submit" value="提 交">       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button"      value="取 消" onclick="history.back(0);"></p>      </center></div><div align="center"><center><p><br>      </td>    </tr>  </table></form> </td>  </tr></table><table border="0" width="100%" bgcolor="#C8C9D2">  <tr>    <td width="100%" class="p9">      <p align="right">版本:<font color="#FF0000">JChat V3.7.0</font>&nbsp;&nbsp;</p>     </td>   </tr> </table> </body></html>

⌨️ 快捷键说明

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