1 #from functions import functions
6 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
7 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9 <head><title>$title</title>
10 <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
11 <link rel="stylesheet" href="static/style.css" type="text/css" />
12 <link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
13 <script type="text/javascript" src="static/prototype.js"></script>
14 <script type="text/javascript">
23 function helppopup(name){
25 helpWin = window.open("help?simple=true&subject="+encodeURIComponent(name), "Help",
26 "status, height = 300, width = 400");
27 if (window.focus){helpWin.focus();}
31 Ajax.Responders.register({
33 if (Ajax.activeRequestCount > 0) {
34 document.getElementById("loadingnotice").style.display = 'block';
37 onComplete: function(){
38 if (Ajax.activeRequestCount == 0) {
39 document.getElementById("loadingnotice").style.display = 'none';
43 function replaceFunc(transport) {
45 d = transport.responseText.evalJSON();
47 \$('body').innerHTML = '<pre>'+transport.responseText+'</pre>'
51 \$(key).innerHTML = d[key];
55 function jsFormSubmit(location, elt){
56 new Ajax.Request(location, {method: 'post',
57 parameters: Form.serialize(elt)+'&js=true',
58 onSuccess: replaceFunc,
59 onComplete: function() {Form.enable(elt);}
65 function rowFormSubmit(elt, retpage){
66 new Ajax.Request('command', {method: 'post',
67 parameters: Form.serialize(elt)+'&js='+retpage,
68 onSuccess: replaceFunc
74 //Fix bug with disabled elements
75 $$('form').each(Form.enable);
83 #if $varExists('error_text')
84 <p>STDERR:</p><pre>$error_text</pre>
88 #if not $varExists('simple') or not $simple
89 <p>[You are logged in as $user.username.]</p>
91 <div class="navigation">
92 <p><a href="list">List</a>
93 #if $varExists('machine')
94 <a href="info?machine_id=$machine.machine_id">Info</a>
95 <a href="vnc?machine_id=$machine.machine_id">Console</a>
97 <a href="help">Help</a></p>
101 <div id="loadingnotice" class="loadingnotice">LOADING</div>
102 <div id="result" class="result"></div>
105 #if not $varExists('simple') or not $simple
107 Questions? Contact <a href="mailto:sipb-xen-dev@mit.edu">sipb-xen-dev@mit.edu</a>.