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.

176 lines
5.0 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>Remote Assistance</TITLE>
  9. <LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../../Css/rc.css">
  10. <LINK id="UI_StyleSheet1" REL="stylesheet" TYPE="text/css" HREF="hcp://system/css/shared.css">
  11. <SCRIPT Language="JavaScript">
  12. //
  13. // Salem objects.
  14. //
  15. g_bDebug = false;
  16. var L_ERRACCESSDENIED_Text = "Directly launching this page is not allowed. ";
  17. //
  18. // InitiateMsg: Initiates the message dialog
  19. //
  20. function InitiateMsg()
  21. {
  22. TraceFunctEnter("InitiateMsg");
  23. try
  24. {
  25. var vArgs = window.dialogArguments;
  26. idExpert1.innerText = vArgs[0];
  27. idExpert2.innerText = vArgs[0];
  28. idExpert3.innerText = vArgs[0];
  29. var iNewHeight = idBody.scrollHeight + 45;
  30. window.dialogHeight = iNewHeight + "px";
  31. }
  32. catch(error)
  33. {
  34. idBody.style.visibility = "hidden";
  35. alert( L_ERRACCESSDENIED_Text );
  36. return;
  37. }
  38. TraceFunctLeave();
  39. }
  40. //handling Esc key
  41. function document.onkeydown()
  42. {
  43. TraceFunctEnter("document.onkeydown");
  44. try
  45. {
  46. switch (event.keyCode)
  47. {
  48. case 27:
  49. event.returnValue=false;
  50. window.returnValue = 1;
  51. window.close();
  52. break;
  53. }
  54. }
  55. catch(error)
  56. {
  57. window.event.returnValue = false;
  58. }
  59. TraceFunctLeave();
  60. }
  61. //handling "arrow keys"
  62. function TabOrder(id)
  63. {
  64. TraceFunctEnter("TabOrder");
  65. try
  66. {
  67. if ((event.keyCode==39) || (event.keyCode==37))
  68. {
  69. if (id==0)
  70. {
  71. button1.focus();
  72. event.returnValue=false;
  73. }
  74. else
  75. {
  76. button0.focus();
  77. event.returnValue=false;
  78. }
  79. }
  80. }
  81. catch(error)
  82. {
  83. event.srcElement.focus();
  84. window.event.returnValue = false;
  85. }
  86. TraceFunctLeave();
  87. }
  88. //
  89. // OnClickHandler: Returns the id of the button to parent on Clicking
  90. //
  91. function onClickHandler( id )
  92. {
  93. TraceFunctEnter("onClickHandler");
  94. try
  95. {
  96. window.returnValue = id;
  97. window.close();
  98. }
  99. catch(error)
  100. {
  101. window.event.returnValue=false;
  102. }
  103. TraceFunctLeave();
  104. }
  105. </SCRIPT>
  106. <Style>
  107. .height14
  108. {
  109. height:5px;
  110. }
  111. </Style>
  112. </HEAD>
  113. <BODY id="idBody" class="sys-inlineform-bgcolor1" onload=InitiateMsg()>
  114. <Table name="idMainTable" id="idMainTable" class="MaxLayout" cellpadding="0" cellspacing="0" border=0>
  115. <TR>
  116. <TD class="padding6 padding4 padding3">
  117. <table id="idMsgTbl" name="idMsgTbl" cellspacing=0 cellpadding=0 class="MaxLayout" border=0>
  118. <tr id="TR0" name="TR0">
  119. <td id="MessageId" colspan=2 name="MessageId" class="sys-font-body sys-color-body padding5 padding2 padding8">
  120. <Span id="idExpert1" name="idExpert1">Your Helper</Span>&nbsp;would like to share control of your computer to help solve the problem.
  121. </td>
  122. </tr>
  123. <TR>
  124. <TD class="height5" colspan=2>
  125. </TD>
  126. </TR>
  127. <TR>
  128. <td id="idTD2" name="idTD2" class="sys-font-body sys-color-body padding5 padding2" colspan=2>
  129. Do you wish to let <Span id="idExpert2" name="idExpert2">Your Helper </Span> &nbsp;share control of your computer?
  130. </td>
  131. </tr>
  132. <TR>
  133. <TD class="height13" colspan=2>
  134. </TD>
  135. </TR>
  136. <tr id="TR2" name="TR2">
  137. <td id="idbtnrow" name="idbtnrow" align=right colspan=2 class="padding2">
  138. <button class="styBtnWidth sys-font-body sys-color-body" onClick="onClickHandler(0)" onkeydown="TabOrder(0);" id="button0" name="button0" tabindex=2 accesskey="Y"><U>Y</U>es</button>
  139. <Span id="idblankSpace" name="idblankSpace" class="width8"></Span>
  140. <button class="styBtnWidth sys-font-body sys-color-body" onClick="onClickHandler(1)" onkeydown="TabOrder(1);" id="button1" name="button1" tabindex=1 accesskey="N"><U>N</U>o</button>
  141. </td>
  142. </tr>
  143. <TR id="TR3" name="TR3">
  144. <td id="TD0TR3" name="TD0TR3" colspan=2 class="padding5 padding2">
  145. <HR>
  146. </td>
  147. </TR>
  148. <tr>
  149. <td class="height14" colspan=2>
  150. </TD>
  151. </tr>
  152. <TR id="TR5" name="TR5">
  153. <td id="TD0TR5" name="TD0TR5" class="padding5 padding7">
  154. <IMG id="idimg" name="idimg" class="Maxheight" src="ESC_key.gif">
  155. </td>
  156. <td id="TD2TR5" name="TD2TR5" class="sys-font-body sys-color-body padding2 padding6">
  157. It is recommended that you and <Span id="idExpert3" name="idExpert3"> your helper </Span> &nbsp; do not use the
  158. mouse at the same time. You can monitor all activity and stop control at any time by pressing the ESC key. Note that
  159. using any key sequence or combination including the ESC key will also stop control.
  160. </td>
  161. </tr>
  162. </Table>
  163. </TD>
  164. </TR>
  165. </Table>
  166. </BODY>
  167. </HTML>