forked from ArctosDB/arctos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpecimenContainerLabels.cfm
42 lines (36 loc) · 1.43 KB
/
SpecimenContainerLabels.cfm
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
<cfinclude template="includes/_header.cfm">
<!--- no security --->
<cfif #action# is "nothing">
<cfoutput>
<form name="labels" method="post" action="SpecimenContainerLabels.cfm">
<input type="hidden" name="action">
<input type="button"
value="Clear Vial Labels"
class="delBtn"
onmouseover="this.className='delBtn btnhov'"
onmouseout="this.className='delBtn'"
onClick="labels.action.value='clearvial';submit();">
<input type="button"
value="Clear Box Labels"
class="delBtn"
onmouseover="this.className='delBtn btnhov'"
onmouseout="this.className='delBtn'"
onClick="labels.action.value='clearbox';submit();">
</form>
<br>
<br>
</cfoutput>
</cfif><!--- not action is nothing --->
<cfif #Action# is "clearbox">
<cfquery name="clear" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
update container set print_fg=null where print_fg=1
</cfquery>
<p><font color="#FF0000" size="+1">You've cleared all container print flags!</font></p>
</cfif>
<cfif #Action# is "clearvial">
<cfquery name="clear" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
update container set print_fg=null where print_fg=2
</cfquery>
<p><font color="#FF0000" size="+1">You've cleared all vial print flags!</font></p>
</cfif>
<cfinclude template="includes/_footer.cfm">