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.

261 lines
6.1 KiB

  1. <html>
  2. <head>
  3. #include "header.inc"
  4. #include "debug_js.inc"
  5. #include "constants.inc"
  6. <TITLE id="idTitle" name="idTitle">REMOTE_ASSISTANCE</TITLE>
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  8. <meta http-equiv="MSThemeCompatible" content="Yes">
  9. #ifndef _PERF_OPTIMIZATIONS
  10. <LINK id="UI_StyleSheet2" REL="STYLESHEET" TYPE="text/css" HREF="Css/rcBuddy.css" >
  11. #endif
  12. <LINK id="idStyleSheet1" REL="stylesheet" TYPE="text/css" HREF="hcp://system/css/shared.css">
  13. <STYLE id="idstyle">
  14. .Height12
  15. {
  16. height:17px;
  17. }
  18. .Width17
  19. {
  20. width:6px;
  21. }
  22. .padding
  23. {
  24. padding-left:10px;
  25. padding-right:10px;
  26. padding-top:6px;
  27. padding-bottom:10px;
  28. }
  29. .padding1
  30. {
  31. padding-top:6px;
  32. padding-left:6px;
  33. padding-bottom:6px;
  34. }
  35. #ifdef _PERF_OPTIMIZATIONS
  36. .MaxLayout
  37. {
  38. width:100%;
  39. Height:100%;
  40. }
  41. .display
  42. {
  43. display:;
  44. }
  45. .displaynone
  46. {
  47. display:none;
  48. }
  49. .styBtnWidth
  50. {
  51. padding-left : 1em;
  52. padding-right : 1em;
  53. padding-top : 0.4em;
  54. padding-bottom : 0.4em;
  55. }
  56. #endif
  57. </STYLE>
  58. </head>
  59. <body id='idBody' tabIndex=-1 onload="DoLoad()" class="sys-inlineform-bgcolor1">
  60. <Table border=0 cellpadding="0" cellspacing="0" class="MaxLayout">
  61. <TR>
  62. <TD class="padding1">
  63. <TABLE border="0" cellspacing="0px" cellpadding="0" border=0>
  64. <TR>
  65. <td id="idTd1" name="idTd1" class="padding">
  66. <div id=idNormal class="sys-font-body sys-color-body Display">
  67. <SPAN id="idHelperName">Your contact</SPAN> has accepted your Remote Assistance invitation and is ready to connect to your computer.
  68. <BR><BR>
  69. Do you want to let this person view your screen and chat with you?
  70. </div>
  71. <div id=idUnSolicited class="sys-font-body sys-color-body DisplayNone">
  72. Your network administrator <SPAN id="idUnSolicHelper">Your helper</SPAN> would like to
  73. view your screen, chat with you in real time, and work on your computer.
  74. <BR><BR>
  75. Would you like to give <Span id="idUnSolicHelper1">Your Helper</Span> access to your computer?
  76. </div>
  77. </td>
  78. </TR>
  79. <TR>
  80. <TD class="Height12">
  81. </TD>
  82. </TR>
  83. <TR>
  84. <TD id="idTd2" name="idTd2" align="right">
  85. <BUTTON class="sys-font-body sys-color-body styBtnWidth" name="btnAccept" id="btnAccept" tabIndex=2 onClick="DoAccept()" onkeydown="TabOrder(0);" accesskey="Y" disabled><u>Y</u>es</BUTTON>
  86. <span id="idSpace" class="width17"></span>
  87. <BUTTON class="sys-font-body sys-color-body styBtnWidth" name="btnDecline" id="btnDecline" tabIndex=1 OnClick="Decline()" onkeydown="TabOrder(1);" accesskey="N" disabled><u>N</u>o</BUTTON>
  88. </TD>
  89. </TR>
  90. </TABLE>
  91. </TD>
  92. </TR>
  93. </Table>
  94. </body>
  95. <Script Language="JavaScript" id="idScript">
  96. function document.onkeydown()
  97. {
  98. try
  99. {
  100. switch( window.event.keyCode ) {
  101. case 0x8:
  102. window.event.returnValue=false;
  103. break;
  104. case 0x9:
  105. if( window.event.srcElement.id == "btnDecline" )
  106. {
  107. btnAccept.focus();
  108. window.event.returnValue = false;
  109. }
  110. else if( window.event.srcElement.id == "btnAccept" )
  111. {
  112. btnDecline.focus();
  113. window.event.returnValue = false;
  114. }
  115. break;
  116. case 0x1B:
  117. Decline();
  118. window.event.returnValue=false;
  119. break;
  120. }
  121. }
  122. catch(error)
  123. {
  124. btnAccept.focus();
  125. window.event.returnValue = false;
  126. }
  127. }
  128. //handling "arrow keys"
  129. function TabOrder(id)
  130. {
  131. TraceFunctEnter("TabOrder");
  132. try
  133. {
  134. if ((event.keyCode==39) || (event.keyCode==37))
  135. {
  136. if (id==0)
  137. {
  138. btnDecline.focus();
  139. event.returnValue=false;
  140. }
  141. else
  142. {
  143. btnAccept.focus();
  144. event.returnValue=false;
  145. }
  146. }
  147. }
  148. catch(error)
  149. {
  150. event.srcElement.focus();
  151. window.event.returnValue = false;
  152. }
  153. TraceFunctLeave();
  154. }
  155. /*
  156. Function : DoLoad()
  157. Description : This function gets called on Onload event of the window.
  158. Resizes the window to the below co-ordinates and sets the focus.
  159. */
  160. function DoLoad()
  161. {
  162. var L_ERRACCESSDENIED_Text = "Directly launching this page is not allowed. ";
  163. if( null == parent.OnLoad1 )
  164. {
  165. idBody.style.visibility = "hidden";
  166. alert( L_ERRACCESSDENIED_Text );
  167. return;
  168. }
  169. }
  170. function LoadVariables()
  171. {
  172. TraceFunctEnter("LoadVariables");
  173. try
  174. {
  175. if( parent.gIsURA )
  176. {
  177. idNormal.className = "sys-font-body sys-color-body DisplayNone";
  178. idUnSolicited.className = "sys-font-body sys-color-body Display";
  179. if (parent.gHelperName)
  180. {
  181. idUnSolicHelper.innerText = parent.gHelperName;
  182. idUnSolicHelper1.innerText = parent.gHelperName;
  183. }
  184. }
  185. else
  186. {
  187. if (parent.gHelperName)
  188. {
  189. idHelperName.innerText = parent.gHelperName;
  190. }
  191. }
  192. }
  193. catch(error)
  194. {
  195. parent.FatalError( parent.L_RCCTL_Text, error );
  196. }
  197. //
  198. // TODO: Take care of unsolicited
  199. //
  200. btnAccept.disabled = false;
  201. btnDecline.disabled = false;
  202. btnDecline.focus();
  203. TraceFunctLeave();
  204. }
  205. /*
  206. Function : DoAccept()
  207. Description :This function is called when the helper is granted permission to
  208. make the connection.
  209. */
  210. function DoAccept()
  211. {
  212. TraceFunctEnter("DoAccept");
  213. if (parent.oRCSession == null)
  214. {
  215. parent.Accepted();
  216. }
  217. TraceFunctLeave();
  218. }
  219. /*
  220. Function : Decline()
  221. Description : This function is called when the helpee declines the helper from connecting
  222. */
  223. function Decline()
  224. {
  225. TraceFunctEnter("Decline");
  226. if (parent.oRCSession == null)
  227. {
  228. try
  229. {
  230. parent.Rejected();
  231. parent.pchealth.Close();
  232. }
  233. catch (error)
  234. {
  235. parent.FatalError( L_RCCTL_Text,error);
  236. }
  237. }
  238. TraceFunctLeave();
  239. }
  240. </Script>
  241. </html>