addpost.jsp
来自「简单的医院系统」· JSP 代码 · 共 37 行
JSP
37 行
<%@ page language="java" contentType="text/html; charset=gbk"pageEncoding="GBK"%>
<html>
<head>
<title>职称添加</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/LightBlue_Css.css"/>
<script type="text/javascript">
function check(form){
if(form.name.value==""){
alert("职称名称不能为空");
}else{
document.postFormsName.submit();
}
}
</script>
</head>
<body>
<form action="<%=request.getContextPath()%>/postServlets?opertion=1" method="post" name="postFormsName">
<table class="simple textCss">
<tr>
<th colspan="2" class="title">职称添加</th>
</tr>
<tr>
<td class="title" width="30%" align="right">职称姓名</td>
<td><input type="text" name="name" class="txt"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="添加" class="buttonClass" onclick="return check(this.form);">
<input type="reset" value="重置" class="buttonClass">
<input type="button" value="返回" class="buttonClass"
onclick="window.location.href='<%=request.getContextPath()%>/postServlets?opertion=4'">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?