Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  1. <%@ CODEPAGE=65001 %>
  2. <%
  3. '------------------------------------------------------------
  4. '
  5. ' Microsoft Internet Printing Project
  6. '
  7. ' Copyright (c) Microsoft Corporation. All rights reserved.
  8. '
  9. '
  10. '------------------------------------------------------------
  11. option explicit
  12. %>
  13. <!-- #include file = "ipp_util.inc" -->
  14. <%
  15. CheckSession
  16. Response.Expires = 0
  17. Dim strPrinter, strLocal, strJobEta
  18. Dim objPrinter, objQueue
  19. Const L_OpenPrinter_Text = "Open Printer: %1"
  20. strPrinter = OleCvt.DecodeUnicodeName (request ("eprinter"))
  21. strLocal = session(LOCAL_SERVER)
  22. Set objQueue = GetObject("WinNT://" & session(COMPUTER) & "/" & strPrinter)
  23. Dim strTitle
  24. Const L_PrinterOn_Text = "%1 on %2"
  25. strTitle = LARGE_FONT_TAG & RepString2(L_PrinterOn_Text, strCleanString (GetFriendlyName (objQueue.PrinterName, session(COMPUTER))), session(LOCAL_SERVER)) & END_FONT
  26. Set objPrinter = Server.CreateObject(PROGID_HELPER)
  27. On Error Resume Next
  28. objPrinter.open "\\" & session(COMPUTER) & "\" & strPrinter
  29. If Err Then
  30. Call ErrorHandler ( RepString1(L_OpenPrinter_Text, strPrinter) )
  31. End If
  32. strJobEta = JobEtaInfo (objPrinter)
  33. objPrinter.Close
  34. %>
  35. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  36. <html lang=<%=L_Language%>>
  37. <head>
  38. <Meta Http-equiv="Content-Type" Content="text/html; CHARSET=UTF-8">
  39. <meta http-equiv="refresh" content="60">
  40. </head>
  41. <body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#808080" alink="#000000"
  42. topmargin="0" leftmargin="0">
  43. <table width="100%" border=0 cellspacing="0" cellpadding="2">
  44. <tr>
  45. <td nowrap><% =Write (strTitle) %>
  46. <br><hr width=100% size=1 noshade color=red>
  47. <% =Write(strJobEta) %>
  48. </td>
  49. </tr>
  50. </table>
  51. </body>
  52. </html>