?? updatetea.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="errorpage.jsp" %>
<html>
<head>
<link href="Inc/student_com.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>更新教師</title>
</head>
<body bgcolor="#0099FF" text="#FFFFFF">
<%
String admin_id = (String)session.getAttribute("id");
if(admin_id==null){response.sendRedirect("login.jsp");}
String tea_id=request.getParameter("id");
String title = new String(request.getParameter("title").getBytes("ISO8859_1"));
String depN = new String(request.getParameter("depN").getBytes("ISO8859_1"));
String dep = request.getParameter("dep");
String name = new String(request.getParameter("name").getBytes("ISO8859_1"));
String entryyear = request.getParameter("entryyear");
String password = request.getParameter("password");
session.setAttribute("id",String.valueOf(tea_id));
%>
<p align="center"><font color="#00FF00" size="+3" face="方正舒體">更新教師</font></p>
<p align="center"> </p>
<form name="form1" method="post" action="TeacherSvlt">
<input type="hidden" name="action" value="update">
<input type="hidden" name="id" value="<%=tea_id%>">
<input type="hidden" name="dep" value="<%=dep%>">
<input type="hidden" name="entryyear" value="<%=entryyear%>">
<table width="420" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#DEDFDE">
<tr>
<td width="33%" bgcolor="#FFFFFF"><div align="right">教師姓名</div></td>
<td width="67%" bgcolor="#FFFFFF"><input name="name" type="text" id="name" value="<%=name%>"></td>
</tr>
<tr><td bgcolor="#FFFFFF"><div align="right">教師編號</div></td><td bgcolor="#FFFFFF"><%=tea_id%></td></tr>
<tr><td bgcolor="#FFFFFF"><div align="right">開始執教</div></td>
<td bgcolor="#FFFFFF"><%=entryyear%></td></tr>
<tr><td bgcolor="#FFFFFF"><div align="right">所屬院系</div></td>
<td bgcolor="#FFFFFF"><%=depN%></td></tr>
<tr>
<td bgcolor="#FFFFFF"><div align="right">密碼</div></td>
<td bgcolor="#FFFFFF"><input name="password" type="text" id="password" value="<%=password%>"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="right">職稱</div></td>
<td bgcolor="#FFFFFF"><select name="title" size="1" id="title">
<%String prv[]={"助教","講師","副教授","教授","博導"};
for(int i=0;i<prv.length;i++){
if(prv[i].equals(title)){%>
<option selected ><%=title%></option>
<%}else{%>
<option><%=prv[i]%></option>
<%}}%>
</select></td>
</tr>
</table>
<p align="center">
<input type="submit" name="Submit" value="提交">
</p>
</form>
<p> </p>
<p align="center"><a href="getTeacher.jsp">返回</a></p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -