home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
bombers.k12.ar.us
/
bombers.k12.ar.us.tar
/
bombers.k12.ar.us
/
survey_unconfigured
/
DisplayResponse.asp
< prev
next >
Wrap
Text File
|
2006-10-25
|
3KB
|
133 lines
<!--#Include File="Include/Top_inc.asp"-->
<%
'***********************************************************************
' Application: SelectSurveyASP Advanced v8.1.11
' Author: Eric Posnack for ClassApps.com
' Page Description: This page displays the survey title, and the user first
' and last name after completing a survey.
'
' COPYRIGHT NOTICE
'
' See attached Software License Agreement
'
' (c) Copyright 2002 - 2006 by ClassApps.com. All rights reserved.
'***********************************************************************
%>
<!--#Include File="Include/Constants_inc.asp"-->
<!--#Include File="Include/SurveyUtility_inc.asp"-->
<!--#Include File="Include/Utility_inc.asp"-->
<!--#Include File="Include/CurrentUser_inc.asp"-->
<!--#Include File="Include/SurveySecurity_inc.asp"-->
<!--#Include File="Include/Config_inc.asp"-->
<!--#Include File="Include/adovbs_inc.asp"-->
<%
Dim strPageTitle
Dim strSQL
Dim rsSurveyMessage
Dim lngSurveyID
Dim strTitle
Dim strFirstName
Dim strLastName
'Initialization
strPageTitle = "Survey Complete"
Set rsSurveyMessage = Server.CreateObject("ADODB.Recordset")
'Select the list of all open surveys
strSQL = "SELECT title, first_name, last_name " & _
"FROM sur_user u, sur_response r, sur_survey s " & _
"WHERE r.username = u.username " & _
"AND r.survey_id = s.survey_id " & _
"AND r.response_id = " & Request.QueryString("ResponseID")
rsSurveyMessage.Open ConvertSQL(strSQL), SURVEY_APP_CONNECTION, adOpenForwardOnly, adLockReadOnly, adCmdText
If rsSurveyMessage.EOF = True Then
strTitle = "Unknown Title"
strFirstName = ""
strLastName = ""
Else
rsSurveyMessage.MoveFirst
strTitle = rsSurveyMessage("title")
strFirstName = rsSurveyMessage("first_name")
strLastName = rsSurveyMessage("last_name")
End If
'Clean up
rsSurveyMessage.Close
Set rsSurveyMessage = Nothing
%>
<html>
<head>
<title><%=strPageTitle%></title>
<link rel="stylesheet" href="Resources/StyleSheet/SurveyStyle.css">
</head>
<body class="MainWindowLightBodyStyle">
<center>
<center>
<table cellpadding="0" cellspacing="0" border="0" width="760">
<tr>
<td width="100%" colspan="2">
<!--#Include File="Include/Header_inc.asp"-->
</td>
</tr>
<tr>
<td width="0">
<!--#Include File="Include/Sidebar_inc.asp"-->
</td>
<td>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<span class="H1HeadingStyle"><a name="skipnav" tabindex="1"><%=strPageTitle%></a></span>
</td>
</tr>
</table>
<%
'Render the top of the wizard box
RenderWizardBoxTop()
%>
<table cellspacing="0" border="0" cellpadding="8" width="740">
<tr>
<td>
<span class="Normal">
Thank you for taking this survey.
<br><br>
Survey Title: <%=strTitle%><br>
First Name: <%=strFirstName%><br>
Last Name: <%=strLastName%><br>
</span>
</td>
</tr>
</table>
<br>
<%
'Render the bottom of the wizard box
RenderWizardBoxBottom()
%>
</td>
</tr>
<tr>
<td width="100%" colspan="2">
<!--#Include File="Include/Footer_inc.asp"-->
</td>
</tr>
</table>
</center>
</center>
</body>
</html>
<%
'Ensure that the web server returns the page
Response.Flush
%>