📄 hospital_up.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="content-type" content="text/html; chstset=utf-8" />
<title>
hospital_up</title>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
.STYLE2 {color: #0066FF}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('请认真填写!!!');
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body bgcolor="#ffffff">
<h2 align="center">病例修改</h2>
<form action="../controller?action=hospital&method=up_name" method="post" name="form1" >
<table width="403" border="0" align="center">
<tr>
<td width="117" height="32">请输入宠物名:</td>
<td width="183"><label >
<input name="name" type="text" id="name">
</label></td>
<td width="89"><input type="submit" name="Submit" value="提交"></td>
</tr>
</table>
</form>
<p > </p>
<table width="851" border="0" align="center" >
<tr>
<td width="126" height="24">编号</td>
<td width="127">宠物</td>
<td width="127">兽医</td>
<td width="137">病因</td>
<td width="119">登记时间</td>
<td width="189"> </td>
</tr>
<c:forEach var="hosp" items="${requestScope.hosp}">
<tr>
<form name="form2" method="post" action="${pageContext.request.contextPath}/controller?action=hospital&method=hospup">
<td bgcolor="#666666"> <span class="STYLE2">
<input name="id" type="text" id="id" value="${hosp.id}" size="17" readonly="true" >
</span></td>
<td><input name="pid" type="text" value="${hosp.pid}" size="17" ></td>
<td><span class="STYLE3 STYLE1">
<input name="vid" type="text" id="vid" value="${hosp.vid}" size="17">
</span></td>
<td><span class="STYLE3 STYLE1">
<input name="hospital" type="text" id="hospital" value="${hosp.hospital}" size="17">
</span></td>
<td>${hosp.time}</td>
<td><input name="Submit2" type="submit" value="提交"> </td>
</form>
</tr>
</c:forEach>
</table>
<br/><br/><br/><br/>
<a href="hospital.jsp">返回</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -