?? jsp1.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
if(session.getAttribute("userid")== null || session.getAttribute("userid").equals(""))
{
response.sendRedirect("index.jsp");
}
%>
<jsp:include flush="true" page="head.jsp"/><br /><br /><br /><br />
<form name="form1" method="post" action="DepAddSave.jsp" onSubmit="return check();">
<table width="500" height="104" border="1" align="center" cellpadding="3" cellspacing="1">
<caption>
新增部門資料
</caption>
<tr>
<td width="301" height="50" ><div align="right">部門名稱:</div></td>
<td width="446"><input name="depName" type="text" id="depName" maxlength="20"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value=" 保 存 ">
</div></td>
</tr>
</table>
</form>
<jsp:include flush="true" page="bottom.jsp"/>
</body>
</html>
<script language="javascript">
function check()
{
if(form1.depName.value=="")
{
alert("請輸入部門名稱");
form1.depName.focus();
return false;
}
return true;
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -