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

📄 updateform.asp

📁 自己设计的人事工资管理系统。欢迎大家相互学习。
💻 ASP
字号:
<!-- #include file="conn.asp"-->
<%
userid=request("userid")
sqlstr="select * from 用户表 where 用户编号=" & userid
my_rs.open sqlstr,my_Conn,1,3
%>
<html>
<head>

<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
	font-size: 9pt;
}
body {
	background-image: url(image/bg.gif);
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="update.asp?userid=<%=my_rs("用户编号")%>">
  <table width="95%" border="1" align="center" cellspacing="0" bordercolor="#FF0000" bgcolor="#00FF00">
    <tr>
      <td width="50" align="center">用户名</td>
      <td><label>
      
      <input name="textfield" type="text"  readonly value="<%=my_rs("用户名")%>">
      </label></td>
    </tr>
    <tr>
      <td align="center">密码</td>
      <td><label>
        <input name="password" type="text" id="password" value="<%=my_rs("密码")%>" />
      </label></td>
    </tr>
    <tr>
      <td align="center">性别</td>
      <td><label>
        <input name="sex" type="radio" value="男" 
		<%if my_rs("性别")="男" then 
		response.write("checked")
		end if%>/>
      男 
      <input type="radio" name="sex" value="女"
	  <%if my_rs("性别")="女" then 
		response.write("checked")
		end if%> />
      女</label></td>
    </tr>
    <tr>
      <td align="center">年龄</td>
      <td><label>
        <input name="age" type="text" id="age" value="<%=my_rs("年龄")%>" />
      </label></td>
    </tr>
    <tr>
      <td align="center">权限</td>
      <td><label>
        <select name="quanxian" id="quanxian">
          <option value="管理"
		  <%if my_rs("权限")="管理" then 
		response.write("selected")
		end if%> />管理</option>
          <option value="可写" 
		  <%if my_rs("权限")="可写" then 
		response.write("selected")
		end if%>>可写</option>
          <option value="只读"
		  <%if my_rs("权限")="只读" then 
		response.write("selected")
		end if%>>只读</option>
        </select>
      </label></td>
    </tr>
    <tr>
      <td align="center">职务</td>
      <td><label>
        <select name="zhiwu" id="zhiwu">
          <option value="总经理"
		  <%if my_rs("职务")="总经理" then 
		response.write("selected")
		end if%>>总经理</option>
          <option value="副总经理"
		  <%if my_rs("职务")="副总经理" then 
		response.write("selected")
		end if%>>副总经理</option>
          <option value="科长"
		  <%if my_rs("职务")="科长" then 
		response.write("selected")
		end if%>>科长</option>
          <option value="副科长"
		  <%if my_rs("职务")="副科长" then 
		response.write("selected")
		end if%>>副科长</option>
          <option value="秘书"
		  <%if my_rs("职务")="秘书" then 
		response.write("selected")
		end if%>>秘书</option>
          <option value="普通职员"
		  <%if my_rs("职务")="普通职员" then 
		response.write("selected")
		end if%>>普通职员</option>
        </select>
      </label></td>
    </tr>
    <tr>
      <td align="center">所属部门</td>
      <td><select name="bumen" id="bumen">
        <option value="财务科" 
		<%if my_rs("所属部门")="财务科" then 
		response.write("selected")
		end if%>>财务科</option>
        <option value="生产科"
		<%if my_rs("所属部门")="生产科" then 
		response.write("selected")
		end if%>>生产科</option>
      </select></td>
    </tr>
    <tr>
      <td align="center">电子邮件</td>
      <td><label>
        <input name="email" type="text" id="email" value="<%=my_rs("电子邮件")%>" />
      </label></td>
    </tr>
    <tr>
      <td align="center">联系电话</td>
      <td><label>
      <input name="tel" type="text" id="tel" value="<%=my_rs("联系电话")%>" />
      </label></td>
    </tr>
    <tr>
      <td align="center">住址</td>
      <td bgcolor="#00FF00"><label>
        <textarea name="address" id="address"><%=my_rs("住址")%></textarea>
      </label></td>
    </tr>
    <tr>
      <td colspan="2" align="center" bordercolor="#D4D0C8"><label>
        <input type="submit" name="Submit" value="修改">   
       <input type="reset" name="Submit2" value="重置"> 
       <input name="Submit3" type="button" onClick="MM_callJS('self.close()')" value="关闭窗口">
      </label></td>
    </tr>
  </table>
</form>
<%my_rs.close%>
</body>
</html>

⌨️ 快捷键说明

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