?? addsickbed.jsp
字號:
<%@ page language="java" pageEncoding="GBK"%>
<jsp:directive.page import="com.tsinghuait.st0717.hospitalsystem.service.OperationRoomWuJiRuiService;"/>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>My JSP 'addSickBed.jsp' starting page</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/LightBlue_Css.css"/>
<script type="text/javascript">
function check(form){
if(form.bedNo.value==""){
alert("病床編號不能為空");
}else{
document.formSickBed.submit();
}
}
</script>
</head>
<body>
<form action="${pageContext.request.contextPath}/sickBedServlet?opertion=1" method="post" name="formSickBed" onsubmit="return check(formSickBed);">
<table class="simple textCss">
<tr>
<th align="center" colspan="2">添加病床信息</th>
</tr>
<tr>
<th width="30%" align="right">病床號:</th>
<td><input type="text" name="bedNo" class="txt"></td>
</tr>
<tr>
<th width="30%" align="right">類 型:</th>
<td>
<input type="radio" name="type" value="一等級">一等級
<input type="radio" name="type" value="二等級">二等級
<input type="radio" name="type" value="三等級">三等級
<input type="radio" name="type" value="四等級" checked="checked">四等級
<%--<input type="text" name="type" class="txt">--%>
</td>
</tr>
<%
String sql="select *from nurse";
OperationRoomWuJiRuiService operatingRoomService=new OperationRoomWuJiRuiService();
request.setAttribute("nurselistName",operatingRoomService.addoperationgetNurseListName(sql));
%>
<tr>
<th width="30%" align="right">護士列表:</th>
<td>
<select name="nurseNameList" onclick="nurseName();" multiple="multiple" size="3">
<c:forEach items="${nurselistName}" var="nurselist">
<option value="${nurselist.id}">${nurselist.name}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<th width="30%" align="right">是否空閑:</th>
<td>
<input type="radio" name="isUseable" value="1">是
<input type="radio" name="isUseable" value="0" checked="checked">否
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="添加" class="buttonClass" onclick="check(this.form);">
<input type="reset" value="重置" class="buttonClass">
<input type="button" value="返回" class="buttonClass" onclick="window.location.href='<%=request.getContextPath()%>/sickBedServlet?opertion=4'">
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -