📄 updatepatient.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>updatePatient.jsp</title>
<link rel="stylesheet" type="text/css" href="/HospitalManageSystem/css/share_css.css">
<script type="text/javascript" src="/HospitalManageSystem/js/share_js.js">
</script>
</head>
<body>
<center>
<html:form action="/patient">
<table border="0">
<tr>
<td>
病人编号:
</td>
<td>
<html:text property="patient_id"
value="<%=new String(request.getParameter("patient_id").getBytes(
"ISO8859-1"), "GBK")%>"
readonly="true" />
</td>
</tr>
<tr>
<td>
病人名称:
</td>
<td>
<html:text property="patient_name"
value="<%=new String(request.getParameter("patient_name").getBytes(
"ISO8859-1"), "GBK")%>" />
</td>
</tr>
<tr>
<td>
病人性别:
</td>
<td>
<bean:parameter id="patient_sex1" name="patient_sex" />
<logic:equal name="patient_sex1" value="M">
<input type="radio" name="patient_sex" value="M" checked>男
<input type="radio" name="patient_sex" value="F">女
</logic:equal>
<logic:equal name="patient_sex1" value="F">
<input type="radio" name="patient_sex" value="M">男
<input type="radio" name="patient_sex" value="F" checked>女
</logic:equal>
</td>
</tr>
<tr>
<td>
病人的出生年月:
</td>
<td>
<html:text property="patient_birth"
value="<%=request.getParameter("patient_birth")%>"
onclick="showdate();" readonly="true" />
</td>
</tr>
<tr>
<td>
病人的地址:
</td>
<td>
<html:textarea property="patient_address"
value="<%=new String(request.getParameter("patient_address")
.getBytes("ISO8859-1"), "GBK")%>"></html:textarea>
(150字左右)
</td>
</tr>
<tr>
<td>
病人的籍贯:
</td>
<td>
<%
out.println();
%>
<html:select property="patient_jiguan">
<option value="潮洲"
<%
if(new String(request.getParameter("patient_jiguan").getBytes("ISO8859-1"),"GBK").equals("潮洲")){
%>
selected <%} %>>
潮洲
</option>
<option value="东莞"
<%
if(new String(request.getParameter("patient_jiguan").getBytes("ISO8859-1"),"GBK").equals("东莞")){
%>
selected <%} %>>
东莞
</option>
<option value="河源"
<%
if(new String(request.getParameter("patient_jiguan").getBytes("ISO8859-1"),"GBK").equals("河源")){
%>
selected <%} %>>
河源
</option>
<option value="汕头"
<%
if(new String(request.getParameter("patient_jiguan").getBytes("ISO8859-1"),"GBK").equals("汕头")){
%>
selected <%} %>>
汕头
</option>
<option value="广州"
<%
if(new String(request.getParameter("patient_jiguan").getBytes("ISO8859-1"),"GBK").equals("广州")){
%>
selected <%} %>>
广州
</option>
</html:select>
</td>
</tr>
<bean:parameter id="patient_state1" name="patient_state" />
<logic:equal name="patient_state1" value="Y">
<tr>
<td>
是否住院:
</td>
<td>
<select name="patient_state" onchange="showPayMoney();">
<option value="Y" selected>是</option>
<option value="N">否</option>
</select>
</td>
</tr>
<tr id="show">
<td>
住院收费:
</td>
<td>
<html:text property="pay_money"
value="<%=request.getParameter("pay_money")%>" />
</td>
</tr>
</logic:equal>
<logic:equal name="patient_state1" value="N">
<tr>
<td>
是否住院:
</td>
<td>
<select name="patient_state" onchange="showPayMoney();">
<option value="Y" >是</option>
<option value="N" selected>否</option>
</select>
</td>
</tr>
<tr id="show" style="display:none;">
<td>
住院收费:
</td>
<td>
<html:text property="pay_money"
value="<%=request.getParameter("pay_money")%>" />
</td>
</tr>
</logic:equal>
<tr>
<td>
<html:submit property="submit" value="更新"
onclick="return checkNull();" />
</td>
<td>
<html:reset property="reset" value="重置" />
</td>
</tr>
<tr>
<Td colspan="2">
<html:hidden property="methods" value="updatePatient" />
</Td>
</tr>
</table>
<div style="display:none;" id="ss"
style="position:absolute;top:100px;left:500px">
<jsp:include flush="true" page="date.jsp"></jsp:include>
</div>
</html:form>
</center>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -