Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <title>WAIT</title>
- </head>
- <body BGCOLOR="#00CCFF">
- <cfif IsDefined("cookie.userID") is True>
- <!--- Now we pull all the information from the cookies --->
- <cfscript>
- userID = cookie.userID;
- userSite = cookie.userSite;
- userSess = cookie.userSess;
- userFName = cookie.userFName;
- userLName = cookie.userLName;
- userEmail = cookie.userEmail;
- userSiteFirst = cookie.userSiteFirst; //If userSiteFirst <> userSite, than s/he gets to stay here for a while.
- </cfscript>
- <CFQUERY DATASOURCE="tr3" NAME="qrySessionRun">
- SELECT *
- FROM RunTR2
- WHERE session = #userSess#
- </CFQUERY>
- <CFQUERY DATASOURCE="tr3" NAME="qryMatchDone">
- SELECT choice_1
- FROM UsrMatchPrefTR2
- WHERE session = #userSess# AND user_id = #userID#
- </CFQUERY>
- <CFOUTPUT>
- <cfif userSite eq userSiteFirst>
- <h2 align="center">When the Experiment is ready to begin the matching process, a CONTINUE Button will appear.</H2>
- <cfelse>
- <h2 align="center">The other experiment site is choosing their partners.</H2>
- </cfif>
- <h2 align="center">Please wait.</H2>
- <h3 align="center">Thank you for your patience #userFName# #userLName#.
- You are assigned at Machine: #userID#</h3>
- </cfoutput>
- <cfif userSite eq userSiteFirst>
- <!--- So yeah, we check to see if match = 1, and if so, we will print out the form of matching people --->
- <cfif (qrySessionRun.matching eq 1)>
- <!--- If the users are ready to be matched AND they haven't arleady made their choice print the choices and let them select their preferences --->
- <!---- We are going to do this at match.cfm so yeah let's send them over there --->
- <cflocation url="/newTR3/match.cfm">
- <cfelse>
- <br><center>Still waiting for other people to enter their information.</center><br>
- <meta http-equiv=Refresh content="5;url=http://cbees-dev.utdallas.edu/newTR3/wait.cfm"> <!--- Change --->
- </cfif>
- <cfelseif userSite neq userSiteFirst>
- <!--- People who are not matching will be just waiting here while their counterparts make their decision --->
- <!--- We will loop through this page checking to see if RunTR2.ready == 1 --->
- <cfif qrySessionRun.ready eq 1>
- <!--- The matches have been made, lets send them to the experiment! --->
- <cflocation url="/newTR3/experiment/exp1.cfm">
- <cfelseif qrySessionRun.ready neq 1>
- <!--- We stil get to wait. :D Going to refresh cookies refresh the page. --->
- <meta http-equiv=Refresh content="5;url=http://cbees-dev.utdallas.edu/newTR3/wait.cfm">
- </cfif>
- </cfif>
- <cfelse>
- <cfoutput> So some how the cookie no longer exists. :S</cfoutput>
- </cfif>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement