Source code of Windows XP (NT5)
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.

148 lines
5.7 KiB

  1. <%@ CODEPAGE=65001 'UTF-8%>
  2. <%' certckpn.asp - (CERT)srv web - (C)hec(K) (P)e(N)ding certificates
  3. ' Copyright (C) Microsoft Corporation, 1998 - 1999 %>
  4. <%Response.Expires=-1%>
  5. <%'Stop%>
  6. <!-- #include FILE=certsbrt.inc -->
  7. <!-- #include FILE=certsrck.inc -->
  8. <!-- #include FILE=certdat.inc -->
  9. <HTML>
  10. <HTML>
  11. <Head>
  12. <Meta HTTP-Equiv="Content-Type" Content="text/html; charset=UTF-8">
  13. <Title>Microsoft Certificate Services</Title>
  14. </Head>
  15. <Body BgColor=#FFFFFF Link=#0000FF VLink=#0000FF ALink=#0000FF><Font ID=locPageFont Face="Arial">
  16. <Table Border=0 CellSpacing=0 CellPadding=4 Width=100% BgColor=#008080>
  17. <TR>
  18. <TD><Font Color=#FFFFFF><LocID ID=locMSCertSrv><Font Face="Arial" Size=-1><B><I>Microsoft</I></B> Certificate Services &nbsp;--&nbsp; <%=sServerDisplayName%> &nbsp;</Font></LocID></Font></TD>
  19. <TD ID=locHomeAlign Align=Right><A Href="/certsrv"><Font Color=#FFFFFF><LocID ID=locHomeLink><Font Face="Arial" Size=-1><B>Home</B></Font></LocID></Font></A></TD>
  20. </TR>
  21. </Table>
  22. <P ID=locPageTitle> <B> View the Status of a Pending Certificate Request </B>
  23. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  24. <%
  25. ' fill the list box with pending request entries
  26. ' get the list of requests from the cookie
  27. Dim rgRequests, nIndex
  28. rgRequests=GetRequests()
  29. ' are there any requests?
  30. If IsNull(rgRequests) Then
  31. 'No pending requests (that we know of)
  32. %>
  33. <P ID=locNoPend> You have no pending certificate requests.
  34. </P>
  35. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  36. <!-- White HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#FFFFFF><Img Src="certspc.gif" Alt="" Height=5 Width=1></TD></TR></Table>
  37. <%
  38. Else
  39. ' Yes, there are requests
  40. %>
  41. <P ID=locSelectCert> Select the certificate request you want to view:
  42. <%If "Text"=sBrowser Then%>
  43. <DL>
  44. <%
  45. ' loop over all the requests in the request array
  46. For nIndex=0 To UBound(rgRequests)
  47. ' add button for this request
  48. %>
  49. <DD><Form Name=SubmittedData Action="certfnsh.asp" Method=Post>
  50. <Input Type=Hidden Name=Mode Value="chkpnd">
  51. <Input Type=Hidden Name=ReqID Value="<%=rgRequests(nIndex)(FIELD_REQID)%>">
  52. <Input Type=Hidden Name=TargetStoreFlags Value="<%=rgRequests(nIndex)(FIELD_TARGETSTOREFLAGS)%>">
  53. <Input Type=Hidden Name=SaveCert Value="<%=rgRequests(nIndex)(FIELD_SAVECERT)%>">
  54. <Input ID=locBtnSubmit Type=Submit Value="<%=rgRequests(nIndex)(FIELD_FRIENDLYTYPE)%>">
  55. </Form>
  56. <%
  57. Next
  58. %>
  59. </DL>
  60. <%Else%>
  61. <Table Border=0 CellPadding=0 CellSpacing=0>
  62. <%
  63. ' loop over all the requests in the request array
  64. For nIndex=0 To UBound(rgRequests)
  65. ' add a link for this request
  66. %>
  67. <TR><TD ID=locSpc2 Colspan=2><Img Src="certspc.gif" Alt="" Height=3 Width=1></TD></TR>
  68. <TR>
  69. <TD ID=locSpc1><Img Src="certspc.gif" Alt="" Height=1 Width=20></TD>
  70. <%If "IE"=sBrowser Then%>
  71. <TD><Font ID=locLinkFont1 Face="Arial">
  72. <Span tabindex=0 Style="cursor:hand; color:#0000FF; text-decoration:underline;"
  73. OnContextMenu="return false;"
  74. OnMouseOver="window.status='<%=Replace(rgRequests(nIndex)(FIELD_FRIENDLYTYPE), "'", "&#39;")%>'; return true;"
  75. OnMouseOut="window.status=''; return true;"
  76. OnKeyDown="if (13==event.keyCode) {CheckPending2('<%=rgRequests(nIndex)(FIELD_REQID)%>', '<%=rgRequests(nIndex)(FIELD_TARGETSTOREFLAGS)%>', '<%=rgRequests(nIndex)(FIELD_SAVECERT)%>');return false;} else if (9==event.keyCode) {return true;};return false;"
  77. OnClick="CheckPending2('<%=rgRequests(nIndex)(FIELD_REQID)%>', '<%=rgRequests(nIndex)(FIELD_TARGETSTOREFLAGS)%>', '<%=rgRequests(nIndex)(FIELD_SAVECERT)%>');return false;"
  78. ><%=rgRequests(nIndex)(FIELD_FRIENDLYTYPE)%></Span>
  79. </Font></TD>
  80. <%Else%>
  81. <TD><Font ID=locLinkFont2 Face="Arial">
  82. <A Href="#"
  83. OnContextMenu="return false;"
  84. OnMouseOver="window.status='<%=Replace(rgRequests(nIndex)(FIELD_FRIENDLYTYPE), "'", "&#39;")%>'; return true;"
  85. OnMouseOut="window.status=''; return true;"
  86. OnClick="CheckPending2('<%=rgRequests(nIndex)(FIELD_REQID)%>', '<%=rgRequests(nIndex)(FIELD_TARGETSTOREFLAGS)%>', '<%=rgRequests(nIndex)(FIELD_SAVECERT)%>');return false;"
  87. ><%=rgRequests(nIndex)(FIELD_FRIENDLYTYPE)%></A>
  88. </Font></TD>
  89. <%End If%>
  90. </TR>
  91. <%
  92. Next
  93. %>
  94. </Table>
  95. <%End If%>
  96. </P>
  97. <!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
  98. <!-- White HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#FFFFFF><Img Src="certspc.gif" Alt="" Height=5 Width=1></TD></TR></Table>
  99. <%
  100. End If
  101. %>
  102. </Font>
  103. <!-- ############################################################ -->
  104. <!-- End of standard text. Scripts follow -->
  105. <%If "Text"=sBrowser Then%>
  106. <!-- No Scripts -->
  107. <%Else%>
  108. <!-- This form we fill in and submit 'by hand'-->
  109. <Form Name=SubmittedData Action="certfnsh.asp" Method=Post>
  110. <Input Type=Hidden Name=Mode> <!-- used in request ('newreq'|'chkpnd') -->
  111. <Input Type=Hidden Name=ReqID> <!-- used in request -->
  112. <Input Type=Hidden Name=TargetStoreFlags> <!-- used on install ('0'|CSSLM)-->
  113. <Input Type=Hidden Name=SaveCert> <!-- used on install ('no'|'yes')-->
  114. </FORM>
  115. <Script Language="JavaScript">
  116. function CheckPending2(sReqID, sTargetStoreFlags, sSaveCert) {
  117. // fill out the submission form
  118. document.SubmittedData.Mode.value='chkpnd'
  119. document.SubmittedData.ReqID.value=sReqID;
  120. document.SubmittedData.TargetStoreFlags.value=sTargetStoreFlags;
  121. document.SubmittedData.SaveCert.value=sSaveCert;
  122. // Submit the cert request and move forward in the wizard
  123. document.SubmittedData.submit();
  124. }
  125. </Script>
  126. <%End If%>
  127. </Body>
  128. </HTML>