init web ems all
This commit is contained in:
BIN
wxc2_omc/performance/bssCsta/1264682178.png
Executable file
BIN
wxc2_omc/performance/bssCsta/1264682178.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
74
wxc2_omc/performance/bssCsta/DataList/data_list.php
Executable file
74
wxc2_omc/performance/bssCsta/DataList/data_list.php
Executable file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD>ʾ
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc,lib.inc
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db = $bss_db;
|
||||
$table = "OMCR_BtsMeasurements";
|
||||
$DEBUG = 0;
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
|
||||
if($DEBUG) echo "<br>$selected_field_list";
|
||||
$select_sql_bgn = "SELECT ";
|
||||
$select_sql_end = " FROM $table
|
||||
WHERE CellIdentity = '$cell_id'
|
||||
AND startTime >= '$date_bgn'
|
||||
AND endTime <= '$date_end'
|
||||
ORDER BY startTime,bssid
|
||||
";
|
||||
$fields_arr = explode('>',$selected_field_list);
|
||||
$field_num = sizeof($fields_arr);
|
||||
for($i=1; $i<$field_num; $i++){
|
||||
if($i < $field_num-1){
|
||||
$select_sql_bgn = $select_sql_bgn ." $fields_arr[$i],";
|
||||
}else{
|
||||
$select_sql_bgn = $select_sql_bgn ." $fields_arr[$i] ";
|
||||
}
|
||||
}
|
||||
$select_sql = $select_sql_bgn.$select_sql_end;
|
||||
if($DEBUG) echo "<br> $select_sql";
|
||||
?>
|
||||
<form method="POST" action="./data_list.php" name="selectform">
|
||||
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<?php
|
||||
echo "<tr bgcolor=\"E6E6E6\" >";
|
||||
for($i=1; $i<$field_num; $i++){
|
||||
echo "<td>{$fields_arr[$i]}</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
$result = mysqli_query($pubConn,$select_sql);
|
||||
$rows = mysqli_fetch_array($result);
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows){
|
||||
echo "<tr>";
|
||||
for($i=1; $i<$field_num; $i++){
|
||||
echo "<td>{$rows[$i]}</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</TABLE>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
86
wxc2_omc/performance/bssCsta/DataList/data_select.php
Executable file
86
wxc2_omc/performance/bssCsta/DataList/data_select.php
Executable file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD>ʾ
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc,lib.inc
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db = $bss_db;
|
||||
$table = "OMCR_BtsMeasurements";
|
||||
?>
|
||||
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
function select_field(){
|
||||
var field_name;
|
||||
field_name=document.selectform.fields_list.options[document.selectform.fields_list.selectedIndex].value;
|
||||
document.selectform.selected_field_list.value = document.selectform.selected_field_list.value + '>' +field_name +'\n' ;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form method="POST" action="./data_list.php" name="selectform">
|
||||
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<tr bgcolor="E6E6E6">
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD>ݵķ<DDB5>Χ:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>С<><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<input type="text" name="cell_id" size="5"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<09><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>:<input type="text" name="date_bgn" size="20" maxlength="19">
|
||||
<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<input type="text" name="date_end" size="20" maxlength="19">
|
||||
<br><3E><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD>ʽ<EFBFBD><CABD>YYYY-MM-DD hh:mm:ss <20><><EFBFBD><EFBFBD>2002-01-15 14:32:18<31><38>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="E6E6E6">
|
||||
<td><3E><>ѡ<EFBFBD><D1A1>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>:</td>
|
||||
</tr>
|
||||
<tr><td>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="400">
|
||||
<tr>
|
||||
<td width="118" valign="top">
|
||||
<select size="15" name="fields_list">
|
||||
<?php
|
||||
$fields_result = mysql_list_fields($db,$table,$link[0]);
|
||||
echo mysqli_error($pubConn);
|
||||
$i=0;
|
||||
while($fields_name = @mysql_field_name($fields_result,$i)){
|
||||
echo "<option value=\"$fields_name\">$fields_name</option>";
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td width="65"> <p align="center">
|
||||
<input type="button" value="->" name="B1" onClick ="javascript:select_field()"></p>
|
||||
</td>
|
||||
<td width="211" valign="top">
|
||||
<textarea rows="15" name="selected_field_list" cols="40"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
</TABLE>
|
||||
<input type="submit" value="ȷ<><C8B7>"> <input type="reset" value="ȡ<><C8A1>">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
489
wxc2_omc/performance/bssCsta/Erlang_down.php
Executable file
489
wxc2_omc/performance/bssCsta/Erlang_down.php
Executable file
@@ -0,0 +1,489 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD><EFBFBD><EFBFBD>BTS<54><53>erlang<6E>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>ʾ
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$DEBUG=0;
|
||||
$db=$bss_db;
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
//$btsBgnNo=0;
|
||||
//$btsEndNo=12;
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//array(cellid,0,...,23);
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);//25<32><35>Ԫ<EFBFBD><D4AA>
|
||||
}
|
||||
/*
|
||||
$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
$result_rows=mysqli_fetch_array($sel_result);
|
||||
if($DEBUG) echo "<br>db=$db<br>sel_sql=$sel_sql";
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1];
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
}
|
||||
}while($result_rows=mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
}
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
|
||||
?>
|
||||
|
||||
<body leftmargin=12 topmargin=0>
|
||||
<?php
|
||||
//------------------------------<2D><>ʾ<EFBFBD><CABE><EFBFBD>⣬<EFBFBD><E2A3AC><EFBFBD><EFBFBD>--------------------------------------
|
||||
?>
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum $strErlang $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<?php
|
||||
//------------------------------<2D><>ʾ<EFBFBD>б<EFBFBD>--------------------------------------
|
||||
?>
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR>";
|
||||
echo "<TD>BTS ID</TD>";
|
||||
echo "<TD>$strCellID</TD>";
|
||||
for($clock=0;$clock<24;$clock++){
|
||||
echo "<TD>$clock</TD>";
|
||||
}
|
||||
echo "</TR>";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
if($DEBUG) echo "<br>btsBgnNo=$btsBgnNo,btsEndNo=$btsEndNo ";
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
|
||||
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql<br>";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
$sum_sql="SELECT
|
||||
CellIdentity as CellIdentity,
|
||||
hour(from_unixtime(StartTime)) as hours,
|
||||
(meanTCHBusyTime * nbrOfAvailableTCHs)/(100 * (EndTime - StartTime)) as erlang
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id'
|
||||
Group By hours,CellIdentity
|
||||
";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
if($DEBUG) echo "<br>sel_sql=$sum_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
$btsArray[$i][0] == $rows[CellIdentity];
|
||||
$hourse=$rows[hours]+1;
|
||||
$btsArray[$i][$hourse] += $rows[erlang];
|
||||
if($btsArray[$i][$hourse] > $maxNum)
|
||||
$maxNum = $btsArray[$i][$hourse];
|
||||
}
|
||||
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD>{$btsArray[$i][0]}</TD>";
|
||||
for($clock=1;$clock<25;$clock++){
|
||||
echo "<TD>{$btsArray[$i][$clock]}</TD>";
|
||||
}
|
||||
echo "</TR>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD><nobr>--</nobr></TD>";
|
||||
for($clock=1;$clock<25;$clock++){
|
||||
echo "<TD><nobr>--</nobr></TD>";
|
||||
}
|
||||
echo "</TR>";
|
||||
}
|
||||
}
|
||||
$y_max = ceil($maxNum);
|
||||
if($y_max < 1){
|
||||
$y_max = 1;
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
if(1)
|
||||
{
|
||||
$colorArr = array("00FFFF","000000","FF00FF","008000","00FF00","800000",
|
||||
"000080","808000","800080","FF0000","008080","00FF00");
|
||||
for($i=$btsBgnNo;$i< $btsEndNo;$i++)
|
||||
{
|
||||
//$formatNum = $i < 10 ? '0'.$i : $i;
|
||||
$btsName = $cell_object[$i];//"BTS.".$$cell_object[1].$cell_object[2];
|
||||
$color = $colorArr[$i];
|
||||
$legendArr[$i] = array($btsName, $color, 0);
|
||||
}
|
||||
$title = ucfirst("Service erlang statistic graphic");
|
||||
|
||||
$maxYNum=$y_max;
|
||||
//-----ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>꣬<EFBFBD><EAA3AC>ʾ<EFBFBD>Ȼ<EFBFBD><C8BB><EFBFBD>Ԫ<EFBFBD>أ<EFBFBD><D8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8>ⲿ<EFBFBD><E2B2BF>
|
||||
$sizex=800;
|
||||
$sizey=320;
|
||||
$bgcolor=F8F8F8;
|
||||
$fgcolor=000000;
|
||||
$dayStr=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
|
||||
$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)));
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
ImageFilledRectangle($im,0,0,$sizex,$sizey,ImageColorAllocate ($im, 198, 198, 198));
|
||||
ImageFilledRectangle($im,2,2,$sizex,$sizey,ImageColorAllocate ($im, 130, 130, 130));
|
||||
$tmpPointArr=array(0,$sizey-1,3,$sizey-4,4,$sizey-1);
|
||||
Imagefilledpolygon($im, $tmpPointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
|
||||
$tmpPointArr=array($sizex-1,0,$sizex-4,3,$sizex,4);
|
||||
Imagefilledpolygon($im, $tmpPointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
|
||||
ImageFilledRectangle($im,2,2,$sizex-3,$sizey-3,$background_color);
|
||||
|
||||
//ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Imagestring($im, 2, 300,5, $title, $text_color);
|
||||
|
||||
//<2F>߿<EFBFBD>
|
||||
$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);
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע
|
||||
for($i=0;$i<24;$i++){
|
||||
ImageDashedLine($im, $xBgn + $i*30, $yBgn, $xBgn + $i*30, $yEnd, $text_color);
|
||||
Imagestring($im, 2, $xBgn + $i*30 - 4, $yEnd, "$i", $text_color);
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע
|
||||
for($i=0;$i<10;$i++){
|
||||
ImageDashedLine($im, $xBgn, $yBgn + $i*25, $xEnd, $yBgn + $i*25, $text_color);
|
||||
$scale=$maxYNum / 10 * (10 - $i);
|
||||
if($scale>1000*1000){
|
||||
$displayMaxData = round($scale/100000)/10;
|
||||
$displayMaxData = $displayMaxData."M";
|
||||
}elseif($scale>1000){
|
||||
$displayMaxData = round($scale/100)/10;
|
||||
$displayMaxData = $displayMaxData."K";
|
||||
}else
|
||||
$displayMaxData=$scale;
|
||||
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$displayMaxData", $text_color);
|
||||
}
|
||||
|
||||
//ɫ<><C9AB>ͼ<EFBFBD>꼰˵<EABCB0><CBB5>
|
||||
$order = 0;
|
||||
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++)
|
||||
{
|
||||
|
||||
if($btsArray[$i][0] > 0)
|
||||
{
|
||||
$tmpName=$legendArr[$i][0];
|
||||
$tmpColor=$legendArr[$i][1];
|
||||
|
||||
$color = ImageColorAllocate ($im, hexdec(substr($tmpColor, 0, 2)), hexdec(substr($tmpColor, 2, 2)),hexdec(substr($tmpColor, 4, 2)));
|
||||
$legendArr[$i][2]=$color;
|
||||
ImageFilledRectangle($im,60 + $order* 60,$yEnd + 22,58 + $order* 60 + 10,$yEnd + 30,$legendArr[$i][2]);
|
||||
Imagestring($im, 2, 73 + $order* 60,$yEnd + 20, "$tmpName", $text_color);
|
||||
$order++;
|
||||
}
|
||||
}
|
||||
function getNewXY(&$pointArr)
|
||||
{
|
||||
global $xBgn,$yBgn,$xEnd,$yEnd,$maxYNum,$unitXPix;
|
||||
$DEBUG=0;
|
||||
for($i=0;$i<sizeof($pointArr);$i=$i+2){
|
||||
$pointArr[$i] = $xBgn + $pointArr[$i] * $unitXPix;
|
||||
if($DEBUG) echo "<br>pointArr[$i]={$pointArr[$i]}";
|
||||
$pointArr[$i+1] = $yEnd - round(($yEnd - $yBgn) * ($pointArr[$i+1] / $maxYNum));
|
||||
if($DEBUG) echo "<br>pointArr[$i+1]={$pointArr[$i+1]}";
|
||||
}
|
||||
$pointArr[$i] = $pointArr[$i-2];
|
||||
if($DEBUG) echo "<br>pointArr[$i]={$pointArr[$i]}";
|
||||
$pointArr[$i+1] = $yEnd-1;
|
||||
if($DEBUG) echo "<br>pointArr[$i+1]={$pointArr[$i+1]}";
|
||||
}
|
||||
//get x,y points.
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++)
|
||||
{
|
||||
if($btsArray[$i][0] > 0)
|
||||
{
|
||||
for($j=1;$j<26;$j++)
|
||||
{
|
||||
$pointArr[$i][$j*2] = $j-1;
|
||||
$pointArr[$i][$j*2+1] = $btsArray[$i][$j];
|
||||
}
|
||||
getNewXY($pointArr[$i]);
|
||||
$pointNum[$i]= sizeof($pointArr[$i]) / 2;
|
||||
$tmpColor[$i]=$legendArr[$i][2];
|
||||
}
|
||||
}
|
||||
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++)
|
||||
{
|
||||
if($btsArray[$i][0] > 0)
|
||||
{
|
||||
for($j=1;$j<26;$j++)
|
||||
{
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
imageline($im,$pointArr[$i][$j*2],$pointArr[$i][$j*2+1],$pointArr[$i][$j*2+2],$pointArr[$i][$j*2+3],$tmpColor[$i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----<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);
|
||||
}
|
||||
$filename=time().".png";
|
||||
if(!$DEBUG){
|
||||
ImagePng ($im,"$filename");
|
||||
ImageDestroy($im);
|
||||
}
|
||||
|
||||
//-----<2D><>ʾͼƬ
|
||||
echo "<body topmargin=\"0\" leftmargin=\"5\">";
|
||||
echo "<img src=\"$filename\">";
|
||||
echo "</body>";
|
||||
exit;
|
||||
}//end if.
|
||||
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
|
||||
$base_field=10; //$btsArray[bts_num][j]'s j
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
|
||||
}
|
||||
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
|
||||
$show_field=array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24);
|
||||
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
//$legend_def=array(''); //erlangֻ<67><D6BB>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB>ʾ
|
||||
|
||||
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
//$legend_color=array('blue',.....,'blue');//erlangֻ<67><D6BB>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB>ʾ
|
||||
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
|
||||
?>
|
||||
<!--
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
//for($i=0;$i<sizeof($legend_def);$i++){
|
||||
// echo "<td width=\"10\">";
|
||||
// showImg($i,10,10);
|
||||
// echo "</td>";
|
||||
// echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
//}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
-->
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(){
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_first_num = 12;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=1;i <= max_first_num;i++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+j;
|
||||
temp_input_name='img'+i+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for(i=1;i<=12;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
echo "Erlang (hour):<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
//-----------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ-------------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
if($DEBUG) echo "<br>btsBgnNo=$btsBgnNo,btsArray[$bts_num][$arrNum] ={$btsArray[$bts_num][$arrNum]}";
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$num = $i;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$strErlang $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
|
||||
for($k=0;$k<sizeof($show_field);$k++){
|
||||
$arrNum = $show_field[$k];
|
||||
$alt = $k.':00 = '.$btsArray[$bts_num][$arrNum].' Erlang';
|
||||
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
|
||||
$width = 19;
|
||||
$imgName = 'img'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg('blue',$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">$BTS_ID_1</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
15
wxc2_omc/performance/bssCsta/Erlang_index.php
Executable file
15
wxc2_omc/performance/bssCsta/Erlang_index.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="Erlang_up.php">
|
||||
<frame name="main" src="Erlang_down.php" scrolling="auto" target="_self">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
117
wxc2_omc/performance/bssCsta/Erlang_up.php
Executable file
117
wxc2_omc/performance/bssCsta/Erlang_up.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>汾<D4B0><E6B1BE>Ϣ
|
||||
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.3";
|
||||
$ThisPage = "$strTitlePerformance > BSS > Erlang";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="Erlang_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 class="text">
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" class="button" name="search">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true">
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
473
wxc2_omc/performance/bssCsta/Handover_down.php
Executable file
473
wxc2_omc/performance/bssCsta/Handover_down.php
Executable file
@@ -0,0 +1,473 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db=$bss_db;
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp0;
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0,0,0,0,0);
|
||||
}
|
||||
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
$result_rows=mysqli_fetch_array($sel_result);
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1];
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
}while($result_rows=mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
}
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
|
||||
|
||||
//-----inter BSS Handover-------
|
||||
$sel_sql="SELECT
|
||||
CellIdentity as CellIdentity,
|
||||
SUM(HoInterBSCReqToMSC) AS sum_req,
|
||||
SUM(HoInterBSCOutAtmpt) AS sum_att,
|
||||
SUM(HoInterBSCOut) AS sum_outsucc,
|
||||
SUM(HoInterBSCMSFail) AS sum_msfail,
|
||||
SUM(HoInterBSCInAtmpt) AS sum_inatt,
|
||||
SUM(HoInterBSCIn) AS sum_insucc
|
||||
FROM $csta_table
|
||||
WHERE $where
|
||||
GROUP BY CellIdentity
|
||||
";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>$sel_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
if($btsArray[$i][0] == $rows[CellIdentity]){
|
||||
$btsArray[$i][1]=$rows[sum_req];
|
||||
$btsArray[$i][2]=$rows[sum_att];
|
||||
$btsArray[$i][3]=$rows[sum_outsucc];
|
||||
$btsArray[$i][4]=$rows[sum_msfail];
|
||||
$btsArray[$i][5]=$rows[sum_inatt];
|
||||
$btsArray[$i][6]=$rows[sum_insucc];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
//-----intra BSS Handover-------
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(ID) {
|
||||
which=eval(ID);
|
||||
if(which.style.display == "none") {
|
||||
which.style.display = "block";
|
||||
signRemark.style.display = "block";
|
||||
}else {
|
||||
which.style.display = "none";
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<body leftmargin=12 topmargin=0>
|
||||
<?php
|
||||
//------------------------------<2D><>ʾ<EFBFBD><CABE><EFBFBD>⣬<EFBFBD><E2A3AC><EFBFBD><EFBFBD>--------------------------------------
|
||||
?>
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum Handover $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strDate:$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<?php
|
||||
//------------------------------<2D><>ʾ<EFBFBD>б<EFBFBD>--------------------------------------
|
||||
?>
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR align=\"center\"><TD colspan=\"2\"> </TD><TD colspan=\"8\"> $strInsterBSC </TD><TD colspan=\"7\"> $strInstraBSC </TD></TR>";
|
||||
echo "<TD>BTS ID</TD>";
|
||||
echo "<TD>$strCellID</TD>";
|
||||
//---inter---
|
||||
echo "<TD>OutAtt</TD>";
|
||||
echo "<TD>OutReq</TD>";
|
||||
echo "<TD>OutSucc</TD>";
|
||||
echo "<TD>OutFail</TD>";
|
||||
echo "<TD>OutSucc (%)</TD>";
|
||||
echo "<TD>InAtt</TD>";
|
||||
echo "<TD>InSucc</TD>";
|
||||
echo "<TD>InSucc (%)</TD>";
|
||||
//---intra---
|
||||
echo "<TD>OutAtt</TD>";
|
||||
echo "<TD>OutSucc</TD>";
|
||||
echo "<TD>OutFail</TD>";
|
||||
echo "<TD>OutSucc (%)</TD>";
|
||||
echo "<TD>InAtt</TD>";
|
||||
echo "<TD>InSucc</TD>";
|
||||
echo "<TD>InSucc (%)</TD>";
|
||||
echo "</TR>";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
|
||||
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql<br>";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
$sum_sql="SELECT
|
||||
CellIdentity as CellIdentity,
|
||||
SUM(HoIntraBSCAtmpt) AS sum_att,
|
||||
SUM(succOutgoingInternalInterCellHDOs) AS sum_succ,
|
||||
SUM(HoIntraBscLostMs) AS sum_drop,
|
||||
SUM(HoIntraBSCIn) AS sum_insucc,
|
||||
SUM(FailIncomingHDOs) AS sum_infail
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id'
|
||||
GROUP BY CellIdentity
|
||||
";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
//echo "<br>$sel_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][7]=$rows[sum_att];
|
||||
$btsArray[$i][8]=$rows[sum_succ];
|
||||
$btsArray[$i][9]=$rows[sum_drop];
|
||||
$btsArray[$i][10]=$rows[sum_insucc];
|
||||
$btsArray[$i][11]=$rows[sum_infail];
|
||||
}
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][2]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][1]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
|
||||
$InterOutDrop=($btsArray[$i][2] - $btsArray[$i][3] - $btsArray[$i][4])*100;
|
||||
echo "<TD> $InterOutDrop</TD>";
|
||||
if($btsArray[$i][2] > 0){
|
||||
$SuccRate = ($btsArray[$i][3] / $btsArray[$i][2])* 100;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
|
||||
echo "<TD> {$btsArray[$i][5]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][6]}</TD>";
|
||||
if($btsArray[$i][5] > 0){
|
||||
$SuccRate = ($btsArray[$i][6] / $btsArray[$i][5]) * 100;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
echo "<TD> {$btsArray[$i][7]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][8]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][9]}</TD>";
|
||||
if($btsArray[$i][7] > 0){
|
||||
$SuccRate = ($btsArray[$i][8] / $btsArray[$i][7]) * 100;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
$IntraInAtt=$btsArray[$i][10]+$btsArray[$i][11];
|
||||
echo "<TD> $IntraInAtt</TD>";
|
||||
echo "<TD> {$btsArray[$i][10]}</TD>";
|
||||
if($IntraInAtt > 0){
|
||||
$SuccRate=($btsArray[$i][10] / ($btsArray[$i][10]+$btsArray[$i][11])) * 100;;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
|
||||
$base_field=7; //$btsArray[bts_num][j]'s j
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
|
||||
}
|
||||
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
|
||||
$show_field=array(2,3,5,6,7,8,10,11);
|
||||
|
||||
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6>壬<EFBFBD><E5A3AC>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
$legend_def=array('Inter_out Att','Inter_out succ','Inter_in Att','Inter_in succ','Intra_out Att','Intra_out succ','Intra_in Att','Intra_in succ',);
|
||||
|
||||
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
$legend_color=array('blue','green','blue','green','blue','green','blue','green');
|
||||
|
||||
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
for($i=0;$i<sizeof($legend_def);$i++){
|
||||
echo "<td width=\"10\">";
|
||||
showImg($legend_color[$i],10,10);
|
||||
echo "</td>";
|
||||
echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
if($i == 3){
|
||||
echo "<tr>";
|
||||
echo "<td width=\"60\"> </td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(max_first_num){
|
||||
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=0;i < max_first_num;i++){
|
||||
for(k=0;k<3;k++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+k+'_'+j;
|
||||
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(i=0;i<4;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
//echo "$strHandover:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
//echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
//echo "<br>";
|
||||
//------------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ----------------------------------
|
||||
|
||||
$bts_num=$btsBgnNo;
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "$strHandover:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$btsmgr_list[$i]:TCH($strHOExplain) $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
|
||||
for($k=0;$k<sizeof($show_field);$k++){
|
||||
$arrNum = $show_field[$k];
|
||||
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
|
||||
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
|
||||
$width = 19;
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
15
wxc2_omc/performance/bssCsta/Handover_index.php
Executable file
15
wxc2_omc/performance/bssCsta/Handover_index.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="Handover_up.php">
|
||||
<frame name="main" src="Handover_down.php" scrolling="auto" target="_self">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
118
wxc2_omc/performance/bssCsta/Handover_up.php
Executable file
118
wxc2_omc/performance/bssCsta/Handover_up.php
Executable file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>汾<D4B0><E6B1BE>Ϣ
|
||||
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.5";
|
||||
$ThisPage = "$strTitlePerformance > BSS > $strHandover";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="Handover_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
385
wxc2_omc/performance/bssCsta/ReceLevAndQua_down.php
Executable file
385
wxc2_omc/performance/bssCsta/ReceLevAndQua_down.php
Executable file
@@ -0,0 +1,385 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db=$bss_db;
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp0;
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
|
||||
}
|
||||
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
$result_rows=mysqli_fetch_array($sel_result);
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1];
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
}while($result_rows=mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
}
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(ID) {
|
||||
which=eval(ID);
|
||||
if(which.style.display == "none") {
|
||||
which.style.display = "block";
|
||||
signRemark.style.display = "block";
|
||||
}else {
|
||||
which.style.display = "none";
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<body leftmargin=12 topmargin=0>
|
||||
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum $strReceiveLevelAndQuality $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR>";
|
||||
echo "<TD width=\"12%\">BTS ID</TD>";
|
||||
echo "<TD width=\"12%\">$strCellID</TD>";
|
||||
echo "<TD width=\"12%\">UL Rx level</TD>";
|
||||
echo "<TD width=\"12%\">DL Rx level</TD>";
|
||||
echo "<TD width=\"12%\">UL Rx quality</TD>";
|
||||
echo "<TD width=\"12%\">DL Rx quality</TD>";
|
||||
echo "</TR>";
|
||||
//echo "ddd = $btsEndNo";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
|
||||
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql<br>";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
|
||||
$sum_sql="SELECT CellIdentity as CellIdentity,
|
||||
8*(
|
||||
0.5*SUM(UplinkAvgSignal_0)+1.5*SUM(UplinkAvgSignal_1)+2.5*SUM(UplinkAvgSignal_2)+3.5*SUM(UplinkAvgSignal_3)
|
||||
+4.5*SUM(UplinkAvgSignal_4)+5.5*SUM(UplinkAvgSignal_5)+6.5*SUM(UplinkAvgSignal_6)+7.5*SUM(UplinkAvgSignal_7)
|
||||
) / (SUM(UplinkAvgSignal_0)+SUM(UplinkAvgSignal_1)+SUM(UplinkAvgSignal_2)+SUM(UplinkAvgSignal_3)
|
||||
+SUM(UplinkAvgSignal_4)+SUM(UplinkAvgSignal_5)+SUM(UplinkAvgSignal_6)+SUM(UplinkAvgSignal_7)
|
||||
) as UL_level,
|
||||
8*(
|
||||
0.5*SUM(DownlinkAvgSignal_0)+1.5*SUM(DownlinkAvgSignal_1)+2.5*SUM(DownlinkAvgSignal_2)+3.5*SUM(DownlinkAvgSignal_3)
|
||||
+4.5*SUM(DownlinkAvgSignal_4)+5.5*SUM(DownlinkAvgSignal_5)+6.5*SUM(DownlinkAvgSignal_6)+7.5*SUM(DownlinkAvgSignal_7))
|
||||
/ (SUM(DownlinkAvgSignal_0)+SUM(DownlinkAvgSignal_1)+SUM(DownlinkAvgSignal_2)+SUM(DownlinkAvgSignal_3)
|
||||
+SUM(DownlinkAvgSignal_4)+SUM(DownlinkAvgSignal_5)+SUM(DownlinkAvgSignal_6)+SUM(DownlinkAvgSignal_7)
|
||||
) as DL_level,
|
||||
(SUM(TotalQualityDurationUL_0)*0+SUM(TotalQualityDurationUL_1)+SUM(TotalQualityDurationUL_2)*2+SUM(TotalQualityDurationUL_3)*3+SUM(TotalQualityDurationUL_4)*4
|
||||
+SUM(TotalQualityDurationUL_5)*5+SUM(TotalQualityDurationUL_6)*6+SUM(TotalQualityDurationUL_7)*7)
|
||||
/ SUM(TotalQualityDurationUL_0+TotalQualityDurationUL_1+TotalQualityDurationUL_2+TotalQualityDurationUL_3
|
||||
+TotalQualityDurationUL_4+TotalQualityDurationUL_5+TotalQualityDurationUL_6+TotalQualityDurationUL_7) as UL_quality,
|
||||
(SUM(TotalQualityDurationDL_0)*0+SUM(TotalQualityDurationDL_1)+SUM(TotalQualityDurationDL_2)*2+SUM(TotalQualityDurationDL_3)*3+SUM(TotalQualityDurationDL_4)*4
|
||||
+SUM(TotalQualityDurationDL_5)*5+SUM(TotalQualityDurationDL_6)*6+SUM(TotalQualityDurationDL_7)*7)
|
||||
/ SUM(TotalQualityDurationDL_0+TotalQualityDurationDL_1+TotalQualityDurationDL_2+TotalQualityDurationDL_3
|
||||
+TotalQualityDurationDL_4+TotalQualityDurationDL_5+TotalQualityDurationDL_6+TotalQualityDurationDL_7) as DL_quality
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id' GROUP BY CellIdentity";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
//echo "<br>$sel_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][1]=$rows[UL_level];
|
||||
$btsArray[$i][2]=$rows[DL_level];
|
||||
$btsArray[$i][3]=$rows[UL_quality];
|
||||
$btsArray[$i][4]=$rows[DL_quality];
|
||||
|
||||
}
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> ".round($btsArray[$i][1])."</TD>";
|
||||
echo "<TD> ".round($btsArray[$i][2])."</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][4]}</TD>";
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
|
||||
//$base_field=1; //$btsArray[bts_num][j]'s j
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
|
||||
}
|
||||
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
|
||||
//$show_field=array(1,2,3,4);
|
||||
$show_field=array(1,2);
|
||||
|
||||
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6>壬<EFBFBD><E5A3AC>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
//$legend_def=array('UL Rx Level','DL Rx Level','UL Rx Quality','DL Rx Quality');
|
||||
$legend_def=array('UL Rx level','DL Rx level');
|
||||
|
||||
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
$legend_color=array('blue','orange');
|
||||
|
||||
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
for($i=0;$i<sizeof($legend_def);$i++){
|
||||
echo "<td width=\"10\">";
|
||||
showImg($legend_color[$i],10,10);
|
||||
echo "</td>";
|
||||
echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(max_first_num){
|
||||
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=0;i < max_first_num;i++){
|
||||
for(k=0;k<3;k++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+k+'_'+j;
|
||||
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(i=0;i<4;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
//echo "Receive quality:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
//echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
//echo "<br>";
|
||||
//------------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ----------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "Receive quality:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$btsmgr_list[$i]:TCH($strTCHExplain) $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
|
||||
for($k=0;$k<sizeof($show_field);$k++){
|
||||
$arrNum = $show_field[$k];
|
||||
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
|
||||
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
|
||||
$width = 19;
|
||||
//$imgName = 'img'.$j.'_'.$k;
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
15
wxc2_omc/performance/bssCsta/ReceLevAndQua_index.php
Executable file
15
wxc2_omc/performance/bssCsta/ReceLevAndQua_index.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="ReceLevAndQua_up.php">
|
||||
<frame name="main" src="ReceLevAndQua_down.php" scrolling="auto" target="_self">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
117
wxc2_omc/performance/bssCsta/ReceLevAndQua_up.php
Executable file
117
wxc2_omc/performance/bssCsta/ReceLevAndQua_up.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>汾<D4B0><E6B1BE>Ϣ
|
||||
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.4";
|
||||
$ThisPage = "$strTitlePerformance > BSS > $strReceiveLevelAndQuality";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="ReceLevAndQua_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
394
wxc2_omc/performance/bssCsta/SDCCH_down.php
Executable file
394
wxc2_omc/performance/bssCsta/SDCCH_down.php
Executable file
@@ -0,0 +1,394 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db=$bss_db;
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp);
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
|
||||
}
|
||||
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
$result_rows=mysqli_fetch_array($sel_result);
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1];
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
}while($result_rows=mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
}
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(ID) {
|
||||
which=eval(ID);
|
||||
if(which.style.display == "none") {
|
||||
which.style.display = "block";
|
||||
signRemark.style.display = "block";
|
||||
}else {
|
||||
which.style.display = "none";
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<body leftmargin=12 topmargin=0>
|
||||
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<nobr><font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum SDCCH($strSDCCHExplain) $strStatistics </b></font></nobr>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo ":$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR>";
|
||||
echo "<TD width=\"12%\">BTS ID</TD>";
|
||||
echo "<TD width=\"12%\">$strCellID </TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strAttSDCCH\">SDCCH attempt</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strFailSDCCH\">SDCCH failure</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strDCCHFailRate\">SDCCH Failure (%)</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strRFDrop\">RF Failure</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strDrop\">Failure</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strDropRate\">Failure (%)</TD>";
|
||||
echo "</TR>";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND ObjectId like '$cell_object[$i]' AND bssid=$bss_id";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
|
||||
$sum_sql="SELECT
|
||||
CellIdentity as CellIdentity,
|
||||
SUM(attSDCCHSeizures) as sum_attSDCCH,
|
||||
SUM(attSDCCHSeizuresFailures) as sum_failSDCCH,
|
||||
SUM(chanReqMSFail) as sum_CRMSfail,
|
||||
SUM(SDCCHRadioFail) as sum_SDCCHRfail,
|
||||
SUM(SDCCHBssDrop) as sum_SDCCHdrop
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id'
|
||||
GROUP BY CellIdentity
|
||||
";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
//echo "<br>$sel_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][1]=$rows[sum_attSDCCH];
|
||||
$btsArray[$i][2]=$rows[sum_failSDCCH];
|
||||
$btsArray[$i][3]=$rows[sum_CRMSfail];
|
||||
$btsArray[$i][4]=$rows[sum_SDCCHRfail];
|
||||
$btsArray[$i][5]=$rows[sum_SDCCHdrop];
|
||||
}
|
||||
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][1]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][2]}</TD>";
|
||||
if($btsArray[$i][1] <= 0){
|
||||
$SDCCHFailRate=0;
|
||||
}else{
|
||||
$SDCCHFailRate = $btsArray[$i][2]/$btsArray[$i][1]*100;
|
||||
$SDCCHFailRate = sprintf("%01.2f",$SDCCHFailRate);
|
||||
}
|
||||
echo "<TD> $SDCCHFailRate"."%</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
$Drop=$btsArray[$i][4]+$btsArray[$i][5];
|
||||
echo "<TD> $Drop</TD>";
|
||||
if($btsArray[$i][1] <=0){
|
||||
$DropRate=0;
|
||||
}else{
|
||||
$DropRate = $Drop/$btsArray[$i][1]*100;
|
||||
$DropRate = sprintf("%01.2f",$DropRate);
|
||||
}
|
||||
echo "<TD> $DropRate"."%</TD>";
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
|
||||
//$base_field=1; //$btsArray[bts_num][j]'s j
|
||||
for($base_field=1;$base_field<8;$base_field++){
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
|
||||
}
|
||||
}
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
|
||||
}
|
||||
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
|
||||
$show_field=array(1,2,4,5);
|
||||
|
||||
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6>壬<EFBFBD><E5A3AC>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
$legend_def=array('SDCCH attempt','SDCCH failure','RF failure','Failure');
|
||||
|
||||
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
|
||||
$legend_color=array('blue','orange','yellow','red');
|
||||
|
||||
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
for($i=0;$i<sizeof($legend_def);$i++){
|
||||
echo "<td width=\"10\">";
|
||||
showImg($legend_color[$i],10,10);
|
||||
echo "</td>";
|
||||
echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(max_first_num){
|
||||
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=0;i < max_first_num;i++){
|
||||
for(k=0;k<3;k++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+k+'_'+j;
|
||||
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(i=0;i<4;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
//echo "SDCCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
//echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
//echo "<br>";
|
||||
//------------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ----------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "SDCCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>BtsMgr.$btsmgrcont[1]:SDCCH($strSDCCHExplain) $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
|
||||
for($k=0;$k<sizeof($show_field);$k++){
|
||||
$arrNum = $show_field[$k];
|
||||
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
|
||||
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
|
||||
$width = 19;
|
||||
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
15
wxc2_omc/performance/bssCsta/SDCCH_index.php
Executable file
15
wxc2_omc/performance/bssCsta/SDCCH_index.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="SDCCH_up.php">
|
||||
<frame name="main" src="SDCCH_down.php" scrolling="auto" target="_self">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
117
wxc2_omc/performance/bssCsta/SDCCH_up.php
Executable file
117
wxc2_omc/performance/bssCsta/SDCCH_up.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>汾<D4B0><E6B1BE>Ϣ
|
||||
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.2";
|
||||
$ThisPage = "$strTitlePerformance > BSS > SDCCH";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="SDCCH_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
385
wxc2_omc/performance/bssCsta/TCH_down.php
Executable file
385
wxc2_omc/performance/bssCsta/TCH_down.php
Executable file
@@ -0,0 +1,385 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
.....
|
||||
...........
|
||||
|
||||
.......: header.inc
|
||||
...:
|
||||
|
||||
.....
|
||||
|
||||
.....
|
||||
|
||||
...
|
||||
|
||||
.....
|
||||
NO.1
|
||||
...
|
||||
...
|
||||
.....
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db=$bss_db;
|
||||
$node_table = 'OMCR_BSSTREE';
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//$btsArray[$i]=array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp);
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
|
||||
}
|
||||
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_rows=@mysqli_fetch_array($sel_result);
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1]; //here Bts's ID =bts change by hewd 2003-02-27
|
||||
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
}while($result_rows=@mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(ID) {
|
||||
which=eval(ID);
|
||||
if(which.style.display == "none") {
|
||||
which.style.display = "block";
|
||||
signRemark.style.display = "block";
|
||||
}else {
|
||||
which.style.display = "none";
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<body leftmargin=12 topmargin=0>
|
||||
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum TCH($strTCHExplain) $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR>";
|
||||
echo "<TD width=\"10%\">BTS ID</TD>";
|
||||
echo "<TD width=\"10%\"> $strCellID </TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strMOExplain\">MO call</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strMTExplain\">MT call</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strLUExplain_1\">LU</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strSSExplain\">SS</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strAttempt\">TCH attempt</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strSuccess\">TCH success</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strRFExplain"."$strDrop\">RF failure</TD>";
|
||||
echo "</TR>";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
|
||||
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
|
||||
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql<br>";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
$sum_sql="SELECT
|
||||
bssid,CellIdentity,
|
||||
SUM(succAccProcCMOrigCall) as sum_MO,
|
||||
SUM(succAccProcPageRsp) as sum_MT,
|
||||
SUM(succAccProcLocUpd) as sum_LU,
|
||||
SUM(succAccProcCMSs) as sum_SS,
|
||||
SUM(attTCHSeizures) as sum_AttTCH,
|
||||
SUM(succTCHSeizures) as sum_SuccTCH,
|
||||
SUM(TCHRadioFail) as sum_RFDorp
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id' GROUP BY CellIdentity";
|
||||
|
||||
|
||||
//echo "<br>$sum_sql<br> ";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=@mysqli_fetch_array($sel_result)){
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][1]=$rows[sum_MO];
|
||||
echo "MO-{$btsArray[$i][1]}<br>";
|
||||
$btsArray[$i][2]=$rows[sum_MT];
|
||||
$btsArray[$i][3]=$rows[sum_LU];
|
||||
$btsArray[$i][4]=$rows[sum_SS];
|
||||
$btsArray[$i][5]=$rows[sum_AttTCH];
|
||||
$btsArray[$i][6]=$rows[sum_SuccTCH];
|
||||
$btsArray[$i][7]=$rows[sum_RFDorp];
|
||||
}
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][1]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][2]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][4]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][5]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][6]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][7]}</TD>";
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//.....
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//........ get the Division by number
|
||||
//$base_field=5; //$btsArray[bts_num][j]'s j
|
||||
for($base_field=1;$base_field<8;$base_field++){
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
|
||||
}
|
||||
}
|
||||
//echo "max_number=$max_number";
|
||||
$top_number =(round($max_number/100)+1)*100; //.............
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
|
||||
//.........$btsArray[bts_num][j]....j
|
||||
$show_field=array(1,2,3,4,5,6,7);
|
||||
|
||||
//............$show_field....
|
||||
$legend_def=array('MO call','MT call','LU','SS','TCH attempt','TCH success','RF failure');
|
||||
|
||||
//..........$show_field....
|
||||
$legend_color=array('blue','brown','orange','yellow','blue','green','red');
|
||||
|
||||
//------------------------------....--------------------------------------
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
for($i=0;$i<sizeof($legend_def);$i++){
|
||||
echo "<td width=\"10\">";
|
||||
showImg($legend_color[$i],10,10);
|
||||
echo "</td>";
|
||||
echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(max_first_num){
|
||||
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=0;i < max_first_num;i++){
|
||||
for(k=0;k<3;k++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+k+'_'+j;
|
||||
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(i=0;i<4;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
//------------------------------.....----------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "TCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$btsmgr_list[$i]:TCH($strTCHExplain) $strStatistics</b>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//....bts....
|
||||
for($k=0;$k<sizeof($show_field);$k++){
|
||||
$arrNum = $show_field[$k];
|
||||
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
|
||||
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
|
||||
//echo "<br>btsArray[$bts_num][$arrNum]={$btsArray[$bts_num][$arrNum]}";
|
||||
$width = 19;
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="20" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
15
wxc2_omc/performance/bssCsta/TCH_index.php
Executable file
15
wxc2_omc/performance/bssCsta/TCH_index.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="TCH_up.php">
|
||||
<frame name="main" src="TCH_down.php" scrolling="auto" target="_self">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
117
wxc2_omc/performance/bssCsta/TCH_up.php
Executable file
117
wxc2_omc/performance/bssCsta/TCH_up.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>汾<D4B0><E6B1BE>Ϣ
|
||||
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.1";
|
||||
$ThisPage = $strTitlePerformance." > BSS > TCH";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="TCH_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user