<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<script Language="JavaScript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.ChartNo.value == "")
  {
    alert("請在 \"ChartNo\" 欄位輸入一數值。");
    theForm.ChartNo.focus();
    return (false);
  }

  if (theForm.ChartNo.value.length < 6)
  {
    alert("在 \"ChartNo\" 欄位，至少請輸入 6 的字元。");
    theForm.ChartNo.focus();
    return (false);
  }

  if (theForm.ChartNo.value.length > 7)
  {
    alert("在 \"ChartNo\" 欄位，最多請輸入 7 的字元。");
    theForm.ChartNo.focus();
    return (false);
  }
  return (true);
}
//--></script>
<html>
<head>
<title>CyberKnife病患紀錄</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" fprolloverstyle="">		A:hover {
			color: red;
		}
</style>
<style type="text/css">
table.sample {
}
table.sample th {
}
table.sample td {
    border-style: dotted dotted dotted dotted;
    border-color: green green green green;
}
</style>
</head>

<body>
<div id="PrintButton"  style="position: absolute; left:0in; top:0in; width:120px; height: 50px; z-index: 20">
    <button id=BUTTON1 language=JavaScript name="b_print" onclick="doprint();" style="HEIGHT:25px; WIDTH:140px; background-color:#D0E8FF;">
        <font size="2" color="#ff0000">列 印 記 錄 摘 要</font>
    </button>
</div>

<center>
  <table width="563" height="0" border="0" cellpadding="0" cellspacing="0" id="tbl" name="tbl">
  <tr>
  <td width="563" height="0" align="center"><font size="4" face="標楷體" color="#003366">
      國 立 台 灣 大 學 醫 學 院 附 設 醫 院</font></td>
  </tr>
  <td width="563" height="40" align="center">
  <font size="5" face="標楷體" color="#003366">電腦刀放射手術</font></td>
  </tr>
  </table>
</center>


<center>

<table height="50" width="660">
  <tr>
    <td rowspan="3">
      <font size="5" face="標楷體" color="#003366">CyberKnife病患紀錄</font>
    </td>
    <td>轉介醫師：</td>
    <td>{{treatment.referral}}</td>
  </tr>
  <tr>
    <td>主治醫師：</td>
    <td>{{treatment.surgeon}}</td>
  </tr>
  <tr>
    <td>放腫醫師：</td>
    <td>{{treatment.oncologist}}</td>
  </tr>
</table>

<br/>

<table border="1" cellpadding="0" cellspacing="0" height="50" width="660">
  <td>基本資料</td>
  <td>姓名： {{treatment.patient.name}}</td>
  <td>病歷號： {{treatment.patient.medical_records}}<br/>
      出生年月日： {{treatment.patient.birthday}}</td>
  <td>性別： {{treatment.patient.get_gender_display}}</td>
  <td>病床號： {{treatment.bed}}</td>
</table>
<table border="1" cellpadding="0" cellspacing="0" height="50" width="660">
  <td>診斷</td>
  <td>{{treatment.icd9}}</td>
  <td>{{treatment.other_diagnosis}}</td>
  <td>Pathology</td>
  <td>________</td>
</table>
<table border="1" cellpadding="0" cellspacing="0" height="50" width="660">
  <td>治療部位</td>
  <td>________</td>
  <td>Grade：________</td>
  <td>Stage</td>
  <td>{{treatment.disease_stage}}</td>
</table>

<p>Previous Treatment</p>

<table border="1" cellpadding="0" cellspacing="0" height="200" width="660">
  <thead>
    <td>Date</td>
    <td>Treatment</td>
    <td>Dose(cGy)</td>
    <td>Memo</td>
  </thead>
  <tbody>
    {% for prior in treatment.patient.priortreatment_set.all|dictsort:"date" %}
    <tr>
        <td>{{ prior.date }}</td>
        <td>{{ prior.get_treatment_display }}</td>
        <td>{{ prior.dose }}</td>
        <td>{{ prior.memo }}</td>
    </tr>
    {% endfor %}
    <tr>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
    </tr>
  </tbody>
</table>

<p>History</p>

<table class="sample" border="1" cellpadding="0" cellspacing="0" height="300" width="660">
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
  <tr><td>　</td></tr>
</table>

<p>國立台灣大學醫學院附設醫院 電腦刀放射手術</p>

</center>

<!--
<div id="Foot">
<br>
<center>
<hr><br><br>
<font size="1">系統分析設計：資訊室    吳立婷    分機：1096<br>最後更新日期：2006/2/10</font><br>
</center>
</div>
-->

</body>

</html>
<script language="JavaScript">
function doprint() {
	// 列印前先將 "列印"按鈕 hide 起來
	//PrintButton.style.display='none';
	//QueryChartNo.style.display='none';
	//RTInsert.style.display='none';
	//Foot.style.display='none';
	var odiv = document.getElementsByTagName("div")
	for(i=0; i < odiv.length; i++){
		//alert(odiv.length);
		//alert(odiv[i].id);
		if( odiv[i].id != "" )
		odiv[i].style.display='none';
	}
	window.print();
	// 列印完之後再將 "列印"按鈕 show 出來
//	QueryChartNo.style.display='inline';
//	PrintButton.style.display='inline';
//	RTInsert.style.display='inline';
//	Foot.style.display='inline';
//	for(i=0; i < odiv.length; i++)
//		odiv[i].style.display='inline';
}
</script>

