1 <%doc>Copyright (C) 2010 HDE, Inc.</%doc>
2 <%inherit file="../include/common.part" />
4 <script type="text/javascript">
6 function validates_report_time(){
10 $(document).ready(function(){
11 $("#report_tab td").click(function(){
12 var target = $(this).attr("id");
13 var target_val = target.split("_");
15 $("#report_tab td.selected").removeClass("selected");
16 $(this).addClass("selected");
18 ajax_get("#report_value",
19 "${ctx.homepath}/host/${host_id}/report/" + target_val[2] + ".part",
23 $("#report_refresh").mousedown(function(){
24 $(this).children().addClass("onclick");
25 }).mouseup(function(){
26 $(this).children().removeClass("onclick");
27 }).mouseout(function(){
28 $(this).children().removeClass("onclick");
31 $("#report_refresh").click(function(){
32 $("#report_tab td.selected").click();
35 $("#report_start_day").datepicker({altFormat: '${USER_DATE_FORMAT[2]}'});
36 $("#report_end_day").datepicker({altFormat: '${USER_DATE_FORMAT[2]}'});
38 $("#report_start_day").datepicker("setDate", "-1d");
39 $("#report_end_day").datepicker("setDate", "+0d");
41 $("#report_start_time").timeEntry({
45 $("#report_end_time").timeEntry({
50 $("#report_start_time").timeEntry("setTime", new Date());
51 $("#report_end_time").timeEntry("setTime", new Date());
53 $("#report_set_now").mousedown(function(){
54 $(this).attr("src", "${ctx.homepath}/static/images/time-onclick.png");
55 }).mouseup(function(){
56 $(this).attr("src", "${ctx.homepath}/static/images/time.png");
57 }).mouseout(function(){
58 $(this).attr("src", "${ctx.homepath}/static/images/time.png");
61 $("#report_set_now").click(function(){
62 $("#report_end_day").datepicker("setDate", "+0d");
63 $("#report_end_time").timeEntry("setTime", new Date());
66 $("#report_tab_cpu").click();
72 <div id="report_dialog"></div>
74 <div class="left"></div>
76 <a href="#" class="tool-link" >
77 <div class="tool-mid">
78 <img src="${ctx.homepath}/static/images/reload.gif" alt="renew" id="tool_renew"/>
83 <br style="clear: both;"/>
87 <table width="99.8%" cellspacing="1" border="0" style="background-color:#bcbcbc;">
89 <td id="report_tab" class="report_tab" rowspan="2" valign="top">
90 <table id="report_tab_list" class="report_tab_list" cellspacing="0" border="0">
92 <td id="report_tab_cpu">
93 <img src="${ctx.homepath}/static/images/device-cpu.png">
94 <span>${_('CPU')}</span>
98 <td id="report_tab_memory">
99 <img src="${ctx.homepath}/static/images/device-memory.png">
100 <span>${_('Memory')}</span>
104 <td id="report_tab_df">
105 <img src="${ctx.homepath}/static/images/device-disk.png">
106 <span>${_('Disk Space')}</span>
110 <td id="report_tab_disk">
111 <img src="${ctx.homepath}/static/images/device-disk.png">
112 <span>${_('Disk Performance')}</span>
116 <td id="report_tab_interface">
117 <img src="${ctx.homepath}/static/images/device-network.png">
118 <span>${_('Network')}</span>
122 <td id="report_tab_load">
123 <img src="${ctx.homepath}/static/images/load-ave.png">
124 <span>${_('Load Average')}</span>
128 <td id="report_tab_uptime">
129 <img src="${ctx.homepath}/static/images/boot-time.png">
130 <span>${_('Uptime')}</span>
134 <td id="report_tab_users">
135 <img src="${ctx.homepath}/static/images/users.png">
136 <span>${_('Users')}</span>
140 <td id="report_tab_libvirt">
141 <img src="${ctx.homepath}/static/images/vm.png">
142 <span>${_('Virtual Machine')}</span>
147 <td id="report_period" class="report_period" valign="center">
150 グラフで表示するデータの開始時刻~終了時刻のこと
152 <span>${_('Report Period')}: </span>
153 <input type="text" id="report_start_day" name="report_start_day" size="14" maxlength="10" />
154 <input type="text" id="report_start_time" name="report_start_time" size="6"/>
155 -
156 <input type="text" id="report_end_day" name="report_end_day" size="14" maxlength="10" />
157 <input type="text" id="report_end_time" name="report_end_time" size="6" />
158 <img id="report_set_now" class="set_now" src="${ctx.homepath}/static/images/time.png" alt="" title="${_('Set now time')}" />
159 <a href="#" id="report_refresh" name="report_refresh" class="button report_refresh">
160 <span class="refresh_button_left"> </span><span class="refresh_button_right">${_('Refresh')}</span>
165 <td id="report_value" class="report_value" valign="top" align="center">
170 <br style="clear: both;"/>