home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
bombers.k12.ar.us
/
bombers.k12.ar.us.tar
/
bombers.k12.ar.us
/
survey_unconfigured
/
SendFollowUpMessage2.asp
< prev
next >
Wrap
Text File
|
2006-10-25
|
10KB
|
227 lines
<!--#Include File="Include/Top_inc.asp"-->
<%
'***********************************************************************
' Application: SelectSurveyASP Advanced v8.1.11
' Author: Aaron Baril for ClassApps.com
' Page Description: This page allows the user to input information for
' sending out follow-up messages for a previous message.
'
' COPYRIGHT NOTICE
'
' See attached Software License Agreement
'
' (c) Copyright 2002 - 2006 by ClassApps.com. All rights reserved.
'***********************************************************************
%>
<!--#Include File="Include/SurveyUtility_inc.asp"-->
<!--#Include File="Include/Utility_inc.asp"-->
<!--#Include File="Include/Constants_inc.asp"-->
<!--#Include File="Include/Config_inc.asp"-->
<!--#Include File="Include/ID_inc.asp"-->
<!--#Include File="Include/adovbs_inc.asp"-->
<!--#Include File="Include/CurrentUser_inc.asp"-->
<!--#Include File="Include/SurveySecurity_inc.asp"-->
<%
'If the user does not have "Create" or "Admin" permission, redirect them to the access denied page.
If lngUserSecurityLevel <> SUR_SECURITY_LEVEL_CREATE And lngUserSecurityLevel <> SUR_SECURITY_LEVEL_ADMIN Then
Response.Redirect "AccessDenied.asp?Reason=" & SUR_ACCESS_DENIED_NOT_ADMIN_SECURITY_LEVEL
End If
Dim lngEmailListID
Dim strEmailAddresses
Dim flgUsingEmailList
Dim flgDisplayFirstSurvey
'Initialization
lngEmailListID = Request.Form("EmailListID")
%>
<html>
<head>
<title>Send Follow-Up Message</title>
<link rel="stylesheet" href="Resources/StyleSheet/SurveyStyle.css">
</head>
<script language ="JavaScript" src="ClientInclude/Utility.js"></script>
<script language ="JavaScript">
function submitCheck()
{
if (trim(document.forms['frmSendFollowUpMessage'].txtSubject.value) == "")
{
alert("Please enter a value for the Subject.");
document.forms['frmSendFollowUpMessage'].txtSubject.focus();
return false;
}
// Make sure a From email address was entered
if (trim(document.forms['frmSendFollowUpMessage'].txtFromAddress.value) == "")
{
alert("Please enter a value for the 'From' email address.");
document.forms['frmSendFollowUpMessage'].txtFromAddress.focus();
return false;
}
// Make sure the From email address is in a valid format
if (isValidEmailAddress(trim(document.forms['frmSendFollowUpMessage'].txtFromAddress.value)) == false)
{
alert("The 'From' email address entered is not a valid format for an email address.");
document.forms['frmSendFollowUpMessage'].txtFromAddress.focus();
return false;
}
// Make sure text was entered for the body of the email
if (trim(document.forms['frmSendFollowUpMessage'].txtEmailText.value) == "")
{
alert("Please enter a value for the text of the email.");
document.forms['frmSendFollowUpMessage'].txtEmailText.focus();
return false;
}
// Make sure the #SurveyLink# token is in the email text
var strEmailText = document.forms['frmSendFollowUpMessage'].txtEmailText.value;
if (strEmailText.indexOf('#SurveyLink#') == -1)
{
alert("The #SurveyLink# token must be included in the text of the email.");
document.forms['frmSendFollowUpMessage'].txtEmailText.focus();
return false;
}
return true;
}
</script>
<body class="MainBodyStyle">
<!--#Include File="Include/FrameworkTop_inc.asp"-->
<table border="0" cellspacing="0" cellpadding="0" width="754" class="MediumBlueBackgroundColor">
<tr>
<td height="36" valign="center">
<span class="H1HeadingStyle"><a name="skipnav" tabindex="1">Send Follow-Up Message</a></span> <img style="cursor:hand" alt="Help" onClick="javascript:window.open('Help/Help.htm#EmailMessages', null, 'menubar=no,toolbar=no,titlebar=no,status=no,left=10,top=10,scrollbars=yes,resizable=yes,height=550,width=770');" border="0" src="Resources/Images/Help.gif">
</td>
</tr>
</table>
<!--#Include File="Include/FrameworkTop2_inc.asp"-->
<table width="740" border="0" cellpadding="0" cellspacing="6" class="LightGrayBackgroundColor">
<form action="SendFollowUpMessageAction.asp" method="post" name="frmSendFollowUpMessage" onSubmit="return submitCheck();">
<input type="hidden" name="EmailListID" value="<%=Request.Form("EmailListID")%>">
<input type="hidden" name="EmailListName" value="<%=Request.Form("EmailListName")%>">
<input type="hidden" name="EmailMessageID" value="<%=Request.Form("EmailMessageID")%>">
<input type="hidden" name="Subject" value="<%=Request.Form("Subject")%>">
<input type="hidden" name="NoResponse" value="<%=Request.Form("chkNoResponse")%>">
<input type="hidden" name="Declined" value="<%=Request.Form("chkDeclined")%>">
<input type="hidden" name="Responded" value="<%=Request.Form("chkResponded")%>">
<tr>
<td width="1" rowspan="2"></td>
<td height="34" valign="center">
<span class="H2HeadingStyle">Step 2 of 2 -- Follow-Up Message Details</span>
</td>
<td width="1" rowspan="2"> </td>
</tr>
<tr>
<td valign="top" width="710" height="34">
<span class="Normal">
All fields marked with a red asterisk (<span class="Required">*</span>) are required.
You can personalize your email by including tokens in it, as described below. When finished,
click the Send button to send the email to the designated recipients.
</span>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="1" background="Resources/Images/ThinDivider.gif"></td></tr>
<table border="0" cellpadding="0" cellspacing="6" width="740" class="WhiteBackgroundColor">
<tr>
<td height="8"></td>
</tr>
<tr>
<td width="1" rowspan="10"></td>
<td valign="top" class="NormalBold" width="160">
<label for="txtSubject">Email Subject:</label><span class="Required">*</span>
</td>
<td valign="top" class="Normal" width="520">
<input type="text" name="txtSubject" id="txtSubject" maxlength="125" style="width:545">
</td>
<td width="1" rowspan="10"> </td>
</tr>
<tr>
<td valign="top" class="NormalBold">
<label for="txtFromAddress">'From' Address:</label><span class="Required">*</span>
</td>
<td valign="top" class="Normal">
<span class="InlineHelpSpanStyle">Enter the email address that the email should appear to come from.</span>
<input type="text" name="txtFromAddress" id="txtFromAddress" maxlength="50" style="width:545">
</td>
</tr>
<tr>
<td valign="top" class="NormalBold">
<label for="txtCCAddress">'CC' Address(es):</label>
</td>
<td valign="top" class="Normal">
<span class="InlineHelpSpanStyle">If desired, you may enter any email address(es) that should be CC'ed for each email. Multiple email
addresses should be separated by a semi-colon.<span>
<input type="text" name="txtCCAddress" id="txtCCAddress" maxlength="50" style="width:545">
</td>
</tr>
<tr>
<td valign="top" class="NormalBold">
<label for="txtBCCAddress">'BCC' Address(es):</label>
</td>
<td valign="top" class="Normal">
<span class="InlineHelpSpanStyle">If desired, you may enter any email address(es) that should be BCC'ed for each email. Multiple email
addresses should be separated by a semi-colon.<span>
<input type="text" name="txtBCCAddress" id="txtBCCAddress" maxlength="50" style="width:545">
</td>
</tr>
<tr>
<td valign="top" class="NormalBold">
<label for="txtEmailText">Email Text:</label><span class="Required">*</span>
</td>
<td valign="top" class="Normal">
<span class="InlineHelpSpanStyle">
Enter the text of your email below. You may include the following tokens,
each of which will be replaced, as noted, in the actual email:<br>
#SurveyLink# - The location of the link to the survey (required)<br>
#DeclineLink# - The location of the link a user can click to decline responding to the survey<br>
#FirstName# - The first name of the email recipient<br>
#LastName# - The last name of the recipient<br>
#CustomData1# - The first custom data field<br>
#CustomData2# - The second custom data field<br>
#CustomData3# - The third custom data field
<span>
<textarea class="TextareaStyle" rows="8" name="txtEmailText" id="txtEmailText" style="width:545">Dear #FirstName#,
We are conducting a survey, and would appreciate your response.
The link to the survey is:
#SurveyLink#
If you do not wish to respond to this survey, please click on the link below to decline:
#DeclineLink#
Thanks in advance for responding to the survey,
<%=GetUserFirstName()%>
</textarea><br>
<input type="checkbox" name="chkHTMLFormat" id="chkHTMLFormat"> <label for="chkHTMLFormat">Send email in HTML format</label>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<a href="javascript:window.history.go(-1);"><img border="0" alt="Back" src="Resources/Buttons/Back.gif" name="btnBack"></a>
<a href="EmailMessageList.asp?EmailListID=<%=Request.Form("EmailListID")%>&EmailListName=<%=Request.Form("EmailListName")%>"><img border="0" alt="Cancel" src="Resources/Buttons/Cancel.gif" name="btnCancel"></a>
<input type="image" border="0" alt="Send" src="Resources/Buttons/Send.gif" name="btnSend">
</td>
</tr>
</form>
</table>
<!--#Include File="Include/FrameworkBottom_inc.asp"-->
</body>
</html>
<%
'Ensure that the web server returns the page
Response.Flush
%>