debuggers.hg

view tools/control/web/tmpl/vd-vbdv.tmpl @ 636:73fab8c399fd

bitkeeper revision 1.333 (3f0d5c67WCK8celxi8KUCjs_eFc8QA)

Update web interface to work with new VBD interface.
Finish tidying up web build files
author rac61@labyrinth.cl.cam.ac.uk
date Thu Jul 10 12:30:31 2003 +0000 (2003-07-10)
parents e5cb8bd7ebfe
children
line source
1 View Virtual Block Devices
2 SECTION&XenoServers
3 BREADCRUMB&Virtual Disk Manager&vd.jsp
5 <!-- content -->
6 <img src="pixel.gif" class="block" width="1" height="12">
8 <table cellpadding="0" cellspacing="0" border="0">
9 <tbody>
10 INCLUDE&vdmenu.tmpl
11 <td valign="top">
12 <%
13 CommandVbdList list = new CommandVbdList();
14 String output = list.executeWeb();
15 VirtualBlockDevice[] vbds = list.vbds();
16 if (output != null)
17 {
18 %>
19 <%= output %>
20 <%
21 } else {
22 %>
23 <table cellpadding="2" cellspacing="0" border="0">
24 <tbody>
25 <tr class="vdh"><td>dom</td><td>vbd</td><td>mode</td><td>vd key</td><td>vd name</td></tr>
28 <%
29 for (int i=0;i<vbds.length;i++)
30 {
31 VirtualBlockDevice vbd = vbds[i];
32 VirtualDisk vd = vbd.getVirtualDisk();
33 %>
34 <tr class="vdt">
35 <td><%= vbd.getDomain() %></td>
36 <td><%= vbd.getVbdNum() %></td>
37 <td><%= vbd.getMode().toString() %></td>
38 <td><%= vd.getKey() %></td>
39 <td><%= vd.getName() %></td>
40 </tr>
41 <%
42 }
43 %>
44 </tbody>
45 </table>
46 <%
47 }
48 %>
50 </td>
51 </tbody>
52 </table>
57 <!-- end content -->