forked from smuwanga/ViralLoad
/
tpl.samples.default.php
95 lines (94 loc) · 4.78 KB
/
tpl.samples.default.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?
//security check
if(!$GLOBALS['vlDC'] || !$_SESSION["VLEMAIL"]) {
die("<font face=arial size=2>You must be logged in to view this page.</font>");
}
$sampleRef=0;
if($sampleReferenceNumber) {
$sampleRef=vlDecrypt($sampleReferenceNumber);
}
?>
<table width="100%" border="0" class="vl">
<? if($success) { ?>
<tr>
<td colspan="2" class="vl_success">Sample Captured Successfully<?=($sampleRef?" with Sample Reference Number <strong>$sampleRef</strong>":"")?>!</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<? } elseif($modified) { ?>
<tr>
<td colspan="2" class="vl_success">Sample Modifications Saved!</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<? } elseif($reviewed) { ?>
<tr>
<td colspan="2" class="vl_success">Review Notes Captured Successfully!</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<? } elseif($incorrect) { ?>
<tr>
<td colspan="2" class="vl_error">Incorrect Form or Sample Reference Number! Please try again.</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<? } ?>
<tr>
<td width="5%" align="center" valign="top"><a href="/samples/" class="vll_grey"><img src="/images/icon.samples.gif" border="0" /></a></td>
<td width="95%" style="padding:0px 0px 0px 30px"><table width="100%" cellpadding="0" cellspacing="0" border="0" class="vl">
<tr>
<td><strong>Samples</strong></td>
</tr>
<tr>
<td class="vls_grey">Samples Management</td>
</tr>
<tr>
<td style="padding:20px 0px 10px 0px; border-bottom: 1px dashed #dfe6e6">
<a href="/samples/capture/">Input a New Sample</a>
<div class="vls_grey" style="padding:2px 0px 0px 0px">Input Samples as retrieved from Envelopes</div>
</td>
</tr>
<tr>
<td style="padding:10px 0px 15px 0px; border-bottom: 1px dashed #dfe6e6">
<strong>Edit Samples</strong>
<div class="vls_grey" style="padding:2px 0px 0px 0px">Edit Data on Previously Captured Samples, Search for the Sample by <strong>Form #</strong> or <strong>Sample Reference Number</strong></div>
<div class="vls_grey" style="padding:5px 0px 0px 0px">
<script Language="JavaScript" Type="text/javascript">
<!--
function checkForm(findSample) {
//check for missing information
if(!document.findSample.sample.value || document.findSample.sample.value=='Search by Form Number') {
alert('Please input a Form # before Proceeding');
document.findSample.sample.focus();
return (false);
}
return (true);
}
//-->
</script>
<!--<form name="findSample" id="findSample" method="post" action="/samples/find.and.edit/" onsubmit="return checkForm(this)">-->
<form name="findSample" id="findSample" method="post" action="/samples/find.and.edit/">
<table width="40%" border="0" cellspacing="0" cellpadding="0" class="vl">
<tr>
<td width="5%" style="padding:0px 5px 0px 0px"><input type="text" name="sample" id="sample" value="Search by Form Number" class="search_pre" size="20" maxlength="100" onfocus="if(value=='Search by Form Number') {value=''}" onblur="if(value=='') {value='Search by Form Number'}" /></td>
<td width="95%"><input type="submit" name="Submit" class="buttonsmall" value=" Find and Edit Sample " /></td>
</tr>
</table>
</form>
</div>
</td>
</tr>
<tr>
<td style="padding:10px 0px 0px 0px">
<a href="/samples/manage.patients/">Manage Patients</a>
<div class="vls_grey" style="padding:2px 0px 0px 0px">Edit Data on Previously Captured Patients</div>
</td>
</tr>
</table></td>
</tr>
</table>