<!-- BEGIN [% template.name %] -->
[% META title = 'Record » Export Lab Test Results' -%]
[% # PROCESS dumper.tt dump = sub_cats %]
<h3 class="header">Export Lab Test Results</h3>
<script type="text/javascript" src="/js/jquery.dateentry.min.js"></script>
<script type="text/javascript" src="/js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="/js/changeField.js"></script>
<script type="text/javascript">
function submitForm(s) {
s.value = "Compiling data, please wait ...";
return true;
}
</script>
<form action="[% app_url %]/result/do_export_test_results" method="post"
onsubmit="return submitForm(this.submit);">
<p>Optional constraints:
[% div_name = 'constraints'; INCLUDE site/snippets/toggleview.tt %]
</p>
<div id="constraints" class="itemhidden">
<div class="indent">
<p>A: Diagnostic categories:</p>
<table class="indent">
[% FOREACH entry IN sub_cats;
NEXT UNLESS entry.category_type.match('sub') %]
<tr>
<td class="label"> [% entry.description %]:</td>
<td class="content">
<input type="checkbox" name="category_id" value="[% entry.id %]" />
</td>
</tr>
[% END %]
</table>
</div>
<p class="indent">B: Date range:
<input type="text" name="date_from" id="date_from" size="8" /> to
<input type="text" name="date_to" id="date_to" size="8" />
</p>
</div>
<p class="bold">Select section:
<select name="section_id">
<option value="">-- select one --</option>
[% FOREACH entry IN sections %]
<option value="[% entry.id %]" [% 'selected'
IF entry.id == c.query.param('section_id') %]>
[% entry.section_name %]
</option>
[% END %]
</select>
<input type="submit" value="Go" name="submit" class="button" />
</p>
</div>
</form>
<!-- END [% template.name %] -->