?? nurse.jsp
字號:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/LightBlue_Css.css"/>
<title>醫(yī)生信息表</title>
<script type="text/javascript">
function onch(obj)
{
var page = obj.value;
window.location.href ="view/nurseServlet?page="+page;
}
function goon(obj)
{
var to=obj.value;
window.location.href="view/nurseinsert.jsp";
}
</script>
<script type="text/javascript">
function onch(){
var page = document.nurseListForms.textPages.value;
if(page==null||page==0||page==""){
alert("請輸入要查詢的有效頁數(shù)!");
return;
}
window.location.href ="<%=request.getContextPath()%>/nurseServlet?opertion=4&page="+page;
}
</script>
<script type="text/javascript">
function go(form){
if(form.selectedAll.checked) {
for(var i=0;i<form.elements.length;i++){
var e=form.elements[i];
if(e.type=="checkbox") {
e.checked=true;
}
}
}
else if(!form.selectedAll.checked){
for(var i=0;i<form.elements.length;i++){
var e=form.elements[i];
if(e.type=="checkbox"){
e.checked=false;
}
}
}
}
function goto(obj)
{
document.forms[1].submit();
}
function Delete(){
var e="";
if(document.all.c.length){
var emp=document.all.c.length;
for(var i=0;i<emp;i++){
if(document.all.c[i].checked){
e+=document.all.c[i].value+";";
}
}
} else{
e+=document.all.c.value+";"
}
e=e.substring(0,e.length-1)
window.location.href="<%=request.getContextPath()%>/nurseServlet?opertion=2&nurseid="+e;
}
</script>
${alertMsg}
</head>
<body>
<form action="<%=request.getContextPath()%>/nurseServlet?opertion=4" method="post" name="nurseListForms">
<table class="simple textCss">
<tr>
<td width="25%" align="center" class="title">按類型查詢:</td>
<td width="20%" align="center" class="title">
<select name="Scount">
<option value="staffNo">職工號</option>
<option value="name" selected="selected">姓名</option>
<option value="post">職稱</option>
</select>
</td>
<td width="40%" class="title">
<input type="text" name="name" class="txt">
</td>
<td width="20%" class="title">
<input type="submit" value="查詢" class="buttonClass">
</td>
</tr>
</table>
<table class="simple textCss">
<tr><th colspan="8" align="center">護士信息表</th></tr>
<tr><%--
<td width="15%" align="center" class="title">選擇
<input type="checkbox" name="selectedAll" onclick="go(this.form);">(全選)</td>
--%><td width="10%" align="center" class="title">職工號</td>
<td width="10%" align="center" class="title">姓名</td>
<td width="8%" align="center" class="title">性別</td>
<td width="17%" align="center" class="title">職稱</td>
<td width="15%" align="center" class="title">登錄名</td>
<td width="25%" align="center" class="title">操作</td>
</tr><tr>
<td colspan="11" background="IMAGES/color/color_qianse.jpg"></td>
</tr>
<c:forEach items="${nurseservice}" var="nurse">
<tr><%--
<td align="center"><input type="checkbox" value="${nurse.id}" name="c"></td>
--%><td align="center">${nurse.staffNo}</td>
<td align="center">${nurse.name}</td>
<td align="center">${nurse.sex}</td>
<td align="center">${nurse.post}</td>
<td align="center">${nurse.loginName}</td>
<td align="center">
<input type="button" value="刪除" class="patientButton" onclick="window.location.href='<%=request.getContextPath()%>/nurseServlet?opertion=2&id=${nurse.id}'">
<input type="button" value="修改" class="patientButton" onclick="window.location.href='view/nurseupdate.jsp?&id=${nurse.id}'">
</td>
</tr>
</c:forEach>
</table>
<table class="simple textCss">
<tr>
<td align="right" width=100% colspan="5">共<font color="red">${page.pageNum}</font>個搜索結(jié)果 共有<font color="red">${page.lastPage}</font>頁
當前是第<font color="red">${page.pageSize}</font>頁
<input type="button" value="第一頁" class="patientButton" onclick="window.location.href='<%=request.getContextPath()%>/nurseServlet?opertion=4&page=1'">
<input type="button" value="上一頁" class="patientButton" onclick="window.location.href='<%=request.getContextPath()%>/nurseServlet?opertion=4&page=${page.priorPage}'">
<input type="button" value="下一頁" class="patientButton" onclick="window.location.href='<%=request.getContextPath()%>/nurseServlet?opertion=4&page=${page.nextPage}'">
<input type="button" value="最后頁" class="patientButton" onclick="window.location.href='<%=request.getContextPath()%>/nurseServlet?opertion=4&page=${page.lastPage}'">
跳到第 <input type=text name="textPages" value="1" size="7" onkeyup="this.value=this.value.replace(/\D/g,'')">
頁 <input type="button" value="GO" onclick="onch();" class="patientButton"> </td>
</tr>
</table>
<table>
<tr>
<td align="center">
<input type="button" value="添加" onclick="goon(this)" class="buttonClass">
<input type="hidden" name="hd" value="${nurse.postid}">
<input type="hidden" name="hd" value="${nurse.postid}">
<%--<input type="button" value="批量刪除" onclick="Delete()" class="buttonClass">
--%></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -