📄 sector_update.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.dboperation.SectorDA"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'sector_update.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
-->
</style>
<script type="text/javascript" language="javascript">
function check(){
var sname = document.getElementById("s_name").value;
if(sname == ""){
window.alert("请输入修改的部门名!");
form1.s_name.focus();
return false;
}
}
</script>
</head>
<%
int s_id = Integer.parseInt(request.getParameter("sid"));
String s_name = new SectorDA().selectSectorByID(s_id);
%>
<body>
<form name="form1" method="post" action="../sector.do?method=updateSector&sid=<%= s_id %>">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/system/r_1.gif" alt="" width="6" height="27" /></td>
<td width="100%" background="../images/system/r_0.gif"><table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 修改部门(带*号的为必填项)</td>
<td align="right"> </td>
</tr>
</table></td>
<td><img src="../images/system/r_2.gif" alt="" width="6" height="27" /></td>
</tr>
<tr>
<td></td>
<td><table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<tr>
<td width="25%" height="30" align="right">部门名称:</td>
<td width="75%" class="category"><input name="s_name" type="text" id="s_name" style="width:300px" value="<%= s_name %>">
<font color="#ff0000">*</font></td>
</tr>
<tr>
<td height="30"> </td>
<td class="category"><input name="submit" type="submit" onClick="return check()" value=" 确 认 " class="button">
<input name="reset" type="reset" value=" 重新填写 " class="button">
<input type="button" value=" 放弃修改返回 " onClick="window.history.go(-1)" class="button">
</td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" width="6" height="6" /></td>
<td></td>
<td><img src="../images/system/r_3.gif" alt="" width="6" height="6" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -