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.

127 lines
3.6 KiB

  1. <HTML>
  2. <HEAD>
  3. #include "header.inc"
  4. #include "debug_js.inc"
  5. #include "constants.inc"
  6. <meta http-equiv="MSThemeCompatible" content="Yes">
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  8. <TITLE id="title0" name="title0">Remote Assistance</TITLE>
  9. <script id="script1" name="script1" LANGUAGE="Javascript" SRC="../../Common/Constants.js"> </script>
  10. <LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../../Css/rc.css">
  11. <LINK id="UI_StyleSheet1" REL="stylesheet" TYPE="text/css" HREF="hcp://system/css/shared.css">
  12. <SCRIPT id="script0" name="script0" Language="JScript">
  13. g_bDebug = false;
  14. //
  15. // InitiateMsg: Initiates the message dialog
  16. //
  17. function InitiateMsg()
  18. {
  19. TraceFunctEnter("InitiateMsg");
  20. try
  21. {
  22. var vArgs = window.dialogArguments;
  23. MessageId.innerText = vArgs[0]; // Message
  24. var iNewHeight = idBody.scrollHeight + 45;
  25. window.dialogHeight = iNewHeight + "px";
  26. }
  27. catch(error)
  28. {
  29. try
  30. {
  31. //
  32. // We would come here from Escalation pages, since this page is in a
  33. // different namespace and we cannot access the dialogArguments, so
  34. // we seek the message in the URL
  35. //
  36. var szURL = document.URL;
  37. var i = szURL.indexOf("?", 1);
  38. MessageId.innerText = szURL.slice(i+1);
  39. }
  40. catch(error)
  41. {
  42. MessageId.innerText = L_RCCTL_Text;
  43. }
  44. }
  45. TraceFunctLeave();
  46. }
  47. //handling Esc key
  48. function document.onkeydown()
  49. {
  50. TraceFunctEnter("document.onkeydown");
  51. try
  52. {
  53. switch (event.keyCode)
  54. {
  55. case 27:
  56. event.returnValue=false;
  57. window.returnValue = 0;
  58. window.close();
  59. break;
  60. }
  61. }
  62. catch(error)
  63. {
  64. window.event.returnValue = false;
  65. }
  66. TraceFunctLeave();
  67. }
  68. //
  69. // OnClickHandler: Returns the id of the button to parent on Clicking
  70. //
  71. function onClickHandler( id )
  72. {
  73. TraceFunctEnter("onClickHandler");
  74. try
  75. {
  76. window.returnValue = id;
  77. window.close();
  78. }
  79. catch(error)
  80. {
  81. window.event.returnValue = false;
  82. }
  83. TraceFunctLeave();
  84. }
  85. </SCRIPT>
  86. </HEAD>
  87. <BODY id="idBody" onload=InitiateMsg() class="sys-inlineform-bgcolor1">
  88. <table id="idMaintable" name="idMainTable" cellpadding="0" cellspacing="0" border=0 class="MaxLayout">
  89. <TR>
  90. <TD class="padding6 padding4 padding3">
  91. <table id="idMsgTbl" name="idMsgTbl" cellspacing=0 cellpadding=0 border=0 class="MaxLayout">
  92. <tr id="TR1idMsgTbl" name="TR1idMsgTbl">
  93. <td id="TD0TR1idMsgTbl" name="TD0TR1idMsgTbl" class="valigntop padding5 padding7 padding8 width8">
  94. #ifndef _PERF_OPTIMIZATIONS
  95. <IMG id="img0TD0TR1idMsgTbl" name="img0TD0TR1idMsgTbl" src="../../escalation/Common/info.gif">
  96. #else
  97. <IMG id="img0TD0TR1idMsgTbl" name="img0TD0TR1idMsgTbl" src="info.gif">
  98. #endif
  99. </td>
  100. <td id="TD2TR1idMsgTbl" name="TD2TR1idMsgTbl" class="sys-font-body sys-color-body padding6 padding8">
  101. <Span id="MessageId" name="MessageId"> &nbsp; </Span>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td colspan=2 class="Height15">
  106. </td>
  107. </tr>
  108. <tr id="TR3idMsgTbl" name="TR3idMsgTbl">
  109. <td id="idbtnrow" name="idbtnrow" align="center" colspan=2>
  110. <button class="styBtnWidth sys-font-body sys-color-body" onClick="onClickHandler( 0 )" id="button0" name="button0">
  111. OK
  112. </button>
  113. </td>
  114. </tr>
  115. <table>
  116. </TD>
  117. </TR>
  118. </Table>
  119. </BODY>
  120. </HTML>