WebRoot/jiaoshixinxi_updt.jsp
(完整代码) 3KB
<%@ page language="java" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="db.db"/>
<html>
<head>
<base href="<%=basePath%>">
<title>教师信息</title><script language="javascript" src="js/Calendar.js"></script>
<LINK href="css.css" type=text/css rel=stylesheet>
</head>
<script language="javascript">
function check()
{
if(document.form1.jiaoshibianhao.value==""){alert("请输入教师编号");document.form1.jiaoshibianhao.focus();return false;}if(document.form1.jiaoshixingming.value==""){alert("请输入教师姓名");document.form1.jiaoshixingming.focus();return false;}if(document.form1.shenfenzhenghao.value==""){alert("请输入身份证号");document.form1.shenfenzhenghao.focus();return false;}if(document.form1.mima.value==""){alert("请输入密码");document.form1.mima.focus();return false;}
}
</script>
<body >
<%
String id=request.getParameter("id");
%>
<form name="form1" id="form1" method="post" action="jiaoshixinxi_updt_post.jsp?id=<%=id %>">
修改教师信息:
<br><br>
<%
String sql="select * from jiaoshixinxi where id="+id;
String jiaoshibianhao="";String jiaoshixingming="";String xingbie="";String suoshuyuanxi="";String zhicheng="";String shenfenzhenghao="";String mima="";
ResultSet RS_result=connDbBean.executeQuery(sql);
while(RS_result.next()){
jiaoshibianhao=RS_result.getString("jiaoshibianhao");jiaoshixingming=RS_result.getString("jiaoshixingming");xingbie=RS_result.getString("xingbie");suoshuyuanxi=RS_result.getString("suoshuyuanxi");zhicheng=RS_result.getString("zhicheng");shenfenzhenghao=RS_result.getString("shenfenzhenghao");mima=RS_result.getString("mima");
}
%>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">
<tr><td>教师编号:</td><td><input name='jiaoshibianhao' type='text' id='jiaoshibianhao' value='<%= jiaoshibianhao%>' style='border:solid 1px #000000; color:#666666' /></td></tr><tr><td>教师姓名:</td><td><input name='jiaoshixingming' type='text' id='jiaoshixingming' value='<%= jiaoshixingming%>' style='border:solid 1px #000000; color:#666666' /></td></tr><tr><td>性别:</td><td><select name='xingbie' id='xingbie'><option value="男">男</option><option value="女">女</option></select></td></tr><script language="javascript">document.form1.xingbie.value='<%=xingbie%>';</script><tr><td>所属院系:</td><td><select name='suoshuyuanxi' id='suoshuyuanxi'><%sql="select yuanximingcheng from yuanxi order by id desc";RS_result=connDbBean.executeQuery(sql);while(RS_result.next()){%><option value="<%= RS_result.getString("yuanximingcheng")%>" ><%=RS_result.getString("yuanximingcheng")%></option><%}%></select></td></tr><script language="javascript">document.form1.suoshuyuanxi.value='<%=suoshuyuanxi%>';</script><tr><td>职称:</td><td><input name='zhicheng' type='text' id='zhicheng' value='<%= zhicheng%>' style='border:solid 1px #000000; color:#666666' /></td></tr><tr><td>身份证号:</td><td><input name='shenfenzhenghao' type='text' id='shenfenzhenghao' value='<%= shenfenzhenghao%>' style='border:solid 1px #000000; color:#666666' /></td></tr><tr><td>密码:</td><td><input name='mima' type='text' id='mima' value='<%= mima%>' style='border:solid 1px #000000; color:#666666' /></td></tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="提交" onclick="return check();" style='border:solid 1px #000000; color:#666666' />
<input type="reset" name="Submit2" value="重置" style='border:solid 1px #000000; color:#666666' /></td>
</tr>
</table>
</form>
</body>
</html>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。