25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

76 satır
3.1KB

  1. <%
  2. '=======================================================================================================================
  3. ' Human-readable labels for the coded choice values written by continue.asp's SurveyJS
  4. ' model - falls back to the raw code for anything unrecognized rather than hiding it.
  5. '=======================================================================================================================
  6. Function LabelPrintOption(code)
  7. Select Case CStr(code & "")
  8. Case "AddressesAndPermit" : LabelPrintOption = "Addresses and state of Michigan permit"
  9. Case "PermitOnly" : LabelPrintOption = "State of Michigan permit only"
  10. Case Else : LabelPrintOption = CStr(code & "")
  11. End Select
  12. End Function
  13. Function LabelPurpleBlueProvider(code)
  14. Select Case CStr(code & "")
  15. Case "ElectionSource" : LabelPurpleBlueProvider = "ElectionSource"
  16. Case "PSI" : LabelPurpleBlueProvider = "PSI"
  17. Case "Spectrum" : LabelPurpleBlueProvider = "Spectrum"
  18. Case "Other" : LabelPurpleBlueProvider = "Other"
  19. Case Else : LabelPurpleBlueProvider = CStr(code & "")
  20. End Select
  21. End Function
  22. Function LabelPermitOwnership(code)
  23. Select Case CStr(code & "")
  24. Case "KCIPermit" : LabelPermitOwnership = "KCI permit"
  25. Case "OwnPermit" : LabelPermitOwnership = "My organization's permit"
  26. Case Else : LabelPermitOwnership = CStr(code & "")
  27. End Select
  28. End Function
  29. Function LabelEnvelopeStock(code)
  30. Select Case CStr(code & "")
  31. Case "KCIStock" : LabelEnvelopeStock = "KCI's stock"
  32. Case "OwnStock" : LabelEnvelopeStock = "My own stock"
  33. Case Else : LabelEnvelopeStock = CStr(code & "")
  34. End Select
  35. End Function
  36. Function LabelPrintStyle(code)
  37. Select Case CStr(code & "")
  38. Case "ColorCoding" : LabelPrintStyle = "Color Coding"
  39. Case "BlackOnly" : LabelPrintStyle = "Black Ink Only"
  40. Case Else : LabelPrintStyle = CStr(code & "")
  41. End Select
  42. End Function
  43. Function LabelColorCodingBy(code)
  44. Select Case CStr(code & "")
  45. Case "Precinct" : LabelColorCodingBy = "Precinct"
  46. Case "Election" : LabelColorCodingBy = "Election"
  47. Case Else : LabelColorCodingBy = CStr(code & "")
  48. End Select
  49. End Function
  50. Function LabelPostageOption(code)
  51. Select Case CStr(code & "")
  52. Case "FirstClass" : LabelPostageOption = "Yes, at First Class Rate ($0.721/pc.)"
  53. Case "NonprofitRate" : LabelPostageOption = "Yes, at Nonprofit Rate ($0.263/pc.)"
  54. Case "PresortStandard" : LabelPostageOption = "Yes, at Presort Standard Rate ($0.473/pc.)"
  55. Case "No" : LabelPostageOption = "No"
  56. Case Else : LabelPostageOption = CStr(code & "")
  57. End Select
  58. End Function
  59. Function LabelNonprofitStatus(code)
  60. Select Case CStr(code & "")
  61. Case "Yes" : LabelNonprofitStatus = "Yes"
  62. Case "No" : LabelNonprofitStatus = "No"
  63. Case "NotSure" : LabelNonprofitStatus = "I'm not sure"
  64. Case Else : LabelNonprofitStatus = CStr(code & "")
  65. End Select
  66. End Function
  67. %>

Powered by TurnKey Linux.