⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selectmain.jsp

📁 这是一个针对医院管理的一个系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>selectMain.jsp</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="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="/HospitalManageSystem/css/share_css.css">

  </head> 
 
  <body>
  <center><h2>病人就医信息</h2></center>  
  <table align="center" border="1" cellspacing="0" cellpadding="2" bordercolor="black">
  	<tbody>
  		<tr>
  			<td>病人ID</td>
  			<td>病人姓名</td>
  			<td>就医科别</td>
  			<td>主治医生</td>
  			<td>病因</td>
  			<td>用药</td>
  			<td>动作</td>
  		</tr>
  		<logic:iterate id="list" name="list">
  		<tr>
  			<td>${list.patient_id }</td>
  			<td>${list.patient_name }</td>
  			<td>${list.department }</td>
  			<td>${list.doctor_name }</td>
  			<td>${list.sickness_reason }</td>
  			<td>${list.medicine_name_list }</td>
  			<td>
  			<html:link action="/see_doctor_message?see_doctor_message=updateSDM&list_number=${list.list_number }">修改</html:link>
  			<html:link onclick="return clickDelete();" action="/see_doctor_message?see_doctor_message=deleteSDM&list_number=${list.list_number }">删除</html:link>
  			</td>
  		</tr>
  		</logic:iterate>
  	</tbody>
  </table>
  <html:form action="/see_doctor_message">
   			<table align="center" width="90%">
   				<tr>
   					<td align="center">  
   					<logic:iterate id="pf" name="pList">
   						当前${pf.cpage}/${pf.allpage}共(页),&nbsp;&nbsp; 
   						<html:hidden property="allpage" value="${pf.allpage}" />
   						<logic:notEqual name="pf" property="cpage" value="1">
   							<html:link action="/see_doctor_message?see_doctor_message=selectSDMList&tag1=SY&allpage=${pf.allpage}&pagerows=${pf.pagerows}">首页</html:link>&nbsp;
   						</logic:notEqual>
   						 <logic:notEqual name="pf" property="cpage" value="1">
   							<html:link action="/see_doctor_message?see_doctor_message=selectSDMList&tag1=SYY&allpage=${pf.allpage}&cpage=${pf.cpage}&pagerows=${pf.pagerows}">上一页</html:link>&nbsp;
   						</logic:notEqual>
   						<logic:lessThan name="pf" property="cpage" value="${pf.allpage}">
   							<html:link action="/see_doctor_message?see_doctor_message=selectSDMList&tag1=XYY&allpage=${pf.allpage}&cpage=${pf.cpage}&pagerows=${pf.pagerows}">下一页</html:link>&nbsp;&nbsp;
   						</logic:lessThan>
   						<logic:notEqual name="pf" property="cpage" value="${pf.allpage}">
   							<html:link action="/see_doctor_message?see_doctor_message=selectSDMList&tag1=MY&allpage=${pf.allpage}&pagerows=${pf.pagerows}">末页 </html:link>&nbsp;&nbsp;
   						</logic:notEqual>
   						转到第: 
     	 			<input type=text name="ppage" size="4" value="${pf.cpage}"/> 页&nbsp; 
     	 			每页<select name="Pagerows">
						<logic:equal property="pagerows" name="pf" value="10">
							<option value="10">10</option>
     	 					<option value="20">20</option>
						</logic:equal>
						<logic:equal property="pagerows" name="pf" value="20">
							<option value="10">10</option>
     	 					<option value="20" selected>20</option>
						</logic:equal>
     	 			</select>行
     	 			<html:hidden property="see_doctor_message" value="selectSDMList"/>
      				<html:submit value="GO"/>
      				</logic:iterate>
   					</td>
   				</tr>
   			</table>
   	</html:form>
  
  </body>
</html:html>


<script type="text/javascript">
function clickDelete(){
	if(confirm("是否真的要删除!")){
		return(true);
	}else{
		return(false);
	}
}
</script>




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -