change css class name for all monitor page

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2011-07-28 08:29:08 +00:00
parent 6db4432ce3
commit 26f43ce6f4
2 changed files with 14 additions and 14 deletions

View File

@ -683,42 +683,42 @@ table a:hover {
}
/*--------------- Provision and monitor forms ---------------*/
.rmcnormal {
.monitornormal {
border: 2px outset #7FFFD4;
background: #66CD00;
cursor: pointer;
}
.rmcwarning {
.mornitorwarning {
background: #FFD700;
border: 2px outset #EEEE00;
cursor: pointer;
}
.rmcerror {
.monitorerror {
background: #FF3030;
border: 2px outset #FF4040;
}
.rmcunknown {
.monitorunknown {
background: #8B8B7A;
border: 2px outset #858585;
}
.rmcnodeli {
.monitornodeli {
width: 16px;
height: 16px;
float: left;
}
.rmcsumdiv {
.monitorsumdiv {
width: 300px;
height: 150px;
float: left;
margin: 0px 0px 10px 0px;
}
.rmcnodediv {
.monitornodediv {
width: 240px;
height: 120px;
margin: 0px 0px 15px 0px;

View File

@ -277,7 +277,7 @@ function showRmcSummary(returnData) {
summaryTable.append(summaryRow);
}
summaryRow.append(tempTd);
attrDiv = $('<div id="monitorsumdiv' + attr + '" class="rmcsumdiv"></div>');
attrDiv = $('<div id="monitorsumdiv' + attr + '" class="monitorsumdiv"></div>');
tempTd.append(attrDiv);
for ( var i in attrValues) {
tempArray.push( [ globalTimeStamp[i], Number(attrValues[i]) ]);
@ -352,13 +352,13 @@ function parseRmcData(returnData){
}
function createUnkownNode(nodeName){
var tempLi = '<li class="rmcunknown ui-corner-all rmcnodeli" id="' + nodeName + '" ' +
var tempLi = '<li class="monitorunknown ui-corner-all monitornodeli" id="' + nodeName + '" ' +
'title="Name:' + nodeName + '<br/>Unknown"></li>';
return tempLi;
}
function createErrorNode(nodeName){
var tempLi = '<li class="rmcerror ui-corner-all rmcnodeli id="' + nodeName + '" ' +
var tempLi = '<li class="monitorerror ui-corner-all monitornodeli id="' + nodeName + '" ' +
'title="Name:' + nodeName + '<br/>Error"></li>';
}
@ -407,13 +407,13 @@ function showRmcNodes(data, nodename) {
memAvg = parseInt(tempSum / index);
if (cpuAvg >= 10 && memAvg <= 90){
classname = 'rmcnormal';
classname = 'monitornormal';
}
else{
classname = 'rmcwarning';
classname = 'mornitorwarning';
}
var normalLi = $('<li class="' + classname + ' ui-corner-all rmcnodeli" id="' + nodename + '" title="' +
var normalLi = $('<li class="' + classname + ' ui-corner-all monitornodeli" id="' + nodename + '" title="' +
'Name:' + nodename + '<br/> CpuIdle: ' + cpuAvg + '%<br/> MemFree: ' + memAvg + '%"></li>');
$('#rmcmonDetail ul').append(normalLi);
@ -446,7 +446,7 @@ function showNode(nodeName) {
for ( var attr in globalNodesDetail[nodeName]) {
var tempTd = $('<td style="border:0px;padding:1px 1px;"></td>');
var attrChat = $('<div id="monitornodediv' + nodeName + attr
+ '" class="rmcnodediv"></div>');
+ '" class="monitornodediv"></div>');
if (0 == parseNum % 4) {
nodeRow = $('<tr></tr>');
nodeTable.append(nodeRow);