📄 updatedep.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<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" link="#33FF00">
<jsp:useBean id="dep" scope="request" class="myBean.Department"/>
<p>
<%
String admin_id = (String)session.getAttribute("id");
if(admin_id==null){response.sendRedirect("login.jsp");}
String dep_id=request.getParameter("id");
String dep_name=new String(request.getParameter("name").getBytes("ISO8859_1"));
String cname=new String(request.getParameter("cname").getBytes("ISO8859_1"));
String class_count=request.getParameter("class_count");
%>
</p>
<p align="center"><font color="#00FF00" size="+3" face="方正舒体">更新院系信息</font></p>
<p align="center"> </p>
<form method="post" action="DepartmentSvlt">
<input type="hidden" name="action" value="update">
<input type="hidden" name="id" value="<%=dep_id%>">
<table width="420" height="50" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#DEDFDE">
<tr>
<td width="48%" bgcolor="#FFFFFF"><div align="right">院系代号</div></td>
<td width="52%" bgcolor="#FFFFFF"><%=dep_id%></td>
</tr>
<tr>
<td width="48%" bgcolor="#FFFFFF"><div align="right">院系名称</div></td>
<td width="52%" bgcolor="#FFFFFF"><input name="name" type="text" id="name" value="<%=dep_name%>" ></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="right">院长</div></td>
<td bgcolor="#FFFFFF"><input name="cname" type="text" id="cname" maxlength="16" value="<%=cname%>"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="right">所属班级数</div></td>
<td bgcolor="#FFFFFF"><%=class_count%></td>
</tr>
</table>
<p align="center">
<input type="submit" name="Submit" value="提交">
</p>
</form>
<p> </p>
<p align="center"><a href="getDepartment.jsp">返回</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -