WebRoot/jiaoshijieyong_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.shiyongrenbianhao.value==""){alert("请输入使用人编号");document.form1.shiyongrenbianhao.focus();return false;}if(document.form1.shiyongriqi.value==""){alert("请输入使用日期");document.form1.shiyongriqi.focus();return false;}
}
</script>
  <body >
  <%
  String id=request.getParameter("id");
   %>
  <form name="form1" id="form1" method="post" action="jiaoshijieyong_updt_post.jsp?id=<%=id %>">
  修改教室借用:
  <br><br>
  <%
  String sql="select * from jiaoshijieyong where id="+id;
  String jiaoshibianhao="";String shiyongrenbianhao="";String shiyongriqi="";String jieyongshijianduan="";String gongzuori="";String yongtu="";
  ResultSet RS_result=connDbBean.executeQuery(sql);
  while(RS_result.next()){
  jiaoshibianhao=RS_result.getString("jiaoshibianhao");shiyongrenbianhao=RS_result.getString("shiyongrenbianhao");shiyongriqi=RS_result.getString("shiyongriqi");jieyongshijianduan=RS_result.getString("jieyongshijianduan");gongzuori=RS_result.getString("gongzuori");yongtu=RS_result.getString("yongtu");
  }
   %>
   <table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">  
     <tr><td>教室编号:</td><td><select name='jiaoshibianhao' id='jiaoshibianhao'><%sql="select jiaoshi from suoyoujiaoshi order by id desc";RS_result=connDbBean.executeQuery(sql);while(RS_result.next()){%><option value="<%= RS_result.getString("jiaoshi")%>" ><%=RS_result.getString("jiaoshi")%></option><%}%></select></td></tr><script language="javascript">document.form1.jiaoshibianhao.value='<%=jiaoshibianhao%>';</script><tr><td>使用人编号:</td><td><select name='shiyongrenbianhao' id='shiyongrenbianhao'><%sql="select jiaoshibianhao from jiaoshixinxi order by id desc";RS_result=connDbBean.executeQuery(sql);while(RS_result.next()){%><option value="<%= RS_result.getString("jiaoshibianhao")%>" ><%=RS_result.getString("jiaoshibianhao")%></option><%}%></select></td></tr><script language="javascript">document.form1.shiyongrenbianhao.value='<%=shiyongrenbianhao%>';</script><tr><td>使用日期:</td><td><input name='shiyongriqi' type='text' id='shiyongriqi' value='<%= shiyongriqi%>' onclick="getDate(form1.shiyongriqi,'2')" need="1" readonly='readonly' style='border:solid 1px #000000; color:#666666' /></td></tr><tr><td>借用时间段:</td><td><input name='jieyongshijianduan' type='text' id='jieyongshijianduan' value='<%= jieyongshijianduan%>' style='border:solid 1px #000000; color:#666666' /></td></tr><tr><td>工作日:</td><td><input name='gongzuori' type='text' id='gongzuori' value='<%= gongzuori%>' style='border:solid 1px #000000; color:#666666' /></td></tr><tr><td>用途:</td><td><textarea name='yongtu' cols='50' rows='5' id='yongtu' style='border:solid 1px #000000; color:#666666'><%=yongtu%></textarea></td></tr>
    <tr>
      <td>&nbsp;</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 算力,解读结果公开显示在下面。

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