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.

226 lines
8.0 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. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  10. <meta http-equiv="Content-Language" content="en-us">
  11. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
  12. <meta name="ProgId" content="FrontPage.Editor.Document">
  13. <title>Windows Remote Control Tool</title>
  14. <!--
  15. Scripts to handle UI and Remote Control
  16. -->
  17. <script>
  18. //
  19. // Salem Objects.
  20. //
  21. var g_oSAFRemoteDesktopClient = null;
  22. var g_oSAFRemoteDesktopChannelMgr = null;
  23. var g_oChatChannel = null;
  24. var g_oControlChannel = null;
  25. //
  26. // Globals
  27. //
  28. var g_bRCEnabled = false;
  29. var g_szRCTicket = null;
  30. var g_bConnected = false;
  31. var g_szUserName = null;
  32. var g_bChatBoxHidden = false;
  33. var g_bNewBinaries = false;
  34. var UserWidth = window.screen.availWidth;
  35. var UserHeight = window.screen.availHeight;
  36. var UserColorDepth = window.screen.colorDepth;
  37. var g_bUserDisconnect = false;
  38. var timecounter = 0;
  39. var minutes = 2;
  40. var seconds = 2;
  41. var NotConnected = 1; // true
  42. </script>
  43. <script LANGUAGE="Javascript" SRC="Constants.js"> </script>
  44. </head>
  45. <script LANGUAGE="Javascript" SRC="RCScripts.js"> </script>
  46. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  47. </head>
  48. <body id="RCToolBody" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload=InitScreen2()>
  49. <!--
  50. Screen 2 code
  51. -->
  52. <div id=screen2 STYLE="position:absolute;top:0;left:0;width:640">
  53. <div id="div1" bgcolor="#4a8ece"> <!-- Start of 1st Div -->
  54. <table id="table3" width="100%" border="0" cellspacing="1" cellpadding="0" height="28">
  55. <tr valign="middle">
  56. <!-- Logo -->
  57. <td>
  58. <img src="WinRCTitleChat.gif" >
  59. </td>
  60. <!-- Connection Status -->
  61. <td colspan="3" height="2">
  62. <table id="table4" width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#FFFFFF" height="22">
  63. <tr bgcolor="#4a8ece">
  64. <td height="8">
  65. <table id="table5" width="100%" border="0" cellspacing="0" cellpadding="0" height="18">
  66. <tr valign="middle">
  67. <td colspan="2" nowrap height="2">
  68. <div align="left">
  69. <font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><b>&nbsp;STATUS:
  70. </b><div id="StatusId"> &nbsp;&nbsp; </div></font>
  71. </div>
  72. </td>
  73. </tr>
  74. </table> <!-- End of table5 -->
  75. </td>
  76. </tr>
  77. </table> <!-- End of table4 -->
  78. </td>
  79. </tr>
  80. <tr bgcolor="#4a8ece">
  81. <!-- Remote Control Button -->
  82. <td>
  83. <div align="center" id="div3" > <!-- Start of 3rd Div -->
  84. <table id="table6" width="100%" border="0" cellspacing="0" cellpadding="0">
  85. <tr>
  86. <td >
  87. <div align="center">
  88. <input type="submit" id=ControlRemotePC name=ControlRemotePC onclick=ControlRemotePCHandler() value="Start Remote Control">
  89. </div>
  90. </td>
  91. </tr>
  92. </table> <!-- End of table6 -->
  93. </div> <!-- End of 3rd Div -->
  94. </td>
  95. <!--File Transfer button -->
  96. <td>
  97. <div align="center">
  98. <input type="button" id="FileXferId" value="File Transfer" onclick=LaunchFileXfer(0)>
  99. </div>
  100. </td>
  101. <!--Remote Data Collection button -->
  102. <td>
  103. <div align="center">
  104. <input type="button" id="RemoteDataCollectionId" value="Remote Data Collection" onclick=LaunchRemoteDataCollection(0)>
  105. </div>
  106. </td>
  107. <!-- Close connection button -->
  108. <td width="19%" height="2" nowrap>
  109. <div align="left">&nbsp;
  110. <input type="button" id=ConnectionId onclick="ToggleConnection()" >
  111. </div>
  112. </td>
  113. <!-- Help Button -->
  114. <td width="20%" height="2" nowrap>
  115. <div align="right"> <b>
  116. <input type="submit" id="HelpId" value="Help">
  117. </b> </div>
  118. </td>
  119. </tr>
  120. </table> <!-- End of table3 -->
  121. </div> <!-- End of 1st Div -->
  122. <div id="div2" bgcolor="#4a8ece" align="center" style="position:absolute;top:100;left:0;width=640"> <!-- Start of 2nd Div -->
  123. <OBJECT classid=clsid:299BE050-E83E-4DB7-A7DA-D86FDEBFE6D0
  124. data=data:application/x-oleobject;base64,UOCbKT7ot02n2thv3r/m0AADAAAlQgAAnDEAAA==
  125. id=RemoteDesktopClientHost
  126. style="BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid;width=800"
  127. VIEWASTEXT>
  128. </OBJECT>
  129. </td>
  130. </div><!-- End of 2nd Div -->
  131. <div id="group1" style="position:absolute;top:70;left:10" > <!-- Start of group1 -->
  132. <div align="center" style="left:10" bgcolor="#4a8ece" id="div4"> <!-- Start of 4th Div -->
  133. <table id="table7" width="100%" border="1" cellspacing="0" cellpadding="0">
  134. <tr>
  135. <td>
  136. <div align="left">
  137. <TEXTAREA wrap="VIRTUAL" cols="84" rows="15" id=incomingChatText name=incomingChatText readOnly ></TEXTAREA>
  138. </div>
  139. </td>
  140. </tr>
  141. </table> <!-- End of table7 -->
  142. </TD>
  143. </div> <!-- End of 4th Div -->
  144. <div align="center" bgcolor="#4a8ece" id="div5" style="left:10"> <!-- Start of 5th Div -->
  145. <table id="table8" width="100%" border="1" cellspacing="0" cellpadding="0">
  146. <tr>
  147. <td>
  148. <textarea id=chatText name=chatText cols="64" wrap="VIRTUAL" rows="2" onkeypress=OnEnter()></textarea>
  149. </td>
  150. <td>
  151. <div align="left">
  152. <input type="submit" id=sendChatButton name=sendChatButton onclick=SendChatData() value="Submit Message">
  153. </div>
  154. </td>
  155. </tr>
  156. </table> <!-- End of table8 -->
  157. </td>
  158. </div> <!-- End of 5th Row -->
  159. </div><!-- End of group1 -->
  160. <div id=connecting align="center" style="position:absolute;top:1;left:1;visibility:hidden">
  161. <table border="0" cellspacing="4" cellpadding="0" bgcolor="#99CCFF">
  162. <tr>
  163. <td>
  164. <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">Remote
  165. Control Session Status</font>
  166. </div>
  167. </td>
  168. </tr>
  169. </table>
  170. <table width="700" border="0" cellspacing="2" cellpadding="4" bgcolor="e0e0e0">
  171. <tr bgcolor="#FFFFFF">
  172. <td colspan="2" valign="middle" height="2">
  173. <div align="center">
  174. <p id=ConnectMessage><font color="#333333"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000099"><br>
  175. Attempting to Connect with...</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000099"><br>
  176. </font></font><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#000099"><font size="2" face="Courier New, Courier, mono"><font face="Arial, Helvetica, sans-serif">
  177. </p>
  178. <p id=ConnectHelpee>
  179. John Cady (your friend from econ class)</font></font></font><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#333333"><font size="2" face="Courier New, Courier, mono">
  180. </font></font></p>
  181. <p id = TwoMinutesText> 2 Minutes </p>
  182. </div>
  183. </td>
  184. </tr>
  185. </table>
  186. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  187. <tr>
  188. <td>&nbsp; </td>
  189. </tr>
  190. <tr>
  191. <td>
  192. <div align="Left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
  193. <input id=FailedRetry type="submit" name="Retry" value="RETRY" onclick=ToggleConnection()> &nbsp;&nbsp; <input type="submit" name="Submit" value="Cancel ">
  194. &nbsp;&nbsp; &nbsp; &nbsp;</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
  195. &nbsp; </font></div>
  196. </td>
  197. </tr>
  198. </table>
  199. </div> <!-- End of connecting -->
  200. </div> <!-- End of Screen 2 -->
  201. </body>
  202. </html>