/
index.html
480 lines (431 loc) · 25.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
<!--
* Copyright (C) 2009 Sun Microsystems, Inc.
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "html-dtd/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
<head>
<title>VirtualBox Web Console</title>
<!-- Meta fields. -->
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Cache-Control" content ="no-cache"/>
<meta http-equiv="Cache-Control" content ="no-store, must-revalidate, max-age=0"/>
<meta http-equiv="Cache-Control" content ="post-check=0, pre-check=0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<!-- Icon. -->
<link rel="shortcut icon" href="/static/images/favicon.ico"/>
<!-- Layout. -->
<link rel="stylesheet" type="text/css" href="/static/css/layout-default.css"/>
<!-- Themes. -->
<link rel="stylesheet" type="text/css" href="/static/css/themes/vboxweb/jquery-ui-1.7.2.custom.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/themes/vboxweb/ui.core.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/themes/vboxweb/ui.tabs.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/themes/vboxweb/ui.all.css"/>
</head>
<body>
<!-- JavaScript detection. -->
<noscript>
JavaScript is turned off in your web browser. Turn it on to take full advantage of this site, then refresh the page.
</noscript>
<!-- RDP scripts. -->
<script type="text/javascript" src="/static/js/webclient.js"></script>
<script type="text/javascript" src="/static/js/swfobject.js"></script>
<!-- jQuery -->
<!-- @todo add debug switch for including non-minimized versions. -->
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.layout.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.metadata.js"></script>
<!-- Prototype -->
<script type="text/javascript" src="/static/js/prototype.js"></script>
<!-- UI scripts. -->
<script type="text/javascript" src="/static/js/ui/ui.core.js"></script> <!-- Must always come first. -->
<script type="text/javascript" src="/static/js/ui/ui.dialog.js"></script>
<script type="text/javascript" src="/static/js/ui/ui.selectable.js"></script>
<script type="text/javascript" src="/static/js/ui/ui.draggable.js"></script>
<script type="text/javascript" src="/static/js/ui/ui.sortable.js"></script>
<script type="text/javascript" src="/static/js/ui/ui.resizable.js"></script>
<script type="text/javascript" src="/static/js/ui/ui.tabs.js"></script>
<script type="text/javascript" src="/static/js/ui/ui.slider.js"></script>
<!-- jQuery UI plugins -->
<script type="text/javascript" src="/static/js/ui/jquery.qtip-1.0.0-rc3.js"></script>
<script type="text/javascript" src="/static/js/ui/mbMenu.min.js"></script>
<script type="text/javascript" src="/static/js/ui/jquery.history.js"></script>
<script type="text/javascript" src="/static/js/ui/jquery.form.js"></script>
<script type="text/javascript" src="/static/js/ui/jquery.validate.js"></script>
<script type="text/javascript" src="/static/js/ui/jquery.form.wizard-0.9.7.js"></script>
<!-- Main API -->
<script type="text/javascript" src="/static/js/VirtualBox_Main.js"></script>
<!-- Utility stuff. -->
<script type="text/javascript" src="/static/js/vboxHelper.js"></script>
<!-- COM-like classes. -->
<script type="text/javascript" src="/static/js/vboxConfig.js"></script>
<script type="text/javascript" src="/static/js/vboxVirtualBox.js"></script>
<script type="text/javascript" src="/static/js/vboxGlobal.js"></script>
<!-- UI classes. -->
<script type="text/javascript" src="/static/js/vboxVMToolbar.js"></script>
<script type="text/javascript" src="/static/js/vboxVMListView.js"></script>
<script type="text/javascript" src="/static/js/vboxTabWidget.js"></script>
<script type="text/javascript" src="/static/js/vboxSelectorWnd.js"></script>
<script type="text/javascript" src="/static/js/vboxDialogs.js"></script>
<!-- Inline code. -->
<script type="text/javascript">
var vbGlobal;
var vmToolbar;
var vmListView;
var vmTabView;
var vmSelWnd;
var OuterLayout, layoutTabRDP, InboxLayout;
var vmTabWidget;
/* Set global jQuery handle (instead of using "jQuery(...)" all the time.
var $j = jQuery.noConflict();*/
/* create the main menu bar */
jQuery(function(){
jQuery(".applicationMenu").buildMenu(
{
menuWidth:200,
openOnRight:false,
menuSelector: ".menuContainer",
containment:"wrapper",
iconPath:"/images/vbox/",
hasImages:true,
fadeInTime:100,
fadeOutTime:300,
adjustLeft:2,
minZindex:"auto",
adjustTop:10,
opacity:.95,
shadow:true,
closeOnMouseOut:true,
closeAfter:1000
});
});
function resizeTabLayout ()
{
if (!vmTabWidget)
return; /* Make sure tabs are initialized. */
var selected = vmTabWidget.tabs('option', 'selected');
if (selected == 1) // first tab
{
/* Resize the tab-panel height because it is a 'layout container'.
I'm now tired of moving around these code bits for having random results,
so just substract 10px from the height to ensure it fits (sigh) ... */
jQuery("#tabs-center-rdp").height( jQuery("#TabPanelsContainer").height() - 10);
var pageHeight = jQuery("#tabs-center-rdp").height();
var pageTop = jQuery("#tabs-center-rdp").offset().top;
var rdpOffset = jQuery("#FlashRDP").offset().top - pageTop;
var newHeight = pageHeight - rdpOffset;
jQuery("#FlashRDP").height(newHeight);
/*log("resizeTabLayout: pageTop: %d, pageHeight: %d, rdpOffset: %d, newHeight: %d",
pageTop, pageHeight, rdpOffset, newHeight);*/
/* HACK: Resize the RDP window to fit the screen. Needs proper binding with jQuery later. */
vmTabView.onResize(0);
}
}
jQuery(document).ready(onDocumentReady);
function onDocumentReady()
{
/* Use different outer-layout classNames to simplify/clarify CSS. */
OuterLayout = jQuery('body').layout({
north__paneSelector: ".outer-layout-north"
, north__resizable: false
, north__slidable: false
/* unfortunately, Safari does not choose the right height, it becomes 1px */
, north__size: 60
, north__togglerLength_open: 0
, north__togglerLength_close: -1
, west__paneSelector: ".outer-layout-west"
, west__slidable: false
, west__onresize: function () { jQuery("#vmList").selectable('resize'); }
, center__paneSelector: ".outer-layout-center"
, center__onresize: resizeTabLayout
, south__paneSelector: ".outer-layout-south"
, south__resizable: true
, south__slidable: true
, south__size: 100
});
/* Best to create the tabs first, because it's the container
for the tab-layout (tabs-center-details). */
vmTabWidget = jQuery("#vmTab").tabs({
show: resizeTabLayout /* Resize the layout when it becomes 'visible' */
});
OuterLayout.resizeAll();
vbGlobal = new vboxGlobal();
vmToolbar = new vboxVMToolbar();
vmListView = new vboxVMListView();
vmTabView = new vboxTabWidget();
vmSelWnd = new vboxSelectorWnd(vmListView, vmTabView, vmToolbar);
vbGlobal.setSelectorWnd(vmSelWnd);
vboxDialogs = new vboxDialogs();
jQuery('#vmTab').bind('tabsselect', function(event, ui) {
return vmTabView.onTabChange(event, ui);
});
jQuery(window).resize(vmSelWnd.onResize); /* On Mozilla, *only* the window itself has a resize event! */
var flashvars = {};
var params = {};
params.wmode="opaque";
params.menu="false";
params.bgcolor="#FFFFFF";
params.quality="low";
params.allowScriptAccess="always";
var attributes = {};
swfobject.createCSS("#FlashRDP", "margin:0; padding:10px; border:0;");
swfobject.embedSWF("/static/rdpweb.swf", "FlashRDP", "100%", "100%", "9.0.0",
"", flashvars, params, attributes, FlashRDPStatus);
} /* onDocumentReady */
/*
* RDP client event handlers.
* They will be called when the flash movie is ready and some event occurs.
* Note: the function name must be the "flash_id" + "event name".
*/
function FlashRDPStatus(e)
{
/* Enable for debugging. */
return vmTabView.rdpStatus(e);
}
function FlashRDPLoaded(flash)
{
return vmTabView.rdpLoaded(flash);
}
function FlashRDPUnloaded(flash)
{
return vmTabView.rdpUnloaded(flash);
}
function FlashRDPConnected(flash)
{
return vmTabView.rdpConnected(flash);
}
function FlashRDPServerRedirect(flash)
{
return vmTabView.rdpRedirect(flash);
}
function FlashRDPDisconnected(flash)
{
return vmTabView.rdpDisconnected(flash);
}
function FlashRDPGetProperty(name)
{
var value = "";
var flash = RDPWebClient.getFlashById(RDPWebClient.FlashId);
if (flash)
value = flash.getProperty(name);
return value;
}
</script>
<div id="vmToolbar" class="outer-layout-north">
<table width="100%" cellspacing="0">
<tr>
<td class="applicationMenu">
<table class="rootVoices" cellspacing='0' cellpadding='0' border='0'><tr>
<td class="rootVoice {menu: 'menu_VBoxWeb'}" ><img src="/images/vbox/register_16px.png" alt="" align="top"/>VirtualBox Web Console</td>
<td class="rootVoice {menu: 'menu_VM'}" ><img src="/images/vbox/machine_16px.png" alt="" align="top"/>Virtual Machine</td>
</tr></table>
</td>
<!-- fill up remaining horizontal space with the border -->
<td class="applicationMenu">
</td>
</tr>
<tr class="toolbar">
<td align="left" style="padding-left: 10px; padding-top: 2px;">
<img id="toolbar-button-new" src="/images/vbox/vm_new_32px.png" alt=""/>
<span id="toolbar-button-vm-settings-span"></span>
<span id="toolbar-button-vm-start-span"></span>
<span id="toolbar-button-vm-stop-span"></span>
</td>
<td align="right">
<table>
<tr>
<td><span id="toolbar-username-span" style="display:inline-block; vertical-align:center"></span></td>
<td><img id="toolbar-button-logout" src="/images/vbox/logout_32px.png" alt=""/></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="outer-layout-west">
<!-- this table represents the list of VMs -->
<table id="vmList" cellspacing="0" width="100%"></table>
</div>
<div id="vmTab" class="outer-layout-center">
<ul>
<li><a href="#tabs-center-details"><span><img src="/images/vbox/settings_16px.png" class="tabs-center-page-icon" alt=""/>Details</span></a></li>
<li><a href="#tabs-center-rdp"><span><img src="/images/vbox/vrdp_16px.png" class="tabs-center-page-icon" alt=""/>Console</span></a></li>
<li><a href="#tabs-center-desc"><span><img src="/images/vbox/description_16px.png" class="tabs-center-page-icon" alt=""/>Description</span></a></li>
</ul>
<!-- wrap tab-panels in ui-layout-content div -->
<div id="TabPanelsContainer" class="ui-layout-content">
<!-- Tab page for VM details. -->
<div id="tabs-center-details" class="tabs-center-page">
<div class="tab-sections">
<div id="tab-details-sec-vm-general" class="tab-section">
<div id="tab-details-hdr-general" class="tab-section-header">
<img class="tab-section-hdr-icon" alt="" src="/images/vbox/machine_16px.png"/>
<span class="tab-section-hdr-text">General</span>
</div>
<div id="tab-details-vm-general-name">
<div class="tab-details-vm-attribute">Name:</div>
<div class="tab-details-vm-value" id="tab-details-vm-general-name-val"></div>
<div style="clear: both"></div>
</div>
<div id="tab-details-vm-general-osname">
<div class="tab-details-vm-attribute">OS Type:</div>
<div class="tab-details-vm-value" id="tab-details-vm-general-osname-val"></div>
<div style="clear: both"></div>
</div>
</div>
<div class="tab-section" id="tab-details-sec-vm-system">
<div id="tab-details-hdr-system" class="tab-section-header">
<img class="tab-section-hdr-icon" alt="" src="/images/vbox/chipset_16px.png"/>
<span class="tab-section-hdr-text">System</span>
</div>
<div id="tab-details-vm-system-ram">
<div class="tab-details-vm-attribute">Base Memory:</div>
<div class="tab-details-vm-value" id="tab-details-vm-system-ram-val"></div>
<div style="clear: both"></div>
</div>
<div id="tab-details-vm-system-cpu">
<div class="tab-details-vm-attribute">Processor(s):</div>
<div class="tab-details-vm-value" id="tab-details-vm-system-cpu-val"></div>
<div style="clear: both"></div>
</div>
<div id="tab-details-vm-system-bootorder">
<div class="tab-details-vm-attribute">Boot Order:</div>
<div class="tab-details-vm-value" id="tab-details-vm-system-bootorder-val"></div>
<div style="clear: both"></div>
</div>
<div id="tab-details-vm-system-hwvirt">
<div class="tab-details-vm-attribute">VT-x/AMD-V:</div>
<div class="tab-details-vm-value" id="tab-details-vm-system-hwvirt-val"></div>
<div style="clear: both"></div>
</div>
<div id="tab-details-vm-system-nestedp">
<div class="tab-details-vm-attribute">Nested Paging:</div>
<div class="tab-details-vm-value" id="tab-details-vm-system-nestedp-val"></div>
<div style="clear: both"></div>
</div>
</div>
<div class="tab-section" id="tab-details-sec-vm-display">
<div id="tab-details-hdr-display" class="tab-section-header">
<img class="tab-section-hdr-icon" alt="" src="/images/vbox/vrdp_16px.png"/>
<span class="tab-section-hdr-text">Display</span>
</div>
<div id="tab-details-vm-display-videomem">
<div class="tab-details-vm-attribute">Video Memory:</div>
<div class="tab-details-vm-value" id="tab-details-vm-display-videomem-val"></div>
<div style="clear: both"></div>
</div>
<div id="tab-details-vm-display-3daccel">
<div class="tab-details-vm-attribute">3D Acceleration:</div>
<div class="tab-details-vm-value" id="tab-details-vm-display-3daccel-val"></div>
<div style="clear: both"></div>
</div>
<div id="tab-details-vm-display-rdpport">
<div class="tab-details-vm-attribute">Remote Display Server:</div>
<div class="tab-details-vm-value" id="tab-details-vm-display-rdpport-val"></div>
<div style="clear: both"></div>
</div>
</div>
<div class="tab-section" id="tab-details-sec-vm-harddisks">
<div id="tab-details-hdr-harddisks" class="tab-section-header">
<img class="tab-section-hdr-icon" alt="" src="/images/vbox/hd_16px.png"/>
<span class="tab-section-hdr-text">Hard Disks</span>
</div>
<ul id="tab-details-vm-harddisks-list" class="harddisks-list"><li/></ul>
</div>
</div>
</div>
<!-- Tab page for RDP. -->
<div id="tabs-center-rdp" class="tabs-center-page">
<div id="tab-rdp-header"><p class="tab-section-header">Remote View</p></div>
<div class="tab-sections">
<div class="tab-section" id="tab-rdp-sec-desc">
<div id="tab-rdp-desc">Status: <span id="tab-rdp-desc-val"></span></div>
</div>
<div class="tab-section" id="tab-rdp-sec-conn">
<div id="tab-rdp-sec-auth">
<form id="tab-rdp-form-connect" action="">
<p/>
<div id="tab-rdp-auth-user">
<label for="tab-rdp-auth-user-val" id="tab-rdp-auth-user-lbl">User name:</label>
<input id="tab-rdp-auth-user-val" name="rdpViewLogonUsername" type="text" size="20" value=""/>
</div>
<p id="tab-rdp-auth-pwd">
<label for="tab-rdp-auth-pwd-val" id="tab-rdp-auth-pwd-lbl">Password:</label>
<input id="tab-rdp-auth-pwd-val" name="rdpViewLogonPassword" type="password" size="20" value=""/>
</p>
<p id="tab-rdp-auth-connect">
<input id="tab-rdp-auth-btnconn" type="button" onclick="return vmTabView.rdpHandleConnect();" value="Connect"/>
</p>
</form>
</div>
</div>
<div class="tab-section" id="tab-rdp-sec-applet">
<div id="FlashRDP">
<div id="myAlternativeContent">
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/></a>
</p>
</div>
</div>
</div>
<div class="tab-section" id="tab-rdp-sec-footer"></div>
</div>
</div>
<!-- Tab page for VM description. -->
<div id="tabs-center-desc" class="tabs-center-page">
<div id="tab-desc-header"><p class="tab-section-header">Description</p></div>
<div class="tab-sections">
<div class="tab-section" id="tab-desc-sec-desc">
<div id="tab-desc-desc"><span id="tab-desc-desc-val"></span></div>
</div>
</div>
</div>
</div> <!-- TabPanelsContainer -->
</div> <!-- vmTab -->
<div id="vmMessageArea" class="outer-layout-south">
<table id="vmMessageTable" width="100%" cellspacing="0"></table>
</div>
<!-- menues -->
<div id="menu_VBoxWeb" class="menu">
<a class="{action: 'vboxDialogs.showNewVMWizard()', img: 'vm_new_32px.png'}">Create new VM...</a>
<a class="{img: 'vm_settings_32px.png'}">Preferences...</a>
<a rel="separator"> </a>
<a class="{action: 'vbGlobal.mVirtualBox.logout()', img: 'logout_32px.png'}">Log out</a>
</div>
<!-- the following menu is bogus, just keep a refrence to the concept -->
<div id="menu_VM" class="menu">
<a rel="text" >
<img src="/images/vbox/meditation_32px.png" alt="img"/><br/>
<br/>immagini che vuoi ed altro testo che ti pare Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi felis leo, consequat et, lacinia a, facilisis sit amet,<br/><br/>
</a>
<a rel="separator"> </a>
<a class="{action: 'document.title=(\'menu_3.1\')', img: 'vm_start_32px.png'}">menu_3.1</a>
<a id="aaa" class="{menu:'sub_menu_2'}" >submenu</a>
<a class="{action: 'document.title=(\'menu_3.4\')'}">menu_3.4 con testo veramente molto lungo</a>
</div>
<div id="sub_menu_2" class="menu">
<a class="{action: 'document.title=(\'sub_menu_2.4\')'}" >sub_menu_2.4</a>
</div>
</body>
</html>