147 lines
3.8 KiB
PHP
Executable File
147 lines
3.8 KiB
PHP
Executable File
|
|
<?php
|
|
require("../../inc/header.inc");
|
|
require("../serverStatusImprove/function.inc");
|
|
?>
|
|
|
|
<?php
|
|
adjust_head();
|
|
adjust_title_head();
|
|
|
|
|
|
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
|
|
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
|
|
echo "<tr>";
|
|
echo "<td width=\"50%\">";
|
|
echo "Advanced > IPTRANS Status";
|
|
echo "</td>";
|
|
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
|
showHelp($helpId);
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
|
|
|
|
echo "<tr>";
|
|
echo "<td width=\"50%\">";
|
|
echo " ";
|
|
echo "</td>";
|
|
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
|
|
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strBlack</a>";
|
|
echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
|
|
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
echo "</table>";
|
|
|
|
|
|
adjust_title_tail();
|
|
adjust_content_head();
|
|
|
|
|
|
|
|
$config=parse_ini_file("../platStatus/config.ini",true);
|
|
$config_count=sizeof($config);
|
|
|
|
|
|
if(0)
|
|
{
|
|
echo "config_count=$config_count<br>";
|
|
echo "<pre>";
|
|
print_r($config);
|
|
echo "</pre>";
|
|
}
|
|
|
|
|
|
|
|
$platDetailInfo=GetDetailPlatInfo($sysNo,$subSysNo,0);
|
|
|
|
$table_title="<font color=\"#0000FF\">IPTRANS</font>( Version:";
|
|
$table_title.="<font color=\"#0000FF\"> {$platDetailInfo[IPTRANS][Version][Value]}</font>";
|
|
$table_title.=",";
|
|
$table_title.=" Status:";
|
|
$table_title.="<font color=\"{$platDetailInfo[IPTRANS][Status][Color]}\">{$platDetailInfo[IPTRANS][Status][Value]}</font>";
|
|
$table_title.=",";
|
|
$table_title.="RefreshTime:";
|
|
$table_title.="<font color=\"{$platDetailInfo[RefreshTime][Color]}\">{$platDetailInfo[RefreshTime][Value]}</font>";
|
|
$table_title.=")";
|
|
|
|
|
|
echo "<br><b><center>$table_title</center></b>";
|
|
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
|
|
echo "<tr bgcolor=\"#E6E6E6\">";
|
|
|
|
echo "<td align=\"left\" >Port no</td>";
|
|
echo "<td align=\"left\" >Status</td>";
|
|
echo "<td align=\"left\" >Port no</td>";
|
|
echo "<td align=\"left\" >Status</td>";
|
|
echo "<td align=\"left\" >Port no</td>";
|
|
echo "<td align=\"left\" >Status</td>";
|
|
echo "<td align=\"left\" >Port no</td>";
|
|
echo "<td align=\"left\" >Status</td>";
|
|
echo "</tr>";
|
|
echo "<br>";
|
|
|
|
?>
|
|
|
|
|
|
<?php
|
|
|
|
/*
|
|
for($i=0;$i<8;$i++)
|
|
{
|
|
echo "<tr>";
|
|
for($j=0;$j<8;$j++)
|
|
{
|
|
if($j%2==0)
|
|
{
|
|
$dis_no=4950+($j/2)*8+$i;
|
|
echo "<td>";
|
|
echo $dis_no;
|
|
echo "</td>";
|
|
}
|
|
else
|
|
{
|
|
$dis_port=(($j-1)/2)*8+$i;
|
|
echo "<td>";
|
|
echo "<font color=\"{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Color]}\">{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Value]}</font>";
|
|
echo "</td>";
|
|
}
|
|
}
|
|
echo "</tr>";
|
|
}
|
|
*/
|
|
for($i=0;$i<8;$i++)
|
|
{
|
|
echo "<tr>";
|
|
for($j=0;$j<4;$j++)
|
|
{
|
|
$dis_no=4950+($j)*8+$i;
|
|
echo "<td>";
|
|
echo $dis_no;
|
|
echo "</td>";
|
|
echo "<td>";
|
|
$dis_port=($j)*8+$i;
|
|
//echo "$dis_port";
|
|
echo "<font color=\"{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Color]}\">{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Value]}</font>";
|
|
echo "</td>";
|
|
}
|
|
echo "</tr>";
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
echo "<table border=\"0\" width=\"100%\">";
|
|
echo "<tr>";
|
|
echo "<td width=\"50%\" align=\"left\">";
|
|
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
|
|
echo "</td>";
|
|
|
|
//echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
|
|
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
|
|
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
echo "</table>";
|
|
?>
|
|
|