1 | <?php |
---|
2 | /* template head */ |
---|
3 | /* end template head */ ob_start(); /* template body */ ?><table cellpadding="1" border="0" width="100%"> |
---|
4 | <tr> |
---|
5 | <td colspan=3 class="title"><?php echo $this->scope["cluster"];?> cluster - Physical View | |
---|
6 | <font size="-1">Columns <?php echo $this->scope["cols_menu"];?></font> |
---|
7 | </td> |
---|
8 | |
---|
9 | <tr> |
---|
10 | <td align="center" valign="top"> |
---|
11 | Verbosity level (Lower is more compact):<br /> |
---|
12 | <?php |
---|
13 | $_fh0_data = (isset($this->scope["verbosity_levels"]) ? $this->scope["verbosity_levels"] : null); |
---|
14 | if ($this->isTraversable($_fh0_data) == true) |
---|
15 | { |
---|
16 | foreach ($_fh0_data as $this->scope['verbosity']=>$this->scope['checked']) |
---|
17 | { |
---|
18 | /* -- foreach start output */ |
---|
19 | ?> |
---|
20 | <?php echo $this->scope["verbosity"];?> <input type="radio" name="p" value="<?php echo $this->scope["verbosity"];?>" OnClick="ganglia_form.submit();" <?php echo $this->scope["checked"];?> /> |
---|
21 | <?php |
---|
22 | /* -- foreach end output */ |
---|
23 | } |
---|
24 | }?> |
---|
25 | |
---|
26 | </td> |
---|
27 | |
---|
28 | <td align="left" valign="top" width="25%"> |
---|
29 | Total CPUs: <b><?php echo $this->scope["CPUs"];?></b><br /> |
---|
30 | Total Memory: <b><?php echo $this->scope["Memory"];?></b><br /> |
---|
31 | </td> |
---|
32 | |
---|
33 | <td align="left" valign="top" width="25%"> |
---|
34 | Total Disk: <b><?php echo $this->scope["Disk"];?></b><br /> |
---|
35 | Most Full Disk: <b><?php echo $this->scope["most_full"];?></b><br /> |
---|
36 | </td> |
---|
37 | |
---|
38 | </tr> |
---|
39 | <tr> |
---|
40 | <td align="left" colspan="3"> |
---|
41 | |
---|
42 | <table cellspacing="20"> |
---|
43 | <tr> |
---|
44 | <?php |
---|
45 | $_fh1_data = (isset($this->scope["racks"]) ? $this->scope["racks"] : null); |
---|
46 | if ($this->isTraversable($_fh1_data) == true) |
---|
47 | { |
---|
48 | foreach ($_fh1_data as $this->scope['rack']) |
---|
49 | { |
---|
50 | /* -- foreach start output */ |
---|
51 | ?> |
---|
52 | <td valign="top" align="center"> |
---|
53 | <table cellspacing="5" border="0"> |
---|
54 | <?php echo $this->scope["rack"]["RackID"];?> |
---|
55 | |
---|
56 | <?php echo $this->scope["rack"]["nodes"];?> |
---|
57 | |
---|
58 | </table> |
---|
59 | </td> |
---|
60 | <?php echo $this->scope["rack"]["tr"];?> |
---|
61 | |
---|
62 | <?php |
---|
63 | /* -- foreach end output */ |
---|
64 | } |
---|
65 | }?> |
---|
66 | |
---|
67 | </tr></table> |
---|
68 | |
---|
69 | </td></tr> |
---|
70 | </table> |
---|
71 | |
---|
72 | <hr /> |
---|
73 | |
---|
74 | |
---|
75 | <table border="0"> |
---|
76 | <tr> |
---|
77 | <td align="left"> |
---|
78 | <font size="-1"> |
---|
79 | Legend |
---|
80 | </font> |
---|
81 | </td> |
---|
82 | </tr> |
---|
83 | <tr> |
---|
84 | <td class="odd"> |
---|
85 | <table width="100%" cellpadding="1" cellspacing="0" border="0"> |
---|
86 | <tr> |
---|
87 | <td style="color: blue">Node Name <br /></td> |
---|
88 | <td align="right" valign="top"> |
---|
89 | <table cellspacing=1 cellpadding=3 border="0"> |
---|
90 | <tr> |
---|
91 | <td class="L1" align="right"> |
---|
92 | <font size="-1">1-min load</font> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | </table> |
---|
96 | <tr> |
---|
97 | <td colspan="2" style="color: rgb(70,70,70)"> |
---|
98 | <font size="-1"> |
---|
99 | <em>cpu: </em> CPU clock (GHz) (num CPUs)<br /> |
---|
100 | <em>mem: </em> Total Memory (GB) |
---|
101 | </font> |
---|
102 | </td> |
---|
103 | </tr> |
---|
104 | </table> |
---|
105 | |
---|
106 | </td> |
---|
107 | </tr> |
---|
108 | </table> |
---|
109 | <?php /* end template body */ |
---|
110 | return $this->buffer . ob_get_clean(); |
---|
111 | ?> |
---|