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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,404 @@
<?php
require("../../inc/header.inc");
?>
<head>
<script language="JavaScript">
var num_num=0;
function change_box( this_1)
{
if(this_1.checked == 1)
{
num_num++;
//alert("the num id ++ "+num_num);
}
else
{
num_num--;
//alert("the num id -- "+num_num);
}
//alert("the num id "+num_num);
//alert("this is "+this_1.checked);
if(num_num > 8)
{
alert(' the number is not larger than 8 !!!!!');
this_1.checked=false;
}
}
function checked()
{
alert("::"+document.getElementById('checkbox_9').checked+"::");
alert("::"+document.getElementById('checkbox_8').checked+"::");
}
function change()
{
var down_date_from=document.getElementById('from').value-0;
//alert("how are you!!!!"+down_date_from);
var down_date_to=document.getElementById('to').value-0;
//alert("rrrrrrrrrrrrrrrr"+down_date_to);
if(down_date_from < down_date_to)
{
document.getElementById('to').value=document.getElementById('from').value;
}
}
function changeType()
{
//alert("good good");
if(document.getElementById('select_1').value == 1)
{
//alert("hello helo");
document.getElementById('element').style.display='';
document.getElementById('tg_type_id').style.display='none';
document.getElementById('dd').style.display='none';
document.getElementById('direction').style.display='none';
//alert("111");
}
else
{
document.getElementById('tg_type_id').style.display='';
document.getElementById('element').style.display='none';
document.getElementById('direction').style.display='';
document.getElementById('dd').style.display='';
}
if(document.getElementById('select_2').value == 3)
{
//alert("hello helo11111111111");
}
else
{
//alert("beeter22222222222");
}
if(document.getElementById('box').checked == 1)
{
//alert("check check 11111111111");
}
else
{
//alert("check check 22222222222");
}
var down_date_from=document.getElementById('from').value-0;
//alert("how are you!!!!"+down_date_from);
var down_date_to=document.getElementById('to').value-0;
//alert("rrrrrrrrrrrrrrrr"+down_date_to);
if(down_date_from < down_date_to)
{
document.getElementById('from').value=document.getElementById('to').value;
}
}
</script>
</head>
<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=\"./rect_erlang.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Performance > MSC > Erlang";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
$helpId="1.2.2";
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=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
echo "<span onClick=\"window.print();\" style=\"cursor:hand\">";
echo "<img align=absBottom border=0 src=\"../../images/printer.gif\" width=16 height=16>";
echo "</span>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</FORM>";
adjust_title_tail();
adjust_content_head();
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
/////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
echo "<form name=\"form1\" action=\"rect_erlang.php\" method=\"POST\">";
echo "<br>";
echo "Customize the condition for Erlang<br>";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td width=\"8%\">";
echo "Type";
echo "</td>";
echo "<td width=\"16%\">";
echo "<select name =\"select_1\" onchange=\"javascript:changeType();\">";
echo "<option value=1 id=\"select_server\">Service</option>";
echo "<option value=2 id=\"select_trunk\">Trunk Group</option>";
echo "</select>";
echo "</td>";
/////
echo "<td width=\"8%\" id=\"direction\" style=\"display:none;\">";
echo "Direction";
echo "</td>";
echo "<td width=\"16%\" id=\"dd\" style=\"display:none;\">";
echo "<select name=\"select_3\" onchange=\"javascript:changeType();\">";
echo "<option value=5 id=\"in\">In</option>";
echo "<option value=6 id=\"hour\">Out</option>";
echo "<option value=7 id=\"in_out\" selected>In&Out</option>";
echo "</select>";
echo "</td>";
/////
echo "<td width=\"8%\">";
echo "Interval";
echo "</td>";
echo "<td width=\"16%\">";
echo "<select name=\"select_2\" onchange=\"javascript:changeType();\">";
echo "<option value=3 id=\"day\">Dayly</option>";
echo "<option value=4 id=\"hour\">Hourly</option>";
echo "</select>";
echo "</td>";
for($i=0;$i<30;$i++)
{
$startDay[$i]=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
}
echo "<td>";
echo "Start time";
echo "</td>";
echo "<td width=\"20%\">";
echo "<select name=\"sel_date_from\" id=\"from\" onChange=\"javascript:change();\">";
for($i=0;$i<=30;$i++)
{
if($i == 0)
{
echo "<option selected value=$i>{$startDay[$i]}</option>";
}
else
{
echo "<option value=$i>{$startDay[$i]}</option>";
}
}
echo "</select>";
echo "</td>";
/////////////////////////
echo "<td>";
echo "End time";
echo "</td>";
echo "<td width=\"20%\">";
echo "<select name=\"sel_date_to\" id=\"to\" onChange=\"javascript:changeType();\">";
for($i=0;$i<=30;$i++)
{
if($i== 0)
{
echo "<option selected value=$i>{$startDay[$i]}</option>";
}
else
{
echo "<option value=$i>{$startDay[$i]}</option>";
}
}
echo "</select>";
echo "</td>";
echo "<td width=\"8%\">";
echo "Merge";
echo "<input type=checkbox name=\"bxx\" id=\"box\" onchange=\"javascript:changeType();\" checked >";
echo "</td>";
///////////////////////////////
echo "<td>";
echo "<input type=submit value=\"Search\" onClick=\"javascript::checked();\" >";
echo "</td>";
echo "</tr>";
echo "<tr id=\"element\" style=\"display:;\">";
echo "<td colspan=10>";
echo "<table border=0 width=100%>";
echo "<tr>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_1\" id=\"0\">";
echo "</td>";
echo "<td>";
echo "SUB SUB";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_2\" id=\"1\">";
echo "</td>";
echo "<td>";
echo "SUB TRK";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_3\" id=\"2\" >";
echo "</td>";
echo "<td>";
echo "TRK SUB";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_4\" id=\"3\">";
echo "</td>";
echo "<td>";
echo "TRK IP";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_5\" id=\"4\">";
echo "</td>";
echo "<td>";
echo "TRK TRK";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_6\" id=\"5\">";
echo "</td>";
echo "<td>";
echo "INTRA";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_7\" id=\"6\">";
echo "</td>";
echo "<td>";
echo "SUB IP";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_8\" id=\"7\">";
echo "</td>";
echo "<td>";
echo "IP";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_9\" id=\"checkbox_8\" checked>";
echo "</td>";
echo "<td>";
echo "MO";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_10\" id=\"checkbox_9\" checked>";
echo "</td>";
echo "<td>";
echo "MT";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_11\" id=\"checkbox_10\">";
echo "</td>";
echo "<td>";
echo "IN TRK";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox name=\"bxx_12\" id=\"checkbox_11\">";
echo "</td>";
echo "<td>";
echo "OUT TRK";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "<tr id=\"tg_type_id\" style=\"display:none;\">";
echo "<td colspan=10>";
echo "<table border=0 width=100%>";
for($i=0;$i<32;$i++)
{
echo "<tr>";
for($j=0;$j<8;$j++)
{
echo "<td>";
$value="tg".($i*8+$j);
echo "<input type=checkbox id=\"($i*8+$j)\" name=\"{$value}\" onClick=\"javascript:change_box(this);\" >";
echo "TG ".($i*8+$j);
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</form>";
adjust_content_tail();
?>

View File

@@ -0,0 +1,459 @@
<?php
// require("../../inc/header.inc");
?>
<head>
<?php
function Getdata($filelist,$startTime,$endTime)
{
//$link=mysql_connect("localhost","administrator","*86#ROtartsinim");
for($j=1;$j<13;$j++)
{
for($k=0;$k<30;$k++)
{
$data[$j][$k]=0;
}
}
for($j=1;$j<13;$j++)
{
if(strcmp($filelist[$j][name]," "))
{
//echo "filelist[$j][name]={$filelist[$j][name]}<br>";
//echo "filelist[$j][type]={$filelist[$j][type]}<br>";
//echo "startTime={$startTime}<br>";
//echo "endTime={$endTime}";
$sql="select Duration,csta_datetime FROM CSTA_DB.mscDetailData where key_type={$filelist[$j][type]} and (csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}')";
//echo "<br>sql=$sql<br>";
$res=@mysqli_query($pubConn,$sql);
if(!($res))
{
$num=0;
}
else
{
$num=mysqli_num_rows($res);
//echo "num=$num<br>";
}
for($i=0;$i<$num;$i++)
{
$row=mysqli_fetch_array($res);
//echo "::: $row <br>";
$start=strtotime($startTime);
//echo "startTime=$startTime start=$start <br>";
$rowt=strtotime($row[1]);
//echo "rowt=$rowt row[1]={$row[1]}<br>";
$dif=$rowt-$start;
//echo "<br>dif=$dif<br>";
$instance=floor($dif/(60*60*24));
//echo "instance={$instance}";
//echo "<br>row[0]={$row[0]}<br>";
$data[$j][$instance] += $row[0]+0;
//echo "<br>data[$j][$instance]={$data[$j][$instance]}<br>";
}
}
}
return $data;
}
?>
</head>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
$slot=$sel_date_from-$sel_date_to+1;
$startTime=date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
$endTime=date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-$sel_date_to,date("Y")));
$dataTable="CSTA_DB.mscDetailData";
$start=strtotime($startTime);
$end=strtotime($endTime);
$num=0;
$num1=0;
$data1=Getdata($filelist,$startTime,$endTime);
for($j=1;$j < 13;$j++)
{
if(strcmp($filelist[$j][name]," "))
{
$num++;
$num1++;
}
}
//table <20><><EFBFBD><EFBFBD>
{
$table_title="MT,MO Erlang Statistic&nbsp;&nbsp;Date:";
if($slot>1)
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")))." to ".date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_to,date("Y")));
else
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
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>&nbsp</td>";
if($num !=0)
{
if($merge==1)
{
$num+=1;
}
}
if($num==0)
{
if($merge==1)
{
$num=1;
}
}
echo "<td colspan=$num align=\"center\">Erlang</td>";
echo "</tr>";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"center\" >Time</td>";
for($j=1;$j < 13;$j++)
{
//echo "filelist[$j][name]={$filelist[$j][name]}<br>";
if(strcmp($filelist[$j][name]," "))
{
//echo "55555555555555555555555555555555555<br>";
echo "<td align=\"center\" >{$filelist[$j][name]}</td>";
}
}
if($num1==0)
{
echo "<td align=\"center\" >--</td>";
}
else if($num==1)
{
if($merge!=0)
{
echo "<td align=\"center\" >--</td>";
}
}
else if($merge==1)
{
echo "<td align=\"center\" >total</td>";
}
for($i=$sel_date_to,$k=($slot-1);$i <=($sel_date_to+($slot-1));$i++,$k--)
{
echo "<tr>";
$now=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<td align=\"center\" width=\"10%\">{$now}</td>";
for($j=1;$j<13;$j++)
{
if(strcmp($filelist[$j][name]," "))
{
echo "<td align=\"center\">{$data1[$j][$k]}</td>";
$total+=$data1[$j][$k];
}
}
if($num==1)
{
if($merge==1)
{
echo "<td align=\"center\" >--</td>";
}
}
else
{
if($merge==1)
{
echo "<td align=\"center\">$total</td>";
$total=0;
}
}
if($num1==0)
{
if($merge==0)
{
echo "<td align=\"center\" >--</td>";
}
}
echo "</tr>";
}
echo "</table>";
}
//ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$day=$sel_date_from-$sel_date_to+1;
$day_num=720/($day+1);
//<2F><>ͼ
//
//=======================================================================================|
//=========== Draw the Graphics =============|
//=======================================================================================|
$sizex=800;
if($csta_type==0)
$sizey=430;
else
$sizey=380;
$bgcolor=F8F8F8;
$fgcolor=000000;
$im = ImageCreate ($sizex, $sizey);
$background_color = ImageColorAllocate ($im,
hexdec(substr($bgcolor, 0, 2)),
hexdec(substr($bgcolor, 2, 2)),
hexdec(substr($bgcolor, 4, 2)));
$text_color = ImageColorAllocate ($im,
hexdec(substr($fgcolor, 0, 2)),
hexdec(substr($fgcolor, 2, 2)),
hexdec(substr($fgcolor, 4, 2)));
$black_color=ImageColorAllocate($im,0,0,0);
$white_color=ImageColorAllocate($im,255,255,255);
//===background====
ImageFilledRectangle($im,0,0,$sizex,$sizey,ImageColorAllocate ($im, 198, 198, 198));
ImageFilledRectangle($im,2,2,$sizex,$sizey,ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array(0,$sizey-1,3,$sizey-4,4,$sizey-1);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array($sizex-1,0,$sizex-4,3,$sizex,4);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
ImageFilledRectangle($im,2,2,$sizex-3,$sizey-3,$background_color);
//===border=====
$xBgn=60;
$yBgn=25;
$xEnd=780;
$yEnd=275;
$unitXPix=30;
ImageLine($im, $xBgn, $yBgn, $xBgn, $yEnd, $text_color);
ImageLine($im, $xBgn, $yBgn, $xEnd, $yBgn, $text_color);
ImageLine($im, $xBgn, $yEnd, $xEnd, $yEnd, $text_color);
ImageLine($im, $xEnd, $yBgn, $xEnd, $yEnd, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[12]=ImageColorAllocate($im,0xEE,0x00,0xff);
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0,$j=($slot-1);$i<($slot);$i++,$j--)
{
$out_put[$k][$i][x]=(780-$i*($day_num)-$day_num);
$out_put[$k][$i][y]=(275-$data1[$k][$j]*25);
}
}
}
for($i=$sel_date_to,$k=0;$i<($sel_date_from+1);$i++,$k++)
{
$datestr[$k]=date("m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
}
//////<2F><><EFBFBD><EFBFBD>
for($i=0;$i<$day;$i++)
{
$style = array($black_color, $black_color, $black_color, $black_color, $red, $w, $w, $w, $w, $w);
imagesetstyle($im, $style);
imageline($im, ($xEnd - $i*($day_num)-$day_num), $yBgn, ($xEnd - $i*($day_num)-$day_num), $yEnd, IMG_COLOR_STYLED);
$xstr=$datestr[$i];
Imagestringup($im, 2, ($xEnd - $i*($day_num)-$day_num) - 4, $yEnd+60, $xstr, $style);
//if($i==29)
//Imagestringup($im, 2, $xBgn + $i*24 - 4, $yEnd+60, $datestr[29], $style);
}
//<2F><><EFBFBD><EFBFBD>
for($i=0,$k=10;$i<10;$i++,$k--)
{
$displayMaxData=$k;
imagesetstyle($im, $style);
//imageline($im,$xBgn + $i*30, $yBgn, $xBgn + $i*30, $yEnd, IMG_COLOR_STYLED);
if($i!=0)
imageline($im,$xBgn , $yBgn+$i*25, $xEnd, $yBgn+$i*25, IMG_COLOR_STYLED);
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$displayMaxData", $black_color);
}
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "0", $black_color);
///////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD>
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0;$i<($slot);$i++)
{
if($i > 0)
{
imageline($im,$out_put[$k][$i-1][x],$out_put[$k][$i-1][y],$out_put[$k][$i][x],$out_put[$k][$i][y],$color[$k]);
}
}
}
}
//====graphics title=====
//$graphics_title="Service erlang statistic graphic";
//Imagestring($im, 2, 300,5, $graphics_title, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[12]=ImageColorAllocate($im,0xEE,0x00,0xff);
imagefilledrectangle($im,90,350,100,360,$color[1]);
imagestring($im,2,105,350,"SUB SUB",$text_color);
imagefilledrectangle($im,260,350,270,360,$color[2]);
imagestring($im,2,275,350,"SUB TRK",$text_color);
imagefilledrectangle($im,430,350,440,360,$color[3]);
imagestring($im,2,445,350,"TRK SUB",$text_color);
imagefilledrectangle($im,600,350,610,360,$color[5]);
imagestring($im,2,615,350,"TRK TRK",$text_color);
imagefilledrectangle($im,90,370,100,380,$color[6]);
imagestring($im,2,105,370,"INTRA",$text_color);
imagefilledrectangle($im,260,370,270,380,$color[7]);
imagestring($im,2,275,370,"SUB IP",$text_color);
imagefilledrectangle($im,430,370,440,380,$color[4]);
imagestring($im,2,445,370,"TRK IP",$text_color);
imagefilledrectangle($im,600,370,610,380,$color[9]);
imagestring($im,2,615,370,"MO",$text_color);
imagefilledrectangle($im,90,390,100,400,$color[10]);
imagestring($im,2,105,390,"MT",$text_color);
imagefilledrectangle($im,260,390,270,400,$color[11]);
imagestring($im,2,275,390,"IN TRK",$text_color);
imagefilledrectangle($im,430,390,440,400,$color[12]);
imagestring($im,2,445,390,"OUT TRK",$text_color);
imagefilledrectangle($im,600,390,610,400,$color[8]);
imagestring($im,2,615,390,"IP",$text_color);
//////////////////////////////////////////////////////
////////////////////////////////////////////////////////
//-----<2D><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
//delete *.png
$handle=opendir('.');
while($file=readdir($handle))
{
$retval="";
$pt=strrpos($file,".");
if($pt) $retval=substr($file,$pt+1,strlen($file)-$pt);
if($retval=='png') unlink($file);
}
$tt=time()-4000;
$filename=$tt.".png";
if(1)
{
ImagePng ($im,"$filename");
ImageDestroy($im);
}
//-----<2D><>ʾͼƬ
flush();
echo "</form>";
echo "<img src=\"$filename\"></img>";
adjust_content_tail();
?>
</body>

View File

@@ -0,0 +1,382 @@
<?php
$slot=$sel_date_from-$sel_date_to+1;
$sum_hour=$slot*24;
$startTime=date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
$endTime=date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-$sel_date_to,date("Y")));
$dataTable="CSTA_DB.mscDetailData";
$start=strtotime($startTime);
$end=strtotime($endTime);
$filelist1=$filelist;
function Getdata($filelist,$startTime,$endTime)
{
$link=mysql_connect("localhost","administrator","*86#ROtartsinim");
for($k=1;$k<13;$k++)
{
for($i=0;$i<800;$i++)
{
$data[$k][$i]=0;
}
}
for($j=1;$j<13;$j++)
{
if(strcmp($filelist[$j][name]," "))
{
$sql="select Duration csta_datetime FROM CSTA_DB.mscDetailData where key_type={$filelist[$j][type]} csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}'";
$res=mysql_query($sql,$link);
if(!($res))
{
$num=0;
}
else
{
$num=mysqli_num_rows($res);
}
$data[$j][count]=$num;
for($i=0;$i<$num;$i++)
{
$row=mysqli_fetch_array($res);
$data[$j][time]=$row[1];
$start=strtotime($startTime);
$rowt=strtotime($row[1]);
$dif=$rowt-$start;
$instance=floor($dif/(60*60));
$data[$j][$instance] += $row[0]+0;
}
}
}
return $data;
}
$data1=Getdata($filelist,$startTime,$endTime);
//table
$table_title="Server Erlang Statistic&nbsp;&nbsp;Date:";
if($slot>1)
{
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")))." to ".date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_to,date("Y")));
}
else
{
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
}
echo "<br><b><center>$table_title</center></b>";
echo "<br>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
for($j=1;$j<13;$j++)
{
if(strcmp($filelist[$j][name]," "))
{
//echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\" ><td colspan=13 align=\"center\" ><b>{$filelist[$j][name]} Erlang(hour)</td></b></tr>";
for($i=0,$k=($slot-1);$i <=($slot-1);$i++,$k--)
{
$now=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td rowspan=4 width=\"10%\" bgcolor=\"white\">{$now}</td>";
echo "<td align=center>00</td><td align=center>01</td><td align=center>02</td><td align=center>03</td><td align=center>04</td><td align=center>05</td><td align=center>06</td><td align=center>07</td><td align=center>08</td><td align=center>09</td><td align=center>10</td><td align=center>11</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=center>{$data1[$j][0+(24*$k)]}</td><td align=center>{$data1[$j][1+(24*$k)]}</td><td align=center>{$data1[$j][2+(24*$k)]}</td><td align=center>{$data1[$j][3+(24*$k)]}</td><td align=center>{$data1[$j][4+(24*$k)]}</td><td align=center>{$data1[$j][5+(24*$k)]}</td><td align=center>{$data1[$j][6+(24*$k)]}</td><td align=center>{$data1[$j][7+(24*$k)]}</td><td align=center>{$data1[$j][8+(24*$k)]}</td><td align=center>{$data1[$j][9+(24*$k)]}</td><td align=center>{$data1[$j][10+(24*$k)]}</td><td align=center>{$data1[$j][11+(24*$k)]}</td>";
echo "</tr>";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=center>12</td><td align=center>13</td><td align=center>14</td><td align=center>15</td><td align=center>16</td><td align=center>17</td><td align=center>18</td><td align=center>19</td><td align=center>20</td><td align=center>21</td><td align=center>22</td><td align=center>23</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=center>{$data1[$j][12+(24*$k)]}</td><td align=center>{$data1[$j][13+(24*$k)]}</td><td align=center>{$data1[$j][14+(24*$k)]}</td><td align=center>{$data1[$j][15+(24*$k)]}</td><td align=center>{$data1[$j][16+(24*$k)]}</td><td align=center>{$data1[$j][17+(24*$k)]}</td><td align=center>{$data1[$j][18+(24*$k)]}</td><td align=center>{$data1[$j][19+(24*$k)]}</td><td align=center>{$data1[$j][20+(24*$k)]}</td><td align=center>{$data1[$j][21+(24*$k)]}</td><td align=center>{$data1[$j][22+(24*$k)]}</td><td align=center>{$data1[$j][23+(24*$k)]}</td>";
echo "</tr>";
}
//echo "</table>";
}
}
echo "</table>";
//ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$day=$sel_date_from-$sel_date_to+1;
$day_num=30;
//<2F><>ͼ
//
//=======================================================================================|
//=========== Draw the Graphics =============|
//=======================================================================================|
$sizex=800;
if($csta_type==0)
$sizey=430;
else
$sizey=380;
$bgcolor=F8F8F8;
$fgcolor=000000;
$im = ImageCreate ($sizex, $sizey);
$background_color = ImageColorAllocate ($im,
hexdec(substr($bgcolor, 0, 2)),
hexdec(substr($bgcolor, 2, 2)),
hexdec(substr($bgcolor, 4, 2)));
$text_color = ImageColorAllocate ($im,
hexdec(substr($fgcolor, 0, 2)),
hexdec(substr($fgcolor, 2, 2)),
hexdec(substr($fgcolor, 4, 2)));
$black_color=ImageColorAllocate($im,0,0,0);
$white_color=ImageColorAllocate($im,255,255,255);
//===background====
ImageFilledRectangle($im,0,0,$sizex,$sizey,ImageColorAllocate ($im, 198, 198, 198));
ImageFilledRectangle($im,2,2,$sizex,$sizey,ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array(0,$sizey-1,3,$sizey-4,4,$sizey-1);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array($sizex-1,0,$sizex-4,3,$sizex,4);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
ImageFilledRectangle($im,2,2,$sizex-3,$sizey-3,$background_color);
//===border=====
$xBgn=60;
$yBgn=25;
$xEnd=780;
$yEnd=275;
$unitXPix=30;
ImageLine($im, $xBgn, $yBgn, $xBgn, $yEnd, $text_color);
ImageLine($im, $xBgn, $yBgn, $xEnd, $yBgn, $text_color);
ImageLine($im, $xBgn, $yEnd, $xEnd, $yEnd, $text_color);
ImageLine($im, $xEnd, $yBgn, $xEnd, $yEnd, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[11]=ImageColorAllocate($im,0xEE,0x00,0xff);
///////////////////////<2F><>ʾ X,Y<><59><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0;$i<($slot)*24;$i++)
{
$out_put[$k][$i][x]=(60+$i*(30/$slot));
$out_put[$k][$i][y]=(275-$data1[$k][$i]*25);
}
}
}
for($i=$sel_date_to,$k=0;$i<($sel_date_from+1);$i++,$k++)
{
$datestr[$k]=date("m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
}
//////<2F><><EFBFBD><EFBFBD>
for($i=0;$i<23;$i++)
{
$style = array($black_color, $black_color, $black_color, $black_color, $red, $w, $w, $w, $w, $w);
imagesetstyle($im, $style);
imageline($im, ($xEnd - $i*($day_num)-$day_num), $yBgn, ($xEnd - $i*($day_num)-$day_num), $yEnd, IMG_COLOR_STYLED);
//$xstr=$datestr[$i];
//Imagestringup($im, 2, ($xEnd - $i*($day_num)-$day_num) - 4, $yEnd+60, $xstr, $style);
//if($i==29)
//Imagestringup($im, 2, $xBgn + $i*24 - 4, $yEnd+60, $datestr[29], $style);
}
////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for($i=0;$i<$slot*24;$i++)
{
if(($i%$slot) == 0)
{
$hour_day=$i/24;
$hour_time=$i/$slot;
$datestr[$i]=date("m-d",mktime(0,0,0,date("m"),date("d")-($slot-$hour_day-1),date("Y")));
$hour_hour=$i%24;
if($hour_hour<10)
{
$timearray[$i]="0".$hour_hour."h";
}
else
{
$timearray[$i]=$hour_hour."h";
}
$xstr=$datestr[$i]." ".$timearray[$i];
Imagestringup($im, 2, $xBgn + $hour_time*30 - 4, $yEnd+60, $xstr, $text_color);
}
}
//<2F><><EFBFBD><EFBFBD>
for($i=0,$k=10;$i<10;$i++,$k--)
{
$displayMaxData=$k;
imagesetstyle($im, $style);
//imageline($im,$xBgn + $i*30, $yBgn, $xBgn + $i*30, $yEnd, IMG_COLOR_STYLED);
if($i!=0)
imageline($im,$xBgn , $yBgn+$i*25, $xEnd, $yBgn+$i*25, IMG_COLOR_STYLED);
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$displayMaxData", $black_color);
}
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "0", $black_color);
///////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD>
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0;$i<$slot*24;$i++)
{
if($i > 0)
{
imageline($im,$out_put[$k][$i-1][x],$out_put[$k][$i-1][y],$out_put[$k][$i][x],$out_put[$k][$i][y],$color[$k]);
}
}
}
}
//====graphics title=====
//$graphics_title="Service erlang statistic graphic";
//Imagestring($im, 2, 300,5, $graphics_title, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[12]=ImageColorAllocate($im,0xEE,0x00,0xff);
imagefilledrectangle($im,90,350,100,360,$color[1]);
imagestring($im,2,105,350,"SUB SUB",$text_color);
imagefilledrectangle($im,260,350,270,360,$color[2]);
imagestring($im,2,275,350,"SUB TRK",$text_color);
imagefilledrectangle($im,430,350,440,360,$color[3]);
imagestring($im,2,445,350,"TRK SUB",$text_color);
imagefilledrectangle($im,600,350,610,360,$color[5]);
imagestring($im,2,615,350,"TRK TRK",$text_color);
imagefilledrectangle($im,90,370,100,380,$color[6]);
imagestring($im,2,105,370,"INTRA",$text_color);
imagefilledrectangle($im,260,370,270,380,$color[7]);
imagestring($im,2,275,370,"SUB IP",$text_color);
imagefilledrectangle($im,430,370,440,380,$color[4]);
imagestring($im,2,445,370,"TRK IP",$text_color);
imagefilledrectangle($im,600,370,610,380,$color[9]);
imagestring($im,2,615,370,"MO",$text_color);
imagefilledrectangle($im,90,390,100,400,$color[10]);
imagestring($im,2,105,390,"MT",$text_color);
imagefilledrectangle($im,260,390,270,400,$color[11]);
imagestring($im,2,275,390,"IN TRK",$text_color);
imagefilledrectangle($im,430,390,440,400,$color[12]);
imagestring($im,2,445,390,"OUT TRK",$text_color);
imagefilledrectangle($im,600,390,610,400,$color[8]);
imagestring($im,2,615,390,"IP",$text_color);
//////////////////////////////////////////////////////
////////////////////////////////////////////////////////
//-----<2D><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
//delete *.png
$handle=opendir('.');
while($file=readdir($handle))
{
$retval="";
$pt=strrpos($file,".");
if($pt) $retval=substr($file,$pt+1,strlen($file)-$pt);
if($retval=='png') unlink($file);
}
$tt=time()-4000;
$filename=$tt.".png";
if(1)
{
ImagePng ($im,"$filename");
ImageDestroy($im);
}
//-----<2D><>ʾͼƬ
flush();
echo "</form>";
echo "<img src=\"$filename\"></img>";
adjust_content_tail();
?>

View File

@@ -0,0 +1,442 @@
<head>
<?php
function Getdata($tg,$startTime,$endTime,$select_3)
{
$link=mysql_connect("localhost","administrator","*86#ROtartsinim");
for($j=0;$j<256;$j++)
{
for($k=0;$k<30;$k++)
{
$data[$j][$k]=0;
}
}
for($j=0;$j<256;$j++)
{
if(strcmp($tg[$j][name]," "))
{
echo "tg[$j][name]={$tg[$j][name]}<br>";
if($select_3 == 5)
{
$sql="select Duration csta_datetime FROM CSTA_DB.mscDetailData where key_type=3 and key_e1_tg={$tg[$j][type]} csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}'";
}
else if($select_3 == 6)
{
$sql="select Duration csta_datetime FROM CSTA_DB.mscDetailData where key_type=4 and key_e1_tg={$tg[$j][type]} csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}'";
}
else if($select_3 == 7)
{
$sql="select Duration csta_datetime FROM CSTA_DB.mscDetailData where key_e1_tg={$tg[$j][type]} (key_type=4 or key_type=3) (csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}')";
}
$res=mysql_query($sql,$link);
if(!($res))
{
$num=0;
}
else
{
$num=mysqli_num_rows($res);
}
for($i=0;$i<$num;$i++)
{
$row=mysqli_fetch_array($res);
$start=strtotime($startTime);
$rowt=strtotime($row[1]);
$dif=$rowt-$start;
$instance=floor($dif/(60*60*24));
$data[$j][$instance] += $row[0]+0;
}
}
}
return $data;
}
?>
</head>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
$slot=$sel_date_from-$sel_date_to+1;
$startTime=date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
$endTime=date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-$sel_date_to,date("Y")));
$dataTable="CSTA_DB.mscDetailData";
$start=strtotime($startTime);
$end=strtotime($endTime);
$num=0;
$num1=0;
$data1=Getdata($tg,$startTime,$endTime,$select_3);
for($j=0;$j < 256;$j++)
{
if(strcmp($tg[$j][name]," "))
{
$num++;
$num1++;
}
}
//table <20><><EFBFBD><EFBFBD>
{
$table_title=" Erlang Statistic&nbsp;&nbsp;Date:";
if($slot>1)
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")))." to ".date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_to,date("Y")));
else
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
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>&nbsp</td>";
if($num !=0)
{
if($merge==1)
{
$num+=1;
}
}
if($num==1)
{
if($merge==0)
{
$num=1;
}
}
echo "<td colspan=$num align=\"center\">Erlang</td>";
echo "</tr>";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"center\" >Time</td>";
for($j=0;$j < 256;$j++)
{
if(strcmp($tg[$j][name]," "))
{
echo "<td align=\"center\" >{$tg[$j][name]}</td>";
}
}
if($num==0)
{
echo "<td align=\"center\" >--</td>";
}
else if($num==1)
{
if($merge!=0)
{
echo "<td align=\"center\" >--</td>";
}
}
else if($merge==1)
{
echo "<td align=\"center\" >total</td>";
}
for($i=$sel_date_to,$k=$slot;$i <=($sel_date_to+($slot-1));$i++,$k--)
{
echo "</tr>";
$now=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<td align=\"center\" width=\"10%\">{$now}</td>";
for($j=0;$j<256;$j++)
{
if(strcmp($tg[$j][name]," "))
{
echo "<td align=\"center\">{$data1[$j][$k]}</td>";
$total+=$data1[$j][$k];
}
}
if($num==1)
{
if($merge==1)
{
echo "<td align=\"center\" >--</td>";
}
}
else
{
if($merge==1)
{
echo "<td align=\"center\">$total</td>";
}
}
if($num1==0)
{
if($merge==0)
{
echo "<td align=\"center\" >--</td>";
}
}
echo "<tr>";
}
echo "</table>";
}
//ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$day=$sel_date_from-$sel_date_to+1;
$day_num=720/($day+1);
//<2F><>ͼ
//
//=======================================================================================|
//=========== Draw the Graphics =============|
//=======================================================================================|
$sizex=800;
if($csta_type==0)
$sizey=430;
else
$sizey=380;
$bgcolor=F8F8F8;
$fgcolor=000000;
$im = ImageCreate ($sizex, $sizey);
$background_color = ImageColorAllocate ($im,
hexdec(substr($bgcolor, 0, 2)),
hexdec(substr($bgcolor, 2, 2)),
hexdec(substr($bgcolor, 4, 2)));
$text_color = ImageColorAllocate ($im,
hexdec(substr($fgcolor, 0, 2)),
hexdec(substr($fgcolor, 2, 2)),
hexdec(substr($fgcolor, 4, 2)));
$black_color=ImageColorAllocate($im,0,0,0);
$white_color=ImageColorAllocate($im,255,255,255);
//===background====
ImageFilledRectangle($im,0,0,$sizex,$sizey,ImageColorAllocate ($im, 198, 198, 198));
ImageFilledRectangle($im,2,2,$sizex,$sizey,ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array(0,$sizey-1,3,$sizey-4,4,$sizey-1);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array($sizex-1,0,$sizex-4,3,$sizex,4);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
ImageFilledRectangle($im,2,2,$sizex-3,$sizey-3,$background_color);
//===border=====
$xBgn=60;
$yBgn=25;
$xEnd=780;
$yEnd=275;
$unitXPix=30;
ImageLine($im, $xBgn, $yBgn, $xBgn, $yEnd, $text_color);
ImageLine($im, $xBgn, $yBgn, $xEnd, $yBgn, $text_color);
ImageLine($im, $xBgn, $yEnd, $xEnd, $yEnd, $text_color);
ImageLine($im, $xEnd, $yBgn, $xEnd, $yEnd, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[12]=ImageColorAllocate($im,0xEE,0x00,0xff);
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0,$j=($slot-1);$i<($slot);$i++,$j--)
{
$out_put[$k][$i][x]=(780-$i*($day_num)-$day_num);
$out_put[$k][$i][y]=(275-$data1[$k][$j]*25);
}
}
}
for($i=$sel_date_to,$k=0;$i<($sel_date_from+1);$i++,$k++)
{
$datestr[$k]=date("m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
}
//////<2F><><EFBFBD><EFBFBD>
for($i=0;$i<$day;$i++)
{
$style = array($black_color, $black_color, $black_color, $black_color, $red, $w, $w, $w, $w, $w);
imagesetstyle($im, $style);
imageline($im, ($xEnd - $i*($day_num)-$day_num), $yBgn, ($xEnd - $i*($day_num)-$day_num), $yEnd, IMG_COLOR_STYLED);
$xstr=$datestr[$i];
Imagestringup($im, 2, ($xEnd - $i*($day_num)-$day_num) - 4, $yEnd+60, $xstr, $style);
//if($i==29)
//Imagestringup($im, 2, $xBgn + $i*24 - 4, $yEnd+60, $datestr[29], $style);
}
//<2F><><EFBFBD><EFBFBD>
for($i=0,$k=10;$i<10;$i++,$k--)
{
$displayMaxData=$k;
imagesetstyle($im, $style);
//imageline($im,$xBgn + $i*30, $yBgn, $xBgn + $i*30, $yEnd, IMG_COLOR_STYLED);
if($i!=0)
imageline($im,$xBgn , $yBgn+$i*25, $xEnd, $yBgn+$i*25, IMG_COLOR_STYLED);
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$displayMaxData", $black_color);
}
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "0", $black_color);
///////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD>
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0;$i<($slot);$i++)
{
if($i > 0)
{
imageline($im,$out_put[$k][$i-1][x],$out_put[$k][$i-1][y],$out_put[$k][$i][x],$out_put[$k][$i][y],$color[$k]);
}
}
}
}
//====graphics title=====
//$graphics_title="Service erlang statistic graphic";
//Imagestring($im, 2, 300,5, $graphics_title, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[12]=ImageColorAllocate($im,0xEE,0x00,0xff);
imagefilledrectangle($im,90,350,100,360,$color[1]);
imagestring($im,2,105,350,"SUB SUB",$text_color);
imagefilledrectangle($im,260,350,270,360,$color[2]);
imagestring($im,2,275,350,"SUB TRK",$text_color);
imagefilledrectangle($im,430,350,440,360,$color[3]);
imagestring($im,2,445,350,"TRK SUB",$text_color);
imagefilledrectangle($im,600,350,610,360,$color[5]);
imagestring($im,2,615,350,"TRK TRK",$text_color);
imagefilledrectangle($im,90,370,100,380,$color[6]);
imagestring($im,2,105,370,"INTRA",$text_color);
imagefilledrectangle($im,260,370,270,380,$color[7]);
imagestring($im,2,275,370,"SUB IP",$text_color);
imagefilledrectangle($im,430,370,440,380,$color[4]);
imagestring($im,2,445,370,"TRK IP",$text_color);
imagefilledrectangle($im,600,370,610,380,$color[9]);
imagestring($im,2,615,370,"MO",$text_color);
imagefilledrectangle($im,90,390,100,400,$color[10]);
imagestring($im,2,105,390,"MT",$text_color);
imagefilledrectangle($im,260,390,270,400,$color[11]);
imagestring($im,2,275,390,"IN TRK",$text_color);
imagefilledrectangle($im,430,390,440,400,$color[12]);
imagestring($im,2,445,390,"OUT TRK",$text_color);
imagefilledrectangle($im,600,390,610,400,$color[8]);
imagestring($im,2,615,390,"IP",$text_color);
//////////////////////////////////////////////////////
////////////////////////////////////////////////////////
//-----<2D><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
//delete *.png
$handle=opendir('.');
while($file=readdir($handle))
{
$retval="";
$pt=strrpos($file,".");
if($pt) $retval=substr($file,$pt+1,strlen($file)-$pt);
if($retval=='png') unlink($file);
}
$tt=time()-4000;
$filename=$tt.".png";
if(1)
{
ImagePng ($im,"$filename");
ImageDestroy($im);
}
//-----<2D><>ʾͼƬ
flush();
echo "</form>";
echo "<img src=\"$filename\"></img>";
adjust_content_tail();
?>
</body>

View File

@@ -0,0 +1,400 @@
<?php
$slot=$sel_date_from-$sel_date_to+1;
$sum_hour=$slot*24;
$startTime=date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
$endTime=date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-$sel_date_to,date("Y")));
$dataTable="CSTA_DB.mscDetailData";
$start=strtotime($startTime);
$end=strtotime($endTime);
function Getdata($tg,$startTime,$endTime,$select_3)
{
$link=mysql_connect("localhost","administrator","*86#ROtartsinim");
for($k=0;$k<256;$k++)
{
for($i=0;$i<800;$i++)
{
$data[$k][$i]=0;
}
}
for($j=0;$j<256;$j++)
{
if(strcmp($tg[$j][name]," "))
{
//echo "tg[$j][name]={$tg[$j][name]}<br>";
if($select_3 == 5)
{
//echo "the select_3=$select_3 good <br>";
$sql="select Duration csta_datetime FROM CSTA_DB.mscDetailData where key_type=3 and key_e1_tg={$tg[$j][type]} csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}'";
}
else if($select_3 == 6)
{
//echo "the select_3=$select_3 good <br>";
$sql="select Duration csta_datetime FROM CSTA_DB.mscDetailData where key_type=4 and key_e1_tg={$tg[$j][type]} csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}'";
}
else if($select_3 == 7)
{
//echo "the select_3=$select_3 good <br>";
$sql="select Duration csta_datetime FROM CSTA_DB.mscDetailData where key_e1_tg={$tg[$j][type]} (key_type=4 or key_type=3) (csta_datetime >='{$startTime}' and csta_datetime <='{$endTime}')";
}
$res=mysql_query($sql,$link);
if(!($res))
{
$num=0;
}
else
{
$num=mysqli_num_rows($res);
}
$data[$j][count]=$num;
for($i=0;$i<$num;$i++)
{
$row=mysqli_fetch_array($res);
$data[$j][time]=$row[1];
$start=strtotime($startTime);
$rowt=strtotime($row[1]);
$dif=$rowt-$start;
$instance=floor($dif/(60*60));
$data[$j][$instance] += $row[0]+0;
}
}
}
return $data;
}
$data1=Getdata($tg,$startTime,$endTime,$select_3);
//table
$table_title="Trunk Group Erlang Statistic&nbsp;&nbsp;Date:";
if($slot>1)
{
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")))." to ".date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_to,date("Y")));
}
else
{
$table_title.=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
}
echo "<br><b><center>$table_title</center></b>";
echo "<br>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
for($j=0;$j<256;$j++)
{
if(strcmp($tg[$j][name]," "))
{
//echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\" ><td colspan=13 align=\"center\" ><b>{$tg[$j][name]} Erlang(hour)</td></b></tr>";
for($i=0,$k=($slot-1);$i <=($slot-1);$i++,$k--)
{
$now=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td rowspan=4 width=\"10%\" bgcolor=\"white\">{$now}</td>";
echo "<td align=center>00</td><td align=center>01</td><td align=center>02</td><td align=center>03</td><td align=center>04</td><td align=center>05</td><td align=center>06</td><td align=center>07</td><td align=center>08</td><td align=center>09</td><td align=center>10</td><td align=center>11</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=center>{$data1[$j][0+(24*$k)]}</td><td align=center>{$data1[$j][1+(24*$k)]}</td><td align=center>{$data1[$j][2+(24*$k)]}</td><td align=center>{$data1[$j][3+(24*$k)]}</td><td align=center>{$data1[$j][4+(24*$k)]}</td><td align=center>{$data1[$j][5+(24*$k)]}</td><td align=center>{$data1[$j][6+(24*$k)]}</td><td align=center>{$data1[$j][7+(24*$k)]}</td><td align=center>{$data1[$j][8+(24*$k)]}</td><td align=center>{$data1[$j][9+(24*$k)]}</td><td align=center>{$data1[$j][10+(24*$k)]}</td><td align=center>{$data1[$j][11+(24*$k)]}</td>";
echo "</tr>";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=center>12</td><td align=center>13</td><td align=center>14</td><td align=center>15</td><td align=center>16</td><td align=center>17</td><td align=center>18</td><td align=center>19</td><td align=center>20</td><td align=center>21</td><td align=center>22</td><td align=center>23</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=center>{$data1[$j][12+(24*$k)]}</td><td align=center>{$data1[$j][13+(24*$k)]}</td><td align=center>{$data1[$j][14+(24*$k)]}</td><td align=center>{$data1[$j][15+(24*$k)]}</td><td align=center>{$data1[$j][16+(24*$k)]}</td><td align=center>{$data1[$j][17+(24*$k)]}</td><td align=center>{$data1[$j][18+(24*$k)]}</td><td align=center>{$data1[$j][19+(24*$k)]}</td><td align=center>{$data1[$j][20+(24*$k)]}</td><td align=center>{$data1[$j][21+(24*$k)]}</td><td align=center>{$data1[$j][22+(24*$k)]}</td><td align=center>{$data1[$j][23+(24*$k)]}</td>";
echo "</tr>";
}
//echo "</table>";
}
}
echo "</table>";
//ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$day=$sel_date_from-$sel_date_to+1;
$day_num=30;
//<2F><>ͼ
//
//=======================================================================================|
//=========== Draw the Graphics =============|
//=======================================================================================|
$sizex=800;
if($csta_type==0)
$sizey=430;
else
$sizey=380;
$bgcolor=F8F8F8;
$fgcolor=000000;
$im = ImageCreate ($sizex, $sizey);
$background_color = ImageColorAllocate ($im,
hexdec(substr($bgcolor, 0, 2)),
hexdec(substr($bgcolor, 2, 2)),
hexdec(substr($bgcolor, 4, 2)));
$text_color = ImageColorAllocate ($im,
hexdec(substr($fgcolor, 0, 2)),
hexdec(substr($fgcolor, 2, 2)),
hexdec(substr($fgcolor, 4, 2)));
$black_color=ImageColorAllocate($im,0,0,0);
$white_color=ImageColorAllocate($im,255,255,255);
//===background====
ImageFilledRectangle($im,0,0,$sizex,$sizey,ImageColorAllocate ($im, 198, 198, 198));
ImageFilledRectangle($im,2,2,$sizex,$sizey,ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array(0,$sizey-1,3,$sizey-4,4,$sizey-1);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
$pointArr=array($sizex-1,0,$sizex-4,3,$sizex,4);
Imagefilledpolygon($im, $pointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
ImageFilledRectangle($im,2,2,$sizex-3,$sizey-3,$background_color);
//===border=====
$xBgn=60;
$yBgn=25;
$xEnd=780;
$yEnd=275;
$unitXPix=30;
ImageLine($im, $xBgn, $yBgn, $xBgn, $yEnd, $text_color);
ImageLine($im, $xBgn, $yBgn, $xEnd, $yBgn, $text_color);
ImageLine($im, $xBgn, $yEnd, $xEnd, $yEnd, $text_color);
ImageLine($im, $xEnd, $yBgn, $xEnd, $yEnd, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[11]=ImageColorAllocate($im,0xEE,0x00,0xff);
///////////////////////<2F><>ʾ X,Y<><59><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0;$i<($slot)*24;$i++)
{
$out_put[$k][$i][x]=(60+$i*(30/$slot));
$out_put[$k][$i][y]=(275-$data1[$k][$i]*25);
}
}
}
for($i=$sel_date_to,$k=0;$i<($sel_date_from+1);$i++,$k++)
{
$datestr[$k]=date("m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
}
//////<2F><><EFBFBD><EFBFBD>
for($i=0;$i<23;$i++)
{
$style = array($black_color, $black_color, $black_color, $black_color, $red, $w, $w, $w, $w, $w);
imagesetstyle($im, $style);
imageline($im, ($xEnd - $i*($day_num)-$day_num), $yBgn, ($xEnd - $i*($day_num)-$day_num), $yEnd, IMG_COLOR_STYLED);
//$xstr=$datestr[$i];
//Imagestringup($im, 2, ($xEnd - $i*($day_num)-$day_num) - 4, $yEnd+60, $xstr, $style);
//if($i==29)
//Imagestringup($im, 2, $xBgn + $i*24 - 4, $yEnd+60, $datestr[29], $style);
}
////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for($i=0;$i<$slot*24;$i++)
{
if(($i%$slot) == 0)
{
$hour_day=$i/24;
$hour_time=$i/$slot;
$datestr[$i]=date("m-d",mktime(0,0,0,date("m"),date("d")-($slot-$hour_day-1),date("Y")));
$hour_hour=$i%24;
if($hour_hour<10)
{
$timearray[$i]="0".$hour_hour."h";
}
else
{
$timearray[$i]=$hour_hour."h";
}
$xstr=$datestr[$i]." ".$timearray[$i];
Imagestringup($im, 2, $xBgn + $hour_time*30 - 4, $yEnd+60, $xstr, $text_color);
}
}
//<2F><><EFBFBD><EFBFBD>
for($i=0,$k=10;$i<10;$i++,$k--)
{
$displayMaxData=$k;
imagesetstyle($im, $style);
//imageline($im,$xBgn + $i*30, $yBgn, $xBgn + $i*30, $yEnd, IMG_COLOR_STYLED);
if($i!=0)
imageline($im,$xBgn , $yBgn+$i*25, $xEnd, $yBgn+$i*25, IMG_COLOR_STYLED);
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$displayMaxData", $black_color);
}
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "0", $black_color);
///////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD>
for($k=1;$k < 13;$k++)
{
if(strcmp($filelist[$k][name]," "))
{
for($i=0;$i<$slot*24;$i++)
{
if($i > 0)
{
imageline($im,$out_put[$k][$i-1][x],$out_put[$k][$i-1][y],$out_put[$k][$i][x],$out_put[$k][$i][y],$color[$k]);
}
}
}
}
//====graphics title=====
//$graphics_title="Service erlang statistic graphic";
//Imagestring($im, 2, 300,5, $graphics_title, $text_color);
//===draw the label block====
$color[1]=ImageColorAllocate($im,0x99,0x22,0x33);
$color[2]=ImageColorAllocate($im,0x99,0x00,0xcc);
$color[3]=ImageColorAllocate($im,0x99,0x99,0x00);
$color[4]=ImageColorAllocate($im,0x99,0x99,0x99);
$color[5]=ImageColorAllocate($im,0x99,0xff,0x33);
$color[6]=ImageColorAllocate($im,0xff,0x99,0x66);
$color[7]=ImageColorAllocate($im,0xff,0x00,0x00);
$color[8]=ImageColorAllocate($im,0xff,0xff,0x00);
$color[9]=ImageColorAllocate($im,0x33,0x3,0x33);
$color[10]=ImageColorAllocate($im,0x00,0xcc,0xff);
$color[11]=ImageColorAllocate($im,0x00,0x22,0xcc);
$color[12]=ImageColorAllocate($im,0xEE,0x00,0xff);
imagefilledrectangle($im,90,350,100,360,$color[1]);
imagestring($im,2,105,350,"SUB SUB",$text_color);
imagefilledrectangle($im,260,350,270,360,$color[2]);
imagestring($im,2,275,350,"SUB TRK",$text_color);
imagefilledrectangle($im,430,350,440,360,$color[3]);
imagestring($im,2,445,350,"TRK SUB",$text_color);
imagefilledrectangle($im,600,350,610,360,$color[5]);
imagestring($im,2,615,350,"TRK TRK",$text_color);
imagefilledrectangle($im,90,370,100,380,$color[6]);
imagestring($im,2,105,370,"INTRA",$text_color);
imagefilledrectangle($im,260,370,270,380,$color[7]);
imagestring($im,2,275,370,"SUB IP",$text_color);
imagefilledrectangle($im,430,370,440,380,$color[4]);
imagestring($im,2,445,370,"TRK IP",$text_color);
imagefilledrectangle($im,600,370,610,380,$color[9]);
imagestring($im,2,615,370,"MO",$text_color);
imagefilledrectangle($im,90,390,100,400,$color[10]);
imagestring($im,2,105,390,"MT",$text_color);
imagefilledrectangle($im,260,390,270,400,$color[11]);
imagestring($im,2,275,390,"IN TRK",$text_color);
imagefilledrectangle($im,430,390,440,400,$color[12]);
imagestring($im,2,445,390,"OUT TRK",$text_color);
imagefilledrectangle($im,600,390,610,400,$color[8]);
imagestring($im,2,615,390,"IP",$text_color);
//////////////////////////////////////////////////////
////////////////////////////////////////////////////////
//-----<2D><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
//delete *.png
$handle=opendir('.');
while($file=readdir($handle))
{
$retval="";
$pt=strrpos($file,".");
if($pt) $retval=substr($file,$pt+1,strlen($file)-$pt);
if($retval=='png') unlink($file);
}
$tt=time()-4000;
$filename=$tt.".png";
if(1)
{
ImagePng ($im,"$filename");
ImageDestroy($im);
}
//-----<2D><>ʾͼƬ
flush();
echo "</form>";
echo "<img src=\"$filename\"></img>";
adjust_content_tail();
?>

View File

@@ -0,0 +1,319 @@
<script language="javascript">
<!--
function dec2hex(dec_num)
{
var hex_num='';
var temp;
dec_num=dec_num.toUpperCase();
if(dec_num)
{
while( dec_num/16 != 0 )
{
temp = dec_num % 16;
dec_num = dec_num - temp;
switch(temp){
case 10: temp='A'; break;
case 11: temp='B'; break;
case 12: temp='C'; break;
case 13: temp='D'; break;
case 14: temp='E'; break;
case 15: temp='F'; break;
}
hex_num = temp + hex_num;
dec_num = dec_num / 16;
}
return(hex_num);
}
else
{
var NotEmpty="<?php echo $strTheValueCannotBeEmpty; ?>";
alert(NotEmpty);
}
}
function hex2dec(hex_num)
{
var dec_num='';
var temp,i,j;
var len;
hex_num=hex_num.toUpperCase();
len=hex_num.length;
for(i=len;i > 0 ;i--)
{
temp=hex_num.charAt(len - i);
switch(temp){
case 'A': temp=10; break;
case 'B': temp=11; break;
case 'C': temp=12; break;
case 'D': temp=13; break;
case 'E': temp=14; break;
case 'F': temp=15; break;
}
j=i-1;
while(j > 0)
{
j--;
temp = temp*16;
}
temp=Math.abs(temp);
dec_num += temp;
dec_num = Math.abs(dec_num);
}
return(dec_num);
}
function hex2bin(hex_num)
{
var bin_num='';
var temp,i,j;
var len;
hex_num=hex_num.toUpperCase();
len=hex_num.length;
for(i=len;i > 0;i--)
{
temp=hex_num.charAt(len - i);
switch(temp)
{
case '0': temp = '0000'; break;
case '1': temp = '0001'; break;
case '2': temp = '0010'; break;
case '3': temp = '0011'; break;
case '4': temp = '0100'; break;
case '5': temp = '0101'; break;
case '6': temp = '0110'; break;
case '7': temp = '0111'; break;
case '8': temp = '1000'; break;
case '9': temp = '1001'; break;
case 'A': temp = '1010'; break;
case 'B': temp = '1011'; break;
case 'C': temp = '1100'; break;
case 'D': temp = '1101'; break;
case 'E': temp = '1110'; break;
case 'F': temp = '1111'; break;
}
bin_num += temp;
}
return(bin_num);
}
function bin2hex(bin_num)
{
var hex_num='';
var dec_num='';
var temp ;
var i,j,len;
len=bin_num.length;
for(i=len;i > 0;i--)
{
temp = bin_num.charAt(len - i);
j=i-1;
while( j > 0)
{
j--;
temp=temp*2;
}
temp=Math.abs(temp);
dec_num += temp;
dec_num = Math.abs(dec_num);
}
if(dec_num !='')
{
while( dec_num/16 != 0 )
{
temp = dec_num % 16;
dec_num = dec_num - temp;
switch(temp){
case 10: temp='A'; break;
case 11: temp='B'; break;
case 12: temp='C'; break;
case 13: temp='D'; break;
case 14: temp='E'; break;
case 15: temp='F'; break;
}
hex_num = temp + hex_num;
dec_num = dec_num / 16;
}
return(hex_num);
}
}
function check_hex_input(term)
{
var checkOK = "0123456789ABCDEF";
var checkStr = term.value.toUpperCase();
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
var MustBe="<?php echo $strParaMustBeAHexNumber; ?>"+"<?php echo '\n\n'; ?>"+"<?php echo $strTheFollowingLetterCanBeUsed; ?>"+"<?php echo ':0123456789ABCDEF'; ?>";
alert(MustBe);
term.focus();
term.style.color="RED";
return (false);
}
term.style.color="BLACK";
return (true);
}
function check_dec_input(term)
{
var checkOK = "0123456789";
var checkStr = term.value.toUpperCase();
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
var MustDec="<?php echo $strParaMustBeADecNumber; ?>";
alert(MustDec);
term.focus();
term.style.color="RED";
return (false);
}
term.style.color="BLACK";
return (true);
}
function check_bin_input(term)
{
var checkOK = "01";
var checkStr = term.value.toUpperCase();
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
var MustBin="<?php echo $strParaMustBeABinNumber; ?>";
alert(MustBin);
term.focus();
term.style.color="RED";
return (false);
}
term.style.color="BLACK";
return (true);
}
function hex2dec_input(hex_num)
{
hex_num.value=hex_num.value.toUpperCase();
if(check_hex_input(hex_num))
document.D2H2B.dec.value = hex2dec(document.D2H2B.hex.value);
}
function dec2hex_input(dec_num)
{
dec_num.value=dec_num.value.toUpperCase();
if(check_dec_input(dec_num))
document.D2H2B.hex.value = dec2hex(document.D2H2B.dec.value);
}
function hex2bin_input(hex_num)
{
hex_num.value=hex_num.value.toUpperCase();
if(check_hex_input(hex_num))
document.D2H2B.bin.value = hex2bin(document.D2H2B.hex.value);
}
function bin2hex_input(bin_num)
{
bin_num.value=bin_num.value.toUpperCase();
if(check_bin_input(bin_num))
document.D2H2B.hex.value = bin2hex(document.D2H2B.bin.value);
}
-->
</script>
<form name="D2H2B">
<table style="position: relative; top: -4; left: 5" border="1" width="620" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr bgcolor="#E6E6E6">
<td align="center" width="102"><?php echo $strDecNumber;?></td>
<td align="center" width="65">&nbsp;</td>
<td align="center" width="106"><?php echo $strHexadecNumber;?></td>
<td align="center" width="70">&nbsp;</td>
<td align="center" width="164"><?php echo $strBinNumber;?></td>
</tr>
<tr>
<td width="102" align="center"><input type="text" name="dec" size="15"></td>
<td width="65" align="center"><input type="button" value="&lt;-" name="B4" onClick="hex2dec_input(document.D2H2B.hex)">
<input type="button" value="-&gt;" name="B3" onClick="dec2hex_input(document.D2H2B.dec)"></td>
<td width="106" align="center"><input type="text" name="hex" size="10"></td>
<td width="70" align="center"><input type="button" value="&lt;-" name="B6" onClick="bin2hex_input(document.D2H2B.bin)">
<input type="button" value="-&gt;" name="B5" onClick="hex2bin_input(document.D2H2B.hex)"></td>
<td width="164" align="center"><input type="text" name="bin" size="35"></td>
</tr>
</table>
<table border="0">
<tr><td>
<?php echo" <b>$strRemarks </b>: $strCalculatorRemarks";?>
</td></tr>
</table>
</form>

View File

@@ -0,0 +1,477 @@
<?php
//<2F><><EFBFBD>ôʿ<C3B4>
$strAbnormal ="<EFBFBD>";
$strAccessManagement ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAccountAdmin ="<EFBFBD>ʺŹ<EFBFBD><EFBFBD><EFBFBD>";
$strAccountCannotBeEmpty ="<EFBFBD>ʺŲ<EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>";
$strAccountName ="<EFBFBD>ʺ<EFBFBD><EFBFBD><EFBFBD>";
$strAdd ="<EFBFBD><EFBFBD> <20><>";
$strAddCustomer ="<EFBFBD><EFBFBD><EFBFBD>ӿͻ<EFBFBD>";
$strAddDevice ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAddFails ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strAddOperator ="<EFBFBD><EFBFBD><EFBFBD>Ӳ<EFBFBD><EFBFBD><EFBFBD>Ա";
$strAddOption ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>";
$strAddRoute ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><EFBFBD>";
$strAddSucceeds ="<EFBFBD><EFBFBD><EFBFBD>ӳɹ<EFBFBD>";
$strAdvancedSetup ="<EFBFBD>߼<EFBFBD>";
$strAlarmClean ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAlarmContent ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAlarmLevel ="<EFBFBD><EFBFBD>ȼ<EFBFBD>";
$strAlarmLog ="<EFBFBD><EFBFBD><EFBFBD>־";
$strAlarmTime ="<EFBFBD>澯ʱ<EFBFBD><EFBFBD>";
$strAlarmType ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAllAccounts ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺ<EFBFBD>";
$strAllCall ="<EFBFBD><EFBFBD><EFBFBD>к<EFBFBD><EFBFBD><EFBFBD>";
$strAllE1 ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>E1";
$strAllE1ID ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>E1";
$strAllSubsys ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ";
$strAllSystems ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ";
$strAllTheTypes ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAlterSymbol ="<EFBFBD>޸ı<EFBFBD>־";
$strAppealTime ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strApplicableType ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAreYouSureToDelete ="<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD>";
$strAreYouSureToEdit ="<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD>";
$strAttribute ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAuthority ="Ȩ<EFBFBD><EFBFBD>";
$strAuthResult ="<EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strBack ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strBasicStatus ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬";
$strBinNumber ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strBringToRest ="ֹͣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCallAnalysis ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCalledBusy ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>æ";
$strCallFailure ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCallingPullDown ="<EFBFBD><EFBFBD><EFBFBD>в<EFBFBD><EFBFBD><EFBFBD>";
$strCallLoss ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCallProcess ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCallStatistics ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><EFBFBD>";
$strCallType ="ͨ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCancel ="ȡ <20><>";
$strCDRAdmin ="CDRά<EFBFBD><EFBFBD>";
$strCheckInfo ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ";
$strCheckResult ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strChinese = "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strClear ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strClearedAlarm ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strClearTime ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strCommandBeExecute ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><EFBFBD>";
$strCommandControl ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strComponentCode ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strComponentName ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strConfirm ="ȷ <20><>";
$strConfirmPassword ="ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCPULoad ="CPUʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCreationTime ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strCriticalAlarm ="<EFBFBD><EFBFBD><EFBFBD>ظ澯";
$strCustermerAdmin ="<EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCustomerInformation ="<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCustomerManagement ="<EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCustomerQuery ="<EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD>ѯ";
$strSubscriberStatus ="<EFBFBD>û<EFBFBD>״̬";
$strDaemonOperationFailure ="<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strDaemonOperationSuccess ="<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>";
$strDaemonOperationTimeout ="<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ";
$strDaemonRecordNoChange ="<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4<EFBFBD><EFBFBD><EFBFBD>";
$strDataBackup ="<EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><EFBFBD><EFBFBD>";
$strDatabase ="<EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD>";
$strDatabaseBackup ="<EFBFBD><EFBFBD><EFBFBD>ݿⱸ<EFBFBD><EFBFBD>";
$strDate ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strDay ="<EFBFBD><EFBFBD>";
$strDecNumber ="ʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strDelete ="ɾ <20><>";
$strDeleteFailure ="ɾ<EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strDeleteMode ="ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>";
$strDeleteQueryResult ="ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strDeleteRoute ="ɾ<EFBFBD><EFBFBD>·<EFBFBD><EFBFBD>";
$strDeleteSuccess ="ɾ<EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>";
$strDeleteSystem ="ɾ<EFBFBD><EFBFBD><EFBFBD>";
$strDescription ="˵<EFBFBD><EFBFBD>";
$strDetailDescription ="<EFBFBD><EFBFBD>ϸ˵<EFBFBD><EFBFBD>";
$strDevice ="<EFBFBD>";
$strDeviceType ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strDisable ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strDisplayRecords ="<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD>¼";
$strDownload ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strE1ID ="E1<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strE1Status ="E1״̬";
$strEdit ="<EFBFBD><EFBFBD> <20><>";
$strEditFailure ="<EFBFBD>༭ʧ<EFBFBD><EFBFBD>";
$strEditMode ="<EFBFBD><EFBFBD><EFBFBD>ʽ";
$strEditObject ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strEditSuccess ="<EFBFBD><EFBFBD>ɹ<EFBFBD>";
$strEnable ="<EFBFBD><EFBFBD>װ";
$strEnglish = "Ӣ<EFBFBD><EFBFBD>";
$strEquipment ="<EFBFBD>";
$strError ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strEventType ="<EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strExample ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strExit ="<EFBFBD><EFBFBD> <20><>";
$strFailure ="ʧ<EFBFBD><EFBFBD>";
$strFileUpload ="<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strFinish ="<EFBFBD><EFBFBD> <20><>";
$strFriday ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strFrom ="<EFBFBD><EFBFBD>";
$strGlobalSystemPara ="ȫ<EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strGraphTemplate ="ͼ<EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>";
$strGuide ="<EFBFBD>û<EFBFBD>ָ<EFBFBD><EFBFBD>";
$strHalt ="<EFBFBD>ж<EFBFBD>";
$strHardDiskSpace ="Ӳ<EFBFBD>̿ռ<EFBFBD>";
$strHelp ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strHexadecNumber ="ʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strHour ="ʱ";
$strIncoming ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strIncomingLimit ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strInitialize ="<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>";
$strInputAccount ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺ<EFBFBD>";
$strInputBox ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strInputPasswordIsNotCoherent ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>";
$strInvalidUserName ="<EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD>";
$strItem ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strKeyWord ="<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><EFBFBD><EFBFBD>";
$strLandscape ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLANModule ="LANģ<EFBFBD><EFBFBD>";
$strLastSevenDay ="<EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLegend ="ͼ<EFBFBD><EFBFBD>";
$strLineBusy ="<EFBFBD><EFBFBD>·æ";
$strList ="<EFBFBD>б<EFBFBD>";
$strLoadIn ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLoadOut ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLoadOutOrLoadIn ="<EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLocal ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLocalCall ="<EFBFBD><EFBFBD><EFBFBD>ֺ<EFBFBD><EFBFBD><EFBFBD>";
$strLocalQuery ="<EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD>ѯ";
$strLocalTrunkGroup ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLoginInfo ="<EFBFBD><EFBFBD>½<EFBFBD><EFBFBD>Ϣ";
$strLogon ="<EFBFBD><EFBFBD> ¼";
$strLogonAgain ="<EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD>¼";
$strLogonFails ="<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLogType ="<EFBFBD><EFBFBD>־<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strMainMenu ="<EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>";
$strMajorAlarm ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ澯";
$strMapUpload ="<EFBFBD><EFBFBD>ͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strMasterClock ="<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strMemoryWaitStatus ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4<EFBFBD><EFBFBD><EFBFBD>׼<EFBFBD><EFBFBD>ִ<EFBFBD><EFBFBD>״̬";
$strMenu ="<EFBFBD>˵<EFBFBD>";
$strMinorAlarm ="<EFBFBD>μ<EFBFBD><EFBFBD>";
$strMinute ="<EFBFBD><EFBFBD>";
$strModificationFails ="<EFBFBD>޸<EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strModificationSucceeds ="<EFBFBD>޸ijɹ<EFBFBD>";
$strModifyPassword ="<EFBFBD>޸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strMonday ="<EFBFBD><EFBFBD>һ";
$strMonth ="<EFBFBD><EFBFBD>";
$strMSISDN ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strMSStatus ="<EFBFBD>ֻ<EFBFBD>״̬";
$strMultipleBox ="<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>";
$strName ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strNewPassword ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strNextPage ="<EFBFBD><EFBFBD>һҳ";
$strNo ="<EFBFBD><EFBFBD>";
$strNormal ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strNotFindRecord ="û<EFBFBD>м<EFBFBD>¼";
$strNothing ="<EFBFBD><EFBFBD>";
$strObjectID ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID";
$strOldPassword ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strOperateDatabaseFailure ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strOperateDatabaseSuccess ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><EFBFBD>ɹ<EFBFBD>";
$strOperationAuthority ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD>";
$strOperationLog ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־";
$strOperationSpecification ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD>";
$strOperator ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա";
$strOperatorAccount ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>ʺ<EFBFBD>";
$strOperatorList ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>б<EFBFBD>";
$strOption ="ѡ<EFBFBD><EFBFBD>";
$strOrderObject ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strOrderType ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strOutgoing ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strOutgoingLimit ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPageNumberHasAMistake ="ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strParaEdit ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strParaLength ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strParaMaintenance ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ά<EFBFBD><EFBFBD>";
$strParameterDescription ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD>";
$strParameterSetup ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strParaNumber ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strParaStructure ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strParaType ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPassword ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPassword ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPasswordCannotBeEmpty ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>";
$strPasswordDigitHasAMistake ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPasswordModificationSucceeds="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸ijɹ<EFBFBD>";
$strPause ="<EFBFBD><EFBFBD>ͣ";
$strPels ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPercent ="<EFBFBD>ٷֱ<EFBFBD>";
$strPhysicalAddress ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ";
$strPhysicalLayer ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPhysicsMemory ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>";
$strPleaseConfirmYourPassword ="<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPleaseInputRealName ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPleaseLogonSystem ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼ϵͳ";
$strPortrait ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPrefixNumber ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ";
$strPreview ="Ԥ <20><>";
$strPreviousPage ="ǰһҳ";
$strPrimaryLanguage ="Ĭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strProcessStatus ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬";
$strProduceTemplateCode ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPullDownMenu ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>";
$strQuery ="<EFBFBD><EFBFBD>ѯ";
$strQueryNumberRange ="<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD>Χ<EFBFBD><EFBFBD>";
$strRateAdmin ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ά<EFBFBD><EFBFBD>";
$strRealName ="<EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strRefreshTime ="ˢ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strRefresh ="ˢ<EFBFBD><EFBFBD>";
$strRemainAll ="ʣ<EFBFBD><EFBFBD><><C8AB>";
$strRemark ="˵<EFBFBD><EFBFBD>";
$strRemarks ="˵<EFBFBD><EFBFBD>";
$strRemote ="Զ<EFBFBD><EFBFBD>";
$strRepairResult ="<EFBFBD>޸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strRepeatInput ="<EFBFBD>ظ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strRepeatInputtingPassword ="<EFBFBD>ظ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strReset ="<EFBFBD><EFBFBD> <20><>";
$strRestart ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strResult ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strReturn ="<EFBFBD><EFBFBD> <20><>";
$strRoute ="·<EFBFBD><EFBFBD>";
$strSaturday ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSave ="<EFBFBD><EFBFBD> <20><>";
$strSaveFailure ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strSaveSuccess ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>";
$strSearch ="<EFBFBD><EFBFBD> <20><>";
$strSecond ="<EFBFBD><EFBFBD>";
$strSecondLanguage ="<EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSelect ="ѡ<EFBFBD><EFBFBD>";
$strSender ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSignalingFault ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strSIMNumber ="SIM<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSixHours ="6Сʱ";
$strSize ="<EFBFBD><EFBFBD>С";
$strSoftwareDownload ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSoftwareUpdate ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSoftwareUpload ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSorryYouHaveNotTheAuthority ="<EFBFBD>Բ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD>޲<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSpecification ="˵<EFBFBD><EFBFBD>";
$strSpecifyTime ="ָ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strStatisticsLengend ="ͳ<EFBFBD><EFBFBD>ͼ<EFBFBD><EFBFBD>";
$strStatus ="״̬";
$strStatusInformation ="״̬<EFBFBD><EFBFBD>Ϣ";
$strStatusMonitor ="״̬<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strStop ="ֹͣ";
$strSubmit ="<EFBFBD><EFBFBD> <20><>";
$strSubsystem ="<EFBFBD><EFBFBD>ϵͳ";
$strSubsystemID ="<EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSubsystemPara ="<EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSubsystemStatus ="<EFBFBD><EFBFBD>ϵͳ״̬";
$strSubsystemType ="<EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSuccess ="<EFBFBD>ɹ<EFBFBD>";
$strSunday ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"; ;
$strSwitchAdmin ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ά<EFBFBD><EFBFBD>";
$strSwitchPara ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSystem ="ϵͳ";
$strSystemAdmin ="ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSystemID ="ϵͳID";
$strSystemLoginPassword ="<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSystemPara ="ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSystemStatus ="ϵͳ״̬";
$strSystemType ="ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTable ="<EFBFBD><EFBFBD>";
$strTemplateSetup ="ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTheInputPasswordIsIncorrect ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ";
$strTheNumber ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTheRecordExits ="<EFBFBD>ü<EFBFBD>¼<EFBFBD>Ѵ<EFBFBD><EFBFBD><EFBFBD>";
$strThisMonth ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strThisWeek ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strThreeHours ="3Сʱ";
$strThursday ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTime ="ʱ<EFBFBD><EFBFBD>";
$strTimeFormat ="ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ";
$strTimes ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTo ="<EFBFBD><EFBFBD>";
$strToday ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strToPage ="ת<EFBFBD><EFBFBD>";
$strTotal ="<EFBFBD>ܼ<EFBFBD>";
$strTotalPages ="<EFBFBD><EFBFBD>ҳ<EFBFBD><EFBFBD>";
$strTotalRecords ="<EFBFBD>ܼ<EFBFBD>";
$strTransportLayer ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTrunkGroup ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTuesday ="<EFBFBD>ܶ<EFBFBD>";
$strTwelveHours ="12Сʱ";
$strTwentyFourHours ="24Сʱ";
$strTwoHours ="2Сʱ";
$strType ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strUndefinedAlarm ="δȷ<EFBFBD><EFBFBD>";
$strUninstall ="ж<EFBFBD><EFBFBD>";
$strUninstalled ="δ<EFBFBD><EFBFBD>װ";
$strUpdatedTime ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strUpload ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strUploadFailure ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>";
$strUploadSuccess ="<EFBFBD><EFBFBD><EFBFBD>سɹ<EFBFBD>";
$strUserManual ="<EFBFBD>û<EFBFBD><EFBFBD>ֲ<EFBFBD>";
$strUserName ="<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD>";
$strUserNameCannotBeEmpty ="<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>";
$strValue ="ֵ";
$strVersion ="<EFBFBD>";
$strViewThisPageNeedJavaPlugin ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><EFBFBD><EFBFBD>谲װjava plugin";
$strVirtualMemory ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>";
$strWarningAlarm ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strWednesday ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strWhereCode ="<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strWidth ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strWithinFiveHours ="5Сʱ<EFBFBD><EFBFBD>";
$strWithinOneHour ="1Сʱ<EFBFBD><EFBFBD>";
$strWorkStatus ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬";
$strYear ="<EFBFBD><EFBFBD>";
$strYes ="<EFBFBD><EFBFBD>";
$strYesterday ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strInUseAll ="ʹ<EFBFBD><EFBFBD><><C8AB>";
$strPortStatus ="<EFBFBD>˿<EFBFBD>״̬";
$strAttempt ="<EFBFBD>Ժ<EFBFBD>";
$strStartTime ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strOprationRestriction ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ";
$strConfigurationRestriction ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ";
$strManagementRestriction ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ";
$strDesignRestriction ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ";
//add by lilong
$strSuccessful ="<EFBFBD>ɹ<EFBFBD>";
$strFail ="ʧ<EFBFBD><EFBFBD>";
$strSysType ="ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:";
$strAlamState ="<EFBFBD>澯״̬:";
$strAll ="ȫ<EFBFBD><EFBFBD>";
$strNotCleared ="δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCleared ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strSearch ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strClear ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCallerNumber ="<EFBFBD><EFBFBD><EFBFBD>к<EFBFBD><EFBFBD><EFBFBD>";
$strStatusInfo ="״̬<EFBFBD><EFBFBD>Ϣ";
$strVersion ="<EFBFBD>";
$strCentralOffice ="<EFBFBD>ֶ<EFBFBD><EFBFBD>";
$strRemoteDevice ="Զ<EFBFBD><EFBFBD><EFBFBD>";
$strSysStatus ="ϵͳ״̬";
$strMap ="<EFBFBD><EFBFBD>ͼ";
$strPane0Status ="ƽ<EFBFBD><EFBFBD>0 E1/T1״̬";
$strPane1Status ="ƽ<EFBFBD><EFBFBD>1 E1/T1״̬";
$strServer ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strServerSummaryInfo ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬";
$strPeripheral ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸״̬";
$strNotFoundAnyBTS ="û<EFBFBD>ҵ<EFBFBD>BTS";
$strNotFoundAnyBSC ="û<EFBFBD>ҵ<EFBFBD>BSC";
$strReload ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strImport ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPrevious ="<EFBFBD><EFBFBD>һҳ";
$strNext ="<EFBFBD><EFBFBD>һҳ";
//add by lilong
$strTitleAdvanced ="<EFBFBD>߼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTitleSpace =" > ";
$strCurrentTariff ="<EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strRent ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTariffRentID ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTariffRentChargeDate ="<EFBFBD><EFBFBD>ֵʱ<EFBFBD><EFBFBD>";
$strTariffRentChargeAmount ="<EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTariffRentCapFlag ="Cap Flag";
$strGet ="Get";
$strSet ="Set";
$strCompare ="<EFBFBD>Ƚ<EFBFBD>";
$strLoad ="Load";
$strSave ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strLock ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strUnlock ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strDailingPrefix ="<EFBFBD><EFBFBD>ͷ";
$strTrunkGroup ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCell ="С<EFBFBD><EFBFBD>";
$strClockReference ="ʱ<EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>";
$strParameter ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strBHCA ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><EFBFBD>";
$strData ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strFlow ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><EFBFBD>";
$strAnalysis ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTitlePerformance ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><EFBFBD>";
$strTariffPlan ="<EFBFBD><EFBFBD><EFBFBD>ʼƻ<EFBFBD>";
$strBasicTariff ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strHoliday ="<EFBFBD>ڼ<EFBFBD><EFBFBD><EFBFBD>";
$strMultiServices ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD>";
$strPlanManage ="<EFBFBD>ƻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strMessageLength ="<EFBFBD><EFBFBD><EFBFBD>ְ<EFBFBD><EFBFBD><EFBFBD>";
$strConfiguration ="ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
//added by xiehua
$strTitleConfiguration ="ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strTitleAccount ="<EFBFBD>˻<EFBFBD><EFBFBD><EFBFBD>Ϣ";
$strTitlePerformance ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><EFBFBD>";
$strSubscriberManage ="<EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strRefreshCard ="<EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD>";
$strSubscriber ="<EFBFBD>û<EFBFBD>";
$strLog ="<EFBFBD><EFBFBD>־";
$strMaintenance ="ϵͳά<EFBFBD><EFBFBD>";
$strLink ="<EFBFBD><EFBFBD>·";
$strNetwork ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strBackupRestore ="<EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><EFBFBD>ݺͻָ<EFBFBD>";
$strDualServerMode ="˫<EFBFBD><EFBFBD>ģʽ";
$strCharge ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strAdvanced ="<EFBFBD>߼<EFBFBD>";
$strPerformance ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strGetAll ="Get All";
//added by Cui Ticun
$strDiscountID ="<EFBFBD>ۿۺ<EFBFBD>";
$strFreeChargeUnit ="<EFBFBD><EFBFBD><EFBFBD>Ѽ<EFBFBD>ʱ<EFBFBD><EFBFBD>λ";
$strFav_call ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strFav_listedtion ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strUndo ="ȡ<EFBFBD><EFBFBD>";
$strLinkset ="<EFBFBD><EFBFBD>·<EFBFBD><EFBFBD>";
$strLink ="<EFBFBD><EFBFBD>·";
$strLocalNode ="<EFBFBD><EFBFBD><EFBFBD>ط<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ";
$strNetworkCode ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strMtTariff ="<EFBFBD><EFBFBD><EFBFBD>з<EFBFBD><EFBFBD><EFBFBD>";
$strSMContent ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPriority ="<EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD>";
$strTimeToLive ="<EFBFBD><EFBFBD>Чʱ<EFBFBD><EFBFBD>";
$strSent ="<EFBFBD><EFBFBD><EFBFBD>ͳɹ<EFBFBD>";
$strDiscarded ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPending ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strCaller ="<EFBFBD><EFBFBD><EFBFBD>к<EFBFBD><EFBFBD><EFBFBD>";
$strCalled ="<EFBFBD><EFBFBD><EFBFBD>к<EFBFBD><EFBFBD><EFBFBD>";
$strUpdate ="ˢ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>";
$strLastAttempt ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD>";
$strGttObjects ="GTT Objects";
//add by Jianhui Zheng
$strE164Number="E164 <20><><EFBFBD><EFBFBD>";
$strUndo="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strModule="ģ<EFBFBD><EFBFBD>";
$strVMSOrVSS="VSS";
$strSMSEG="SMEG";
/***********************<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>***************************/
$STR_CONF_COMMAND_ERR_0000 ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>";
//ERR_001*:should prompt the operator "Check the device's status"
$STR_CONF_PROMPT_001 ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸״̬";
$STR_CONF_COMMAND_ERR_0011 ="OMC<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸IP";
$STR_CONF_COMMAND_ERR_0012 ="<EFBFBD>豸IP<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
//ERR_002*:should prompt the operator "Check the software version of OMC and device"
$STR_CONF_PROMPT_002 ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>OMC<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$STR_CONF_COMMAND_ERR_0021 ="OMC<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ";
$STR_CONF_COMMAND_ERR_0022 ="OMC<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>кõ<EFBFBD>ֵ";
//ERR_003*:should prompt the operator "Check the OMC's status or send command again"
$STR_CONF_PROMPT_003 ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>OMC״̬<EFBFBD><EFBFBD><EFBFBD>ط<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$STR_CONF_COMMAND_ERR_0031 ="OMC<EFBFBD><EFBFBD><EFBFBD><EFBFBD>SNMP<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$STR_CONF_COMMAND_ERR_0032 ="OMC<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$STR_CONF_COMMAND_ERR_0033 ="OMC<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̫<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>з<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
//ERR_004*:should prompt the operator "Check the device's status or send command again"
$STR_CONF_PROMPT_004 ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<EFBFBD><EFBFBD><EFBFBD>ط<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ȷ<EFBFBD><C8B7>OMC<4D>ͶԶ˷<D4B6><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$STR_CONF_COMMAND_ERR_0041 ="<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>Ч";
$STR_CONF_COMMAND_ERR_0042 ="<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$STR_CONF_COMMAND_ERR_0043 ="<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD>ʱ";
$STR_CONF_COMMAND_ERR_9999 ="δ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
$strPleaseInputIndexNo ="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Index";
$indexNoDefinedBy ="Index is defined by";
?>

View File

@@ -0,0 +1,334 @@
<?php
/*************************************************************************
* <20>ļ<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
* <20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
* 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE><EFBFBD><EFBFBD>
* 2<><32>ϵͳ<CFB5><CDB3><EFBFBD>ò<EFBFBD><C3B2><EFBFBD><EFBFBD>
* 3<><33><EFBFBD><EFBFBD><EFBFBD>ʿ<EFBFBD><CABF><EFBFBD>
*
* <20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD>ֵİ<D6B5><C4B0><EFBFBD><EFBFBD>ļ<EFBFBD>
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:lib.inc
*
*
* <20><><EFBFBD>ߣ<EFBFBD>
*
*<2A>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
*NO.1
*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<>
*<2A>޸<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD> ɾ<><C9BE>һЩ<D2BB><D0A9><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD>µ<EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*************************************************************************/
//==============================<3D><>OMC<4D><43><EFBFBD><EFBFBD><EFBFBD>Ͷ<EFBFBD><CDB6><EFBFBD>============================
$omcTypeArr=array(
array(typeNo=>'0', name=>'WXC2 OMC', path=>'wxc2_omc'),
array(typeNo=>'1', name=>'GMSC OMC', path=>'gmsc_omc'),
array(typeNo=>'2', name=>'MSC OMC', path=>'msc_omc'),
array(typeNo=>'3', name=>'HLR OMC', path=>'hlr_omc'),
array(typeNo=>'4', name=>'AUC OMC', path=>'auc_omc'),
array(typeNo=>'5', name=>'PPS OMC', path=>'pps_omc'),
array(typeNo=>'6', name=>'SMSC OMC', path=>'smsc_omc'),
array(typeNo=>'7', name=>'BSS OMC', path=>'bss_omc'),
array(typeNo=>'8', name=>'EIR OMC', path=>'eir_omc'),
array(typeNo=>'9', name=>'HBSC OMC', path=>'hbsc_omc'),
array(typeNo=>'10', name=>'SN OMC', path=>'sn_omc')
);
//echo "cofnig $PHP_SELF";
if(strlen($selectedOmcPath) > 0){
$thisOmcPath=$selectedOmcPath;
}else{
$pathArr=explode('/',$PHP_SELF);
$thisOmcPath=$pathArr[1];
}
for($ii=0;$ii<sizeof($omcTypeArr);$ii++){
//echo "<br>if($thisOmcPath == {$omcTypeArr[$ii][path]})";
if($thisOmcPath == $omcTypeArr[$ii][path]){
$thisOmcType= $omcTypeArr[$ii][typeNo];
break;
}
}
//===============================OMC˵<43><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>==============================================================
$COMPANY_NAME = "InterWave";
$COMPANY_WEBSITE = "www.iwv.com";
$COMPANY_E_MAIL = "Help@iwv.com";
$SYSTEM_VERSION = $omcTypeArr[$thisOmcType][name]."<br>R3V3_09";
$SYSTEM_VERSION_ISSUE_DATE = "2002-11-19";
$OMC_NAME = $omcTypeArr[$thisOmcType][name];
$OMC_VERSION = "R6V5_10";
$OMC_VERSION_ISSUE_DATE = "2002-10-21";
$WELCOME_WORDS = "WELCOME TO $OMC_NAME";
$COPY_RIGHT_WORDS = "Copyright 2001-2002 iwv.com All rights reserved.";
//==============================<3D><>OMC<4D><43>URL=================================================================
$host_ip = getenv("HTTP_HOST");
//echo "<br>host_ip=$host_ip";
//<2F>û<EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if($userInfo[language] == 'chn'){
require("../../inc/chinese_gb.inc");
$USER_GUIDE_DIR = "../../../guide/index_cn.htm";
$language=chn;
$language_type = 1;
//}elseif ($language == 'eng'){
}else{
require("../../inc/english.inc");
$USER_GUIDE_DIR = "../../../guide/index_en.htm";
$language=eng;
$language_type = 0;
}
//=============================<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>==============================================================
$load_sys_type=0;//<2F><>HLR<4C>йص<D0B9>CSV<53><56><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(msc-->0/hlr-->1/pps-->2);
//=============================<3D><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD>=================================================================
//---------------<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-----------------
//OMC-0
$handle=fopen("../../inc/mysqlpw.inc","r");
$mysqluser=str_rot13(trim(fgets($handle)));
$mysqlpw=str_rot13(trim(fgets($handle)));
fclose($handle);
$OMC_server[0]['host'] = 'localhost'; // MySQL hostname<6D><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$OMC_server[0]['user'] = $mysqluser; // MySQL user (only needed with basic auth)
$OMC_server[0]['password'] = $mysqlpw; // MySQL password (only needed with basic auth)
$OMC_server[0]['port'] = ''; // MySQL port - leave blank for default port
$OMC_server[0]['adv_auth'] = false; // Use advanced authentication?
$OMC_server[0]['adv_user'] = ''; // MySQL standard user (only needed with advanced auth)
$OMC_server[0]['adv_pass'] = ''; // MySQL standard password (only needed with advanced auth)
$OMC_server[0]['only_db'] = ''; // If set to a db-name, only this db is accessible
$OMC_server[0]['verbose'] = 'master server'; // Verbose name for this host - leave blank to show the hostname
//OMC-1
$OMC_server[1]['host'] = 'omc-1';
$OMC_server[1]['user'] = $mysqluser;
$OMC_server[1]['password'] = $mysqlpw;
$OMC_server[1]['port'] = '';
$OMC_server[1]['adv_auth'] = false;
$OMC_server[1]['adv_user'] = '';
$OMC_server[1]['adv_pass'] = '';
$OMC_server[1]['only_db'] = '';
$OMC_server[1]['verbose'] = 'second server';
//<2F><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD>
$link[0] = mysql_pconnect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password']);
if(!$link[0]){//<2F><>ϧ<EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͵<EFBFBD><CDB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD>γ<EFBFBD><CEB3><EFBFBD><EFBFBD>޷<EFBFBD>ִ<EFBFBD><D6B4>
echo "<font color=ff0000 size=4>Connect databese error!! please check the server name or the user_id and password</font>";
exit();
}
//$link[1]=mysql_pconnect($OMC_server[1]['host'],$OMC_server[1]['user'],$OMC_server[1]['password']);
//-----------<2D><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD><EFBFBD><EFBFBD>-------------------
//<2F><><EFBFBD>ݿ<EFBFBD><DDBF>б<EFBFBD>
$omc_db = 'OMC_PUB'; //omc<6D><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD>
$cdr_db = 'CDR_DB'; //<2F><><EFBFBD>Ÿ<EFBFBD><C5B8>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$csta_db = 'CSTA_DB'; //<2F><><EFBFBD>Ż<EFBFBD><C5BB><EFBFBD>ͳ<EFBFBD><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$auc_para = 'AUC_Para'; //<2F><><EFBFBD><EFBFBD>AUC<55><43><EFBFBD><EFBFBD>
$eir_para = 'EIR_Para'; //<2F><><EFBFBD><EFBFBD>EIR<49><52><EFBFBD><EFBFBD>
$account_db = 'account_db';
$bill_db = 'tariff_db';
$hlr_db = 'hlr_db';
$bss_db = 'BssOmcDb';
$refresh_card_db = 'refresh_card';
$parameter_db = 'parameter_db';
$sysconf_table = 'sysConf'; //<2F><EFBFBD><E8B1B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8B1B8>Ϣ<EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD>
$paramConf_table = 'paramConf'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$alarmconf_table = 'sysAlarmConf'; //<2F><EFBFBD><E6BEAF><EFBFBD><EFBFBD>
$sysStat_table = 'sysStat'; //״̬<D7B4><CCAC>Ϣ<EFBFBD><CFA2>
$sysoperlog_table = 'sysOperLog'; //<2F><>־<EFBFBD><D6BE>
$sysoperconf_table = 'sysOperConf'; //<2F><>־<EFBFBD><D6BE><EFBFBD>Ͷ<EFBFBD><CDB6><EFBFBD><EFBFBD><EFBFBD>
$syscsvconf_table = 'sysCsvConf'; //CSVģ<56><EFBFBD><E5B6A8>
$cstadefine_table = 'cstaDefine'; //csta<74><61><EFBFBD><EFBFBD>
$cdrdefine_table = 'cdrSource'; //cdr<64><72><EFBFBD><EFBFBD>
//==============================ƽ̨<C6BD><CCA8><EFBFBD>Ͷ<EFBFBD><CDB6><EFBFBD>================================================
$PlatTypeDefArr=array(
array('num'=> '0', 'remark' => 'EMS', sysTypeNo => '0', maxSysNum => '2', platAgent => '0'),
array('num'=> '1', 'remark' => 'GMSC', sysTypeNo => '310', maxSysNum => '2', platAgent => '1'),
array('num'=> '2', 'remark' => 'MSC', sysTypeNo => '320', maxSysNum => '2', platAgent => '2'),
array('num'=> '3', 'remark' => 'HLR', sysTypeNo => '330', maxSysNum => '2', platAgent => '2'),
array('num'=> '4', 'remark' => 'AUC', sysTypeNo => '340', maxSysNum => '2', platAgent => '4'),
array('num'=> '5', 'remark' => 'PPS', sysTypeNo => '360', maxSysNum => '2', platAgent => '5'),
array('num'=> '6', 'remark' => 'SMSC', sysTypeNo => '350', maxSysNum => '2', platAgent => '6'),
array('num'=> '7', 'remark' => 'EIR', sysTypeNo => '380', maxSysNum => '2', platAgent => '4'),
array('num'=> '8', 'remark' => 'VSS', sysTypeNo => '390', maxSysNum => '10', platAgent => '4'),
array('num'=> '9', 'remark' => 'MSS', sysTypeNo => '388', maxSysNum => '2', platAgent => '4'),
array('num'=> '10', 'remark' => 'MNP', sysTypeNo => '370', maxSysNum => '2', platAgent => '4'),
array('num'=> '11', 'remark' => 'AAS', sysTypeNo => '311', maxSysNum => '2', platAgent => '2'),
array('num'=> '12', 'remark' => 'SMEG', sysTypeNo => '355', maxSysNum => '2', platAgent => '1'),
array('num'=> '13', 'remark' => 'OPPS', sysTypeNo => '375', maxSysNum => '2', platAgent => '2'),
array('num'=> '14', 'remark' => 'MRFC', sysTypeNo => '385', maxSysNum => '2', platAgent => '2'),
array('num'=> '15', 'remark' => 'iPALIM', sysTypeNo => '378', maxSysNum => '2', platAgent => '2'),
array('num'=> '16', 'remark' => 'iRLS', sysTypeNo => '379', maxSysNum => '2', platAgent => '2'),
array('num'=> '17', 'remark' => 'MHC', sysTypeNo => '386', maxSysNum => '2', platAgent => '2'),
array('num'=> '18', 'remark' => 'RCM', sysTypeNo => '395', maxSysNum => '2', platAgent => '2'),
);
//==============================<3D><EFBFBD>ȼ<EFBFBD><C8BC>趨================================================
$alarmLevelDefArr=array(
array(value => '0', remark => $strClearedAlarm, color => '#0000FF'),
array(value => '1', remark => $strCriticalAlarm, color => '#FF0000'),
array(value => '2', remark => $strMajorAlarm, color => '#980030'),
array(value => '3', remark => $strMinorAlarm, color => '#980030'),
array(value => '4', remark => $strWarningAlarm, color => '#980030'),
//array(value => '5', remark => $strClearedAlarm, color => '#0000FF'),
);
//=============================ϵͳ<CFB5><CDB3><EFBFBD>ò<EFBFBD><C3B2><EFBFBD>==================================
$separator =','; //csv<73><76><EFBFBD>ݵ<EFBFBD><DDB5>ֶηָ<CEB7><D6B8><EFBFBD>
$heatbeat_overtime = 48; //heartbeat<61>ij<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>á<EFBFBD><C3A1><EFBFBD>λΪ<CEBB>
/*<2A><>ע<EFBFBD>͵<EFBFBD><CDB5>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>彫ɾ<E5BDAB><C9BE>
$def_sys_param_sign = 99; //ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD>ţ<EFBFBD><C5A3>ñ<EFBFBD><C3B1>Ų<EFBFBD><C5B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD>š<EFBFBD>
$total_subsys_num = 8; //ÿ<><C3BF>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$len_of_sys_num = 2; //sys_id<69><64><EFBFBD>ŷ<EFBFBD>ʽ<EFBFBD><CABD>ϵͳ<CFB5><CDB3><EFBFBD>ŵij<C5B5><C4B3><EFBFBD>
$len_of_subsys_num = 2; //sys_id<69><64><EFBFBD>ŷ<EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD>ŵij<C5B5><C4B3><EFBFBD>
$def_len_of_record = 32; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD>¼Ĭ<C2BC><C4AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Byte<74><65><EFBFBD><EFBFBD>
*/
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><E5A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>
$server_work_status=array(
array('num'=> '0','remark' => $strRestart, 'color' => '#FF0000'),
array('num'=> '1','remark' => $strInitialize, 'color' => '#FF0000'),
array('num'=> '2','remark' => $strNormal, 'color' => '#0000FF'),
array('num'=> '3','remark' => $strPause, 'color' => '#FF0000'),
array('num'=> '4','remark' => $strStop, 'color' => '#FF0000')
);
//================================<3D><><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD>趨======================================
//---------------------<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD>޶<EFBFBD><DEB6><EFBFBD>------------------------------
/*
$privilegeDefArr=array(
array('permit' => '0', 'remark' => 'any one', 'show'=>0),
array('permit' => '1', 'remark' => $strOprationRestriction, 'show'=>1),
array('permit' => '2', 'remark' => $strConfigurationRestriction, 'show'=>1),
array('permit' => '3', 'remark' => $strManagementRestriction, 'show'=>1),
array('permit' => '4', 'remark' => 'System management', 'show'=>1),
array('permit' => '5', 'remark' => 'Development', 'show'=>0)
);
*/
$privilegeDefArr=array(
array('permit' => '0', 'remark' => 'any one', 'show'=>0),
array('permit' => '1', 'remark' => $strOprationRestriction, 'show'=>1),
array('permit' => '2', 'remark' => 'Technician', 'show'=>1),
array('permit' => '3', 'remark' => 'Engineer', 'show'=>1),
array('permit' => '4', 'remark' => $strManagementRestriction, 'show'=>1),
array('permit' => '5', 'remark' => 'Development', 'show'=>0)
);
//-------------------------<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0BBAE>ҳ<EFBFBD><D2B3>-----------------------
//ÿ<><C3BF>dir[$n][0]<5D><><EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD>Ȩ<EFBFBD>޵ȼ<DEB5>ֵ
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>oper_type<70>Ķ<EFBFBD><C4B6><EFBFBD>
$omcDir = '/'.$omcTypeArr[$thisOmcType][path];
//$omcDir = '/omcWeb_v5';
//echo "<br> omcDir=$omcDir";
//---------------every one (<28><><EFBFBD><EFBFBD>δ<EFBFBD><CEB4>¼<EFBFBD>û<EFBFBD>)<29>ɷ<EFBFBD><C9B7>ʵ<EFBFBD>Ŀ¼-----------------
$dirAccessDefArr[0][0] = $omcDir.'/security/login/';
$dirAccessDefArr[0][1] = $omcDir.'/security/logout/';
//---------------class one:operator <20>ɷ<EFBFBD><C9B7>ʵ<EFBFBD>Ŀ¼-----------------
$dirAccessDefArr[1][0] = $omcDir.'/security/';
$dirAccessDefArr[1][1] = $omcDir.'/frame/';
$dirAccessDefArr[1][2] = $omcDir.'/fault/';
//---------------class two:engineer <20>ɷ<EFBFBD><C9B7>ʵ<EFBFBD>Ŀ¼-----------------
$dirAccessDefArr[2][0] = $omcDir.'/security/';
$dirAccessDefArr[2][1] = $omcDir.'/frame/';
$dirAccessDefArr[2][2] = $omcDir.'/fault/';
$dirAccessDefArr[2][3] = $omcDir.'/performance/';
$dirAccessDefArr[2][4] = $omcDir.'/account/';
$dirAccessDefArr[2][5] = $omcDir.'/element/';
//---------------class three:manager <20>ɷ<EFBFBD><C9B7>ʵ<EFBFBD>Ŀ¼-----------------
$dirAccessDefArr[3][0] = $omcDir.'/security/';
$dirAccessDefArr[3][1] = $omcDir.'/frame/';
$dirAccessDefArr[3][2] = $omcDir.'/fault/';
$dirAccessDefArr[3][3] = $omcDir.'/account/';
$dirAccessDefArr[3][4] = $omcDir.'/configuration/';
$dirAccessDefArr[3][5] = $omcDir.'/element/';
$dirAccessDefArr[3][6] = $omcDir.'/performance/';
//--------------class four:system manager <20>ɷ<EFBFBD><C9B7>ʵ<EFBFBD>Ŀ¼-----------------
$dirAccessDefArr[4][0] = $omcDir.'/security/';
$dirAccessDefArr[4][1] = $omcDir.'/frame/';
$dirAccessDefArr[4][2] = $omcDir.'/fault/';
$dirAccessDefArr[4][3] = $omcDir.'/account/';
$dirAccessDefArr[4][4] = $omcDir.'/configuration/';
$dirAccessDefArr[4][5] = $omcDir.'/element/';
$dirAccessDefArr[4][6] = $omcDir.'/performance/';
//--------------developer <20>ɷ<EFBFBD><C9B7>ʵ<EFBFBD>Ŀ¼-----------------
$dirAccessDefArr[5][0] = $omcDir.'/security/';
$dirAccessDefArr[5][1] = $omcDir.'/frame/';
$dirAccessDefArr[5][2] = $omcDir.'/fault/';
$dirAccessDefArr[5][3] = $omcDir.'/account/';
$dirAccessDefArr[5][4] = $omcDir.'/configuration/';
$dirAccessDefArr[5][5] = $omcDir.'/element/';
$dirAccessDefArr[5][6] = $omcDir.'/performance/';
$dirAccessDefArr[5][7] = $omcDir.'/sysDefine/';
?>
<?php
//Like VSS,TMG,PLAT they don't include the public parameter
//it must store the parameter into separate param table, not param_99
//return 1-pass
function checkIndependSystem($sysTypeNo)
{
//PLAT
if($sysTypeNo[0] == '2')
return 1;
switch($sysTypeNo)
{
//VSS
case 390:
//TMG
case 391:
//AMRMG
case 392:
//GbC
case 393:
return 1;
break;
}
return 0;
}
//Like SMPP,MTP3,SCCP, it has subSysNo in the param table
function checkPlatWhoHaveSubSysNo($sysTypeNo,$sysNo)
{
//MSS dual plat has the same parameter
if($sysNo != 9)
{
switch($sysTypeNo)
{
//SMPP
case 260:
//MTP3
case 222:
//SCCP
case 223:
return 1;
break;
}
}
return 0;
}
?>

View File

@@ -0,0 +1,506 @@
<?php
//<2F><><EFBFBD>ôʿ<C3B4>
$strAbnormal ="Abnormal";
$strAccessManagement ="Access management";
$strAccountAdmin ="Account admin";
$strAccountCannotBeEmpty ="Account cannot be empty";
$strAccountName ="Account name";
$strAdd ="Add";
$strAddCustomer ="Add customer";
$strAddDevice ="Add device";
$strAddFails ="Add fails";
$strAddOperator ="Add operator";
$strAddOption ="Add options";
$strAddRoute ="Add route";
$strAddSucceeds ="Add succeeds";
$strAdvancedSetup ="Advanced";
$strAlarmClean ="Alarm clean";
$strAlarmContent ="Alarm description";
$strAlarmLevel ="Alarm level";
$strAlarmLog ="Alarm log";
$strAlarmTime ="Alarm time";
$strAlarmType ="Alarm type";
$strAllAccounts ="All accounts";
$strAllCall ="All call";
$strAllE1 ="All E1";
$strAllE1ID ="All E1 ID";
$strAllSubsys ="All subsys";
$strAllSystems ="All sys";
$strAllTheTypes ="All the types";
$strAlterSymbol ="Alter Symbol";
$strAppealTime ="Appeal time";
$strApplicableType ="Applicable type";
$strAreYouSureToDelete ="Are you sure to delete ";
$strAreYouSureToEdit ="Are you sure to edit";
$strAttribute ="Attribute";
$strAuthority ="Authority";
$strAuthResult ="Authentication result";
$strBack ="Back";
$strBasicStatus ="Status";
$strBinNumber ="Binary";
$strBringToRest ="Bring to rest";
$strCallAnalysis ="Report & analysis";
$strCalledBusy ="Called busy";
$strCallFailure ="Call failure";
$strCallingPullDown ="Caller hang up";
$strCallLoss ="Failure call";
$strCallProcess ="Call Process ";
$strCallStatistics ="Call statistics";
$strCallType ="Call_type";
$strCancel ="Cancel";
$strCDRAdmin ="CDR admin";
$strCheckInfo ="Check info";
$strCheckResult ="Check result";
$strChinese ="Chinese";
$strClear ="Clear";
$strClearedAlarm ="Cleared";
$strClearTime ="Clear time";
$strCommandBeExecute ="Command be execute";
$strCommandControl ="Command monitor";
$strComponentCode ="Component code";
$strComponentName ="Component name";
$strConfirm ="Confirm";
$strConfirmPassword ="Confirm password";
$strCPULoad ="CPU loading";
$strCreationTime ="Creation Time";
$strCriticalAlarm ="Critical";
$strCustermerAdmin ="Custermer admin";
$strCustomerInformation ="Customer information";
$strCustomerManagement ="Customer management";
$strCustomerQuery ="Customer query";
$strSubscriberStatus ="Subscriber Status";
$strDaemonOperationFailure ="Daemon operation failure";
$strDaemonOperationSuccess ="Daemon operation success";
$strDaemonOperationTimeout ="Daemon operation timeout";
$strDaemonRecordNoChange ="Daemon records no change in four seconds";
$strDataBackup ="Data backup";
$strDatabase ="Database";
$strDatabaseBackup ="Database backup";
$strDatabaseBackup ="Database backup";
$strDate ="Date";
$strDay ="D";
$strDecNumber ="Decimal";
$strDelete ="Delete";
$strDeleteFailure ="Delete failure";
$strDeleteMode ="Delete";
$strDeleteQueryResult ="Delete";
$strDeleteRoute ="Delete route";
$strDeleteSuccess ="Delete suceess";
$strDeleteSystem ="Delete system";
$strDetailDescription ="Detail description";
$strDevice ="Device";
$strDeviceType ="Device type";
$strDisable ="Disable";
$strDisplayRecords ="Record";
$strDownload ="Download";
$strE1ID ="E1 ID";
$strE1Status ="E1 status";
$strEdit ="Edit";
$strEditFailure ="Edit failure";
$strEditMode ="Edit mode";
$strEditObject ="Edit object";
$strEditSuccess ="Edit success";
$strEnable ="Enable";
$strEnglish ="Englsih";
$strEquipment ="Equipment";
$strError ="Error";
$strEventType ="Event type";
$strExample ="Example";
$strExit ="Exit";
$strFailure ="Failure";
$strFileUpload ="File upload";
$strFinish ="Finish";
$strFriday ="Friday";
$strFrom ="From";
$strGlobalSystemPara ="Parameter transfer select and control";
$strGraphTemplate ="Graph ";
$strGuide ="Guide";
$strHalt ="Halt";
$strHardDiskSpace ="Hard disk space";
$strHelp ="Help";
$strHexadecNumber ="Hex";
$strHour ="H";
$strIncoming ="Incoming";
$strIncomingLimit ="In_Restriction";
$strInitialize ="Initialize";
$strInputAccount ="Input account";
$strInputBox ="Input box";
$strInputPasswordIsNotCoherent ="Input Password is not coherent";
$strInvalidUserName ="Invalid user name";
$strItem ="Item";
$strKeyWord ="Key word";
$strLandscape ="Landscape";
$strLANModule ="LAN module";
$strLastSevenDay ="Last 7 days";
$strLegend ="Legend";
$strLineBusy ="Line busy";
$strList ="List";
$strLoadIn ="Load in";
$strLoadOut ="Load out";
$strLoadOutOrLoadIn ="Need load out or load in";
$strLocal ="Local";
$strLocalCall ="Local call";
$strLocalQuery ="Local query";
$strLocalTrunkGroup ="Local trunk group";
$strLoginInfo ="Login info";
$strLogon ="Logon";
$strLogonAgain ="Try again";
$strLogonFails ="inviable user name";
$strLogType ="Log type";
$strMainMenu ="Main menu";
$strMajorAlarm ="Major";
$strMapUpload ="Map upload";
$strMasterClock ="Master clock";
$strMemoryWaitStatus ="Share memory be waiting more than 4 seconds";
$strMenu ="Menu";
$strMinorAlarm ="Minor";
$strMinute ="M";
$strModificationFails ="Modification fails";
$strModificationSucceeds ="Modification succeeds";
$strModifyPassword ="Modify password";
$strMonday ="Monday";
$strMonth ="M";
$strMSISDN ="Tel Number";
$strMSStatus ="MS Status";
$strMultipleBox ="Multiple box";
$strName ="Name";
$strNewPassword ="New password";
$strNextPage ="next page";
$strNo ="No";
$strNormal ="Normal";
$strNotFindRecord ="No record found";
$strNothing ="None";
$strObjectID ="Object ID";
$strOldPassword ="Old password";
$strOperateDatabaseFailure ="Operate database failure!";
$strOperateDatabaseSuccess ="Operate database success!";
$strOperationAuthority ="Access restriction";
$strOperationLog ="Operation log";
$strOperationSpecification ="Operation specification";
$strOperator ="Operator";
$strOperatorAccount ="Operator name";
$strOperatorList ="Operator list";
$strOption ="Option";
$strOrderObject ="Order object";
$strOrderType ="Order type";
$strOutgoing ="Outgoing";
$strOutgoingLimit ="Out_Restriction";
$strPageNumberHasAMistake ="Page no. has a mistake!";
$strParaEdit ="parameter edit";
$strParaLength ="Parameter length";
$strParaMaintenance ="Configuration";
$strParameterDescription ="Parameter description";
$strParameterSetup ="Parameter Setup";
$strParaNumber ="parameters number";
$strParaStructure ="Parameters structure";
$strParaType ="parameter type";
$strPassword ="Password";
$strPasswordCannotBeEmpty ="Password cannot be empty";
$strPasswordDigitHasAMistake ="Password digit has a mistake";
$strPasswordModificationSucceeds ="Password modification succeeds";
$strPause ="Pause";
$strPels ="Pixel";
$strPercent ="Percent";
$strPhysicalAddress ="Physical address";
$strPhysicalLayer ="Physical layer";
$strPhysicsMemory ="Physical memory";
$strPleaseConfirmYourPassword ="Please confirm your password";
$strPleaseInputRealName ="Please input real name";
$strPleaseLogonSystem ="Please logon system";
$strPortrait ="Portrait";
$strPrefixNumber ="Prefix number";
$strPreview ="Preview";
$strPreviousPage ="previous page";
$strPrimaryLanguage ="Primary language";
$strProcessStatus ="Process status";
$strProduceTemplateCode ="Produce template code";
$strPullDownMenu ="Pull-down menu";
$strQuery ="Query";
$strQueryNumberRange ="Tel number range:";
$strRateAdmin ="Tariff Admin";
$strRealName ="Real name";
$strRefreshTime ="Refresh time";
$strRefresh ="Refresh";
$strRemainAll ="free/capacity";
$strRemark ="Remarks"; //sometime del this var
$strRemarks ="Remarks";
$strRemote ="Remote";
$strRepairResult ="Repair result";
$strRepeatInput ="Repeat input:";
$strRepeatInputtingPassword ="Confirm password";
$strReset ="Reset";
$strResponse ="Response";
$strRestart ="Restart";
$strResult ="Result";
$strReturn ="Return";
$strRoute ="Route";
$strSaturday ="Saturday";
$strSave ="Save";
$strSaveFailure ="Save failure";
$strSaveSuccess ="Save success";
$strSearch ="Search";
$strSecond ="S";
$strSecondLanguage ="Secondary language";
$strSelect ="select";
$strSender ="Sender";
$strSIMNumber ="IMSI";
$strSixHours ="6 hours";
$strSize ="Size";
$strSoftwareDownload ="Software download";
$strSoftwareUpdate ="Software update";
$strSoftwareUpload ="Software upload";
$strSorryYouHaveNotTheAuthority ="Sorry, You have not the authority!";
$strSpecification ="Specification";
$strSpecifyTime ="Specify time";
$strStatisticsLengend ="Graph";
$strStatus ="Status";
$strStatusInformation ="status information";
$strStatusMonitor ="Status monitor";
$strStop ="Stop";
$strSubmit ="Submit";
$strSubmit ="Submit";
$strSubsystem ="Subsystem";
$strSubsystemID ="Subsystem ID";
$strSubsystemPara ="Subsystem parameters";
$strSubsystemStatus ="Subsystem status";
$strSubsystemType ="Subsystem type";
$strSuccess ="Success";
$strSunday ="Sunday";
$strSwitchAdmin ="Switch admin";
$strSwitchPara ="Switch parameters";
$strSystem ="System";
$strSystemAdmin ="System admin";
$strSystemID ="System ID";
$strSystemID ="System ID";
$strSystemLoginPassword ="Login password";
$strSystemPara ="System parameters";
$strSystemStatus ="System status";
$strSystemType ="System type";
$strTable ="Table";
$strTemplateSetup ="Template setup";
$strTheInputPasswordIsIncorrect ="The input Password is incorrect";
$strTheNumber ="No.";
$strTheRecordExits ="The record exits";
$strThisMonth ="This month";
$strThisWeek ="This week";
$strThreeHours ="3 hours";
$strThursday ="Thursday";
$strTime ="Time";
$strTimeFormat ="Time format";
$strTimes ="Times";
$strTo ="to";
$strToday ="Today";
$strToPage ="To";
$strTotal ="Total";
$strTotalPages ="Total pages";
$strTotalRecords ="Total records";
$strTransportLayer ="Transport layer";
$strTrunkGroup ="Trunk group";
$strTuesday ="Tuesday";
$strTwelveHours ="12 hours";
$strTwentyFourHours ="24 hours";
$strTwoHours ="2 hours";
$strType ="Type";
$strUndefinedAlarm ="Undefined";
$strUninstall ="N/A";
$strUninstalled ="N/A";
$strUpdatedTime ="Update time";
$strUpload ="Upload";
$strUploadFailure ="Upload failure";
$strUploadSuccess ="Upload success";
$strUserManual ="User manual";
$strUserName ="User name";
$strUserNameCannotBeEmpty ="User name cannot be empty";
$strValue ="Value";
$strValue ="Value";
$strVersion ="vesion";
$strViewThisPageNeedJavaPlugin ="View this page need install java plugin";
$strVirtualMemory ="Virtual memory";
$strWarningAlarm ="Warning";
$strWednesday ="Wednesday";
$strWhereCode ="where condition";
$strWidth ="Width";
$strWithinFiveHours ="5 hours";
$strWithinOneHour ="1 hour";
$strWorkStatus ="Work status";
$strYear ="Y";
$strYes ="Yes";
$strYesterday ="Yesterday";
$strInUseAll ="in use/capacity";
$strPortStatus ="Port status";
$strAttempt ="Attempt";
$strStartTime ="Start time";
$strOprationRestriction ="Operation";
$strConfigurationRestriction ="Configuration";
$strManagementRestriction ="Management";
$strDesignRestriction ="Design";
//add by lilong
$strSuccessful =" Successful";
$strFail =" Fail";
$strSysType ="System type:";
$strAlamState ="Alarm category:";
$strAll ="All";
$strNotCleared ="Not cleared";
$strCleared ="Cleared";
$strSearch ="Search";
$strClear ="Clear";
$strCallerNumber ="Caller number";
$strStatusInfo ="status";
$strVersion ="Version";
$strCentralOffice ="Central office";
$strRemoteDevice ="Remote";
$strSysStatus ="Status";
$strMap ="Map";
$strPane0Status ="CSC0-E1/T1 port status";
$strPane1Status ="CSC1-E1/T1 port status";
$strServer ="Server";
$strServerSummaryInfo ="Server summary information";
$strPeripheral ="Peripheral";
$strPeripheralSummaryInfo ="Peripheral summary information";
$strNotFoundAnyBTS ="No found any BTS";
$strNotFoundAnyBSC ="No Found any BSC";
$strReload ="Reload";
$strImport ="Import";
$strPrevious ="Previous";
$strNext ="Next";
//add by lilong
$strTitleAdvanced ="Advanced";
$strCurrentTariff ="Current tariff";
$strTitleSpace =" > ";
$strRent ="Rent";
$strTariffRentID ="ID";
$strTariffRentChargeDate ="Charge date";
$strTariffRentChargeAmount ="Charge amount";
$strTariffRentCapFlag ="Cap flag";
$strGet ="Get";
$strSet ="Set";
$strCompare ="Compare";
$strLoad ="Load";
$strSave ="Save";
$strLock ="Lock";
$strUnlock ="Unlock";
$strDailingPrefix ="Dailing prefix";
$strTrunkGroup ="Trunk group";
$strCell ="Cell";
$strClockReference ="Clock reference";
$strParameter ="Parameter";
$strBHCA ="BHCA";
$strData ="Data";
$strFlow ="Flow";
$strAnalysis ="Analysis";
$strTariffPlan ="Tariff plan";
$strBasicTariff ="Basic tariff";
$strHoliday ="Holiday";
$strMultiServices ="Multiple services";
$strPlanManage ="Plan management";
$strMessageLength ="Message length";
$strConfiguration ="Configuration";
//added by xiehua
$strTitleConfiguration ="Configuration";
$strTitleAccount ="Account";
$strTitlePerformance ="Performance";
$strSubscriberManage ="Subscriber";
$strRefreshCard ="Referesh card";
$strSubscriber ="Subscriber";
$strLog ="Log";
$strMaintenance ="Maintenance";
$strNetwork ="Network";
$strBackupRestore ="Backup&Restore";
$strDualServerMode ="Dual server mode";
$strCharge ="Charge";
$strAdvanced ="Advanced";
$strPerformance ="Performance";
$strGetAll ="Get All";
//added by Cui Ticun
$strDiscountID ="Discount ID";
$strFreeChargeUnit ="Free charge unit(s)";
$strFav_call ="Friends and family number call";
$strFav_listedtion ="Friends and family number list edition";
$strCf_Cug_call ="Forward + CUG call";
$strCf_Fav_call ="Forward + F&F call";
$strCug_Fav_call ="CUG + F&F call";
$strCf_Cug_Fav_call ="Forward + CUG + F&F call";
$strUndo ="Undo";
$strLinkset ="Linkset";
$strLink ="Link";
$strLocalNode ="Local node";
$strNetworkCode ="Network code";
$strMtTariff ="MT Tariff";
$strSMContent ="Content";
$strPriority ="Priority";
$strTimeToLive ="Time to live";
$strSent ="Sent";
$strDiscarded ="Discarded";
$strPending ="Pending";
$strCaller ="Caller #";
$strCalled ="Called #";
$strUpdate ="Update";
$strReceive ="Receive";
$strLastAttempt ="Last attempt";
$strGttObjects ="GTT Objects";
$strTitleGet="Get all Parameters from device";
$strTitleSet="Set all Parameters to device";
$flagColor = "#E6FFFF";
//add by Zheng Jianhui
$strE164Number="E164 Number";
$strUndo="Undo";
$strModule="Module";
$strVMSOrVSS="VSS";
$strSMSEG="SMEG";
/***********************Error and prompt display define***************************/
$STR_CONF_COMMAND_ERR_0000 ="Command successful";
//ERR_001*:should prompt the operator "Check the device's status"
$STR_CONF_PROMPT_01 ="Please check the device status";
$STR_CONF_COMMAND_ERR_0101 ="OMC cannot get the device IP";
$STR_CONF_COMMAND_ERR_0102 ="The device IP is error";
//ERR_002*:should prompt the operator "Check the software version of OMC and device"
$STR_CONF_PROMPT_02 ="Please check the software version of OMC and device";
$STR_CONF_COMMAND_ERR_0201 ="OMC cannot get the object value";
$STR_CONF_COMMAND_ERR_0202 ="OMC cannot get the instance value";
//ERR_003*:should prompt the operator "Check the OMC's status or send command again"
$STR_CONF_PROMPT_03 ="Please check the OMC status or send command again";
$STR_CONF_COMMAND_ERR_0301 ="OMC send snmp message failed";
$STR_CONF_COMMAND_ERR_0302 ="OMC command buffer is full";
$STR_CONF_COMMAND_ERR_0303 ="Network is busy or managed object response is too slow";
//ERR_04*:should prompt the operator "Check the device's status or send command again"
$STR_CONF_PROMPT_04 ="Please check the device status or send commands again.Before sending commands, please make sure OMC servers and managed servers are online.";
$STR_CONF_COMMAND_ERR_0401 ="Invailed response message";
$STR_CONF_COMMAND_ERR_0402 ="Error Response message";
$STR_CONF_COMMAND_ERR_0403 ="Response timeout";
//ERR_05*:Value Error
$STR_CONF_PROMPT_05 ="Please check the value range and syntax in the online help then try it again.";
$STR_CONF_COMMAND_ERR_0501 ="Too Big";
$STR_CONF_COMMAND_ERR_0502 ="No Such Name";
$STR_CONF_COMMAND_ERR_0503 ="Bad Value";
$STR_CONF_COMMAND_ERR_0504 ="Read Only";
$STR_CONF_COMMAND_ERR_0505 ="Generate Error";
$STR_CONF_COMMAND_ERR_0506 ="No Access";
$STR_CONF_COMMAND_ERR_0507 ="Wrong Type";
$STR_CONF_COMMAND_ERR_0508 ="Wrong Length";
$STR_CONF_COMMAND_ERR_0509 ="Wrong Encoding";
$STR_CONF_COMMAND_ERR_0510 ="Wrong Value";
$STR_CONF_COMMAND_ERR_0511 ="No Creation";
$STR_CONF_COMMAND_ERR_0512 ="Inconsistent Value";
$STR_CONF_COMMAND_ERR_0513 ="Resource Unavailabe";
$STR_CONF_COMMAND_ERR_0514 ="Commit Failed";
$STR_CONF_COMMAND_ERR_0515 ="Undo Failed";
$STR_CONF_COMMAND_ERR_0516 ="Authorization Error";
$STR_CONF_COMMAND_ERR_0517 ="No Writable";
$STR_CONF_COMMAND_ERR_0518 ="InconsistentName";
$STR_CONF_COMMAND_ERR_9999 ="Unknown error";
$strPleaseInputIndexNo ="Please input index No.";
$indexNoDefinedBy ="Index is defined by";
?>

View File

@@ -0,0 +1,134 @@
<!--
NS4=(document.layers)?1:0;
IE4=(document.all)?1:0;
ver4=(NS4||IE4)?1:0;
if(ver4)
{
with(document)
{
write("<STYLE TYPE='text/css'>");
if(NS4)
{
write(".parent {position:absolute; visibility:visible}");
write(".child {position:absolute; visibility:visible}");
write(".regular {position:absolute; visibility:visible}")
}
else
{
write(".child {display:none}")
}
write("</STYLE>");
}
}
function getIndex(el)
{
ind=null;
for(i=0;i<document.layers.length;i++)
{
whichEl=document.layers[i];
if(whichEl.id==el)
{
ind=i;
break;
}
}
return ind;
}
function arrange()
{
nextY=document.layers[firstInd].pageY+document.layers[firstInd].document.height;
for(i=firstInd+1;i<document.layers.length;i++)
{
whichEl=document.layers[i];
if(whichEl.visibility!="hide")
{
whichEl.pageY=nextY;
nextY+=whichEl.document.height;
}
}
}
function initIt()
{
if(!ver4)
return;
if(NS4)
{
for(i=0;i<document.layers.length;i++)
{
whichEl=document.layers[i];
if(whichEl.id.indexOf("Child")!=-1)
whichEl.visibility="hide";
}
arrange();
}
else
{
divColl=document.all.tags("DIV");
for(i=0;i<divColl.length;i++)
{
whichEl=divColl(i);
if(whichEl.className=="child")
whichEl.style.display="none";
}
}
}
function expandIt(el)
{
if(!ver4)
return;
if(IE4)
{
whichEl=eval(el+"Child");
if(whichEl.style.display=="none")
{
whichEl.style.display="block";
}
else
{
whichEl.style.display="none";
}
}
else
{
whichEl=eval("document."+el+"Child");
if(whichEl.visibility=="hide")
{
whichEl.visibility="show";
}
else
{
whichEl.visibility="hide";
}
arrange();
}
}
function expandsubIt(el)
{
if(!ver4)
return;
if(IE4)
{
document.all.subKB1Child.style.display="block";
}
else
{
document.KB1Child.subKB1Child.visibility="show";
arrange();
}
}
onload=initIt;
//-->

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,380 @@
<?php
session_start();
if (session_is_registered("userInfo")){
$selectedLanguage=$userInfo[language];
$language=$userInfo[language];
}
require("../../inc/lib.inc");
require("../sub_inc/sub_config.inc");
$session_timeout=getPubVar("HTTPSessionTimeout")-0;
if($session_timeout == 0)
$session_timeout=15*60;
else
$session_timeout=$session_timeout*60;
$if_pass=pageAccessChk($PHP_SELF);
if($if_pass < 0){
echo "<script language=\"javascript\">";
echo "var logon='Please Logon System';";
echo "alert(logon);";
echo "window.parent.parent.location.href=\"../../security/logout/logout.php\";";
echo "</script>";
exit();
}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
if($selectedLanguage == 'chn'){
?>
<html>
<style type="text/css">
<!--
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt;}
th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: bold; background-color: #D3DCE3;}
td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt;}
form { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt}
textarea{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
input.text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
input.button {font-family: Verdana; font-size: 9pt}
select {font-size: 9pt; BACKGROUND-COLOR: white;}
h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16pt; font-weight: bold}
A:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; text-decoration: none; color: #0000FF}
A:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; text-decoration: none; color: #0000FF}
A:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; text-decoration: underline; color: #FF0000}
A:link.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
A:visited.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
A:hover.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FF0000}
.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
#leftMargin {position:absolute;left:0px;top:0px;BACKGROUND-IMAGE: url(../../images/background_main_L.gif);BACKGROUND-REPEAT: repeat-y;}
#rightMargin {position:absolute;right:0px;top:0px;BACKGROUND-IMAGE: url(../../images/background_main_R.gif);BACKGROUND-REPEAT: repeat-y;}
#mainContent {position:absolute;left:0px;top:0px;BACKGROUND-IMAGE: url(../../images/background_main_M.gif);BACKGROUND-REPEAT: repeat-x;}
-->
</style>
<?php
}else{
?>
<html>
<style type="text/css">
<!--
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;}
th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold; background-color: #D3DCE3;}
td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;}
form { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
textarea{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
input.text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
input.button {font-family: Verdana; font-size: 8pt}
select { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; BACKGROUND-COLOR: white; BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid;}
h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16pt; font-weight: bold}
A:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none; color: #0000FF}
A:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none; color: #0000FF}
A:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: underline; color: #FF0000}
A:link.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
A:visited.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #0000FF}
A:hover.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #FF0000}
.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
#leftMargin {position:absolute;z-index:100;left:0px;top:0px;BACKGROUND-IMAGE: url(../../images/background_main_L.gif);BACKGROUND-REPEAT: repeat-y;}
#rightMargin {position:absolute;z-index:100;right:0px;top:0px;BACKGROUND-IMAGE: url(../../images/background_main_R.gif);BACKGROUND-REPEAT: repeat-y;}
#mainContent {position:absolute;left:10px;top:0px;right:0px;bottom:0px;BACKGROUND-IMAGE: url(../../images/background_main_M.gif);BACKGROUND-REPEAT: repeat-x;}
-->
</style>
<?php
}
?>
<script LANGUAGE="JavaScript">
function openHelp(helpId){
URL="../../omcHelp/index.php?helpId="+helpId;
var baseSetting='toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,left=0,top=0';
var size800=',width=790,height=560';
var size1024=',width=1010,height=710';
if (window.screen.width==800 && window.screen.height==600){
pageSetting = baseSetting + size800;
}else{
pageSetting = baseSetting + size1024;
}
msgWindow = window.open(URL,'helpWin',pageSetting);
msgWindow.focus();
}
function adjust()
{
var offsetW=document.body.offsetWidth;
var offsetH=document.body.offsetHeight;
var scrollH=document.body.scrollHeight;
var scrollW=document.body.scrollWidth;
var clientH=document.body.clientHeight;
var clientW=document.body.clientWidth;
var browserr = navigator.appName;
if(browserr == "Microsoft Internet Explorer")
{
document.getElementById('img_up').width=offsetW;
document.getElementById('img_up').height=75;
document.getElementById('img_down').width=offsetW;
document.getElementById('img_down').height=offsetH;
document.getElementById('content_down').style.width=offsetW-20;
document.getElementById('content_down').style.height=offsetH-75;
}
else
{
//alert('offsetH='+offsetH+',scrollH='+scrollH+',clientH='+clientH);
document.getElementById('img_up').width=offsetW+23;
document.getElementById('img_up').height=75;
document.getElementById('img_down').width=offsetW+23;
document.getElementById('img_down').height=clientH;
document.getElementById('img_down').style.top='175px';
document.getElementById('img_down').style.left='0px';
document.getElementById('div_down').style.top='75px';
document.getElementById('div_down').style.bottom='500px';
document.getElementById('content_down').style.width=offsetW+5;
document.getElementById('content_down').style.height=clientH-75;
document.getElementById('table_up').width=offsetW;
}
//add this style to body
//leftmargin="15" rightmargin="10"
//overflow:hidden;overflow-x:hidden;overflow-y:hidden;
}
//-------------from frame window--------------------
function adjust_frame(flag)
{
var offsetW=document.body.offsetWidth;
var offsetH=document.body.offsetHeight;
var scrollH=document.body.scrollHeight;
var scrollW=document.body.scrollWidth;
var clientH=document.body.clientHeight;
var clientW=document.body.clientWidth;
var browserr = navigator.appName;
if(browserr == "Microsoft Internet Explorer")
{
document.getElementById('img_up').width=offsetW;
document.getElementById('img_up').height=75;
document.getElementById('img_down').width=offsetW;
document.getElementById('img_down').height=offsetH;
document.getElementById('content_down').style.width=offsetW-20;
document.getElementById('content_down').style.height=offsetH;
}
else
{
//alert('offsetH='+offsetH+',scrollH='+scrollH+',clientH='+clientH);
document.getElementById('img_up').width=offsetW+23;
document.getElementById('img_up').height=75;
document.getElementById('img_down').width=offsetW+23;
document.getElementById('img_down').height=clientH;
document.getElementById('img_down').style.top='175px';
document.getElementById('img_down').style.left='0px';
document.getElementById('div_down').style.top='0px';
document.getElementById('div_down').style.bottom='500px';
document.getElementById('content_down').style.width=offsetW+5;
document.getElementById('content_down').style.height=clientH;
if(flag == 'up')
document.getElementById('table_up').width=offsetW;
}
//add this style to body
//leftmargin="15" rightmargin="10"
//overflow:hidden;overflow-x:hidden;overflow-y:hidden;
}
function scroll_div(scroll_y)
{
document.getElementById('content_down').scrollTop=scroll_y;
}
</script>
<?php
//------------------for single window------------------------
function adjust_head()
{
echo "<div style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
echo "<div id=\"div_down\" style=\"position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down.gif\">";
echo "</div>";
}
function adjust_title_head()
{
echo "<div style=\"position:absolute;z-index=100;\">";
}
function adjust_title_tail()
{
echo "</div>";
}
function adjust_content_head()
{
global $userInfo,$session_timeout;
echo "<div id=\"content_down\" style=\"height:630;width:1074;position:absolute;z-index=50;top:75px;left:15px;overflow:scroll;overflow-x:hidden;overflow-y:auto;\">";
$now=time();
if($now - $userInfo[refresh_time] > $session_timeout)
$userInfo[privilege]=0;
else
$userInfo[refresh_time]=$now;
}
function adjust_content_tail()
{
echo "</div>";
}
//-----------------for frame window-----------------------
function adjust_head_frame($flag="up")
{
if($flag == "up")
{
echo "<div style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
echo "<div id=\"div_down\" style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down.gif\">";
echo "</div>";
}
else
{
echo "<div style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
//background-color:red;
echo "<div id=\"div_down\" style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down.gif\">";
echo "</div>";
}
}
function adjust_head_small_frame($flag="up")
{
if($flag == "up")
{
echo "<div style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
echo "<div id=\"div_down\" style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down_small.gif\">";
echo "</div>";
}
else
{
echo "<div style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
//background-color:red;
echo "<div id=\"div_down\" style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down_small.gif\">";
echo "</div>";
}
}
function adjust_head_middle_frame($flag="up")
{
if($flag == "up")
{
echo "<div style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
echo "<div id=\"div_down\" style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down_middle.gif\">";
echo "</div>";
}
else
{
echo "<div style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
//background-color:red;
echo "<div id=\"div_down\" style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down_middle.gif\">";
echo "</div>";
}
}
function adjust_head_noleft_frame($flag="up")
{
if($flag == "up")
{
echo "<div style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
echo "<div id=\"div_down\" style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down_noleft.gif\">";
echo "</div>";
}
else
{
echo "<div style=\"display:none;position:absolute;z-index=1;top:0px;left:0px;\">";
echo "<img id=\"img_up\" src=\"../../images/content_up.gif\">";
echo "</div>";
//background-color:red;
echo "<div id=\"div_down\" style=\"position:absolute;z-index=2;top:0px;left:0px;\">";
echo "<img id=\"img_down\" src=\"../../images/content_down_noleft.gif\">";
echo "</div>";
}
}
function adjust_title_head_frame($flag="up")
{
echo "<div style=\"position:absolute;z-index=100;\">";
}
function adjust_title_tail_frame($flag="up")
{
echo "</div>";
}
function adjust_content_head_frame($flag="up")
{
global $userInfo,$session_timeout;
if($flag == "up")
echo "<div id=\"content_down\" style=\"height:630;width:1074;position:absolute;z-index=50;top:75px;left:15px;overflow:hidden;overflow-x:hidden;overflow-y:hidden;\">";
else
echo "<div id=\"content_down\" style=\"height:630;width:1074;position:absolute;z-index=50;top:0px;left:15px;overflow:scroll;overflow-x:hidden;overflow-y:auto;\">";
$now=time();
if($now - $userInfo[refresh_time] > $session_timeout)
$userInfo[privilege]=0;
else
$userInfo[refresh_time]=$now;
}
function adjust_content_tail_frame($flag="up")
{
echo "</div>";
}
?>

View File

@@ -0,0 +1,21 @@
<?php
/*************************************************************************
* <20>ļ<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
* <20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
*
* <20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD>ֵİ<D6B5><C4B0><EFBFBD><EFBFBD>ļ<EFBFBD>
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:config.inc
*
*
* <20><><EFBFBD><EFBFBD>:
*<2A>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
*NO.1
*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<>
*<2A>޸<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
*************************************************************************/
//=============================<3D><><EFBFBD><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE><EFBFBD><EFBFBD>==============================================================
//Ĭ<><C4AC>ΪӢ<CEAA><D3A2>ʱֵΪ'eng',Ĭ<><C4AC>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>ʱֵΪ'chn'
$selectedLanguage=(isset($selectedLanguage))?$selectedLanguage:'eng';
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
nccyvpngvba
abvgnpvycCN#68*

View File

@@ -0,0 +1,150 @@
/*
* $Log: ua.js,v $
* Revision 1.1.1.1 2003/08/27 12:32:00 cvsroot
* omcWeb_v5 project
*
* Revision 1.9 2002/07/22 14:06:21 bc6ix
* fix license path, change version reporting to use 2 digits for each level
*
* Revision 1.8 2002/07/07 08:23:07 bc6ix
* fix line endings
*
* Revision 1.7 2002/05/14 16:52:52 bc6ix
* use CVS Log for revision history
*
*
*/
/* ***** BEGIN LICENSE BLOCK *****
* Licensed under Version: MPL 1.1/GPL 2.0/LGPL 2.1
* Full Terms at http://bclary.com/lib/js/license/mpl-tri-license.txt
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Netscape code.
*
* The Initial Developer of the Original Code is
* Netscape Corporation.
* Portions created by the Initial Developer are Copyright (C) 2001
* the Initial Developer. All Rights Reserved.
*
* Contributor(s): Bob Clary <bclary@netscape.com>
*
* ***** END LICENSE BLOCK ***** */
function xbDetectBrowser()
{
var oldOnError = window.onerror;
var element = null;
window.onerror = null;
// work around bug in xpcdom Mozilla 0.9.1
window.saveNavigator = window.navigator;
navigator.OS = '';
navigator.version = parseFloat(navigator.appVersion);
navigator.org = '';
navigator.family = '';
var platform;
if (typeof(window.navigator.platform) != 'undefined')
{
platform = window.navigator.platform.toLowerCase();
if (platform.indexOf('win') != -1)
navigator.OS = 'win';
else if (platform.indexOf('mac') != -1)
navigator.OS = 'mac';
else if (platform.indexOf('unix') != -1 || platform.indexOf('linux') != -1 || platform.indexOf('sun') != -1)
navigator.OS = 'nix';
}
var i = 0;
var ua = window.navigator.userAgent.toLowerCase();
if (ua.indexOf('safari') != -1)
{
i = ua.indexOf('safari');
navigator.family = 'safari';
navigator.org = 'safari';
navigator.version = parseFloat('0' + ua.substr(i+7), 10);
}
else if (ua.indexOf('opera') != -1)
{
i = ua.indexOf('opera');
navigator.family = 'opera';
navigator.org = 'opera';
navigator.version = parseFloat('0' + ua.substr(i+6), 10);
}
else if ((i = ua.indexOf('msie')) != -1)
{
navigator.org = 'microsoft';
navigator.version = parseFloat('0' + ua.substr(i+5), 10);
if (navigator.version < 4)
navigator.family = 'ie3';
else
navigator.family = 'ie4'
}
else if (ua.indexOf('gecko') != -1)
{
navigator.family = 'gecko';
var rvStart = ua.indexOf('rv:');
var rvEnd = ua.indexOf(')', rvStart);
var rv = ua.substring(rvStart+3, rvEnd);
var rvParts = rv.split('.');
var rvValue = 0;
var exp = 1;
for (var i = 0; i < rvParts.length; i++)
{
var val = parseInt(rvParts[i]);
rvValue += val / exp;
exp *= 100;
}
navigator.version = rvValue;
if (ua.indexOf('netscape') != -1)
navigator.org = 'netscape';
else if (ua.indexOf('compuserve') != -1)
navigator.org = 'compuserve';
else
navigator.org = 'mozilla';
}
else if ((ua.indexOf('mozilla') !=-1) && (ua.indexOf('spoofer')==-1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera')==-1)&& (ua.indexOf('webtv')==-1) && (ua.indexOf('hotjava')==-1))
{
var is_major = parseFloat(navigator.appVersion);
if (is_major < 4)
navigator.version = is_major;
else
{
i = ua.lastIndexOf('/')
navigator.version = parseFloat('0' + ua.substr(i+1), 10);
}
navigator.org = 'netscape';
navigator.family = 'nn' + parseInt(navigator.appVersion);
}
else if ((i = ua.indexOf('aol')) != -1 )
{
// aol
navigator.family = 'aol';
navigator.org = 'aol';
navigator.version = parseFloat('0' + ua.substr(i+4), 10);
}
else if ((i = ua.indexOf('hotjava')) != -1 )
{
// hotjava
navigator.family = 'hotjava';
navigator.org = 'sun';
navigator.version = parseFloat(navigator.appVersion);
}
window.onerror = oldOnError;
}
xbDetectBrowser();

View File

@@ -0,0 +1,280 @@
<?php
require("../../inc/header.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=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Performance > MSC > Erlang";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
$helpId="1.2.2";
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=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
echo "<span onClick=\"window.print();\" style=\"cursor:hand\">";
echo "<img align=absBottom border=0 src=\"../../images/printer.gif\" width=16 height=16>";
echo "</span>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<FORM>";
adjust_title_tail();
adjust_content_head();
echo "<form name=\"form1\" action=\"rect_erlang.php\" method=\"POST\">";
//adjust_head_frame("down");
//adjust_title_head_frame("down");
//adjust_title_tail_frame("down");
//adjust_content_head_frame("down","auto");
if(strcmp($bxx_1,"on") == 0)
{
$filelist[1][name]="SUB SUB";
$filelist[1][type]=5;
}
else
{
$filelist[1][name]=" ";
}
//echo "filelist={$filelist[1][name]}";
//echo "<br>";
if(strcmp($bxx_2,"on") == 0)
{
$filelist[2][name]="SUB TRK";
$filelist[2][type]=6;
}
else
{
$filelist[2][name]=" ";
}
//echo "filelist={$filelist[2][name]}";
//echo "<br>";
if(strcmp($bxx_3,"on") == 0)
{
$filelist[3][name]="TRK SUB";
$filelist[3][type]=7;
}
else
{
$filelist[3][name]=" ";
}
//echo "filelist={$filelist[3][name]}";
//echo "<br>";
if(strcmp($bxx_4,"on") == 0)
{
$filelist[4][name]="TRK IP";
$filelist[4][type]=11;
}
else
{
$filelist[4][name]=" ";
}
//echo "filelist={$filelist[4][name]}";
//echo "<br>";
if(strcmp($bxx_5,"on") == 0)
{
$filelist[5][name]="TRK TRK";
$filelist[5][type]=8;
}
else
{
$filelist[5][name]=" ";
}
//echo "filelist={$filelist[5][name]}";
//echo "<br>";
if(strcmp($bxx_6,"on") == 0)
{
$filelist[6][name]="INTRA";
$filelist[6][type]=9;
}
else
{
$filelist[6][name]=" ";
}
//echo "filelist={$filelist[6][name]}";
//echo "<br>";
if(strcmp($bxx_7,"on") == 0)
{
$filelist[7][name]="SUB IP";
$filelist[7][type]=10;
}
else
{
$filelist[7][name]=" ";
}
//echo "filelist={$filelist[7][name]}";
//echo "<br>";
if(strcmp($bxx_8,"on") == 0)
{
$filelist[8][name]="IP";
$filelist[8][type]=16;
}
else
{
$filelist[8][name]=" ";
}
//echo "filelist={$filelist[8][name]}";
//echo "<br>";
if(strcmp($bxx_9,"on") == 0)
{
$filelist[9][name]="MO";
$filelist[9][type]=12;
}
else
{
$filelist[9][name]=" ";
}
//echo "filelist={$filelist[9][name]}";
//echo "<br>";
if(strcmp($bxx_10,"on") == 0)
{
$filelist[10][name]="MT";
$filelist[10][type]=13;
}
else
{
$filelist[10][name]=" ";
}
//echo "filelist={$filelist[10][name]}";
//echo "<br>";
if(strcmp($bxx_11,"on") == 0)
{
$filelist[11][name]="IN TRK";
$filelist[11][type]=14;
}
else
{
$filelist[11][name]=" ";
}
//echo "filelist={$filelist[11][name]}";
//echo "<br>";
if(strcmp($bxx_12,"on") == 0)
{
$filelist[12][name]="OUT TRK";
$filelist[12][type]=15;
}
else
{
$filelist[12][name]=" ";
}
//echo "filelist={$filelist[12][name]}";
//echo "::$select_1::$select_2::<br>";
$merge=0;
if(strcmp($bxx,"on") == 0)
{
$merge=1;
}
/////////tg
for($i=0;$i<32;$i++)
{
for($j=0;$j<8;$j++)
{
$value1=($i*8+$j);
$gg="tg".$value1;
if(strcmp(${$gg},"on") == 0)
{
$tg[($i*8+$j)][name]="TG ".($i*8+$j);
$tg[($i*8+$j)][type]=($i*8+$j);
//echo "1111111111111111111111111111111111111111111<br>";
//echo "tg[($i*8+$j)][name]={$tg[($i*8+$j)][name]} type={$tg[($i*8+$j)][type]}<br>";
}
else
{
$tg[($i*8+$j)][name]=" ";
$tg[($i*8+$j)][type]=0;
}
}
}
////////tg
if($select_1 == 1)
{
if($select_2 == 3)
{
include("erlang_day.php");
}
else
{
include("erlang_hour.php");
}
}
else
{
if($select_2 == 3)
{
include("erlang_trunk_day.php");
}
else
{
include("erlang_trunk_hour.php");
}
}
adjust_content_tail();
?>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -0,0 +1,500 @@
<?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;">
<script language="javascript">
function changeType()
{
if(document.getElementById('service_type_id').style.display == "")
{
document.getElementById('service_type_id').style.display="none";
document.getElementById('tg_type_id').style.display="";
}
else
{
document.getElementById('service_type_id').style.display="";
document.getElementById('tg_type_id').style.display="none";
}
}
</script>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"myform\" action=\"./erlang.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Performance > MSC > Erlang";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
$helpId="1.2.2";
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 "&nbsp;</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
if($_SERVER['REQUEST_METHOD'] == "POST")
{
echo "<center><br><font size=2 color=\"blue\">Mo,MT Erlang statistic 2010-10-19 to 2010-10-20</font></center><br>";
echo "<table border=\"1\" width=100% cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"center\">&nbsp</td>";
echo "<td align=\"center\"colspan=13>Erlang</td>";
echo "</tr>";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"center\" >Time</td>";
echo "<td align=\"center\" >SUB SUB</td>";
echo "<td align=\"center\" >SUB TRK</td>";
echo "<td align=\"center\" >TRK SUB</td>";
echo "<td align=\"center\" >TRK TRK</td>";
echo "<td align=\"center\" >INTRA</td>";
echo "<td align=\"center\" >SUB IP</td>";
echo "<td align=\"center\" >TRK IP</td>";
echo "<td align=\"center\" >MO</td>";
echo "<td align=\"center\" >MT</td>";
echo "<td align=\"center\" >IN TRK</td>";
echo "<td align=\"center\" >OUT TRK</td>";
echo "<td align=\"center\" >IP</td>";
echo "<td align=\"center\" >TOTAL</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"center\">";
echo "2010-10-19";
echo "</td>";
echo "<td align=\"center\">";
echo "35.34";
echo "</td>";
echo "<td align=\"center\">";
echo "35.34";
echo "</td>";
echo "<td align=\"center\">";
echo "35.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"center\">";
echo "2010-10-20";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "35.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "<td align=\"center\">";
echo "25.34";
echo "</td>";
echo "</tr>";
echo "</table>";
//Graphics-1
{
$tmpColor[]=array(0x66,0xff,0x33);
$tmpData[]=100;
$tmpColor[]=array(0x66,0xff,0xff);
$tmpData[]=100;
$tmpColor[]=array(0,0x66,0x66);
$tmpData[]=$netbusy_value;
$tmpColor[]=array(0x66,0,0xcc);
$tmpData[]=100;
$tmpColor[]=array(0x66,0x33,0);
$tmpData[]=100;
$tmpColor[]=array(0xcc,0,0x66);
$tmpData[]=100;
$tmpColor[]=array(0xff,0,0);
$tmpData[]=100;
$tmpColor[]=array(0x66,0xff,0xff);
$tmpData[]=100;
$tmpColor[]=array(0,0x66,0x66);
$tmpData[]=100;
$tmpColor[]=array(0x66,0,0xcc);
$tmpData[]=100;
$tmpColor[]=array(0x66,0x33,0);
$tmpData[]=100;
$tmpColor[]=array(0xcc,0,0x66);
$tmpData[]=100;
$tmpColor[]=array(0xff,0,0);
$tmpData[]=100;
echo "<br><b>Erlang Statistic Chart</b><br>";
$image=CreateImage(820,390);
$image=DrawLineHistogram(
$image,
$tmpData,
$tmpColor,
750/(24*2),
24,
array(50,20),
array(750,280),
0,1,0,1
);
$remarkBlock=array(
"SUB SUB",
"SUB TRK",
"TRK SUB",
"TRK TRK",
"INTRA",
"SUB IP",
"TOTAL",
"MO",
"MT",
"IN TRK",
"OUT TRK",
"IP"
);
$pointArr=array(
array(60,367),
array(160,367),
array(260,367),
array(360,367),
array(460,367),
array(560,367),
array(660,367)
);
unset($tmpColor);
$tmpColor[]=array(0x66,0xff,0x33);
$tmpColor[]=array(0x66,0xff,0xff);
$tmpColor[]=array(0,0x66,0x66);
$tmpColor[]=array(0x66,0,0xcc);
$tmpColor[]=array(0x66,0x33,0);
$tmpColor[]=array(0xcc,0,0x66);
$tmpColor[]=array(0xff,0,0);
$image=AddRemarkToImage($image,$pointArr,$remarkBlock,$tmpColor,0,2);
DrawTimeStamp($image,$sel_date_from,$sel_date_to,array(50,360),750/24);
DrawImage($image);
}
}
else
{
echo "<br>";
echo "<font size=2>Customize the statistic condition for Erlang</font><br><br>";
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td width=\"8%\" align=\"center\">Type</td>";
echo "<td width=\"16%\">";
echo "<select onchange=\"javascript:changeType();\">";
echo "<option value=0>Service</option>";
echo "<option value=1>Trunk Group</option>";
echo "</select>";
echo "</td>";
echo "<td width=\"10%\" align=\"center\">Interval</td>";
echo "<td width=\"12%\">";
echo "<select>";
echo "<option value=0>Daily</option>";
echo "<option value=1>Hourly</option>";
echo "</select>";
echo "</td>";
echo "<td width=\"10%\" align=\"center\">Start Time</td>";
echo "<td width=\"16%\">";
echo "<select>";
echo "<option value=0>2010-10-19</option>";
echo "<option value=1>2010-10-20</option>";
echo "</select>";
echo "</td>";
echo "<td width=\"10%\" align=\"center\">End Time</td>";
echo "<td width=\"25%\">";
echo "<select>";
echo "<option value=0>2010-10-19</option>";
echo "<option value=1>2010-10-20</option>";
echo "</select>";
echo "</td>";
echo "<td width=\"10%\" align=\"center\">Merge";
echo "<input type=\"checkbox\">";
echo "</td>";
echo "<td width=\"25%\">";
echo "<input type=submit class=button value=\"search\">";
echo "</td>";
echo "</tr>";
echo "<tr id=\"service_type_id\">";
echo "<td colspan=10>";
echo "<table border=0 width=100%>";
echo "<tr>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "SUB SUB";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "SUB TRK";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "TRK SUB";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "TRK IP";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "TRK TRK";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "INTRA";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "SUB IP";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "IP";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "MO";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "MT";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "IN TRK";
echo "</td>";
echo "<td width=5>";
echo "<input type=checkbox>";
echo "</td>";
echo "<td>";
echo "OUT TRK";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "<tr id=\"tg_type_id\" style=\"display:none;\">";
echo "<td colspan=10>";
echo "<table border=0 width=100%>";
for($i=0;$i<32;$i++)
{
echo "<tr>";
for($j=0;$j<8;$j++)
{
echo "<td>";
echo "<input type=checkbox>";
echo "TG ".($i*8+$j);
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</form>";
}
adjust_content_tail();
?>

File diff suppressed because it is too large Load Diff