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.

307 lines
9.5 KiB

  1. <%@ Language=JavaScript%>
  2. <!--
  3. rctool.htm: This is the Remote Control Expert channel implementation.
  4. History:
  5. Rajesh Soy (nsoy), Jerry O Hogan (a-jerryo), Sudha Srinivasan - created 06/21/2000
  6. @@@@@
  7. Scripts to handle UI and Remote Control
  8. -->
  9. <script>
  10. //
  11. // SAF Objects
  12. //
  13. var g_oCurrentIncident = null;
  14. var g_oEncryption = null;
  15. var g_oDict = null;
  16. //
  17. // Globals
  18. //
  19. var g_szIncidentFile = null;
  20. var g_szUserName = null;
  21. var g_szProblemDescription = null;
  22. var g_szExpiryTime = "1 HOUR";
  23. var g_szPassword = null;
  24. var g_szRCTicketEncrypted = null;
  25. var g_szRCTicket = null;
  26. var g_bPasswordSet = false;
  27. var Screen2Width = "730";
  28. var Screen2Height = "700";
  29. var g_bRCEnabled = false;
  30. var g_szRCTicket = null;
  31. var g_bConnected = false;
  32. var g_szUserName = null;
  33. var g_bChatBoxHidden = false;
  34. var g_bNewBinaries = false;
  35. var UserWidth = window.screen.availWidth;
  36. var UserHeight = window.screen.availHeight;
  37. var UserColorDepth = window.screen.colorDepth;
  38. var g_bUserDisconnect = false;
  39. var timecounter = 0;
  40. var minutes = 2;
  41. var seconds = 2;
  42. var NotConnected = 1; // true
  43. var g_szHelpeeIP = null;
  44. </script>
  45. <script LANGUAGE="Javascript" SRC="Constants.js"> </script>
  46. </head>
  47. <script LANGUAGE="Javascript" SRC="RCScripts.js"> </script>
  48. <LINK id="UI_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="../rcbuddy/rc.css">
  49. </head>
  50. <!-- The SAF class factory object -->
  51. <OBJECT classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7 height=0 id=oSAFClassFactory
  52. width=0></OBJECT>
  53. <html>
  54. <head>
  55. <title>Untitled Document</title>
  56. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  57. </head>
  58. <body class="styHelperBackGround" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="InitializeRCTool()">
  59. <div id="Layer2" align="center" style="position:absolute; left:50px; top:75px; width:418px; height:42px; z-index:0; visibility:hidden">
  60. <table border="0" cellspacing="2" bgcolor="e0e0e0" width="95%" cellpadding="4" align="center">
  61. <tr bgcolor="#696969"> <!-- start of row 1 -->
  62. <td colspan="2" valign="middle" height="2">
  63. <div align="center" class="styText">
  64. <font face="Verdana, Arial, Helvetica, sans-serif" color="#ffffff">
  65. <strong>Remote Control Invitation </strong>
  66. </font>
  67. </div>
  68. </td>
  69. </tr> <!-- End of row 1 -->
  70. <tr> <!-- Start of row 2 -->
  71. <td bgcolor="#f5f5f5" valign="middle" height="2">
  72. <div align="center" class="styText"> From </div>
  73. </td>
  74. <td bgcolor="#FFFFFF" height="2">
  75. <div id="InviteSent" class="styText"> [email protected] </div>
  76. </td>
  77. </tr> <!-- End of row 2 -->
  78. <tr> <!-- start of row 3 -->
  79. <td bgcolor="#f5f5f5" valign="middle" height="23" nowrap><font color="#333333">
  80. <div class="styText" align=center> Expires In </div>
  81. </td>
  82. <td height="23" bgcolor="#ffffff">
  83. <div id="InviteExpires" class="styText">
  84. 54 MINUTES (4:35 PST)
  85. </div>
  86. </td>
  87. </tr> <!-- end of row 3 -->
  88. <tr> <!-- start of row 4 -->
  89. <td align="center" bgcolor="#f5f5f5" height="12" nowrap>
  90. <div class="styText">Password</div>
  91. </td>
  92. <td height="12" bgcolor="#FFFFFF">
  93. <div id="PasswordTbl">
  94. <table border="0" cellspacing="4" cellpadding="0" bgcolor="#FFFFFF">
  95. <table border="0">
  96. <td height="30">
  97. <div class="styText">
  98. Enter Password
  99. </div>
  100. </td>
  101. <td align="left">
  102. <input type="password" id="PasswordBox" size="18" maxlength="18" onkeypress=PasswordSet()>
  103. </td>
  104. </table>
  105. <table border="0">
  106. <tr>
  107. <td VALIGN="bottom">
  108. <div class="styText">
  109. If you do not have the password, contact the person requesting this help session
  110. </div>
  111. </td>
  112. </tr>
  113. </table>
  114. </div>
  115. </td>
  116. </tr> <!-- End of row 4 -->
  117. <tr> <!-- start of row 5 -->
  118. <td colspan=2>
  119. <div class="styText">
  120. Do you want to start the help Session?
  121. <div>
  122. </td>
  123. </tr> <!-- end of row 5 -->
  124. <tr> <!-- start of row 6 -->
  125. <td> &nbsp; </td>
  126. <td>
  127. <div align="right">
  128. <table>
  129. <tr>
  130. <td>
  131. <BUTTON align=center CLASS="styButton" id="YES" onclick="InitScreen2()"> Yes </BUTTON>
  132. </td>
  133. <td>
  134. <BUTTON align=center CLASS="styButton" id="NO" onClick="navigate( c_szHomePage )"> No </BUTTON>
  135. </td>
  136. </tr>
  137. </table>
  138. </div>
  139. </td>
  140. </tr> <!-- end of row 6 -->
  141. </table>
  142. </div> <!-- end of layer 2 -->
  143. <!-- nsoy change end-->
  144. <div id="ConnectionProgressLayer" style="position:absolute; left:50px; top:50px; width:426px; height:225px; z-index:2; visibility:hidden">
  145. <table border="0" style="WIDTH: 350px">
  146. <tr height="30">
  147. <br>
  148. <td width="10%"> </td>
  149. <td width="90%">
  150. <div class="styText">
  151. Attempting to start a help session with:
  152. </div>
  153. </td>
  154. </tr>
  155. <tr VALIGN="center" height="30">
  156. <br>
  157. <td width="10%"> </td>
  158. <td width="90%">
  159. <div id=HelpeeName class="styText">John Cady ([email protected])
  160. </div>
  161. </td>
  162. </tr>
  163. </table>
  164. <table border="0" cellspacing="4" cellpadding="0" style="HEIGHT: 130px; WIDTH: 470px">
  165. <tr height="40%"></tr>
  166. <tr height="40%">
  167. <td width="25%" bgcolor="#ffffff" > </td>
  168. <td id=FirstProgressBox width="10%" bgcolor="threedlightshadow"> </td>
  169. <td width="10%" bgcolor="#ffffff" > </td>
  170. <td id=SecondProgressBox width="10%" bgcolor="threedlightshadow"> </td>
  171. <td width="10%" bgcolor="#ffffff" > </td>
  172. <td id=ThirdProgressBox width="10%" bgcolor="threedlightshadow"> </td>
  173. <td width="25%" bgcolor="#ffffff"></td>
  174. </tr>
  175. <tr height="20%"></tr>
  176. </table>
  177. <table border="0" style="WIDTH: 470px">
  178. <td id=Enunciator ALIGN="middle"><font size="2" face="Tahoma" color="#000000">Connecting to remote computer</font> </td>
  179. <table border="0" style="WIDTH: 470px">
  180. <td ALIGN="right"><font size="2" face="Tahoma" color="#000000"><INPUT id=Cancel name=Cancel type=button value=Cancel></font> </td>
  181. </table>
  182. </div>
  183. <div id=RemoteControlLayer bgcolor="#4a8ece" style="HEIGHT: 225px; width:650px;LEFT: 0px; POSITION: absolute; TOP: 5px; VISIBILITY: hidden; Z-INDEX: 2">
  184. <table width="100%" border="0" cellspacing="0" cellpadding="0" height="30" bgcolor="#696969">
  185. <tr valign="center">
  186. <td nowrap height="30" rowspan="3" width="16%" valign="center"><b><font color="#FFFFFF" face="Tahoma, Arial, Helvetica, sans-serif">Help Session</b></td>
  187. <td nowrap height="2" colspan="6"></td>
  188. </tr>
  189. <tr valign="center">
  190. <td height="2" colspan="2" nowrap>
  191. <div id=headerHelpeeName align="left"><font face="Tahoma, Arial, Helvetica, sans-serif" size="1" color="#ffffff"><b><font color="#ffffff" face="Tahoma, Arial, Helvetica, sans-serif">&nbsp;&nbsp;&nbsp;(HelperName@Host):</font></b></font>
  192. </div>
  193. </td>
  194. <td nowrap height="2" width="18%">
  195. <div align="right"><font face="Arial, Helvetica, sans-serif" size="2" color="#ffffff"><b>
  196. <BUTTON align=center CLASS="styButton" id="TakeControl" onclick="TakeControlMethod()"> Take Control </BUTTON>
  197. </div>
  198. </td>
  199. <td nowrap height="2" width="12%">
  200. <div align="right">&nbsp;&nbsp;&nbsp;
  201. <BUTTON align=center CLASS="styButton" id="SendFile" onclick="SendFileMethod()" disabled="false"> Send a File ... </BUTTON>
  202. </div>
  203. </td>
  204. <td nowrap height="2" width="8%">
  205. <div align="right"><font face="Arial, Helvetica, sans-serif" size="2" color="#ffffff"></font><b>&nbsp;&nbsp;&nbsp;
  206. <BUTTON align=center CLASS="styButton" id="Quit" onclick="QuitMethod()"> Quit </BUTTON>
  207. </div>
  208. </td>
  209. <td nowrap height="2" width="9%">
  210. <div align="right"><b>&nbsp;&nbsp;&nbsp;
  211. <BUTTON align=center CLASS="styButton" id="Help" onclick="HelpMethod()"> Help </BUTTON>
  212. </div>
  213. </td>
  214. </tr>
  215. </table>
  216. </div>
  217. <div id=RemoteControlObject style="position:absolute; top:35px; left:1px; z-index:1; visibility:hidden">
  218. <OBJECT classid=clsid:299BE050-E83E-4DB7-A7DA-D86FDEBFE6D0
  219. data=data:application/x-oleobject;base64,UOCbKT7ot02n2thv3r/m0AADAAAlQgAAnDEAAA==
  220. id=RemoteDesktopClientHost
  221. style="BORDER-BOTTOM: black 0px solid; BORDER-LEFT: black 0px solid; BORDER-RIGHT: blue 0px solid; BORDER-TOP: white 0px solid;width=650"
  222. VIEWASTEXT>
  223. </OBJECT>
  224. </div>
  225. <div id="ChatServerLayer" class="styHelpBackGround" style="position:absolute; top:510px; left:1px; width:650px; height:140px; z-index:1; visibility:hidden">
  226. <table>
  227. <tr>
  228. <td>
  229. <table width="90%" cellspacing="0" cellpadding="0">
  230. <tr>
  231. <td colspan=3>
  232. <!--<div id=idStatus> </div>-->
  233. <div class=styText> <IMG src="net.gif"> <STRONG>Status</STRONG> :Connected </div>
  234. </td>
  235. <td align=right>
  236. <!--<div id=idtogglechat onclick=HideChatBox()> &nbsp; </div>-->
  237. <div class=styText> Hide Chat <img src="hide-chat.gif" onclick=HideChatBox()> </div>
  238. </td>
  239. </tr>
  240. </table>
  241. </td>
  242. </tr>
  243. <TR><!--
  244. Incoming chat display area
  245. -->
  246. <TD><TEXTAREA cols=75 id=incomingChatText name=incomingChatText readOnly rows=3 wrap=VIRTUAL multiline="true" disabled="false" style="visibility:visible"></TEXTAREA>
  247. </TD>
  248. </TR>
  249. <TR><!--
  250. Chat text box
  251. -->
  252. <TD><TEXTAREA cols=65 id=chatText name=chatText onkeypress=OnEnter() rows=1 wrap=VIRTUAL disabled="false" style="visibility:visible"></TEXTAREA>&nbsp;&nbsp;&nbsp;
  253. <input class="styButton" type="submit" id=sendChatButton name=sendChatButton onclick=SendChatData() value="Submit" disabled="false" style="visibility:visible"></TD>
  254. </TR>
  255. </TABLE>
  256. </div>
  257. </body>
  258. </html>