71 lines
1.7 KiB
HTML
Executable file
71 lines
1.7 KiB
HTML
Executable file
{% extends "base.html" %}
|
|
|
|
{% block head %}
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
for (i = new Date().getFullYear(); i >= 2007; i--)
|
|
{
|
|
$('#yearpicker').append($('<option />').val(i).html(i));
|
|
}
|
|
});
|
|
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block logo %}
|
|
<h1><a href="#">{{year}}年度 {{specialty}} 手術病例統計</a></h1>
|
|
{% endblock %}
|
|
|
|
{% block search %}
|
|
<form name="input" action="." method="post">{% csrf_token %}
|
|
<fieldset>
|
|
Filter: <input type="text" name="q" id="search-text" size="15" value="{{q}}" />
|
|
<input type="submit" value="All years" />
|
|
</fieldset>
|
|
<fieldset>
|
|
Year: <select name="year" id="yearpicker"></select>
|
|
<input type="submit" value="Go" />
|
|
</fieldset>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<a href = '.?xls=1&year={{year}}'>匯出 Excel 97-2003 XLS 工作簿</a><br/>
|
|
<a href = '/registry/op_report/?year={{year}}'>匯出 Excel 97-2003 XLS 工作簿(手術記錄報表)</a><br/>
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr style="background-color:#C0C0FF;">
|
|
<td><nobr>項目</nobr></td>
|
|
<td><nobr>一月</nobr></td>
|
|
<td><nobr>二月</nobr></td>
|
|
<td><nobr>三月</nobr></td>
|
|
<td><nobr>四月</nobr></td>
|
|
<td><nobr>五月</nobr></td>
|
|
<td><nobr>六月</nobr></td>
|
|
<td><nobr>七月</nobr></td>
|
|
<td><nobr>八月</nobr></td>
|
|
<td><nobr>九月</nobr></td>
|
|
<td><nobr>十月</nobr></td>
|
|
<td><nobr>十一</nobr></td>
|
|
<td><nobr>十二</nobr></td>
|
|
<td><nobr>年度總計</nobr></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in data %}
|
|
<tr>
|
|
{% for c in row %}
|
|
<td>
|
|
{% if forloop.first %}
|
|
<pre class="noborder">{{c|linebreaksbr}}</pre>
|
|
{% else %}
|
|
{{c}}
|
|
{% endif %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|