<!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>治療排程時間表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" fprolloverstyle="">		A:hover {
			color: red;
		}
</style>
</head>

<body>
<div id="PrintButton"  style="position: absolute; left:0in; top:0in; width:120; height: 50; 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>

<div id="changeweek">
<table width="100%">
<thead align="center">
    <th><a href='/timetable/scheduling/{{prevweek}}/'>上一週</a></th>
    <th><a href='/timetable/scheduling/{{nextweek}}/'>下一週</a></th>
</thead>
</table>
</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>
  <tr>
  <td width="563" height="0" align="center"><font size="3" face="標楷體" color="#003366">National Taiwan University Hospital</font></td>
  </tr>
  <td width="563" height="40" align="center">
  <font size="5" face="標楷體" color="#003366">電腦刀中心 治療/定位排程時間表</font></td>
  </tr>
  </table>
</center>

<center>

<!--662-->

<table  width="650" height="493" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" id="outside" name="outside">
<thead align="center">
    <th>　</th>
    <th>{{weekdate.mon}}<br/>星期一</th>
    <th>{{weekdate.tue}}<br/>星期二</th>
    <th>{{weekdate.wed}}<br/>星期三</th>
    <th>{{weekdate.thu}}<br/>星期四</th>
    <th>{{weekdate.fri}}<br/>星期五</th>
</thead>
<tbody align="center">
    {%for row in timetable%}
    <tr>
        <td>{{row.name}}</td>
        <td>{{row.mon|default:"　"|linebreaks}}</td>
        <td>{{row.tue|default:"　"|linebreaks}}</td>
        <td>{{row.wed|default:"　"|linebreaks}}</td>
        <td>{{row.thu|default:"　"|linebreaks}}</td>
        <td>{{row.fri|default:"　"|linebreaks}}</td>
    </tr>
    {%endfor%}
    <tr>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
    </tr>
</tbody>
</table>
<table  width="650" height="247" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" id="outside" name="outside">
<thead align="center">
    <th>　</th>
    <th>姓名</th>
    <th>病歷號碼</th>
    <th>主治</th>
    <th>診斷部位</th>
    <th>次數</th>
    <th>node</th>
    <th>mode</th>
    <th>時間</th>
    <th>實際治療時間</th>
</thead>
<tbody align="center">
    {%for row in timetable%}
    <tr>
        <td>{{forloop.counter}}</td>
        <td>{{row.name}}</td>
        <td>{{row.medical_records}}</td>
        <td>{{row.indications|linebreaks}}</td>
        <td>{{row.diagnosis_site}}</td>
        <td>{{row.number|default:"　"}}</td>
        <td>{{row.node|default:"　"}}</td>
        <td>{{row.mode|default:"　"}}</td>
        <td>{{row.time|default:"　"}}</td>
        <td>{{row.actual_treatment|default:"　"}}</td>
    </tr>
    {%endfor%}
    <tr>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
        <td>　</td>
    </tr>
</tbody>
</table>
</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>

