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.

209 lines
6.3 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_INVITE</TITLE>
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  8. <meta http-equiv="MSThemeCompatible" content="Yes">
  9. <LINK id="UI_StyleSheet1" REL="STYLESHEET" TYPE="text/css" HREF="../../Css/rcBuddy.css">
  10. <LINK id="UI_StyleSheet2" REL="stylesheet" TYPE="text/css" HREF="hcp://system/css/shared.css">
  11. <Script id="idScript1" name="idScript1" language="JavaScript">
  12. /*
  13. * Localizable constants, text and messages
  14. */
  15. var L_NOPERMISSION_Text = "Remote Assistance is disabled on this computer. To use Remote Assistance, you must enable it on the Remote tab in System Properties in Control Panel. Note that if an administrator has disabled Remote Assistance in Group Policy Object Editor, you cannot enable it in System Properties.";
  16. var L_ERRACCESSDENIED_Text = "Directly launching this page is not allowed. ";
  17. function WinLoad()
  18. {
  19. TraceFunctEnter("WinLoad");
  20. if( null == parent.OnLoad )
  21. {
  22. idBody.style.visibility = "hidden";
  23. window.navigate( "hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Common/rcscreen1.htm" );
  24. return;
  25. }
  26. else
  27. {
  28. parent.g_bRAStart = true;
  29. idInvite.focus();
  30. try
  31. {
  32. var i=0;
  33. var chan = parent.pchealth.CreateObject_Channel(parent.sVendorID,parent.sProductID );
  34. var e = new Enumerator(chan.Incidents(2));
  35. for (;!e.atEnd();e.moveNext())
  36. {
  37. i++;
  38. }
  39. }
  40. catch(error)
  41. {
  42. alert(parent.L_NOCHANNEL_Text);
  43. return;
  44. }
  45. idCount.innerText=" ("+i+")";
  46. }
  47. TraceFunctLeave();
  48. }
  49. function DoInvite()
  50. {
  51. TraceFunctEnter("DoInvite");
  52. try
  53. {
  54. var oRARegSetting = new ActiveXObject("RACplDlg.RARegSetting");
  55. var Allow = oRARegSetting.AllowGetHelp;
  56. if (Allow == 0)
  57. {
  58. alert (L_NOPERMISSION_Text);
  59. return;
  60. }
  61. if (parent.GetIPAddress() == "")
  62. {
  63. parent.SwitchToOfflinePage();
  64. }
  65. else
  66. {
  67. navigate("rcScreen3.htm");
  68. }
  69. }
  70. catch (error)
  71. {
  72. alert(parent.L_RCCTL_Text);
  73. }
  74. TraceFunctLeave();
  75. }
  76. function ViewStatus()
  77. {
  78. TraceFunctEnter("ViewStatus");
  79. try
  80. {
  81. navigate("../../rcStatus.htm");
  82. }
  83. catch(error)
  84. {
  85. alert(parent.L_RCCTL_Text);
  86. return;
  87. }
  88. TraceFunctLeave();
  89. }
  90. function MoreInfo()
  91. {
  92. TraceFunctEnter("MoreInfo");
  93. try
  94. {
  95. var szURL = "hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Common/RCMoreInfo.htm";
  96. window.showModalDialog( szURL,"", "dialogHeight:440px;dialogWidth:385px;status:no;resizable:no;help:no" );
  97. }
  98. catch(error)
  99. {
  100. alert(parent.L_RCCTL_Text);
  101. return;
  102. }
  103. TraceFunctLeave();
  104. }
  105. </script>
  106. </head>
  107. <BODY id="idBody" scroll="auto" onload="WinLoad();" class="margin sys-rhp-bgcolor">
  108. <table class="MaxWidth" id="idtableframe" name="idtableframe" cellpadding="16px" border=0>
  109. <tr>
  110. <td>
  111. <TABLE id="RA_Table" name="RA_Table" class="MaxWidth" border="0" cellspacing="0" cellpadding="0">
  112. <TR>
  113. <TD id="idTd1" name="idTD1"><Span id="idMainTitle" name="idMainTitle" class="sys-font-heading3 sys-rhp-color-title">Remote Assistance</Span></TD>
  114. </TR>
  115. <TR>
  116. <TD class="height9">
  117. </TD>
  118. </TR>
  119. <TR>
  120. <TD id="idTd2" name="idTD2">
  121. <span id="idSubTitle" name="idSubTitle" class="sys-font-body-bold sys-color-body">Invite someone you trust to help you</span>
  122. </TD>
  123. </TR>
  124. <TR>
  125. <TD class="height8">
  126. </TD>
  127. </TR>
  128. <TR>
  129. <TD id="idTd3" name="idTD3">
  130. <span id="idText" name="idText" class="sys-font-body sys-color-body">Invite someone you trust to help you. Using an Internet connection, anyone running Windows XP or Windows Server 2003 can chat with you, view your screen, and with your permission, work on your computer.</span>
  131. </TD>
  132. </TR>
  133. <TR>
  134. <TD class="Height11">
  135. </TD>
  136. </TR>
  137. <TR>
  138. <TD id="idTd6" name="idTD6">
  139. <A href="" onclick="MoreInfo();return false;" ondragstart="return false;" id="idMoreInfo" name="idMoreInfo" tabindex="3" class="sys-font-body sys-link-normal">Tell me more about Remote Assistance</A>
  140. </TD>
  141. </TR>
  142. <TR>
  143. <TD class="height7">
  144. </TD>
  145. </TR>
  146. <TR>
  147. <TD id="idTd4" name="idTD4">
  148. <Img id="idimg1"
  149. name="idimg1"
  150. onclick="DoInvite();return false;"
  151. class="valignbottom borderNone"
  152. ondragstart="return false;"
  153. src="green_rest_16x.bmp"
  154. onmouseover="this.style.cursor='hand';document.getElementById('idInvite').style.textDecorationUnderline=true"
  155. onmouseout="document.getElementById('idInvite').style.textDecorationUnderline=false">
  156. </Img>
  157. &nbsp;
  158. <A href="" id="idInvite"
  159. name="idInvite"
  160. ondragstart="return false;"
  161. tabindex="1"
  162. class="sys-font-body sys-link-normal valignmiddle"
  163. onclick="DoInvite();return false;">
  164. Invite someone to help you
  165. </A>
  166. </TD>
  167. </TR>
  168. <TR>
  169. <TD class="height7">
  170. </TD>
  171. </TR>
  172. <TR>
  173. <TD id="idTd5" name="idTD5">
  174. <Img id="idimg2"
  175. name="idimg2"
  176. class="valignbottom borderNone"
  177. onclick="ViewStatus();return false;"
  178. ondragstart="return false;"
  179. src="blue_rest_16x.bmp"
  180. onmouseover="this.style.cursor='hand';document.getElementById('idstatus').style.textDecorationUnderline=true"
  181. onmouseout="document.getElementById('idstatus').style.textDecorationUnderline=false">
  182. </Img>
  183. &nbsp;
  184. <A href="" id="idstatus"
  185. name="idstatus"
  186. ondragstart="return false;"
  187. tabindex="2"
  188. class="sys-font-body sys-link-normal valignmiddle"
  189. onclick="ViewStatus();return false;">
  190. View invitation status<span id="idCount" name="idCount"></span>
  191. </A>
  192. </TD>
  193. </TR>
  194. </TABLE>
  195. </td>
  196. </tr>
  197. </table>
  198. </BODY>
  199. </html>