home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / servis / ovladace / drivers / 850win2000.exe / asppages / text.inc < prev   
Encoding:
Text File  |  1999-08-23  |  14.2 KB  |  459 lines

  1. <%
  2. '*********************************************************
  3. '
  4. '   Tektronix Windows 2000 Print Status ASP Page Project
  5. '
  6. '   Copyright (c) Tektronix, Inc. 1999
  7. '
  8. '   Description
  9. '
  10. '    This file contains Microsoft VBScript definitions compatable with the 
  11. '    Microsoft IIS Active Server Page 3.0 scripting engine. 
  12. '
  13. '    The file defines the English display text strings for the 
  14. '    for the NT5 Printer Status page. A seperate file with the same name 
  15. '    must be generated for the French, Italian, German, Spanish, and 
  16. '    Japaneses translations. All translations must use the UTF-8 encoding format. 
  17. '    Strings with the comment ' Do not translate immediately next to the string are 
  18. '    not to be translated.    
  19. '
  20. '    Implementation Note: The functions named textGpidXXX() and 
  21. '    textPrtXXX() bind SNMP object enumerations to the 
  22. '    display text. This would have to be un-done if a protocol other 
  23. '    than SNMP is ever used.
  24. '   History
  25. '
  26. '       Version 1.0 7/22/99     Greg Thornton
  27. '    Version 1.1 8/12/99    Greg Thornton
  28. '
  29. '*********************************************************
  30.  
  31. '*********************************************************
  32. ' htmlLanguage - This constant must be set to the
  33. ' "language" string associated with the localization of
  34. ' this file. The constant is used as an argument in the URL used to
  35. ' to link to the Tektronix web site.
  36. '*********************************************************
  37. Const htmlLanguage         = "english"    ' Do not translate
  38. 'Const htmlLanguage         = "french"    ' Do not translate
  39. 'Const htmlLanguage         = "german"    ' Do not translate
  40. 'Const htmlLanguage         = "italian"    ' Do not translate
  41. 'Const htmlLanguage         = "spanish"    ' Do not translate
  42. 'Const htmlLanguage         = "katakana"    ' Do not translate
  43.  
  44. '*********************************************************
  45. ' ResponseCodePage - This constant controls the character 
  46. ' encoding format used for the HTML response sent back to 
  47. ' the client browser. The constant must be set to the
  48. ' appropriate encoding format for a given langauage, i.e.  
  49. ' 1252 (ISO-8859-1) for French, Italian, German, and Spanish,
  50. ' and 932 (Shift-JIS) for Japanese.
  51. '
  52. '*********************************************************
  53. Const ResponseCodePage        = 1252
  54.  
  55. '*********************************************************
  56. '
  57. ' text() index values
  58. '
  59. '*********************************************************
  60. Const PAPER_TRAYS        = 0
  61. Const LOCAL_PRINTER_INFO    = 1 
  62. Const SUPPLIES_REMAINING    = 2
  63. Const PAGE_COUNT        = 3
  64. Const YOUR_PRINTER        = 4
  65. Const TEKTRONIX_COM        = 5 
  66. Const PRINTER_STATUS        = 6
  67. Const PERCENT            = 7
  68. Const SEPERATOR            = 8
  69. Const PERCENT_REMAINING        = 9
  70. Const PERCENT_LIFE_REMAINING    = 10
  71. Const CONTACT            = 11
  72. Const PRINTER_LOCATION        = 12
  73. Const PAGES            = 13
  74. Const PHASERLINK        = 14
  75. Const COLOR_CONNECTION        = 15 
  76. Const ORDER_SUPPLIES        = 16
  77. Const REGISTER_PRINTER        = 17
  78. Const MANUALS            = 18
  79. Const TECHNICAL_SUPPORT        = 19
  80. Const PRINTER_SETUP_DESC    = 20
  81. Const PAGES_REMAINING        = 21
  82. Const T_EMPTY            = 22
  83. Const REMOVED            = 23
  84. Const LOW            = 24
  85. Const OK            = 25
  86. Const SUPPLIES            = 26
  87. Const ERROR_TITLE        = 27
  88. Const ERROR_REDIRECT        = 28
  89. Const ERROR_SNMP        = 29
  90. Const ERROR_HTML        = 30
  91. Const CODE            = 31
  92. Const DESCRIPTION        = 32
  93. Const ERROR_ADVICE_1        = 33
  94. Const PROCEDURE            = 34
  95. Const SOURCE            = 35
  96. Const ERROR_ADVICE_2        = 36
  97.  
  98.  
  99. Function text(index)
  100.     Select Case index
  101.         Case PAPER_TRAYS        t = "PAPER TRAY(S)"        
  102.         Case LOCAL_PRINTER_INFO        t = "LOCAL PRINTER INFORMATION"
  103.         Case SUPPLIES_REMAINING        t = "SUPPLIES REMAINING"
  104.         Case PAGE_COUNT            t = "PAGE COUNT"
  105.         Case YOUR_PRINTER        t = "YOUR PRINTER"
  106.         Case TEKTRONIX_COM        t = "TEKTRONIX.COM"
  107.         Case PRINTER_STATUS        t = "Printer Status"
  108.         Case PERCENT            t = "%"
  109.         Case SEPERATOR            t = ", "
  110.         Case PERCENT_REMAINING        t = " % Remaining"
  111.         Case PERCENT_LIFE_REMAINING    t = " % Life Remaining"
  112.         Case CONTACT            t = "Contact"
  113.         Case PRINTER_LOCATION        t = "Printer Location"
  114.         Case PAGES            t = "Pages"
  115.         Case PHASERLINK            t = "PhaserLink"    ' Use English for all translations
  116.         Case COLOR_CONNECTION        t = "Color Connection"
  117.         Case ORDER_SUPPLIES        t = "Order Supplies"
  118.         Case REGISTER_PRINTER        t = "Register Printer"
  119.         Case MANUALS            t = "User Manuals and Videos"
  120.         Case TECHNICAL_SUPPORT        t = "Technical Support"    
  121.         Case PRINTER_SETUP_DESC        t = "Set up your printer using Tektronix PhaserLink Software."
  122.         Case PAGES_REMAINING        t = "Pages Remaining"
  123.         Case T_EMPTY            t = "Empty"
  124.         Case REMOVED            t = "Missing"
  125.         Case LOW            t = "Low"
  126.         Case OK                t = "Ok"
  127.         Case SUPPLIES            t = "SUPPLIES"    
  128.         Case ERROR_TITLE        t = "Error generating Tektronix printer status page"
  129.         Case ERROR_REDIRECT        t = "Redirecting to _status_nt5.shtml"
  130.         Case ERROR_SNMP            t = "Reading printer SNMP status"
  131.         Case ERROR_HTML            t = "Generating HTML"    
  132.         Case CODE            t = "ASP Code: "
  133.         Case DESCRIPTION        t = "ASP Description: "
  134.         Case ERROR_ADVICE_1        t = "Please check to see that the printer is turned on and properly connected to the network."
  135.         Case ERROR_ADVICE_2        t = "If the problem persists, contact Tektronix Customer Support."
  136.         Case Else            t = ""            ' Do not translate.
  137.     End Select
  138.     text = t
  139. End Function
  140.  
  141. Function textGpidInputTrayId(id)
  142.     Select Case id
  143.         Case 1, 2 t =     "Paper Tray"
  144.         Case 3 t =     "Manual Feed Tray"
  145.         Case 4 t =     "Media Tray"
  146.         Case 5 t =     "Upper Tray"
  147.         Case 6 t =       "Middle Tray"
  148.         Case 7 t =       "Lower Tray"
  149.         Case 8 t =       "Tray 1"
  150.         Case 9 t =       "Tray 2"
  151.         Case 10 t =      "Tray 3"
  152.         Case 11 t =      "Tray 4"
  153.         Case 12 t =      "Tray 5"
  154.         Case 13 t =      "Continuous Roll Feeder"
  155.         Case 14 t =      "Continuous Fan Feeder"
  156.         Case 15 t =      "Multi-purpose Tray"
  157.         Case 16 t =      "2-Sided Printing Tray"
  158.         Case Else t =      "Paper Tray"
  159.     End Select
  160.  
  161.     textGpidInputTrayId = t
  162.  
  163. End Function
  164.  
  165.  
  166. Function textGpidInputStatus(status)
  167.     Select Case status
  168.         Case 1, 2 t =     "Unknown Tray Status"
  169.         Case 3 t =     ""            ' Do not translate.
  170.         Case 4 t =     "Empty or Removed"
  171.         Case 5 t =     "Low"
  172.         Case 6 t =     "Empty or Removed"
  173.         Case 7 t =       "On request"
  174.         Case 8 t =       "Unavailable"
  175.         Case 9 t =       "Busy"
  176.         Case Else t =     "Unknown Tray Status"
  177.     End Select
  178.  
  179.     textGpidInputStatus = t
  180.  
  181. End Function
  182.  
  183. Function textGpidInputMediaType(media_type)
  184.     Select Case media_type
  185.         Case 1, 2 t =     "Unknown Media Type"
  186.         Case 3 t =     "Paper"
  187.         Case 5 t =     "Transparency"    
  188.         Case 6 t =     "Coated Paper"    
  189.         Case 7 t =       "Card Stock"    
  190.         Case 8 t =       "Label"        
  191.         Case 9 t =       "Fabric Transfer"
  192.         Case 10 t =      "2-Sided Printing Setting"
  193.         Case 11 t =      "Envelope"    
  194.         Case 101 t =      "Clear Film"
  195.         Case 102 t =      "White Film"
  196.         Case 103 t =      "Transfer Film"
  197.         Case 104 t =      "Film"    
  198.         Case -20 t =       "Mixed"
  199.         Case Else t =     "Unknown Media Type"
  200.     End Select
  201.  
  202.     textGpidInputMediaType = t
  203.  
  204. End Function
  205.  
  206. Function textGpidInputMediaSize(size)
  207.     Select Case size
  208.         Case 1, 2 t =     "Unknown Media Size"
  209.         Case 3 t =     "Letter"
  210.         Case 4 t =     "Legal"
  211.         Case 5 t =     "C6 Envelope"
  212.         Case 6 t =     "DL Envelope"
  213.         Case 7 t =       "#6 Envelope"
  214.         Case 8 t =       "#10 Envelope"
  215.         Case 9 t =       "Executive Envelope"
  216.         Case 15 t =      "Tabloid"
  217.  
  218.         Case 23 t =      "A0"
  219.         Case 24 t =      "A1"
  220.         Case 25 t =      "A2"
  221.         Case 26 t =      "A3"
  222.         Case 27 t =      "A4"
  223.         Case 28 t =       "A5"
  224.         Case 29 t =     "A6"
  225.  
  226.         Case 34 t =     "B4"
  227.         Case 35 t =     "B5"
  228.         Case 36 t =     "B6"
  229.         Case 37 t =     "C5"
  230.         Case 38 t =     "SRA3"
  231.  
  232.         Case 101 t =     "Tabloid Extra"         
  233.         Case 102 t =     "Oversize A"             
  234.         Case 103 t =     "Tabloid Maximum"         
  235.         Case 104 t =     "Tabloid Plus"             
  236.  
  237.         Case 124 t =     "JIS B1"             
  238.         Case 125 t =     "JIS B2"             
  239.         Case 126 t =     "JIS B3"             
  240.         Case 127 t =     "JIS B4"             
  241.  
  242.         Case 134 t =     "Regular C"             
  243.         Case 135 t =     "Regular D"             
  244.         Case 136 t =     "Regular E"             
  245.  
  246.         Case 143 t =     "Architect B"             
  247.         Case 144 t =     "Architect C"             
  248.         Case 145 t =     "Architect D"             
  249.         Case 146 t =     "Architect E"             
  250.  
  251.         Case 147 t =     "Film 8 x 10 inches"         
  252.         Case 148 t =     "Film 10 x 12 inches"         
  253.         Case 149 t =     "Film 11 x 14 inches"         
  254.         Case 150 t =     "Film 14 x 17 inches"         
  255.  
  256.         Case 157 t =     "Special 30 x 42 inches"     
  257.         Case 160 t =     "Monarch Envelope"         
  258.         Case 161 t =     "Postcard"             
  259.         Case 162 t =     "COM-10 Envelope"         
  260.         Case 163 t =     "Statement"             
  261.         Case 164 t =     "Special 8 x 10 inches"     
  262.         Case 165 t =     "Letter Tabs"             
  263.         Case 166 t =     "A4 Tabs"             
  264.         Case 167 t =     "Folio"             
  265.         Case 168 t =     "Special Folio"         
  266.         Case 169 t =     "Special 312.5 x 440 mm"     
  267.         Case 170 t =     "Special 12 x 18 inches"     
  268.         Case 171 t =     "Special 12.5 x 18 inches"     
  269.         Case 172 t =     "Special 13 x 18 inches"     
  270.         Case 173 t =     "C4 Envelope"             
  271.         Case 174 t =     "C5 Envelope"             
  272.         Case 175 t =     "Choukei 3 Envelope"         
  273.         Case 176 t =     "Kakugata 2 Envelope"         
  274.         Case 177 t =     "Choukei 4 Envelope"         
  275.  
  276.         Case 999 t =     "Custom"             
  277.         Case -20 t =     "Mixed Media Size"         
  278.         Case Else t =     "Unknown Media Size"             
  279.     End Select
  280.  
  281.     textGpidInputMediaSize = t
  282.  
  283. End Function
  284.  
  285. Function textPrtAlertCode(code)
  286.     Select Case code
  287.         Case 1, 2 t =     "Error, Cause Unknown"             
  288.         Case 3 t =     "Door Open"                 
  289.         Case 4 t =     "Door Closed"                 
  290.         Case 5 t =     "Interlock Open"             
  291.         Case 6 t =     "Interlock Closed"             
  292.         Case 7 t =     "Configuration Changed"         
  293.         Case 8 t =     "Paper Jam"                 
  294.         Case 501 t =     "Door Open"                 
  295.         Case 502 t =     "Door Closed"                 
  296.         Case 503 t =     "Powering Up"                 
  297.         Case 504 t =     "Powering Down"             
  298.         Case 801 t =     "Tray Missing"                 
  299.         Case 802 t =     "Paper Size Change"             
  300.         Case 803 t =     "Paper Weight Change"             
  301.         Case 804 t =     "Paper Type Change"             
  302.         Case 805 t =     "Paper Color Change"             
  303.         Case 806 t =     "Paper Form Parts Change"         
  304.         Case 807 t =     "Paper Tray Low"             
  305.         Case 808 t =     "Paper Tray Empty"             
  306.         Case 901 t =     "Output Tray Missing"             
  307.         Case 902 t =     "Output Tray Almost Full"         
  308.         Case 903 t =     "Output Tray Full"             
  309.         Case 1001 t =     "Fuser Under Temperature"         
  310.         Case 1002 t =     "Fuser Over Temperature"         
  311.         Case 1101 t =     "Toner Empty"                 
  312.         Case 1102 t =     "Ink Empty"             
  313.         Case 1103 t =     "Ink Ribbon Empty"             
  314.         Case 1104 t =     "Toner Low"                 
  315.         Case 1105 t =     "Ink Low"             
  316.         Case 1106 t =     "Ink Ribbon Low"             
  317.         Case 1107 t =     "Toner Waste Receptacle Almost Full"     
  318.         Case 1108 t =     "Ink Waste Receptacle Almost Full"     
  319.         Case 1109 t =     "Toner Waste Receptacle Full"         
  320.         Case 1110 t =     "Ink Waste Receptacle Full"         
  321.         Case 1111 t =     "Imaging Unit Life Almost Over"             
  322.         Case 1112 t =     "Imaging Unit Life Over"             
  323.         Case 1113 t =     "Developer Almost Empty"         
  324.         Case 1114 t =     "Developer Empty"
  325.         Case 1194 t =   "Maintenance Tray Missing"            
  326.         Case 1301 t =     "Output Tray Missing"             
  327.         Case 1302 t =     "Output Tray Almost Full"         
  328.         Case 1303 t =     "Output Tray Full"             
  329.         Case Else t =     "Error, Cause Unknown"             
  330.     End Select
  331.  
  332.     textPrtAlertCode = t
  333.  
  334. End Function
  335.  
  336. Function textGpidGeneralPrinterBusy(state)
  337.     Select Case state
  338.         Case 1 t =     "Initializing"             
  339.         Case 2 t =     "Ready"             
  340.         Case 3 t =     "Printing"             
  341.         Case 4 t =     "Warming Up"             
  342.         Case 5 t =     "Cleaning"             
  343.         Case 6 t =     "Standby"             
  344.         Case 7 t =     "Energy Star"             
  345.         Case 8 t =     "Engine Failure"         
  346.         Case 9 t =     "Receiving Data"         
  347.         Case 10 t =     "Processing Data"         
  348.         Case 11 t =     "Printing Start Page"         
  349.         Case 12 t =     "Front Panel In Use"         
  350.         Case 13 t =     "Copying"             
  351.         Case 14 t =     "Waiting"             
  352.         Case 15 t =     "Off-line"             
  353.         Case 16 t =     "Printer Error"             
  354.         Case 17 t =     "Busy"                 
  355.         Case 18 t =     "Check Print"             
  356.         Case 19 t =     "Cooling Down"             
  357.         Case 20 t =     "Cooling Complete"         
  358.         Case 21 t =     "Cutting Paper"         
  359.         Case 22 t =     "Feeding Paper"         
  360.         Case 23 t =     "Loading Paper"         
  361.         Case 24 t =     "Unloading Paper"         
  362.         Case 25 t =     "Loading Ink"             
  363.         Case 26 t =     "Fuser Warming Up"         
  364.         Case 27 t =     "Fuser Cooling Down"         
  365.         Case 28 t =     "Service Mode"             
  366.         Case 29 t =     "Testing"             
  367.         Case 30 t =     "Waiting For Cancel"         
  368.         Case 31 t =     "Manual Feed Error"         
  369.         Case 32 t =     "Transient Engine Error"     
  370.         Case 33 t =     "Engine Sync Error"         
  371.         Case 34 t =     "Unknown Media Class"         
  372.         Case Else t =     ""        ' Do not translate.
  373.     End Select
  374.  
  375.     textGpidGeneralPrinterBusy = t
  376. End Function
  377.  
  378. Function textGpidMarkerSuppliesColorId(color,model)
  379.     Select Case color
  380.         Case 1, 2 t =     "Unknown Supply Type"         
  381.         Case 4 t =     "Cyan"                 
  382.         Case 5 t =     "Magenta"             
  383.         Case 6 t =     "Yellow"             
  384.         Case 7 t =     "Black"             
  385.         Case 8 t =     "Imaging Unit"             
  386.         Case 9 t =     "Main Charge Grid"         
  387.         Case 10 t =     "Transfer Kit"             
  388.         Case 11 t =     "Fuser"             
  389.         Case 12 t =     "Toner Discharge Unit"         
  390.         Case 13 t =     "Transfer Toner Discharge Unit" 
  391.         Case 14 t =     "Pre-transfer Unit"         
  392.         Case 15 t =     "Waste Ink Bin"         
  393.         Case 16 t =     "Maintenance Tray"         
  394.         Case 17 t =     "Paper Feed Unit"         
  395.         Case 18 t =     "Tension Unit"             
  396.         Case Else t =     ""        ' Do not translate.
  397.     End Select
  398.  
  399.     textGpidMarkerSuppliesColorId = t
  400. End Function
  401.  
  402. Function textGpidMarkerSuppliesType(supplies_type,model)
  403.     Select Case supplies_type
  404.         Case 1, 2 t =     "Unknown Supply Type"         
  405.         Case 3 t =     "Toner"             
  406.         Case 4 t =     "Waste Toner"             
  407.         Case 5 t =     "Ink"                 
  408.         Case 6 t =     "Ink Cartridge"         
  409.         Case 7 t =     "Ink Ribbon"             
  410.         Case 8 t =     "Waste Ink"             
  411.         Case 9 t =     "Imaging Unit"             
  412.         Case 10 t =     "Developer"             
  413.         Case 11 t =     "Fuser Roll"             
  414.         Case 12 t =     "Ink Status"             
  415.         Case 13 t =     "Thermal Wax Ribbon"         
  416.         Case 14 t =     "Waste Wax"             
  417.         Case 15 
  418.             Select Case model
  419.                 Case M_740, M_550, M_560, M_540, M_780
  420.                     t =     "Fuser Roll"         
  421.                 Case M_840
  422.                     t =     "Maintenance Kit Life Remaining"         
  423.                 Case Else
  424.                     t =     "Maintenance Kit"         
  425.             End Select
  426.         Case 16 t =     "Feeder"             
  427.         Case 17 t =     "Tensioner"             
  428.         Case Else t =     "Unknown Supply Type"         
  429.     End Select
  430.  
  431.     textGpidMarkerSuppliesType = t
  432. End Function
  433.  
  434. Function textGpidMarkerSuppliesStatus(status)
  435.  
  436.     Select Case status
  437.         Case 3 t =     "Ok"                     
  438.         Case 4,6 t =     "User Attention Required"         
  439.         Case 5 t =     "Warning, User Attention Required"     
  440.         Case Else t =     "Unknown Supply Status"         
  441.     End Select
  442.     textGpidMarkerSuppliesStatus = t
  443. End Function
  444.  
  445. Function textGpidMarkerSuppliesStatusAlt(status)
  446.  
  447.     Select Case status
  448.         Case 3 t =     "Ok"             
  449.         Case 4,6 t =     "Out"             
  450.         Case 5 t =     "Low"             
  451.         Case Else t =     "Unknown Supply Status" 
  452.     End Select
  453.     textGpidMarkerSuppliesStatusAlt = t
  454. End Function
  455.  
  456.  
  457. %>
  458.