?? recipemanager.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>處方查詢</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" href="/cliniquemanager/pages/css/style.css"
type="text/css" />
<script type='text/javascript'
src='<%=request.getContextPath()%>/dwr/interface/IRecipeDetailService.js'></script>
<script type='text/javascript'
src='<%=request.getContextPath()%>/dwr/engine.js'></script>
<script type='text/javascript'
src='<%=request.getContextPath()%>/dwr/util.js'></script>
<script type="text/javascript">
function getRecipeDetialinfo(sst)
{
IRecipeDetailService.findByRecipe(sst,callbackgetDrug);
}
function callbackgetDrug(list)
{
document.getElementById("recipedetaildiv").style.display="block";
var content=document.getElementById("recipedetailtcontent");
var tr=document.createElement("tr");
DWRUtil.removeAllRows("recipedetailtcontent");
for(var i =0;i<list.length;i++){
var td=document.createElement("td");
var td1=document.createElement("td");
var td2=document.createElement("td");
td.appendChild(document.createTextNode(list[i].drugName));
td1.appendChild(document.createTextNode(list[i].className));
td2.appendChild(document.createTextNode(list[i].amount+"("+list[i].unit+")"));
tr.appendChild(td);
tr.appendChild(td1);
tr.appendChild(td2);
}
content.appendChild(tr);
}
</script>
<style>
body,td {
font: normal 12px Verdana;
color: #333333;
text-align:center;
}
input
,
textarea
,
select
,
td
,
{
font
:normal
12
px
Verdana
;
color
:
#333333
;
border
:
1
px
solid
#999999
;
background
:
#ffffff
}
th {
font: normal 14px Verdana;
color: #333333;
border: 1px solid #999999;
background: #C0C0C0
}
table {
border-collapse: collapse;
}
td {
padding: 3px
}
input {
height: 20;
}
textarea {
width: 80%;
height: 50px;
overfmin: auto;
}
form {
display: inline
}
table {
width: 90%;
}
</style>
</head>
<body background="image/main_bg.gif">
<c:if test="${delrecipesuc!=null}">
<c:if test="${delrecipesuc==false}">
<script type="text/javascript">
alert("刪除成功!");
</script>
</c:if>
</c:if>
<display:table id="row" name="allrecipeinf" pagesize="10"
requestURI="/recipe.do?method=findAll" class="simple" export="false"
decorator="com.xttc.util.Wrap" varTotals="totals">
<display:column property="patientName" title="病人名稱"
headerClass="sortable" />
<display:column property="age" title="年齡" headerClass="sortable" />
<display:column title="性別">
<c:choose>
<c:when test="${row.sex==1}">
男
</c:when>
<c:when test="${row.sex==0}">
女
</c:when>
</c:choose>
</display:column>
<display:column property="total" title="處方價" headerClass="sortable" />
<display:column property="date" title="開方日期" headerClass="sortable" />
<display:column title="用藥">
<input type="button" value="查看" style="border: none" onclick="getRecipeDetialinfo(${row.id})" />
</display:column>
<display:column title="刪除">
<a
href="<%=request.getContextPath()%>/recipe.do?method=delRecipe&recipeid=${row.id}">
<img src="pages/image/icon_del.gif" alt="刪除" width="13" height="13"
border="0" style="CURSOR: hand" /> </a>
</display:column>
</display:table>
<form action="<%=request.getContextPath()%>/recipe.do?method=findByPatientName"
method="post" name="form1" id="form1">
<table>
<td align="center">
請輸入要查詢病人的姓名:<input type="text" name="pName" id="pName">
<input name="Submit" type="submit" value="查詢" />
</td>
</table>
</form>
<div id="recipedetaildiv" style="border:inset; background:#FFFFFF;display:none" >
<table>
<tr>
<td>藥品名</td>
<td>類型</td>
<td>用量</td>
</tr>
<tbody id="recipedetailtcontent"></tbody>
</table>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -