If Len(Trim(strHTMLTop)) > 0 Or Len(Trim(strHTMLBottom)) > 0 Then
%>
MARGIN-LEFT: 0;
<%
ElseIf strDisplayBorderYN = SUR_BOOLEAN_POSITIVE Then
%>
MARGIN-LEFT: 10;
<%
Else
%>
MARGIN-LEFT: 3;
<%
End If
%>
MARGIN-RIGHT: 0;
MARGIN-BOTTOM: 0;
<%
'If not top HTML was provided, leave a 15-pixel margin at the top; otherwise, flush the survey with the top,
'and let the top HTML establish the look and feel.
If Len(Trim(strHTMLTop)) = 0 Then
%>
MARGIN-TOP: 15;
<%
Else
%>
MARGIN-TOP: 0;
<%
End If
%>
}
.Normal
{
COLOR: <% If Len(rsSurvey("question_text_font_color")) > 0 Then Response.Write rsSurvey("question_text_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsSurvey("question_text_font_size")) > 0 Then Response.Write rsSurvey("question_text_font_size") Else Response.Write "12" End If %>px;
COLOR: <% If Len(rsSurvey("survey_name_font_color")) > 0 Then Response.Write rsSurvey("survey_name_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsSurvey("survey_name_font_size")) > 0 Then Response.Write rsSurvey("survey_name_font_size") Else Response.Write "18" End If %>px;
}
.H2HeadingStyle
{
COLOR: <% If Len(rsSurvey("page_number_font_color")) > 0 Then Response.Write rsSurvey("page_number_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsSurvey("page_number_font_size")) > 0 Then Response.Write rsSurvey("page_number_font_size") Else Response.Write "16" End If %>px;
}
.InlineHelpSpanStyle
{
COLOR: <% If Len(rsSurvey("question_subtext_font_color")) > 0 Then Response.Write rsSurvey("question_subtext_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
FONT-SIZE: <% If Len(rsSurvey("question_subtext_font_size")) > 0 Then Response.Write rsSurvey("question_subtext_font_size") Else Response.Write "10" End If %>px;
COLOR: <% If Len(rsSurvey("page_title_font_color")) > 0 Then Response.Write rsSurvey("page_title_font_color") Else Response.Write SUR_DEFAULT_FONT_COLOR End If %>;
<table border="0" cellspacing="0" cellpadding="5" width="760" align="<% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write "center" End If %>">
<%
'Optionally display a logo at the top of the survey
If IsNull(strLogoPath) Or Len(strLogoPath) = 0 Then
%>
<tr>
<td height="44" valign="bottom">
<% If strDisplayBorderYN = SUR_BOOLEAN_NEGATIVE Then Response.Write " " End If %><span class="H1HeadingStyle"><a name="skipnav" tabindex="1"><%=strTitle%></a></span>
</td>
</tr>
<%
Else
'Whether the image alignment is left or right determines how the image and title are rendered
If strLogoAlignment = SUR_LOGO_ALIGNMENT_LEFT Then
<table style="background-color:<%=strBorderColor%>" cellspacing="0" cellpadding="<%=lngBorderWidth%>" width="760" align="<% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write "center" End If %>"><tr><td>
<table style="background-color:<%=strSurveyBackgroundColor%>" cellspacing="0" cellpadding="0" width="760" align="<% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write "center" End If %>"><tr><td>
<img style="cursor:hand" onClick="javascript:window.close();" border="0" alt="Close this window" name="btnClose" src="Resources/SurveyButtons/Close.gif">
<%
End If
'If the survey was in manual data entry mode, display a button to allow the user to submit again
If flgManualResponseEntryMode = True Then
%>
<a href="TakeSurvey.asp?DisplayHeader=Yes&SurveyID=<%=EncryptSurveyID(lngSurveyID)%>"><img border="0" alt="Enter another survey response" name="btnEnterNextResponse" src="Resources/SurveyButtons/EnterNextResponse.gif"></a>
<%
Else
'If the user can view the overview reports and the survey option was set to display a button to view report,
'display a button linking to it.
If flgCanUserViewOverviewReport = True And strReportsButton = SUR_BOOLEAN_POSITIVE Then
%>
<a href="ResultsOverview.asp?DisplayHeader=<%=Request.QueryString("DisplayHeader")%>&SurveyID=<%=lngSurveyID%>"><img border="0" alt="View reports for this survey" name="btnViewReports" src="Resources/SurveyButtons/ViewReports.gif"></a>