Advertisement
Guest User

VC_Panel

a guest
Apr 19th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.85 KB | None | 0 0
  1. <html lang="en">
  2. <head>
  3.     <title> VC Panel</title>
  4.     <hta:application applicatname="VC Panel" scroll="yes" singleinstance="yes">
  5.     <SCRIPT LANGUAGE="VBScript">
  6.  
  7. ' Show/Hide Buttons based on Room
  8.     Sub VisList
  9.         If OptionChooser.Value = 1 Then
  10.             Dellforce_Span.style.visibility="visible"
  11.             Ridge4_span.style.visibility="hidden"
  12.             Ridge7_Span.style.visibility="hidden"
  13.         ElseIf OptionChooser.Value = 2 Then
  14.             Ridge4_Span.style.visibility="visible"
  15.             Dellforce_Span.style.visibility="hidden"
  16.             Ridge7_Span.style.visibility="hidden"
  17.         ElseIf OptionChooser.Value = 3 Then
  18.             Ridge7_Span.style.visibility="visible"
  19.             Ridge4_span.style.visibility="hidden"
  20.             Dellforce_Span.style.visibility="hidden"
  21.         Else
  22.             Dellforce_Span.style.visibility="hidden"
  23.             Ridge4_Span.style.visibility="hidden"
  24.             Ridge7_Span.style.visibility="hidden"
  25.         End If
  26.     End Sub
  27.  
  28.  
  29. ' Set Window Size
  30.     Sub Window_onLoad
  31.         window.resizeTo 266,442
  32.         Dellforce_Span.style.visibility="hidden"
  33.         Ridge4_Span.style.visibility="hidden"
  34.         Ridge7_Span.style.visibility="hidden"
  35.     End Sub
  36.    
  37.     </SCRIPT>
  38.    
  39.     <script type="text/javascript">
  40.    
  41. // Dellforce Road Buttons
  42.     function openURL_WebSnapshot_Dellforce()
  43.     {
  44.         var shell = new ActiveXObject("WScript.Shell");
  45.         shell.run("https://10.2.62.20/webpart.ssi");
  46.     }
  47.     function openURL_Calendar_Dellforce()
  48.     {
  49.         var shell = new ActiveXObject("WScript.Shell");
  50.         shell.run("http://Glkgwema1/exchange/RBSDellforceRd.BLD8DunlopVCRoom@ConTec.com.au/calendar/");
  51.     }
  52.     function openURL_WebUI_Dellforce()
  53.     {
  54.         var shell = new ActiveXObject("WScript.Shell");
  55.         shell.run("https://10.2.62.20");
  56.     }
  57.     function RunPutty_Dellforce()
  58.     {
  59.         var shell = new ActiveXObject("Wscript.Shell");
  60.         shell.Run("putty -ssh tandberg@10.2.62.20");
  61.     }
  62.    
  63. // Ridge Level 4 Buttons
  64.     function openURL_WebSnapshot_Ridge4()
  65.     {
  66.         var shell = new ActiveXObject("WScript.Shell");
  67.         shell.run("https://Glkgvc04/webpart.ssi");
  68.     }
  69.     function openURL_Calendar_Ridge4()
  70.     {
  71.         var shell = new ActiveXObject("WScript.Shell");
  72.         shell.run("http://Glkgwema1/exchange/MeetingRoom@ConTec.com.au/calendar/");
  73.     }
  74.     function openURL_WebUI_Ridge4()
  75.     {
  76.         var shell = new ActiveXObject("Wscript.Shell");
  77.         shell.run("https://Glkgvc04");
  78.     }
  79.     function RunPutty_Ridge4()
  80.     {
  81.         var shell = new ActiveXObject("Wscript.Shell");
  82.         shell.run("putty -ssh tandberg@Glkgvc04");
  83.     }
  84.    
  85. // Ridge Level 7 Buttons
  86.     function openURL_WebSnapshot_Ridge7()
  87.     {
  88.         var shell = new ActiveXObject("WScript.Shell");
  89.         shell.run("https://Glkgvc02/webpart.ssi");
  90.     }
  91.     function openURL_Calendar_Ridge7()
  92.     {
  93.         var shell = new ActiveXObject("WScript.Shell");
  94.         shell.run("http://Glkgwema1/exchange/RBSRidgeSt7thFloorWindRoomCA@ConTec.com.au/calendar/");
  95.     }
  96.     function openURL_WebUI_Ridge7()
  97.     {
  98.         var shell = new ActiveXObject("Wscript.Shell");
  99.         shell.run("https://Glkgvc02");
  100.     }
  101.     function RunPutty_Ridge7()
  102.     {
  103.         var shell = new ActiveXObject("Wscript.Shell");
  104.         shell.run("putty -ssh tandberg@Glkgvc02");
  105.     }
  106.     </script>
  107.  
  108. </head>
  109. <body STYLE="font:14pt arial; color:white;
  110. filter:progid:DXImageTransform.Microsoft.Gradient
  111. (GradientType=1, StartColorStr='#808080', EndColorStr='#C0C0C0')">
  112.  
  113. <select size="1" name="OptionChooser" onChange="VisList">
  114.     <option value="0"></option>
  115.     <option value="1">Dellforce</option>
  116.     <option value="2">Level 4 Ridge</option>
  117.     <option value="3">Level 7 Ridge</option>
  118. </select>
  119. <br></br>
  120.  
  121. <div style="text-align:center">
  122. <span id="Dellforce_Span">
  123. <B><U>Dellforce ROAD</B></U><p>
  124.     <input type="button" name="Dellforce_WebUI" onclick="openURL_WebUI_Dellforce()" value=" Web UI  ">
  125.     <input type="button" name="Dellforce_WebSnapShot" onclick="openURL_WebSnapshot_Dellforce()" value="Snapshot">
  126.     <input type="button" name="Dellforce_Calendar" onclick="openURL_Calendar_Dellforce()" value="Calendar">
  127.     <input type="button" name="Dellforce_Putty" onclick="RunPutty_Dellforce()" value="  SSH       ">
  128. </span>
  129.  
  130. <span id="Ridge4_Span">
  131. <B><U>Ridge Street Level 4</B></U><p>
  132.     <input type="button" name="Ridge4_WebUI" onclick="openURL_WebUI_Ridge4()" value=" Web UI  ">
  133.     <input type="button" name="Ridge4_WebSnapShot" onclick="openURL_WebSnapshot_Ridge4()" value="Snapshot">
  134.     <input type="button" name="Ridge4_Calendar" onclick="openURL_Calendar_Ridge4()" value="Calendar">
  135.     <input type="button" name="Ridge4_Putty" onclick="RunPutty_Ridge4()" value="  SSH       ">
  136. </span>
  137.  
  138. <span id="Ridge7_Span">
  139. <B><U>Ridge Street Level 7</B></U><p>
  140.     <input type="button" name="Ridge7_WebUI" onclick="openURL_WebUI_Ridge7()" value=" Web UI  ">
  141.     <input type="button" name="Ridge7_WebSnapShot" onclick="openURL_WebSnapshot_Ridge7()" value="Snapshot">
  142.     <input type="button" name="Ridge7_Calendar" onclick="openURL_Calendar_Ridge7()" value="Calendar">
  143.     <input type="button" name="Ridge7_Putty" onclick="RunPutty_Ridge7()" value="  SSH       ">
  144. </span>
  145.  
  146.  
  147.  
  148. </body>
  149. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement