init web ems all

This commit is contained in:
agtuser
2024-09-27 17:13:36 +08:00
parent 81c97acbe9
commit 5cc56f8078
4263 changed files with 798779 additions and 0 deletions

View File

@@ -0,0 +1,173 @@
<?php
require("../../inc/header.inc");
require("./function.inc");
?>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./raidStatus.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$strSysStatus > NSS > RAID";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
$helpId="1.2.7";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\">";
echo "<a href=\"./raidStatus.php\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">$strBack</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$diskInfo=GetDiskInfo($sysTypeNo,$sysNo);
echo "<br>";
echo "<center><font size=2 color=\"blue\">{$diskInfo[ServerName][Value]} Raid detail information</font></center>";
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr>";
echo "<td bgcolor=\"#E6E6E6\" width=\"50%\">Card Name</td>";
echo "<td><span id=\"td_card_name\">--</span>&nbsp;</td>";
echo "</tr>";
echo "<tr>";
echo "<td bgcolor=\"#E6E6E6\" width=\"50%\">Disk Count</td>";
echo "<td><span id=\"td_disk_count\">--</span>&nbsp;</td>";
echo "</tr>";
echo "<tr>";
echo "<td bgcolor=\"#E6E6E6\" width=\"50%\">Update Time</td>";
echo "<td><span id=\"td_update_time\">--</span>&nbsp;</td>";
echo "</tr>";
echo "</table>";
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td>Disk No.</td>";
echo "<td>State</td>";
echo "<td>Size</td>";
echo "<td>Vendor ID</td>";
echo "<td>Product ID</td>";
echo "<td>Disk Slot</td>";
echo "<td>Error Count</td>";
echo "<td>Operation Progress</td>";
echo "<tr id=\"blank_line\">";
echo "<td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td>";
echo "</tr>";
for($index=0;$index<6;$index++)
{
echo "<tr id=\"tr_{$index}\">";
echo "<td>$index</td>";
echo "<td><span id=\"td_{$index}_1\">--</span>&nbsp;</td>";
echo "<td><span id=\"td_{$index}_2\">--</span>&nbsp;</td>";
echo "<td><span id=\"td_{$index}_3\">--</span>&nbsp;</td>";
echo "<td><span id=\"td_{$index}_4\">--</span>&nbsp;</td>";
echo "<td><span id=\"td_{$index}_5\">--</span>&nbsp;</td>";
echo "<td><span id=\"td_{$index}_6\">--</span>&nbsp;</td>";
echo "<td><span id=\"td_{$index}_7\">--</span>&nbsp;</td>";
echo "</tr>";
}
echo "</table>";
//Alarm Table
echo "<br><div id=\"AlarmTable\">";
echo "</div>";
adjust_content_tail();
?>
<script language="JavaScript">
function updateStatus(sysTypeNo,sysNo)
{
var fixurl="./diskStatus_update.php?sysTypeNo="+sysTypeNo+"&sysNo="+sysNo;
var browserr = navigator.appName;
if(browserr == "Microsoft Internet Explorer")
{
request_oo = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
request_oo = new XMLHttpRequest();
}
request_oo.open("GET",fixurl,"false");
request_oo.onreadystatechange=function()
{
checkUpdateState();
}
request_oo.send(null);
setTimeout("updateStatus('"+sysTypeNo+"','"+sysNo+"')", 10000);
}
function checkUpdateState()
{
//not
if(request_oo.readyState == 3)
{
//alert("not finish");
}
if(request_oo.readyState == 4)
{
var response = request_oo.responseText;
//alert(response);
var module=response.split(';;');
for(i=0;i<module.length;i++)
{
var items=module[i].split(',,');
//alert(items.length);
if(items.length < 1)
continue;
var kind=items[0].replace(/(^\s*)|(\s*$)/g, "");
if(kind == 'tr')
{
var line_id=items[1].replace(/(^\s*)|(\s*$)/g, "");
var line_display=items[2].replace(/(^\s*)|(\s*$)/g, "");
if(line_display == 'none')
document.getElementById(line_id).style.display='none';
else
document.getElementById(line_id).style.display='';
}
else if(kind == 'td')
{
var item_id=items[1].replace(/(^\s*)|(\s*$)/g, "");
var item_value=items[2].replace(/(^\s*)|(\s*$)/g, "");
var item_color=items[3].replace(/(^\s*)|(\s*$)/g, "");
document.getElementById(item_id).style.color=item_color;
document.getElementById(item_id).innerHTML=item_value;
}
else if(kind == 'alarm')
{
var item_id=items[1].replace(/(^\s*)|(\s*$)/g, "");
var alarm=items[2];
if(alarm == 'none')
{
document.getElementById(item_id).innerHTML='';
}
else
{
document.getElementById(item_id).innerHTML=alarm;
}
}
}
}
}
</script>
<?php
echo "\n<script language=\"JavaScript\">\n";
echo "updateStatus('$sysTypeNo','$sysNo');\n";
echo "</script>\n";
?>

View File

@@ -0,0 +1,109 @@
<?php
require("../../inc/lib.inc");
require("./function.inc");
?>
<?php
$response="";
$td_opt=",,";
$tr_opt=";;";
$diskInfo=GetDiskInfo($sysTypeNo,$sysNo);
//print_r($diskInfo);
$response.="td{$td_opt}td_card_name{$td_opt}{$diskInfo[CardName][Value]}{$td_opt}{$diskInfo[CardName][Color]}{$tr_opt}";
$response.="td{$td_opt}td_disk_count{$td_opt}{$diskInfo[DiskCount][Value]}{$td_opt}{$diskInfo[DiskCount][Color]}{$tr_opt}";
$response.="td{$td_opt}td_update_time{$td_opt}{$diskInfo[UpdateTime][Value]}{$td_opt}{$diskInfo[UpdateTime][Color]}{$tr_opt}";
if($diskInfo[DiskCount][Value]>0)
$response.="tr{$td_opt}blank_line{$td_opt}none{$tr_opt}";
else
$response.="tr{$td_opt}blank_line{$td_opt}block{$tr_opt}";
for($index=0;$index<6;$index++)
{
if($index < $diskInfo[DiskCount][Value])
{
$response.="tr{$td_opt}tr_{$index}{$td_opt}block{$tr_opt}";
$response.="td{$td_opt}td_{$index}_1{$td_opt}{$diskInfo[$index][DiskState][Value]}{$td_opt}{$diskInfo[$index][DiskState][Color]}{$tr_opt}";
$response.="td{$td_opt}td_{$index}_2{$td_opt}{$diskInfo[$index][DiskSize][Value]}{$td_opt}{$diskInfo[$index][DiskSize][Color]}{$tr_opt}";
$response.="td{$td_opt}td_{$index}_3{$td_opt}{$diskInfo[$index][VendorID][Value]}{$td_opt}{$diskInfo[$index][VendorID][Color]}{$tr_opt}";
$response.="td{$td_opt}td_{$index}_4{$td_opt}{$diskInfo[$index][ProductID][Value]}{$td_opt}{$diskInfo[$index][ProductID][Color]}{$tr_opt}";
$response.="td{$td_opt}td_{$index}_5{$td_opt}{$diskInfo[$index][DiskSlot][Value]}{$td_opt}{$diskInfo[$index][DiskSlot][Color]}{$tr_opt}";
$response.="td{$td_opt}td_{$index}_6{$td_opt}{$diskInfo[$index][DiskERRC][Value]}{$td_opt}{$diskInfo[$index][DiskERRC][Color]}{$tr_opt}";
$response.="td{$td_opt}td_{$index}_7{$td_opt}{$diskInfo[$index][OptProg][Value]}{$td_opt}{$diskInfo[$index][OptProg][Color]}{$tr_opt}";
}
else
{
$response.="tr{$td_opt}tr_{$index}{$td_opt}none{$tr_opt}";
}
}
//Alarm
$omcSysNo=getOmcSysNo();
$confInfo=GetConfInfo();
if($sysTypeNo == 0)
{
if(strcmp($confInfo[SystemType],"MCSS")==0)
$reg_rule="^2{$sysNo}.$";
else
$reg_rule="^1{$sysNo}.$";
}
else if($sysTypeNo == 320)
{
$reg_rule="^3{$sysNo}.$";
}
else if($sysTypeNo == 390)
{
$reg_rule="^4{$sysNo}.$";
}
else if($sysTypeNo == 395)
{
$reg_rule="^5{$sysNo}.$";
}
$sql="select * from sysAlarmLog where sysTypeNo=234 and sysNo={$omcSysNo} and clearMode=0 and compCode regexp '{$reg_rule}' order by alarmTime desc";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
if($num > 0)
{
$message="<center><font size=2 color=blue>{$diskInfo[ServerName][Value]} Alarm List</font></center>";
$message.="<table width=100% border=1 cellpadding=1 cellspacing=0 bordercolor=#666666 bordercolordark=#FFFFFF bgcolor=\"#ffffff\">";
$message.="<tr bgcolor=\"#E6E6E6\">";
$message.="<td>Alarm Level</td>";
$message.="<td>Events</td>";
$message.="<td>Alarm Time</td>";
$message.="</tr>";
for($i=0;$i<$num;$i++)
{
$row=mysqli_fetch_array($res);
$alarmTime=$row[alarmTime];
$tmpsql="select * from sysAlarmConf where sysTypeNo=234 and compCode='$row[compCode]' and alarmCode='$row[alarmCode]' ";
$tmpres=@mysqli_query($pubConn,$tmpsql);
echo mysqli_error($pubConn);
$tmprow=@mysqli_fetch_array($tmpres);
$alarmLevel=$tmprow[alarmLevel];
if(trim($tmprow[alarmDesc_2]) == "")
$message.="<tr style=\"display:none\">";
else
$message.="<tr>";
$message.="<td>{$alarmLevelDefArr[$alarmLevel][remark]}</td>";
$message.="<td>{$tmprow[alarmDesc_2]}</td>";
$message.="<td>$alarmTime</td>";
$message.="</tr>";
}
$message.="</table>";
$response.="alarm{$td_opt}AlarmTable{$td_opt}{$message}{$tr_opt}";
}
else
{
$response.="alarm{$td_opt}AlarmTable{$td_opt}none{$tr_opt}";
}
//system("echo '$response'>>/tmp/test.txt");
echo $response;
?>

View File

@@ -0,0 +1,211 @@
<?php
function GetConfInfo()
{
$handle=fopen("/usr/local/omc/bin/conf/raid.conf","r");
while(($line=fgets($handle)))
{
if(strstr($line,"#"))
continue;
if(strstr($line,"SystemType="))
{
$sp=explode("SystemType=",$line);
$confInfo[SystemType]=trim($sp[1]);
}
else if(strstr($line,"EMS,"))
{
if(strcmp($confInfo[SystemType],"MCSS") == 0)
{
if(strstr($line,"Intel"))
$confInfo[ServerType][0]=0;
else
$confInfo[ServerType][0]=1;
}
}
else if(strstr($line,"MSS,"))
{
if(strstr($line,"Intel"))
$confInfo[ServerType][320]=0;
else
$confInfo[ServerType][320]=1;
}
else if(strstr($line,"VMS,"))
{
if(strstr($line,"Intel"))
$confInfo[ServerType][390]=0;
else
$confInfo[ServerType][390]=1;
}
else if(strstr($line,"RCM,"))
{
if(strstr($line,"Intel"))
$confInfo[ServerType][395]=0;
else
$confInfo[ServerType][395]=1;
}
else if(strstr($line,"MCMS,"))
{
if(strcmp($confInfo[SystemType],"MCSS") != 0)
{
if(strstr($line,"Intel"))
$confInfo[ServerType][0]=0;
else
$confInfo[ServerType][0]=1;
}
}
}
fclose($handle);
return $confInfo;
}
function getOmcSysNo()
{
$omcSysNo=0;
$handle=fopen("/usr/local/omc/bin/conf/omcd.conf","r");
while(($line=fgets($handle)))
{
if(strstr($line,"#"))
continue;
if(strstr($line,"omcSysNo="))
{
$sp=explode("omcSysNo=",$line);
$omcSysNo=trim($sp[1]);
break;
}
}
fclose($handle);
return $omcSysNo;
}
function GetDiskInfo($sysTypeNo,$sysNo)
{
$sysTypeNo=$_REQUEST['sysTypeNo'];
$sysNo=$_REQUEST['sysNo'];
global $OMC_server;
$raidConn = mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password'], "RAID_DB");
$sql="select * from RAID_DB.raid_status where sysTypeNo=$sysTypeNo and sysNo=$sysNo ";
$res=mysqli_query($raidConn,$sql);
$num=mysqli_num_rows($res);
$diskInfo[DiskCount][Value]=0;
$diskInfo[DiskCount][Color]="#000000";
$confInfo=GetConfInfo();
switch($sysTypeNo)
{
case 0:
if(strcmp($confInfo[SystemType],"MCSS") == 0)
$diskInfo[ServerName][Value]="EMS-".$sysNo;
else
$diskInfo[ServerName][Value]="MCMS-".$sysNo;
break;
case 320:
$diskInfo[ServerName][Value]="MSS-".$sysNo;
break;
case 390:
$diskInfo[ServerName][Value]="VMS-".$sysNo;
break;
case 395:
$diskInfo[ServerName][Value]="RCM-".$sysNo;
break;
}
$diskInfo[ServerName][Color]="#000000";
$diskInfo[UpdateTime][Value]="0000-00-00 00:00:00";
$diskInfo[UpdateTime][Color]="#ff0000";
for($i=0;$i<$num;$i++)
{
$row=@mysqli_fetch_array($res);
if($row[updateTime] >= $diskInfo[UpdateTime][Value])
$diskInfo[UpdateTime][Value]=$row[updateTime];
if(strcmp($row[fieldName],"CardName") == 0)
{
$diskInfo[CardName][Value]=$row[fieldValue];
$diskInfo[CardName][Color]="#000000";
}
else if(strcmp($row[fieldName],"DiskNum") == 0)
{
$diskInfo[DiskCount][Value]=$row[fieldValue]-0;
$diskInfo[DiskCount][Color]="#000000";
}
else if(strcmp($row[fieldName],"DiskState") == 0)
{
$value=$row[fieldValue]-0;
//Intel
if($confInfo[ServerType][$sysTypeNo] == 0)
{
switch($value)
{
case 24:
$diskInfo[$disk_no][DiskState][Value]="Online";
$diskInfo[$disk_no][DiskState][Color]="#0000ff";
break;
case 16:
$diskInfo[$disk_no][DiskState][Value]="Offline";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
case 17:
$diskInfo[$disk_no][DiskState][Value]="Failed";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
case 20:
$diskInfo[$disk_no][DiskState][Value]="Rebuild";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
default:
$diskInfo[$disk_no][DiskState][Value]="Unknown";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
}
}
//Dell
else
{
switch($value)
{
case 3:
$diskInfo[$disk_no][DiskState][Value]="Online";
$diskInfo[$disk_no][DiskState][Color]="#0000ff";
break;
case 4:
$diskInfo[$disk_no][DiskState][Value]="Offline";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
case 2:
$diskInfo[$disk_no][DiskState][Value]="Failed";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
case 24:
$diskInfo[$disk_no][DiskState][Value]="Rebuild";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
default:
$diskInfo[$disk_no][DiskState][Value]="Unknown";
$diskInfo[$disk_no][DiskState][Color]="#ff0000";
break;
}
}
}
else
{
$disk_no=$row[instance]-0;
$diskInfo[$disk_no][$row[fieldName]][Value]=$row[fieldValue];
$diskInfo[$disk_no][$row[fieldName]][Color]="#000000";
}
}
$refresh_time=$diskInfo[UpdateTime][Value];
$due_date=date("Y-m-d H:i:s",mktime(date("H"),date("i"),date("s")-60,date("m"),date("d"),date("Y")));
$ove_date=date("Y-m-d H:i:s",mktime(date("H"),date("i"),date("s")+60,date("m"),date("d"),date("Y")));
if($refresh_time < $due_date || $refresh_time > $ove_date)
$diskInfo[UpdateTime][Color]="#ff0000";
else
$diskInfo[UpdateTime][Color]="#0000ff";
return $diskInfo;
}
?>

View File

@@ -0,0 +1,144 @@
<?php
require("../../inc/header.inc");
require("./function.inc");
?>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./raidStatus.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$strSysStatus > NSS > RAID";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
$helpId="1.2.7";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a href=\"./raidStatus.php?clear_flag=1\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
echo "<br>";
echo "<center><font size=2 color=\"blue\">Raid summary information</font></center>";
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td width=\"12%\">Server</td>";
echo "<td width=\"10%\">Disk Count</td>";
echo "<td width=\"10%\">Disk#0</td>";
echo "<td width=\"10%\">Disk#1</td>";
echo "<td width=\"10%\">Disk#2</td>";
echo "<td width=\"10%\">Disk#3</td>";
echo "<td width=\"10%\">Disk#4</td>";
echo "<td width=\"10%\">Disk#5</td>";
echo "<td width=\"18%\">Refresh Time";
echo "</tr>";
echo "<tr id=\"blank_line\">";
echo "<td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td>";
echo "</tr>";
if($clear_flag == 1)
{
$sql="delete from RAID_DB.raid_status ";
//echo "$sql<br>";
mysqli_query($pubConn,$sql);
}
for($index=0;$index<16;$index++)
{
echo "<tr id=\"tr_{$index}\">";
for($disk_index=0;$disk_index<9;$disk_index++)
{
echo "<td id=\"td_{$index}_{$disk_index}\">--</td>";
}
echo "</tr>";
}
adjust_content_tail();
?>
<script language="JavaScript">
function updateStatus()
{
var fixurl="./raidStatus_update.php";
var browserr = navigator.appName;
if(browserr == "Microsoft Internet Explorer")
{
request_oo = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
request_oo = new XMLHttpRequest();
}
request_oo.open("GET",fixurl,"false");
request_oo.onreadystatechange=function()
{
checkUpdateState();
}
request_oo.send(null);
setTimeout("updateStatus()", 10000);
}
function checkUpdateState()
{
//not
if(request_oo.readyState == 3)
{
//alert("not finish");
}
if(request_oo.readyState == 4)
{
var response = request_oo.responseText;
//alert(response);
var module=response.split(';');
for(i=0;i<module.length;i++)
{
var items=module[i].split(',');
//alert(items.length);
if(items.length < 1)
continue;
var kind=items[0].replace(/(^\s*)|(\s*$)/g, "");
if(kind == 'tr')
{
var line_id=items[1].replace(/(^\s*)|(\s*$)/g, "");
var line_display=items[2].replace(/(^\s*)|(\s*$)/g, "");
//alert(line_id);
if(line_display == 'none')
document.getElementById(line_id).style.display='none';
else
document.getElementById(line_id).style.display='';
}
else if(kind == 'td')
{
var item_id=items[1].replace(/(^\s*)|(\s*$)/g, "");
var item_value=items[2].replace(/(^\s*)|(\s*$)/g, "");
var item_color=items[3].replace(/(^\s*)|(\s*$)/g, "");
document.getElementById(item_id).style.color=item_color;
document.getElementById(item_id).innerHTML=item_value;
}
}
}
}
updateStatus();
</script>

View File

@@ -0,0 +1,63 @@
<?php
require("../../inc/lib.inc");
require("./function.inc");
?>
<?php
$response="";
global $pubConn;
$confInfo=GetConfInfo();
if(strcasecmp($confInfo[SystemType],"MCMS") == 0)
$sql="select * from OMC_PUB.sysInfo where sysTypeNo=0 order by sysTypeNo asc,sysNo asc ";
else
$sql="select * from OMC_PUB.sysInfo where sysTypeNo=0 or sysTypeNo=320 or sysTypeNo=390 or sysTypeNo=395 order by sysTypeNo asc,sysNo asc ";
//echo "$sql<br>";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
if($num == 0)
{
$response.="tr,blank_line,block;";
for($i=0;$i<16;$i++)
$response.="tr,tr_{$i},none;";
}
else
{
$response.="tr,blank_line,none;";
for($i=0;$i<16;$i++)
{
if($i<$num)
{
$row=@mysqli_fetch_array($res);
$sysTypeNo=$row['sysTypeNo']-0;
$sysNo=$row[sysNo]-0;
$diskInfo=GetDiskInfo($sysTypeNo,$sysNo);
$response.="tr,tr_{$i},block;";
//if($diskInfo[DiskCount][Value] > 0)
$response.="td,td_{$i}_0,<a href=\"./diskStatus.php?sysTypeNo=$sysTypeNo&sysNo=$sysNo\">{$diskInfo[ServerName][Value]}</a>,{$diskInfo[ServerName][Color]};";
//else
// $response.="td,td_{$i}_0,{$diskInfo[ServerName][Value]},{$diskInfo[ServerName][Color]};";
$response.="td,td_{$i}_1,{$diskInfo[DiskCount][Value]},{$diskInfo[DiskCount][Color]};";
for($j=0;$j<6;$j++)
{
$id=2+$j;
if($j<$diskInfo[DiskCount][Value])
echo "td,td_{$i}_{$id},{$diskInfo[$j][DiskState][Value]},{$diskInfo[$j][DiskState][Color]};";
else
$response.="td,td_{$i}_{$id},--,#000000;";
}
$response.="td,td_{$i}_8,{$diskInfo[UpdateTime][Value]},{$diskInfo[UpdateTime][Color]};";
}
else
{
$response.="tr,tr_{$i},none;";
}
}
}
//system("echo '$response'>>/tmp/test.txt");
echo $response;
?>