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

📄 personmsg.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" --> 
<html>
<head>
<title>个人设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<script language=javascript src="apply.js">
</script>
<%set rs=server.createobject("adodb.recordset")
  if request.servervariables("Request_Method")="POST" then
  sql="select * from userlist where uid='"&session("uid")&"'"
  rs.open sql,conn,1,3
     if request("qlmm")<>"" then
            if rs("passwd")<>request("srjmm") then
            response.write("<script language=javascript>alert('输入旧密码错误!')</script>")
			response.write("<script language=javascript>document.location='personmsg.asp'</script>")
			rs.close
			conn.close
			response.end
            else
            rs("passwd")=request("qlmm")
           end if
     end if
  rs("name")=request("yhmc")
  rs("mobilephone")=request("mobilephone")
  rs("workphone")=request("workphone")
  rs("email")=request("email")
  rs("bz")=request("bz")
  rs.update
  rs.close
end if
%>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
sql="select * from userlist where uid='"&session("uid")&"'"
rs.open sql,conn,1,1
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="50">
  <tr> 
    <td align="center" class="title"> <img src="images/personmsg1.gif"></td>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td valign="top" width="80" align="left">&nbsp;</td>
    <td valign="top" align="left"> 
      <form method="POST" action="" name="form">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="175">&nbsp;</td>
            <td valign="top"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr> 
                  <td height="35" width="120"> 帐户名称:</td>
                  <td height="35" width="200"> 
                    <input type="text" name="textfield2" value="<%=session("uid")%>" class="nobinput" size="25" readonly maxlength="25">
                  </td>
                  <td height="35" width="140" align="center"> 工作部门:</td>
                  <td height="35"> 
                    <input type="text" name="textfield3" value="<%=session("dep")%>" class="nobinput" size="25" readonly maxlength="25">
                  </td>
                </tr>
                <tr> 
                  <td height="35" width="120"> 帐户类型:</td>
                  <td height="35" width="200"> 
                    <input type="text" name="textfield" value="<%if rs("type")=2 then
				  response.write("系统管理员")
				  else 
				  response.write("普通用户")
				 end if %>" class="nobinput" size="25" readonly maxlength="25">
                  </td>
                  <td height="35" width="140" align="center"> 公文权限:</td>
                  <td height="35"> 
                    <input type="text" name="textfield" value="<%if rs("power")=3 then
				  response.write("领导")
				  end if
				  if rs("power")=2 then 
				  response.write("科级干部")
				  end if
				  if rs("power")=1 then
				  response.write("科员")
				 end if
				  %>" class="nobinput" size="25" readonly maxlength="25">
                  </td>
                </tr>
                <tr> 
                  <td height="36" width="120"> 姓  名:</td>
                  <td height="36" width="200"> 
                    <input type="text" name="yhmc" title="单击输入用户名称" size="25" class="noinput" value="<%=rs("name")%>" maxlength="25">
                  </td>
                  <td height="36" width="140" align="center"> 个人邮箱:</td>
                  <td height="36"> 
                    <input type="text" name="email" title="单击输入邮箱地址" size="25" class="noinput" value="<%=rs("email")%>" maxlength="25">
                  </td>
                </tr>
                <tr> 
                  <td height="35" width="120"> 手机号码:</td>
                  <td height="35" width="200"> 
                    <input type="text" name="mobilephone" title="单击输入移动电话" size="25" class="noinput" value="<%=rs("mobilephone")%>" maxlength="25">
                  </td>
                  <td height="35" width="140" align="center"> 联系电话:</td>
                  <td height="35"> 
                    <input type="text" name="workphone" title="单击输入办公电话" size="25" class="noinput" value="<%=rs("workphone")%>" maxlength="25">
                  </td>
                </tr>
                <tr> 
                  <td height="35" width="120">旧 密 码:</td>
                  <td height="35" width="200"> 
                    <input type="password" name="srjmm" title="单击输入旧密码" size="25" class="noinput" maxlength="25" style="width:160px">
                  </td>
                  <td height="35" width="140" align="center">&nbsp;</td>
                  <td height="35"></td>
                </tr>
                <tr> 
                  <td height="35" width="120"> 新 密 码:</td>
                  <td height="35" width="200"> 
                    <input type="password" name="xmm" title="单击输入新密码" size="25" class="noinput" maxlength="25" style="width:160px">
                  </td>
                  <td height="35" width="140" align="center"> 确认密码: </td>
                  <td height="35"> 
                    <input type="password" title="单击再输入一次新密码" name="qlmm" size="25" class="noinput" maxlength="25" style="width:160px">
                  </td>
                </tr>
              </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td width="120" align="left" height="5"></td>
                        <td height="5"></td>
                      </tr>
                      <tr> 
                        <td width="120" align="left">备  注:</td>
                        <td> 
                          <textarea name="bz" cols="80" rows="4" class="body1"><%=rs("bz")%></textarea>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" height="40">
                <tr> 
                  <td width="36%">&nbsp;</td>
                  <td width="64%"> 
                    <input type="image" src="images/okgif.gif" name="Submit3" value="修 改" onClick="return checkpersonmsg()">&nbsp;&nbsp;
                    <input type="image" src="images/fanhuigif.gif" name="Submit22" value="返 回" onClick="javascript:history.go(-1);return false;">
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>
<!--#include file="close.asp"-->
</body>
</html>

⌨️ 快捷键说明

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