WebRoot/jiaoshixinxi_updt2.jsp

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


<%@ 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>
	<script type="text/javascript" src="js/popup.js"></script>
	    <script type="text/javascript">
	    function up(tt)
	    {
	        var pop=new Popup({ contentType:1,isReloadOnClose:false,width:300,height:50});
            pop.setContent("contentUrl","upload.jsp?Result="+tt);
            pop.setContent("title","文件上传");
            pop.build();
            pop.show();
	    }
	</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 >

  <form name="form1" id="form1" method="post" action="jiaoshixinxi_updt_post2.jsp">
  修改教师信息:
  <br><br>
  <%
  String sql="select * from jiaoshixinxi where jiaoshibianhao='"+request.getSession().getAttribute("username")+"'";
  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%>' readonly='readonly' 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>&nbsp;</td>
      <td><input type="submit" name="Submit" value="提交" onclick="return check();" />
      <input type="reset" name="Submit2" value="重置" /></td>
    </tr>
  </table>
</form>

  </body>
</html>

后面还有 1 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。