home *** CD-ROM | disk | FTP | other *** search
/ bombers.k12.ar.us / bombers.k12.ar.us.tar / bombers.k12.ar.us / survey_unconfigured / Template.asp < prev    next >
Text File  |  2006-10-25  |  48KB  |  946 lines

  1. <!--#Include File="Include/Top_inc.asp"-->
  2. <%
  3. '***********************************************************************
  4. '   Application: SelectSurveyASP Advanced v8.1.11
  5. '   Author: Aaron Baril for ClassApps.com
  6. '   Page Description: This page allows for editing an existing template
  7. '                      or creating a new one.  
  8. '
  9. '   COPYRIGHT NOTICE                                
  10. '
  11. '   See attached Software License Agreement
  12. '
  13. '   (c) Copyright 2002 - 2006 by ClassApps.com.  All rights reserved.
  14. '***********************************************************************
  15. %>
  16. <!--#Include File="Include/Config_inc.asp"-->
  17. <!--#Include File="Include/SurveyUtility_inc.asp"-->
  18. <!--#Include File="Include/Utility_inc.asp"-->
  19. <!--#Include File="Include/adovbs_inc.asp"-->
  20. <!--#Include File="Include/Constants_inc.asp"-->
  21. <!--#Include File="Include/SurveySecurity_inc.asp"-->
  22. <!--#Include File="Include/CurrentUser_inc.asp"-->
  23.  
  24. <script language="JavaScript">
  25. function displayColorPicker(strFormName, strControlName)
  26. {
  27.     window.open('ColorPicker.asp?FormName=' + strFormName + '&ControlName=' + strControlName, null, 'menubar=no,toolbar=no,titlebar=no,status=no,left=0,top=0,scrollbars=yes,resizable=yes,height=600,width=800');
  28. }
  29. </script>
  30.  
  31. <%
  32.     Dim rsTemplate
  33.     Dim lngTemplateID
  34.     Dim strSQL
  35.     Dim strPageTitle
  36.     Dim strActiveYN
  37.     Dim strTemplateName
  38.     Dim lngUserID
  39.     Dim strAllowUseYN
  40.     Dim strLogoPath
  41.     Dim strLogoAlignment
  42.     Dim strSurveyAlignment
  43.     Dim strDisplayBorderYN
  44.     Dim strBorderColor
  45.     Dim lngBorderWidth
  46.     Dim strSurveyBackgroundColor
  47.     Dim strPageBackgroundColor
  48.     Dim strMatrixHeaderColor
  49.     Dim strMatrixFirstColor
  50.     Dim strMatrixSecondColor
  51.     Dim strProgressFirstColor
  52.     Dim strProgressSecondColor
  53.     Dim strSurveyNameFontColor
  54.     Dim lngSurveyNameFontSize
  55.     Dim strSurveyNameFontWeight
  56.     Dim strSurveyNameFontFamily
  57.     Dim strPageTitleFontColor
  58.     Dim lngPageTitleFontSize
  59.     Dim strPageTitleFontWeight
  60.     Dim strPageTitleFontFamily
  61.     Dim strPageNumberFontColor
  62.     Dim lngPageNumberFontSize
  63.     Dim strPageNumberFontWeight
  64.     Dim strPageNumberFontFamily
  65.     Dim strQuestionTextFontColor
  66.     Dim lngQuestionTextFontSize
  67.     Dim strQuestionTextFontWeight
  68.     Dim strQuestionTextFontFamily
  69.     Dim strQuestionSubtextFontColor
  70.     Dim lngQuestionSubtextFontSize
  71.     Dim strQuestionSubtextFontWeight
  72.     Dim strQuestionSubtextFontFamily
  73.     Dim strNavigationLinkFontColor
  74.     Dim lngNavigationLinkFontSize
  75.     Dim strNavigationLinkFontWeight
  76.     Dim strNavigationLinkFontFamily
  77.     Dim strHTMLTop
  78.     Dim strHTMLBottom
  79.     Dim strNavigationBackButtonPath
  80.     Dim strNavigationBackLinkText
  81.     Dim strNavigationNextButtonPath
  82.     Dim strNavigationNextLinkText
  83.     Dim strNavigationCancelButtonPath
  84.     Dim strNavigationCancelLinkText
  85.     Dim strNavigationDoneButtonPath
  86.     Dim strNavigationDoneLinkText
  87.  
  88.     'Initialization
  89.     Set rsTemplate = Server.CreateObject("ADODB.Recordset")
  90.     lngTemplateID = Request.QueryString("TemplateID")
  91.     strPageTitle = "Edit Template"
  92.     
  93.     'Load the existing data from the database
  94.     strSQL = "SELECT active_yn, template_name, user_id, allow_use_yn, logo_path, matrix_header_color, " & _
  95.                 "logo_alignment, survey_alignment, display_border_yn, border_color, border_width, survey_background_color, " & _
  96.                 "page_background_color, matrix_first_color, matrix_second_color, progress_first_color, progress_second_color, " & _
  97.                 "survey_name_font_color, survey_name_font_size, survey_name_font_weight, survey_name_font_family, " & _
  98.                 "page_title_font_color, page_title_font_size, page_title_font_weight, page_title_font_family, " & _
  99.                 "page_number_font_color, page_number_font_size, page_number_font_weight, " & _
  100.                 "page_number_font_family, question_text_font_color, question_text_font_size, question_text_font_weight, " & _
  101.                 "question_text_font_family, question_subtext_font_color, question_subtext_font_size, " & _
  102.                 "question_subtext_font_weight, question_subtext_font_family, navigation_link_font_color, " & _
  103.                 "navigation_link_font_size, navigation_link_font_weight, navigation_link_font_family, html_top, html_bottom, " & _
  104.                 "navigation_back_button_path, navigation_back_link_text, navigation_next_button_path, navigation_next_link_text, " & _
  105.                 "navigation_cancel_button_path, navigation_cancel_link_text, navigation_done_button_path, navigation_done_link_text " & _
  106.               "FROM sur_template " & _
  107.               "WHERE template_id = " & lngTemplateID
  108.     rsTemplate.Open ConvertSQL(strSQL), SURVEY_APP_CONNECTION, adOpenForwardOnly, adLockReadOnly, adCmdText
  109.     rsTemplate.MoveFirst
  110.  
  111.     'Capture all of the fields in local variables
  112.     strActiveYN = rsTemplate("active_yn")
  113.     strTemplateName = rsTemplate("template_name")
  114.     lngUserID = rsTemplate("user_id")
  115.     strAllowUseYN = rsTemplate("allow_use_yn")
  116.     strLogoPath = rsTemplate("logo_path")
  117.     strLogoAlignment = rsTemplate("logo_alignment")
  118.     strSurveyAlignment = rsTemplate("survey_alignment")
  119.     strDisplayBorderYN = rsTemplate("display_border_yn")
  120.     strBorderColor = rsTemplate("border_color")
  121.     lngBorderWidth = rsTemplate("border_width")
  122.     strSurveyBackgroundColor = rsTemplate("survey_background_color")
  123.     strPageBackgroundColor = rsTemplate("page_background_color")
  124.     strMatrixHeaderColor = rsTemplate("matrix_header_color")
  125.     strMatrixFirstColor = rsTemplate("matrix_first_color")
  126.     strMatrixSecondColor = rsTemplate("matrix_second_color")
  127.     strProgressFirstColor = rsTemplate("progress_first_color")
  128.     strProgressSecondColor = rsTemplate("progress_second_color")
  129.     strSurveyNameFontColor = rsTemplate("survey_name_font_color")
  130.     lngSurveyNameFontSize = rsTemplate("survey_name_font_size")
  131.     strSurveyNameFontWeight = rsTemplate("survey_name_font_weight")
  132.     strSurveyNameFontFamily = rsTemplate("survey_name_font_family")
  133.     strPageTitleFontColor = rsTemplate("page_title_font_color")
  134.     lngPageTitleFontSize = rsTemplate("page_title_font_size")
  135.     strPageTitleFontWeight = rsTemplate("page_title_font_weight")
  136.     strPageTitleFontFamily = rsTemplate("page_title_font_family")
  137.     strPageNumberFontColor = rsTemplate("page_number_font_color")
  138.     lngPageNumberFontSize = rsTemplate("page_number_font_size")
  139.     strPageNumberFontWeight = rsTemplate("page_number_font_weight")
  140.     strPageNumberFontFamily = rsTemplate("page_number_font_family")
  141.     strQuestionTextFontColor = rsTemplate("question_text_font_color")
  142.     lngQuestionTextFontSize = rsTemplate("question_text_font_size")
  143.     strQuestionTextFontWeight = rsTemplate("question_text_font_weight")
  144.     strQuestionTextFontFamily = rsTemplate("question_text_font_family")
  145.     strQuestionSubtextFontColor = rsTemplate("question_subtext_font_color")
  146.     lngQuestionSubtextFontSize = rsTemplate("question_subtext_font_size")
  147.     strQuestionSubtextFontWeight = rsTemplate("question_subtext_font_weight")
  148.     strQuestionSubtextFontFamily = rsTemplate("question_subtext_font_family")
  149.     strNavigationLinkFontColor = rsTemplate("navigation_link_font_color")
  150.     lngNavigationLinkFontSize = rsTemplate("navigation_link_font_size")
  151.     strNavigationLinkFontWeight = rsTemplate("navigation_link_font_weight")
  152.     strNavigationLinkFontFamily = rsTemplate("navigation_link_font_family")
  153.     strHTMLTop = rsTemplate("html_top")
  154.     strHTMLBottom = rsTemplate("html_bottom")
  155.     strNavigationBackButtonPath = rsTemplate("navigation_back_button_path")
  156.     strNavigationBackLinkText = rsTemplate("navigation_back_link_text")
  157.     strNavigationNextButtonPath = rsTemplate("navigation_next_button_path")
  158.     strNavigationNextLinkText = rsTemplate("navigation_next_link_text")
  159.     strNavigationCancelButtonPath = rsTemplate("navigation_cancel_button_path")
  160.     strNavigationCancelLinkText = rsTemplate("navigation_cancel_link_text")
  161.     strNavigationDoneButtonPath = rsTemplate("navigation_done_button_path")
  162.     strNavigationDoneLinkText = rsTemplate("navigation_done_link_text")
  163.         
  164.     'Clean up
  165.     rsTemplate.Close
  166.     Set rsTemplate = Nothing
  167. %>
  168.  
  169. <html>
  170. <head>
  171.     <title><%=strPageTitle%></title>
  172.     <link rel="stylesheet" href="Resources/StyleSheet/SurveyStyle.css">
  173. </head>
  174.  
  175. <script language ="JavaScript" src="ClientInclude/Utility.js"></script>
  176. <script language="JavaScript">
  177. function deleteTemplate()
  178. {
  179.     if (confirm("Are you sure you want to delete this template?") == true) //OK
  180.     {
  181.         window.location.href = 'DeleteTemplate.asp?TemplateID=<%=lngTemplateID%>';
  182.     }
  183. }
  184.  
  185. function submitCheck() 
  186. {
  187.     if (trim(document.forms['frmTemplate'].txtTemplateName.value) == '')
  188.     {    
  189.         alert("Please enter a value for the template.");
  190.         document.forms['frmTemplate'].txtTemplateName.focus();
  191.         return false;
  192.     }
  193.     
  194.     if (trim(document.forms['frmTemplate'].txtBorderColor.value) != '')
  195.     {
  196.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtBorderColor.value)) == false)
  197.         {
  198.             alert("Please enter a valid hexadecimal value for the border color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  199.             document.forms['frmTemplate'].txtBorderColor.focus();
  200.             return false;
  201.         }
  202.     }
  203.     
  204.     if (trim(document.forms['frmTemplate'].txtSurveyBackgroundColor.value) == '')
  205.     {
  206.         alert("Please enter a survey background color.");
  207.         document.forms['frmTemplate'].txtSurveyBackgroundColor.focus();
  208.         return false;
  209.     }
  210.     
  211.     if (trim(document.forms['frmTemplate'].txtSurveyBackgroundColor.value) != '')
  212.     {
  213.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtSurveyBackgroundColor.value)) == false)
  214.         {
  215.             alert("Please enter a valid hexadecimal value for the survey background color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  216.             document.forms['frmTemplate'].txtSurveyBackgroundColor.focus();
  217.             return false;
  218.         }
  219.     }
  220.     
  221.     if (trim(document.forms['frmTemplate'].txtPageBackgroundColor.value) == '')
  222.     {
  223.         alert("Please enter a page background color.");
  224.         document.forms['frmTemplate'].txtPageBackgroundColor.focus();
  225.         return false;
  226.     }
  227.     
  228.     if (trim(document.forms['frmTemplate'].txtPageBackgroundColor.value) != '')
  229.     {
  230.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtPageBackgroundColor.value)) == false)
  231.         {
  232.             alert("Please enter a valid hexadecimal value for the page background color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  233.             document.forms['frmTemplate'].txtPageBackgroundColor.focus();
  234.             return false;
  235.         }
  236.     }
  237.     
  238.     if (trim(document.forms['frmTemplate'].txtMatrixFirstColor.value) != '')
  239.     {
  240.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtMatrixFirstColor.value)) == false)
  241.         {
  242.             alert("Please enter a valid hexadecimal value for the first matrix color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  243.             document.forms['frmTemplate'].txtMatrixFirstColor.focus();
  244.             return false;
  245.         }
  246.     }
  247.     
  248.     if (trim(document.forms['frmTemplate'].txtMatrixSecondColor.value) != '')
  249.     {
  250.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtMatrixSecondColor.value)) == false)
  251.         {
  252.             alert("Please enter a valid hexadecimal value for the second matrix color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  253.             document.forms['frmTemplate'].txtMatrixSecondColor.focus();
  254.             return false;
  255.         }
  256.     }
  257.  
  258.     if (trim(document.forms['frmTemplate'].txtSurveyNameFontColor.value) != '')
  259.     {
  260.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtSurveyNameFontColor.value)) == false)
  261.         {
  262.             alert("Please enter a valid hexadecimal value for the survey name font color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  263.             document.forms['frmTemplate'].txtSurveyNameFontColor.focus();
  264.             return false;
  265.         }
  266.     }
  267.  
  268.     if (trim(document.forms['frmTemplate'].txtSurveyNameFontSize.value) != '')
  269.     {
  270.         if (isNumeric(trim(document.forms['frmTemplate'].txtSurveyNameFontSize.value)) == false)
  271.         {
  272.             alert("Please enter a valid numeric value for the survey name font size.");
  273.             document.forms['frmTemplate'].txtSurveyNameFontSize.focus();
  274.             return false;
  275.         }
  276.     }
  277.  
  278.     if (trim(document.forms['frmTemplate'].txtPageTitleFontColor.value) != '')
  279.     {
  280.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtPageTitleFontColor.value)) == false)
  281.         {
  282.             alert("Please enter a valid hexadecimal value for the page title font color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  283.             document.forms['frmTemplate'].txtPageTitleFontColor.focus();
  284.             return false;
  285.         }
  286.     }
  287.  
  288.     if (trim(document.forms['frmTemplate'].txtPageTitleFontSize.value) != '')
  289.     {
  290.         if (isNumeric(trim(document.forms['frmTemplate'].txtPageTitleFontSize.value)) == false)
  291.         {
  292.             alert("Please enter a valid numeric value for the page title font size.");
  293.             document.forms['frmTemplate'].txtPageTitleFontSize.focus();
  294.             return false;
  295.         }
  296.     }
  297.  
  298.     if (trim(document.forms['frmTemplate'].txtPageNumberFontColor.value) != '')
  299.     {
  300.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtPageNumberFontColor.value)) == false)
  301.         {
  302.             alert("Please enter a valid hexadecimal value for the page number font color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  303.             document.forms['frmTemplate'].txtPageNumberFontColor.focus();
  304.             return false;
  305.         }
  306.     }
  307.  
  308.     if (trim(document.forms['frmTemplate'].txtPageNumberFontSize.value) != '')
  309.     {
  310.         if (isNumeric(trim(document.forms['frmTemplate'].txtPageNumberFontSize.value)) == false)
  311.         {
  312.             alert("Please enter a valid numeric value for the page number font size.");
  313.             document.forms['frmTemplate'].txtPageNumberFontSize.focus();
  314.             return false;
  315.         }
  316.     }
  317.  
  318.     if (trim(document.forms['frmTemplate'].txtQuestionTextFontColor.value) != '')
  319.     {
  320.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtQuestionTextFontColor.value)) == false)
  321.         {
  322.             alert("Please enter a valid hexadecimal value for the question text font color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  323.             document.forms['frmTemplate'].txtQuestionTextFontColor.focus();
  324.             return false;
  325.         }
  326.     }
  327.  
  328.     if (trim(document.forms['frmTemplate'].txtQuestionTextFontSize.value) != '')
  329.     {
  330.         if (isNumeric(trim(document.forms['frmTemplate'].txtQuestionTextFontSize.value)) == false)
  331.         {
  332.             alert("Please enter a valid numeric value for the question text font size.");
  333.             document.forms['frmTemplate'].txtQuestionTextFontSize.focus();
  334.             return false;
  335.         }
  336.     }
  337.  
  338.     if (trim(document.forms['frmTemplate'].txtQuestionSubTextFontColor.value) != '')
  339.     {
  340.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtQuestionSubTextFontColor.value)) == false)
  341.         {
  342.             alert("Please enter a valid hexadecimal value for the question sub-text font color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  343.             document.forms['frmTemplate'].txtQuestionSubTextFontColor.focus();
  344.             return false;
  345.         }
  346.     }
  347.  
  348.     if (trim(document.forms['frmTemplate'].txtQuestionSubTextFontSize.value) != '')
  349.     {
  350.         if (isNumeric(trim(document.forms['frmTemplate'].txtQuestionSubTextFontSize.value)) == false)
  351.         {
  352.             alert("Please enter a valid numeric value for the question sub-text font size.");
  353.             document.forms['frmTemplate'].txtQuestionSubTextFontSize.focus();
  354.             return false;
  355.         }
  356.     }
  357.  
  358.     if (trim(document.forms['frmTemplate'].txtNavigationLinkFontColor.value) != '')
  359.     {
  360.         if (isValidHexColor(trim(document.forms['frmTemplate'].txtNavigationLinkFontColor.value)) == false)
  361.         {
  362.             alert("Please enter a valid hexadecimal value for the navigation link font color.  Use any combination of six numbers or the letters A - F.  You may optionally include a # sign at the beginning of the number.");
  363.             document.forms['frmTemplate'].txtNavigationLinkFontColor.focus();
  364.             return false;
  365.         }
  366.     }
  367.  
  368.     if (trim(document.forms['frmTemplate'].txtNavigationLinkFontSize.value) != '')
  369.     {
  370.         if (isNumeric(trim(document.forms['frmTemplate'].txtNavigationLinkFontSize.value)) == false)
  371.         {
  372.             alert("Please enter a valid numeric value for the navigation link font size.");
  373.             document.forms['frmTemplate'].txtNavigationLinkFontSize.focus();
  374.             return false;
  375.         }
  376.     }
  377.  
  378.     if (trim(document.forms['frmTemplate'].txtNavigationBackButtonPath.value) == '' && trim(document.forms['frmTemplate'].txtNavigationBackLinkText.value) == '')
  379.     {
  380.         alert("For the Back Navigation, please enter either a button path or a link text.");
  381.         document.forms['frmTemplate'].txtNavigationBackButtonPath.focus();
  382.         return false;
  383.     }
  384.  
  385.     if (trim(document.forms['frmTemplate'].txtNavigationNextButtonPath.value) == '' && trim(document.forms['frmTemplate'].txtNavigationNextLinkText.value) == '')
  386.     {
  387.         alert("For the Next Navigation, please enter either a button path or a link text.");
  388.         document.forms['frmTemplate'].txtNavigationNextButtonPath.focus();
  389.         return false;
  390.     }
  391.  
  392.     if (trim(document.forms['frmTemplate'].txtNavigationDoneButtonPath.value) == '' && trim(document.forms['frmTemplate'].txtNavigationDoneLinkText.value) == '')
  393.     {
  394.         alert("For the Done Navigation, please enter either a button path or a link text.");
  395.         document.forms['frmTemplate'].txtNavigationDoneButtonPath.focus();
  396.         return false;
  397.     }
  398.  
  399.     if (trim(document.forms['frmTemplate'].txtNavigationCancelButtonPath.value) == '' && trim(document.forms['frmTemplate'].txtNavigationCancelLinkText.value) == '')
  400.     {
  401.         alert("For the Cancel Navigation, please enter either a button path or a link text.");
  402.         document.forms['frmTemplate'].txtNavigationCancelButtonPath.focus();
  403.         return false;
  404.     }
  405.  
  406.     return true;
  407. }
  408. </script>
  409.  
  410. <body class="MainBodyStyle">
  411.  
  412. <!--#Include File="Include/FrameworkTop_inc.asp"-->
  413.  
  414. <table border="0" cellspacing="0" cellpadding="0" width="754" class="MediumBlueBackgroundColor">
  415.     <tr>
  416.         <td height="36" valign="center">
  417.               <span class="H1HeadingStyle"><a name="skipnav" tabindex="1"><%=strPageTitle%></a></span> <img style="cursor:hand" alt="Help" onClick="javascript:window.open('Help/Help.htm#Templates', 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">
  418.         </td>
  419.     </tr>
  420. </table>
  421.  
  422. <!--#Include File="Include/FrameworkTop2_inc.asp"-->
  423.  
  424. <form name="frmTemplate" method="post" action="TemplateAction.asp" onSubmit="return submitCheck();">
  425.     <input type="hidden" name="TemplateID" value="<%=lngTemplateID%>">
  426.     <table width="740" border="0" cellpadding="0" cellspacing="6" class="LightGrayBackgroundColor">
  427.         <tr>
  428.             <td width="1"></td>
  429.             <td width="710" valign="center" height="36" class="Normal">
  430.                 <span class="Normal">
  431.                     All fields marked with an asterisk (<span class="Required">*</span>) are required.
  432.                 </span>
  433.             </td>
  434.             <td width="1"> </td>
  435.         </tr>
  436.     </table>
  437.     <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="1" background="Resources/Images/ThinDivider.gif"></td></tr>
  438.     <table border="0" cellpadding="0" cellspacing="6" width="740" class="WhiteBackgroundColor">
  439.         <tr>
  440.             <td width="1" rowspan="20"></td>
  441.             <td colspan="4" valign="center" height="34" align="left">
  442.                 <span class="QuestionSectionHeadingSpanStyle">General Information</span>
  443.             </td>
  444.             <td width="1" rowspan="20"> </td>
  445.         </tr>
  446.         <tr>
  447.             <td width="175" valign="top" class="NormalBold">
  448.                 <label for="txtTemplateName">Template Name:</label><span class="Required">*</span>
  449.             </td>
  450.             <td width="535" valign="top" class="Normal" colspan="3">
  451.                 <input value="<%=strTemplateName%>" type="text" name="txtTemplateName" id="txtTemplateName" maxlength="50" style="width:525px">
  452.             </td>
  453.         </tr>
  454.         <tr>
  455.             <td valign="top" class="NormalBold" width="180">
  456.                 <label for="cboActiveYN">Active:</label><span class="Required">*</span>
  457.             </td>
  458.             <td valign="top" class="Normal" width="165">
  459.                 <select name="cboActiveYN" id="cboActiveYN" style="width:100px">
  460.                     <option <% If strActiveYN = SUR_BOOLEAN_NEGATIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_NEGATIVE%>"><%=SUR_BOOLEAN_NEGATIVE_DISPLAY%></option>
  461.                     <option <% If strActiveYN = SUR_BOOLEAN_POSITIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_POSITIVE%>"><%=SUR_BOOLEAN_POSITIVE_DISPLAY%></option>
  462.                 </select>
  463.             </td>
  464.             <td valign="top" class="NormalBold" width="190">
  465.                 <label for="cboAllowUseYN">Public Use:</label><span class="Required">*</span>
  466.             </td>
  467.             <td valign="top" class="Normal" width="175">
  468.                 <select name="cboAllowUseYN" id="cboAllowUseYN" style="width:100px">
  469.                     <option <% If strAllowUseYN = SUR_BOOLEAN_NEGATIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_NEGATIVE%>"><%=SUR_BOOLEAN_NEGATIVE_DISPLAY%></option>
  470.                     <option <% If strAllowUseYN = SUR_BOOLEAN_POSITIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_POSITIVE%>"><%=SUR_BOOLEAN_POSITIVE_DISPLAY%></option>
  471.                 </select>
  472.             </td>
  473.         </tr>
  474.         <tr>
  475.             <td valign="top" class="NormalBold">
  476.                 <label for="txtLogoPath">Logo Path:</label>
  477.             </td>
  478.             <td valign="top" class="Normal" colspan="3">
  479.                 <span class="InlineHelpSpanStyle">Enter the path for the logo to display at the top of the surveys.  If left blank, no logo will be displayed.</span><br>
  480.                 <input type="text" name="txtLogoPath" id="txtLogoPath" value="<%=strLogoPath%>" maxlength="255" style="width:525">
  481.             </td>
  482.         </tr>
  483.         <tr>
  484.             <td valign="top" class="NormalBold">
  485.                 <label for="cboLogoAlignment">Logo Alignment:</label>
  486.             </td>
  487.             <td valign="top" class="Normal">
  488.                 <select name="cboLogoAlignment" id="cboLogoAlignment" style="width:100">
  489.                     <option <% If strLogoAlignment = SUR_LOGO_ALIGNMENT_LEFT Then Response.Write("selected") End If %> value="<%=SUR_LOGO_ALIGNMENT_LEFT%>"><%=SUR_LOGO_ALIGNMENT_LEFT%></option>
  490.                     <option <% If strLogoAlignment = SUR_LOGO_ALIGNMENT_RIGHT Then Response.Write("selected") End If %> value="<%=SUR_LOGO_ALIGNMENT_RIGHT%>"><%=SUR_LOGO_ALIGNMENT_RIGHT%></option>
  491.                     <option <% If strLogoAlignment = SUR_LOGO_ALIGNMENT_TOP Then Response.Write("selected") End If %> value="<%=SUR_LOGO_ALIGNMENT_TOP%>"><%=SUR_LOGO_ALIGNMENT_TOP%></option>
  492.                 </select>
  493.             </td>
  494.             <td valign="top" class="NormalBold">
  495.                 <label for="cboSurveyAlignment">Survey Alignment:</label>
  496.             </td>
  497.             <td valign="top" class="Normal">
  498.                 <select name="cboSurveyAlignment" id="cboSurveyAlignment" style="width:100">
  499.                     <option <% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_CENTER Then Response.Write("selected") End If %> value="<%=SUR_SURVEY_ALIGNMENT_CENTER%>"><%=SUR_SURVEY_ALIGNMENT_CENTER%></option>
  500.                     <option <% If strSurveyAlignment = SUR_SURVEY_ALIGNMENT_LEFT Then Response.Write("selected") End If %> value="<%=SUR_SURVEY_ALIGNMENT_LEFT%>"><%=SUR_SURVEY_ALIGNMENT_LEFT%></option>
  501.                 </select>
  502.             </td>
  503.         </tr>
  504.     </table>
  505.     <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="1" background="Resources/Images/ThinDivider.gif"></td></tr>
  506.     <table border="0" cellpadding="0" cellspacing="6" width="740" class="LightGrayBackgroundColor">
  507.         <tr>
  508.             <td width="1" rowspan="20"></td>
  509.             <td colspan="4" valign="center" height="34" align="left">
  510.                 <span class="QuestionSectionHeadingSpanStyle">Borders and Colors</span>
  511.             </td>
  512.             <td width="1" rowspan="20"> </td>
  513.         </tr>
  514.         <tr>
  515.             <td valign="top" class="NormalBold" width="191">
  516.                 <label for="txtMatrixHeaderColor">Matrix Header Color:</label>
  517.             </td>
  518.             <td valign="top" class="Normal" width="165">
  519.                 <input value="<%=strMatrixHeaderColor%>" type="text" maxlength="7" name="txtMatrixHeaderColor" id="txtMatrixHeaderColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtMatrixHeaderColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  520.             </td>
  521.             <td valign="top" class="NormalBold" width="195">
  522.                 <label for="txtSurveyBackgroundColor">Survey Background Color:</label><span class="Required">*</span>
  523.             </td>
  524.             <td valign="top" class="Normal" width="179">
  525.                 <input value="<%=strSurveyBackgroundColor%>" type="text" maxlength="7" name="txtSurveyBackgroundColor" id="txtSurveyBackgroundColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtSurveyBackgroundColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  526.             </td>
  527.         </tr>
  528.         <tr>
  529.             <td valign="top" class="NormalBold" width="191">
  530.                 <label for="txtMatrixFirstColor">Matrix First Color:</label>
  531.             </td>
  532.             <td valign="top" class="Normal" width="165">
  533.                 <input value="<%=strMatrixFirstColor%>" type="text" maxlength="7" name="txtMatrixFirstColor" id="txtMatrixFirstColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtMatrixFirstColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  534.             </td>
  535.             <td valign="top" class="NormalBold">
  536.                 <label for="txtPageBackgroundColor">Page Background Color:</label><span class="Required">*</span>
  537.             </td>
  538.             <td valign="top" class="Normal">
  539.                 <input value="<%=strPageBackgroundColor%>" type="text" maxlength="7" name="txtPageBackgroundColor" id="txtPageBackgroundColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtPageBackgroundColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  540.             </td>
  541.         </tr>
  542.         <tr>
  543.             <td valign="top" class="NormalBold">
  544.                 <label for="txtMatrixSecondColor">Matrix Second Color:</label>
  545.             </td>
  546.             <td valign="top" class="Normal">
  547.                 <input value="<%=strMatrixSecondColor%>" type="text" maxlength="7" name="txtMatrixSecondColor" id="txtMatrixSecondColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtMatrixSecondColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  548.             </td>
  549.             <td valign="top" class="NormalBold">
  550.                 <label for="cboDisplayBorderYN">Display Border:</label><span class="Required">*</span>
  551.             </td>
  552.             <td valign="top" class="Normal">
  553.                 <select name="cboDisplayBorderYN" id="cboDisplayBorderYN" style="width:100px">
  554.                     <option <% If strDisplayBorderYN = SUR_BOOLEAN_NEGATIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_NEGATIVE%>"><%=SUR_BOOLEAN_NEGATIVE_DISPLAY%></option>
  555.                     <option <% If strDisplayBorderYN = SUR_BOOLEAN_POSITIVE Then Response.Write "selected" End If %> value="<%=SUR_BOOLEAN_POSITIVE%>"><%=SUR_BOOLEAN_POSITIVE_DISPLAY%></option>
  556.                 </select>
  557.             </td>
  558.         </tr>
  559.         <tr>
  560.             <td valign="top" class="NormalBold">
  561.                 <label for="txtProgressFirstColor">Progress First Color:</label>
  562.             </td>
  563.             <td valign="top" class="Normal">
  564.                 <input value="<%=strProgressFirstColor%>" type="text" maxlength="7" name="txtProgressFirstColor" id="txtProgressFirstColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtProgressFirstColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  565.             </td>
  566.             <td valign="top" class="NormalBold">
  567.                 <label for="txtBorderWidth">Border Width:</label>
  568.             </td>
  569.             <td valign="top" class="Normal">
  570.                 <input value="<%=lngBorderWidth%>" type="text" name="txtBorderWidth" id="txtBorderWidth" maxlength="2" style="width:100px">
  571.             </td>
  572.         </tr>
  573.         <tr>
  574.             <td valign="top" class="NormalBold">
  575.                 <label for="txtProgressSecondColor">Progress Second Color:</label>
  576.             </td>
  577.             <td valign="top" class="Normal">
  578.                 <input value="<%=strProgressSecondColor%>" type="text" maxlength="7" name="txtProgressSecondColor" id="txtProgressSecondColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtProgressSecondColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  579.             </td>
  580.             <td valign="top" class="NormalBold">
  581.                 <label for="txtBorderColor">Border Color:</label>
  582.             </td>
  583.             <td valign="top" class="Normal">
  584.                 <input value="<%=strBorderColor%>" type="text" maxlength="7" name="txtBorderColor" id="txtBorderColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtBorderColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  585.             </td>
  586.         </tr>
  587.     </table>
  588.     <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="1" background="Resources/Images/ThinDivider.gif"></td></tr>
  589.     <table border="0" cellpadding="0" cellspacing="6" width="740" class="WhiteBackgroundColor">
  590.         <tr>
  591.             <td width="1" rowspan="20"></td>
  592.             <td colspan="4" valign="bottom" height="26" align="left">
  593.                 <span class="QuestionSectionHeadingSpanStyle">Font Styles</span>
  594.             </td>
  595.             <td width="1" rowspan="20"> </td>
  596.         </tr>
  597.         <tr>
  598.             <td colspan="4">
  599.                 <table cellspacing="0" cellpadding="2" border="0" width="700">
  600.                     <tr>
  601.                         <td width="137"> </td>
  602.                         <td width="13"> </td>
  603.                         <td width="111" align="center" valign="center"><span class="NormalBold">Font Color</span></td>
  604.                         <td width="13"> </td>
  605.                         <td width="111" align="center" valign="center"><span class="NormalBold">Font Size</span></td>
  606.                         <td width="13"> </td>
  607.                         <td width="102" align="center" valign="center"><span class="NormalBold">Font Weight</span><span class="Required">*</span></td>
  608.                         <td width="23"> </td>
  609.                         <td width="175"align="center" valign="center"><span class="NormalBold">Font Family</span><span class="Required">*</span></td>
  610.                     </tr>
  611.                     <tr>
  612.                         <td align="left" valign="center"><span class="Normal">Survey Name</span></td>
  613.                         <td> </td>
  614.                         <td align="left" valign="center">
  615.                             <input value="<%=strSurveyNameFontColor%>" type="text" maxlength="7" name="txtSurveyNameFontColor" id="txtSurveyNameFontColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtSurveyNameFontColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  616.                         </td>
  617.                         <td> </td>
  618.                         <td align="center" valign="center">
  619.                             <input value="<%=lngSurveyNameFontSize%>" type="text" maxlength="2" style="width:50px" name="txtSurveyNameFontSize" id="txtSurveyNameFontSize">
  620.                         </td>
  621.                         <td> </td>
  622.                         <td align="center" valign="center">
  623.                             <select name="cboSurveyNameFontWeight" id="cboSurveyNameFontWeight" style="width:75px">
  624. <%
  625.                                 'Render the combo values for the font weight
  626.                                 RenderFontWeightComboValues strSurveyNameFontWeight 
  627. %>
  628.                             </select>
  629.                         </td>
  630.                         <td> </td>
  631.                         <td align="center" valign="center">
  632.                             <select name="cboSurveyNameFontFamily" id="cboSurveyNameFontFamily" style="width:140px">
  633. <%
  634.                                 'Render the combo values for the font family
  635.                                 RenderFontFamilyComboValues strSurveyNameFontFamily
  636. %>
  637.                             </select>
  638.                         </td>
  639.                     </tr>
  640.                     <tr>
  641.                         <td align="left" valign="center"><span class="Normal">Page Title</span></td>
  642.                         <td> </td>
  643.                         <td align="left" valign="center">
  644.                             <input value="<%=strPageTitleFontColor%>" type="text" maxlength="7" name="txtPageTitleFontColor" id="txtPageTitleFontColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtPageTitleFontColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  645.                         </td>
  646.                         <td> </td>
  647.                         <td align="center" valign="center">
  648.                             <input value="<%=lngPageTitleFontSize%>" type="text" maxlength="2" style="width:50px" name="txtPageTitleFontSize" id="txtPageTitleFontSize">
  649.                         </td>
  650.                         <td> </td>
  651.                         <td align="center" valign="center">
  652.                             <select name="cboPageTitleFontWeight" id="cboPageTitleFontWeight" style="width:75px">
  653. <%
  654.                                 'Render the combo values for the font weight
  655.                                 RenderFontWeightComboValues strPageTitleFontWeight 
  656. %>
  657.                             </select>
  658.                         </td>
  659.                         <td> </td>
  660.                         <td align="center" valign="center">
  661.                             <select name="cboPageTitleFontFamily" id="cboPageTitleFontFamily" style="width:140px">
  662. <%
  663.                                 'Render the combo values for the font family
  664.                                 RenderFontFamilyComboValues strPageTitleFontFamily
  665. %>
  666.                             </select>
  667.                         </td>
  668.                     </tr>
  669.                     <tr>
  670.                         <td align="left" valign="center"><span class="Normal">Page Number</span></td>
  671.                         <td> </td>
  672.                         <td align="left" valign="center">
  673.                             <input value="<%=strPageNumberFontColor%>" type="text" maxlength="7" name="txtPageNumberFontColor" id="txtPageNumberFontColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtPageNumberFontColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  674.                         </td>
  675.                         <td> </td>
  676.                         <td align="center" valign="center">
  677.                             <input value="<%=lngPageNumberFontSize%>" type="text" maxlength="2" style="width:50px" name="txtPageNumberFontSize" id="txtPageNumberFontSize">
  678.                         </td>
  679.                         <td> </td>
  680.                         <td align="center" valign="center">
  681.                             <select name="cboPageNumberFontWeight" id="cboPageNumberFontWeight" style="width:75px">
  682. <%
  683.                                 'Render the combo values for the font weight
  684.                                 RenderFontWeightComboValues strPageNumberFontWeight 
  685. %>
  686.                             </select>
  687.                         </td>
  688.                         <td> </td>
  689.                         <td align="center" valign="center">
  690.                             <select name="cboPageNumberFontFamily" id="cboPageNumberFontFamily" style="width:140px">
  691. <%
  692.                                 'Render the combo values for the font family
  693.                                 RenderFontFamilyComboValues strPageNumberFontFamily
  694. %>
  695.                             </select>
  696.                         </td>
  697.                     </tr>
  698.                     <tr>
  699.                         <td align="left" valign="center"><span class="Normal">Question Text</span></td>
  700.                         <td> </td>
  701.                         <td align="left" valign="center">
  702.                             <input value="<%=strQuestionTextFontColor%>" type="text" maxlength="7" name="txtQuestionTextFontColor" id="txtQuestionTextFontColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtQuestionTextFontColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  703.                         </td>
  704.                         <td> </td>
  705.                         <td align="center" valign="center">
  706.                             <input value="<%=lngQuestionTextFontSize%>" type="text" maxlength="2" style="width:50px" name="txtQuestionTextFontSize" id="txtQuestionTextFontSize">
  707.                         </td>
  708.                         <td> </td>
  709.                         <td align="center" valign="center">
  710.                             <select name="cboQuestionTextFontWeight" id="cboQuestionTextFontWeight" style="width:75px">
  711. <%
  712.                                 'Render the combo values for the font weight
  713.                                 RenderFontWeightComboValues strQuestionTextFontWeight 
  714. %>
  715.                             </select>
  716.                         </td>
  717.                         <td> </td>
  718.                         <td align="center" valign="center">
  719.                             <select name="cboQuestionTextFontFamily" id="cboQuestionTextFontFamily" style="width:140px">
  720. <%
  721.                                 'Render the combo values for the font family
  722.                                 RenderFontFamilyComboValues strQuestionTextFontFamily
  723. %>
  724.                             </select>
  725.                         </td>
  726.                     </tr>
  727.                     <tr>
  728.                         <td align="left" valign="center"><span class="Normal">Question Sub-Text</span></td>
  729.                         <td> </td>
  730.                         <td align="left" valign="center">
  731.                             <input value="<%=strQuestionSubTextFontColor%>" type="text" maxlength="7" name="txtQuestionSubTextFontColor" id="txtQuestionSubTextFontColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtQuestionSubTextFontColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  732.                         </td>
  733.                         <td> </td>
  734.                         <td align="center" valign="center">
  735.                             <input value="<%=lngQuestionSubTextFontSize%>" type="text" maxlength="2" style="width:50px" name="txtQuestionSubTextFontSize" id="txtQuestionSubTextFontSize">
  736.                         </td>
  737.                         <td> </td>
  738.                         <td align="center" valign="center">
  739.                             <select name="cboQuestionSubTextFontWeight" id="cboQuestionSubTextFontWeight" style="width:75px">
  740. <%
  741.                                 'Render the combo values for the font weight
  742.                                 RenderFontWeightComboValues strQuestionSubTextFontWeight 
  743. %>
  744.                             </select>
  745.                         </td>
  746.                         <td> </td>
  747.                         <td align="center" valign="center">
  748.                             <select name="cboQuestionSubTextFontFamily" id="cboQuestionSubTextFontFamily" style="width:140px">
  749. <%
  750.                                 'Render the combo values for the font family
  751.                                 RenderFontFamilyComboValues strQuestionSubTextFontFamily
  752. %>
  753.                             </select>
  754.                         </td>
  755.                     </tr>
  756.                     <tr>
  757.                         <td align="left" valign="center"><span class="Normal">Navigation Links</span></td>
  758.                         <td> </td>
  759.                         <td align="left" valign="center">
  760.                             <input value="<%=strNavigationLinkFontColor%>" type="text" maxlength="7" name="txtNavigationLinkFontColor" id="txtNavigationLinkFontColor" style="width:75px"> <img onClick="javascript:displayColorPicker('frmTemplate', 'txtNavigationLinkFontColor');" border="0" src="Resources/Images/ColorPicker.gif" alt="Click here to select a color" onMouseOver="this.style.cursor='hand'">
  761.                         </td>
  762.                         <td> </td>
  763.                         <td align="center" valign="center">
  764.                             <input value="<%=lngNavigationLinkFontSize%>" type="text" maxlength="2" style="width:50px" name="txtNavigationLinkFontSize" id="txtNavigationLinkFontSize">
  765.                         </td>
  766.                         <td> </td>
  767.                         <td align="center" valign="center">
  768.                             <select name="cboNavigationLinkFontWeight" id="cboNavigationLinkFontWeight" style="width:75px">
  769. <%
  770.                                 'Render the combo values for the font weight
  771.                                 RenderFontWeightComboValues strNavigationLinkFontWeight 
  772. %>
  773.                             </select>
  774.                         </td>
  775.                         <td> </td>
  776.                         <td align="center" valign="center">
  777.                             <select name="cboNavigationLinkFontFamily" id="cboNavigationLinkFontFamily" style="width:140px">
  778. <%
  779.                                 'Render the combo values for the font family
  780.                                 RenderFontFamilyComboValues strNavigationLinkFontFamily
  781. %>
  782.                             </select>
  783.                         </td>
  784.                     </tr>
  785.                 </table>
  786.             </td>
  787.         </tr>
  788.     </table>
  789.     <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="1" background="Resources/Images/ThinDivider.gif"></td></tr>
  790.     <table border="0" cellpadding="0" cellspacing="6" width="740" class="LightGrayBackgroundColor">
  791.         <tr>
  792.             <td width="1" rowspan="20"></td>
  793.             <td colspan="4" valign="center" height="34" align="left">
  794.                 <span class="QuestionSectionHeadingSpanStyle">Header and Footer</span>
  795.             </td>
  796.             <td width="1" rowspan="20"> </td>
  797.         </tr>
  798.         <tr>
  799.             <td colspan="4">
  800.                 <span class="Normal">
  801.                     You may optionally provide HTML text that will be displayed above and below the survey.  Note that the HTML 
  802.                     provided for the header and footer is displayed inside the <body> tags.<br>
  803.                  </span><br>
  804.                 <table cellspacing="0" cellpadding="2" border="0" width="700">
  805.                     <tr>
  806.                         <td width="149" valign="center">
  807.                             <span class="NormalBold"><label for="txtHTMLTop">HTML Header:</label></span>
  808.                         </td>
  809.                         <td width="551">
  810.                             <textarea style="width:536px" name="txtHTMLTop" id="txtHTMLTop" rows="5"><%=strHTMLTop%></textarea>
  811.                         </td>
  812.                     </tr>
  813.                     <tr>
  814.                         <td width="149" valign="center">
  815.                             <span class="NormalBold"><label for="txtHTMLBottom">HTML Footer:</label></span>
  816.                         </td>
  817.                         <td width="551">
  818.                             <textarea style="width:536px" name="txtHTMLBottom" id="txtHTMLBottom" rows="5"><%=strHTMLBottom%></textarea>
  819.                         </td>
  820.                     </tr>
  821.                 </table>
  822.             </td>
  823.         </tr>
  824.     </table>
  825.     <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="1" background="Resources/Images/ThinDivider.gif"></td></tr>
  826.     <table border="0" cellpadding="0" cellspacing="6" width="740" class="WhiteBackgroundColor">
  827.         <tr>
  828.             <td width="1" rowspan="20"></td>
  829.             <td colspan="4" valign="center" height="34" align="left">
  830.                 <span class="QuestionSectionHeadingSpanStyle">Survey Navigation</span>
  831.             </td>
  832.             <td width="1" rowspan="20"> </td>
  833.         </tr>
  834.         <tr>
  835.             <td colspan="4">
  836.                 <span class="Normal">
  837.                     For navigation buttons or links, provide either the path to the button or the text for the link. If both values are supplied 
  838.                     the button is displayed.
  839.                  </span><br>
  840.                 <table cellspacing="0" cellpadding="2" border="0" width="700">
  841.                     <tr>
  842.                         <td width="144"> </td>
  843.                         <td width="5"> </td>
  844.                         <td width="325" align="center" valign="center"><span class="NormalBold">Button Path</span></td>
  845.                         <td width="56"> </td>
  846.                         <td width="170"align="center" valign="center"><span class="NormalBold">Link Text</span></td>
  847.                     </tr>
  848.                     <tr>
  849.                         <td align="left" valign="center"><span class="Normal">"Back" Navigation</span><span class="Required">*</span></td>
  850.                         <td> </td>
  851.                         <td align="left" valign="center">
  852.                             <input value="<%=strNavigationBackButtonPath%>" type="text" maxlength="255" name="txtNavigationBackButtonPath" id="txtNavigationBackButtonPath" style="width:310px">
  853.                         </td>
  854.                         <td align="center"><span class="Normal">or</span></td>
  855.                         <td align="center" valign="center">
  856.                             <input value="<%=strNavigationBackLinkText%>" type="text" maxlength="25" style="width:140px" name="txtNavigationBackLinkText" id="txtNavigationBackLinkText">
  857.                         </td>
  858.                     </tr>
  859.                     <tr>
  860.                         <td align="left" valign="center"><span class="Normal">"Next" Navigation</span><span class="Required">*</span></td>
  861.                         <td> </td>
  862.                         <td align="left" valign="center">
  863.                             <input value="<%=strNavigationNextButtonPath%>" type="text" maxlength="255" name="txtNavigationNextButtonPath" id="txtNavigationNextButtonPath" style="width:310px">
  864.                         </td>
  865.                         <td align="center"><span class="Normal">or</span></td>
  866.                         <td align="center" valign="center">
  867.                             <input value="<%=strNavigationNextLinkText%>" type="text" maxlength="25" style="width:140px" name="txtNavigationNextLinkText" id="txtNavigationNextLinkText">
  868.                         </td>
  869.                     </tr>
  870.                     <tr>
  871.                         <td align="left" valign="center"><span class="Normal">"Done" Navigation</span><span class="Required">*</span></td>
  872.                         <td> </td>
  873.                         <td align="left" valign="center">
  874.                             <input value="<%=strNavigationDoneButtonPath%>" type="text" maxlength="255" name="txtNavigationDoneButtonPath" id="txtNavigationDoneButtonPath" style="width:310px">
  875.                         </td>
  876.                         <td align="center"><span class="Normal">or</span></td>
  877.                         <td align="center" valign="center">
  878.                             <input value="<%=strNavigationDoneLinkText%>" type="text" maxlength="25" style="width:140px" name="txtNavigationDoneLinkText" id="txtNavigationDoneLinkText">
  879.                         </td>
  880.                     </tr>
  881.                     <tr>
  882.                         <td align="left" valign="center"><span class="Normal">"Cancel" Navigation</span><span class="Required">*</span></td>
  883.                         <td> </td>
  884.                         <td align="left" valign="center">
  885.                             <input value="<%=strNavigationCancelButtonPath%>" type="text" maxlength="255" name="txtNavigationCancelButtonPath" id="txtNavigationCancelButtonPath" style="width:310px">
  886.                         </td>
  887.                         <td align="center"><span class="Normal">or</span></td>
  888.                         <td align="center" valign="center">
  889.                             <input value="<%=strNavigationCancelLinkText%>" type="text" maxlength="25" style="width:140px" name="txtNavigationCancelLinkText" id="txtNavigationCancelLinkText">
  890.                         </td>
  891.                     </tr>
  892.                 </table>
  893.             </td>
  894.         </tr>
  895.         <tr>
  896.             <td align="right" valign="middle" colspan="4">
  897. <%
  898.                 'This template can only be deleted if there are not any surveys using it and it's not the default template
  899.                 If GetTemplateUsageCount(lngTemplateID) = 0 And CStr(lngTemplateID) <> CStr(SUR_DEFAULT_TEMPLATE_ID) Then
  900. %>
  901.                     <a href="javascript:deleteTemplate();"><img border="0" alt="Delete this template" name="btnDelete" src="Resources/Buttons/Delete.gif"></a>
  902. <%
  903.                 End If
  904. %>
  905.                 <a href="TemplateList.asp"><img border="0" alt="Cancel" name="btnCancel" src="Resources/Buttons/Cancel.gif"></a>
  906.                 <input type="image" border="0" alt="Save" src="Resources/Buttons/Save.gif" name="btnSave">
  907.             </td>
  908.         </tr>
  909.     </form>
  910. </table>
  911.  
  912. <!--#Include File="Include/FrameworkBottom_inc.asp"-->
  913.  
  914. </body>
  915. </html>
  916.  
  917. <%        
  918.     'Ensure that the web server returns the page
  919.     Response.Flush
  920.     
  921.     'This routine renders the combo values for the font weight.  The value passed to this routine is selected.
  922.     Sub RenderFontWeightComboValues(strFontWeight)
  923. %>
  924.         <option <% If strFontWeight = SUR_FONT_WEIGHT_BOLD Then Response.Write "selected" End If %> value="<%=SUR_FONT_WEIGHT_BOLD%>"><%=SUR_FONT_WEIGHT_BOLD%></option>
  925.         <option <% If strFontWeight = SUR_FONT_WEIGHT_NORMAL Then Response.Write "selected" End If %> value="<%=SUR_FONT_WEIGHT_NORMAL%>"><%=SUR_FONT_WEIGHT_NORMAL%></option>
  926. <%
  927.     End Sub
  928.  
  929.     'This routine renders the combo values for the font family.  The value passed to this routine is selected.
  930.     Sub RenderFontFamilyComboValues(strFontFamily)
  931. %>
  932.         <option <% If strFontFamily = SUR_FONT_FAMILY_ARIAL_BLACK Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_ARIAL_BLACK%>"><%=SUR_FONT_FAMILY_ARIAL_BLACK%></option>
  933.         <option <% If strFontFamily = SUR_FONT_FAMILY_ARIAL Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_ARIAL%>"><%=SUR_FONT_FAMILY_ARIAL%></option>
  934.         <option <% If strFontFamily = SUR_FONT_FAMILY_BROWSER_DEFAULT Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_BROWSER_DEFAULT%>"><%=SUR_FONT_FAMILY_BROWSER_DEFAULT%></option>
  935.         <option <% If strFontFamily = SUR_FONT_FAMILY_COMIC_SANS_MS Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_COMIC_SANS_MS%>"><%=SUR_FONT_FAMILY_COMIC_SANS_MS%></option>
  936.         <option <% If strFontFamily = SUR_FONT_FAMILY_COURIER_NEW Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_COURIER_NEW%>"><%=SUR_FONT_FAMILY_COURIER_NEW%></option>
  937.         <option <% If strFontFamily = SUR_FONT_FAMILY_GEORGIA Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_GEORGIA%>"><%=SUR_FONT_FAMILY_GEORGIA%></option>
  938.         <option <% If strFontFamily = SUR_FONT_FAMILY_IMPACT Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_IMPACT%>"><%=SUR_FONT_FAMILY_IMPACT%></option>
  939.         <option <% If strFontFamily = SUR_FONT_FAMILY_SMALL Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_SMALL%>"><%=SUR_FONT_FAMILY_SMALL%></option>
  940.         <option <% If strFontFamily = SUR_FONT_FAMILY_TIMES_NEW_ROMAN Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_TIMES_NEW_ROMAN%>"><%=SUR_FONT_FAMILY_TIMES_NEW_ROMAN%></option>
  941.         <option <% If strFontFamily = SUR_FONT_FAMILY_TREBUCHET_MS Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_TREBUCHET_MS%>"><%=SUR_FONT_FAMILY_TREBUCHET_MS%></option>
  942.         <option <% If strFontFamily = SUR_FONT_FAMILY_VERDANA Then Response.Write "selected" End If %> value="<%=SUR_FONT_FAMILY_VERDANA%>"><%=SUR_FONT_FAMILY_VERDANA%></option>
  943. <%
  944.     End Sub
  945. %>
  946.