init web ems all
This commit is contained in:
22
wxc2_omc/element/bssSpecific/alarm_show.php
Executable file
22
wxc2_omc/element/bssSpecific/alarm_show.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$backurl=urldecode($backurl);
|
||||
|
||||
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
echo " <br>";
|
||||
|
||||
$se_info=explode("---",$info);
|
||||
echo "<font style=\"font-family:sans-serif\" color=black size=1><b>$se_info[0]<br>$se_info[1]</b></font>";
|
||||
echo " <br><br>";
|
||||
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"10%\"><a href=$backurl style=\"text-decoration:none\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\"><font style=\"font-family:sans-serif\" size=2><b>Back</b></font></a></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
823
wxc2_omc/element/bssSpecific/bssSpecific.php
Executable file
823
wxc2_omc/element/bssSpecific/bssSpecific.php
Executable file
@@ -0,0 +1,823 @@
|
||||
<?php
|
||||
|
||||
require("../../inc/header.inc");
|
||||
require("logdb.inc");
|
||||
require("function.php");
|
||||
|
||||
$DEBUG = 0;
|
||||
if($DEBUG) echo "<br><3E><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC>ԭ<EFBFBD>£<EFBFBD><C2A3><EFBFBD> <20><>^_^";
|
||||
|
||||
//******
|
||||
//$url_temp=$_SERVER["REQUEST_URI"];
|
||||
//echo "This page URL:$url_temp<br>";
|
||||
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "Configuration > <a href=\"JavaScript:backpage(1,'../overview/overview.php')\" > Network</a>";
|
||||
echo " > BSS Specific";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
function flash($bssid)
|
||||
{
|
||||
|
||||
echo "<script language=\"javascript\">";
|
||||
$href="$PHP_SELF?bssid=$bssid";
|
||||
echo "window.location.href='$href';";
|
||||
echo "</script>";
|
||||
}
|
||||
if($addtype=="BtsMgr")
|
||||
{
|
||||
if($btsid>12)
|
||||
{
|
||||
echo "<script LANGUAGE=\"JavaScript\">";
|
||||
echo "alert(\"Bts number is too big!\");";
|
||||
echo "</script>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$nmicmd="create BtsMgr ".$btsid;
|
||||
$objectid="BssFunc";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
flash($bssid);
|
||||
}
|
||||
if($deltype=="BtsMgr")
|
||||
{
|
||||
//echo "BtsMgr is OK!<br>";
|
||||
$nmicmd="delete BtsMgr ".$btsid;
|
||||
$objectid="BssFunc";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(1);
|
||||
flash($bssid);
|
||||
}
|
||||
if($upload==1)
|
||||
{
|
||||
$nmicmd="upload 12";
|
||||
$objectid="BssFunc";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(3);
|
||||
flash($bssid);
|
||||
}
|
||||
|
||||
$nmicmd="get";
|
||||
$objectid="BssFunc";
|
||||
// putcommand($bssid,$objectid,$nmicmd);
|
||||
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bssid";
|
||||
//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($row[0]=='')
|
||||
//{
|
||||
// $nmicmd="get";
|
||||
// $objectid="BssFunc";
|
||||
// putcommand($bssid,$objectid,$nmicmd);
|
||||
//flash($bssid);
|
||||
//}
|
||||
$bsplusbtsno = $row[1];
|
||||
if($isbsplus==1)
|
||||
$checkbsstype="Bsplus";
|
||||
else if($isbsplus==0)
|
||||
$checkbsstype="BSC+BTS";
|
||||
|
||||
|
||||
|
||||
$db = mysql_connect($hostname, $username, $password);
|
||||
mysql_select_db($dbname,$db);
|
||||
|
||||
$sqlstring = "select name,ip from OMCR_BSSTABLE where bssid=$bssid";
|
||||
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
{
|
||||
$name = $row[0];
|
||||
$ip = $row[1];
|
||||
}
|
||||
//if($software=='')
|
||||
// {
|
||||
// $nmicmd="get";
|
||||
// $objectid="Software.0";
|
||||
// putcommand($bssid,$objectid,$nmicmd);
|
||||
// }
|
||||
$sqlstring = "select CurrentBuildDir,CurrentSoftwareVersion from OMCR_Software where bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
|
||||
$software = $row[0];
|
||||
$version = $row[1];
|
||||
$upload = 1;
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"75%\"></td>";
|
||||
echo "<td width=\"15%\">";
|
||||
echo "<INPUT type=button style='width: 85' value='Get All' name=upload style='width: 95' class=chinese" .
|
||||
" onClick=\"JavaScript:upload_data('$upload','$bssid')\"></td>";
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage(1,'../overview/overview.php')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\"><b>BSS Name:</b> <FONT color=#0000FF size=+2pt>$name</FONT></td>";
|
||||
echo "<td width=\"25%\"><b>IP Address:</b> <FONT color=#0000FF size=+2pt>$ip</FONT></td>";
|
||||
echo "<td width=\"35%\"><b>Software Version:</b> <FONT color=#0000FF size=+2pt>$software/$version</FONT></td>";
|
||||
echo "<td width=\"15%\"><b>BSS Type:</b> <FONT color=#0000FF size=+2pt>$checkbsstype</FONT></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<TABLE border="1" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" width="100%">
|
||||
|
||||
<?php
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,PointCode,NetworkIndicator from OMCR_AIf where bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$pc,$ni) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
//International =0;SPARE=1;National=2;RNational=3
|
||||
if($ni==0)$ni="International";
|
||||
else if($ni==1)$ni="SPARE";
|
||||
else if($ni==2)$ni="National";
|
||||
else if($ni==3)$ni="RNational";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><a href=\"./bss_aif.php?bssid=$bssid\";><b>AIf</b></a></td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">BSS Point Code</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\">NI</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=AIf.0&tablename=OMCR_AIf&bssid=$bssid\";>$pc</a></td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=AIf.0&tablename=OMCR_AIf&bssid=$bssid\";>$ni</a></td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
//shelf============================================================
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>SHELF</b></td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">Door Alarm</td>";
|
||||
echo "<td width=\"40%\">Uplink Volume Control</td>";
|
||||
echo "<td width=\"30%\">Downlink Volume Control</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=Shelf.0&tablename=OMCR_Wavex&bssid=$bssid\";>Disable</a></td>";
|
||||
echo "<td width=\"35%\"><a href=\"./objShow.php?language=$language&objectid=Shelf.0&tablename=OMCR_Wavex&bssid=$bssid\";>normal</a></td>";
|
||||
echo "<td width=\"35%\"><a href=\"./objShow.php?language=$language&objectid=Shelf.0&tablename=OMCR_Wavex&bssid=$bssid\";>normal</a></td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
|
||||
echo "<td width=\"25%\">No</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\">Interface</td>";
|
||||
echo "</tr>";
|
||||
//Card ================================================================================================
|
||||
//...>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
|
||||
|
||||
$sqlstring = "select engDisplayName,ObjectId from OMCR_BSSTREE where engDisplayName like 'Card%' and Presence=1 and ObjectId not like 'BtsMgr_Shelf%' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($display_name[],$object_name[]) =$row;
|
||||
}
|
||||
$no_of_obj = count($object_name);
|
||||
|
||||
|
||||
|
||||
$sqlstring = "select engDisplayName,ObjectId from OMCR_BSSTREE where engDisplayName like 'DSP Card%' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($dsp_display_name[],$dsp_object_name[]) =$row;
|
||||
}
|
||||
$no_of_dsp = count($dsp_object_name);
|
||||
echo "<tr>";
|
||||
for($i=0;$i<$no_of_obj;$i++)
|
||||
{
|
||||
$conts = explode(".",$object_name[$i]);//Card.0.1
|
||||
$sqlstring = "select Presence from OMCR_BSSTREE where ObjectId='Port.0.$conts[2].0' and bssid=$bssid";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$presence0 = $row[0];
|
||||
$sqlstring = "select Presence from OMCR_BSSTREE where ObjectId='Port.0.$conts[2].1' and bssid=$bssid";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$presence1 = $row[0];
|
||||
if($presence0==1&&$presence1==1){//////////////////////////////////
|
||||
|
||||
//print_r($object_name);
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
//echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=Port.0.$conts[2].0&tablename=OMCR_E1port&bssid=$bssid\";>Port 0</a>";
|
||||
echo "<td width=\"12%\"><a href=\"./objShow.php?language=$language&objectid=$object_name[$i]&tablename=OMCR_E1trmod&bssid=$bssid\";>$display_name[$i]</td>";
|
||||
|
||||
|
||||
|
||||
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,INTERFACE from OMCR_E1port where ObjectId='Port.0.$conts[2].0' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$interface) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
if($interface==0)$interface="Unused";
|
||||
else if($interface==1)$interface="AIF";
|
||||
else if($interface==2)$interface="ABIS";
|
||||
else if($interface==5)$interface="R2";
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=Port.0.$conts[2].0&tablename=OMCR_E1port&bssid=$bssid\";>Port 0</a>";//-----Port 0
|
||||
|
||||
echo "</td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"15%\">$interface</td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"12%\"></td>";
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,INTERFACE from OMCR_E1port where ObjectId='Port.0.$conts[2].1' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$interface) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
if($interface==0)$interface="Unused";
|
||||
else if($interface==1)$interface="AIF";
|
||||
else if($interface==2)$interface="ABIS";
|
||||
else if($interface==5)$interface="R2";
|
||||
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=Port.0.$conts[2].1&tablename=OMCR_E1port&bssid=$bssid\";>Port 1</a>";
|
||||
|
||||
echo "</td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"15%\">$interface</td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
//Dsp Card=====================================================================================
|
||||
//AdminState OperaState AvailStatus DSP Type
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
|
||||
echo "<td width=\"25%\">Dsp No</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperaState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\">DSP Type</td>";
|
||||
//echo "<td width=\"15%\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
|
||||
for($j=0;$j<$no_of_dsp;$j++)
|
||||
{
|
||||
$dconts = explode(".",$dsp_object_name[$j]);//DSP.0.cardnum.dspnum.(0~3)
|
||||
$cardnum = $dconts[2];
|
||||
$dspnum = $dconts[3];
|
||||
if($dconts[2] == ($i+1))
|
||||
{
|
||||
|
||||
//print_r($dsp_object_name[$j]);
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
//$temp=substr($dsp_display_name[$j],4);
|
||||
echo "<td width=\"12%\">$dsp_display_name[$j]</td>";
|
||||
//echo "<td width=\"13%\"><a href=\"./bss_dsp.php?dspnum=$dspnum&cardnum=$cardnum&bssid=$bssid\";>$dsp_display_name[$j]</a></td>";
|
||||
//dsp 0
|
||||
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.0&tablename=OMCR_TrauDsp&bssid=$bssid\";>Dsp 0</a></td>";
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.0' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"18%\">$availstatus</td>";
|
||||
echo "<td width=\"17%\">$type</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//dsp 1
|
||||
echo "<tr>";
|
||||
echo "<td width=\"12%\"></td>";
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.1&tablename=OMCR_TrauDsp&bssid=$bssid\";>Dsp 1</a></td>";
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.1' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
|
||||
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"18%\">$availstatus</td>";
|
||||
echo "<td width=\"17%\">$type</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//dsp 2
|
||||
echo "<tr>";
|
||||
echo "<td width=\"12%\"></td>";
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.2&tablename=OMCR_TrauDsp&bssid=$bssid\";>Dsp 2</a></td>";
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.2' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"18%\">$availstatus</td>";
|
||||
echo "<td width=\"17%\">$type</td>";
|
||||
echo "</tr>";
|
||||
//dsp 3
|
||||
echo "<tr>";
|
||||
echo "<td width=\"12%\"></td>";
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.3&tablename=OMCR_TrauDsp&bssid=$bssid\";>Dsp 3</a></td>";
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.3' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"18%\">$availstatus</td>";
|
||||
echo "<td width=\"17%\">$type</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if($j==0)
|
||||
{
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
|
||||
echo "<td width=\"25%\">No</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\">Interface</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}///////////////////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
}
|
||||
$sqlstring = "select Presence from OMCR_BSSTREE where ObjectId='Card.0.17' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
$presence =$row[0];
|
||||
}
|
||||
if($presence==1){
|
||||
echo "<tr>";
|
||||
|
||||
|
||||
//====clock module=================
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
|
||||
echo "<td width=\"25%\"></td>";
|
||||
echo "<td width=\"20%\">Part Number</td>";
|
||||
echo "<td width=\"20%\">Revision Number</td>";
|
||||
echo "<td width=\"20%\">Serial Number</td>";
|
||||
echo "<td width=\"15%\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
//get the data from database
|
||||
|
||||
$sqlstring = "select PartNumber,RevNumber,SerialNumber from OMCR_ClockMod where ObjectId='Card.0.17' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($PartNumber,$RevNumber,$SerialNumber) =$row;
|
||||
}
|
||||
|
||||
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
|
||||
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=Card.0.17&tablename=OMCR_ClockMod&bssid=$bssid\";>ClockModule</a></td>";
|
||||
echo "<td width=\"20%\">$PartNumber</td>";
|
||||
echo "<td width=\"20%\">$RevNumber</td>";
|
||||
echo "<td width=\"20%\">$SerialNumber</td>";
|
||||
echo "<td width=\"15%\"></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
//Bsc.0===========================================>
|
||||
echo "</table>";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>Bsc</b></td>";
|
||||
echo "<td>";
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,Label,EnableVeryEarlyAssignment from OMCR_Bsc where ObjectId='Bsc.0' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$label,$vea) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
if($vea==0)$vea="Disable";
|
||||
else if($vea==1)$vea="Enable";
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">Label</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperaState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\">VEA</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
|
||||
echo "<tr>";
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=Bsc.0&tablename=OMCR_Bsc&bssid=$bssid\";>\"$label\"</a></td>";
|
||||
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"15%\"><a href=\"./objShow.php?language=$language&objectid=Bsc.0&tablename=OMCR_Bsc&bssid=$bssid\";>$vea</a></td>";
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
//Add BtsMgr---------------->
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where engDisplayName like 'BTS Manager%' and Presence=1 and bssid=$bssid";
|
||||
$objectid = 'BssFunc';
|
||||
$addtype = 'BtsMgr';
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
$bts_objectid[] =$row[0];
|
||||
}
|
||||
$no_bts_exist=count($bts_objectid);
|
||||
|
||||
$array = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
|
||||
//print_r($array);
|
||||
|
||||
for($n=0;$n<$no_bts_exist;$n++)
|
||||
{
|
||||
$bts_num = explode(".",$bts_objectid[$n]);
|
||||
$num[$n] = $bts_num[1];
|
||||
unset($array[$num[$n]-1]);
|
||||
}
|
||||
$array = array_values($array);
|
||||
//print_r($array);
|
||||
$btsid = $array[0];
|
||||
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" ><tr >";
|
||||
echo "<td align=left><b>BtsMgr</b></td>";
|
||||
echo "<td align=\"right\"><a href=\"javascript:addTheObj('$bssid','$objectid','$btsid','-1','-1','$addtype')\">+</a></td>";
|
||||
echo "</tr></table>";
|
||||
|
||||
//BtsMgr>======================================================================
|
||||
$sqlstring = "select engDisplayName,ObjectId from OMCR_BSSTREE where engDisplayName like 'BTS Manager%' and ObjectId<>'BtsMgr.0' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($bts_display_name[],$bts_object_name[]) =$row;
|
||||
}
|
||||
$no_of_bts = count($bts_object_name);
|
||||
|
||||
$bsplus = 0;
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">BtsMgr_Num</td>";
|
||||
echo "<td width=\"20%\">BtsMgrName</td>";
|
||||
echo "<td width=\"20%\">E1UseType</td>";
|
||||
echo "<td width=\"20%\">RfdType</td>";
|
||||
echo "<td width=\"15%\">Delete</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//BtsMgr 0 >>>>>>>Bsplus
|
||||
if($isbsplus==1)
|
||||
{
|
||||
$sqlstring = "select Label,E1UseType,RfdType from OMCR_BtsMgr where ObjectId='BtsMgr.$bsplus' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$btsid=0;
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($label,$e1tp,$rfd) =$row;
|
||||
}
|
||||
|
||||
|
||||
if($e1tp==0)$e1tp="Dedicated";
|
||||
else if($e1tp==1)$e1tp="DC_String";
|
||||
else if($e1tp==2)$e1tp="DC_Ring";
|
||||
else if($e1tp==3)$e1tp="XConnect";
|
||||
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./bss_btsmgr.php?btsid=$btsid&bssid=$bssid\";><b>0</b></a></td>";//bsplus
|
||||
$helf = "./objShow.php?language=$language&objectid=BtsMgr.0&tablename=OMCR_BtsMgr&bssid=$bssid&btsid=$btsid";
|
||||
echo "<td width=\"20%\"><a href='$helf';>\"$label\"</a></td>";
|
||||
echo "<td width=\"20%\">$e1tp</td>";
|
||||
echo "<td width=\"20%\">$rfd</td>";
|
||||
echo "<td width=\"15%\"></td>";
|
||||
//echo "<input type=\"checkbox\" name=\"seleceAll\" title=\"Select all to delete\" value=\"1\" //onClick=selectAllToDel('$flag',this,0,$valid_num)></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
//BtsMgr (1~12)==========================================================>
|
||||
|
||||
for($k=0;$k<$no_of_bts;$k++)
|
||||
{
|
||||
$bconts = explode(".",$bts_object_name[$k]);
|
||||
$btsid = $bconts[1];
|
||||
$sqlstring = "select Label,E1UseType,RfdType from OMCR_BtsMgr where ObjectId='BtsMgr.$bconts[1]' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($label,$e1tp,$rfd) =$row;
|
||||
}
|
||||
|
||||
if($e1tp==0)$e1tp="Dedicated";
|
||||
else if($e1tp==1)$e1tp="DC_String";
|
||||
else if($e1tp==2)$e1tp="DC_Ring";
|
||||
else if($e1tp==3)$e1tp="XConnect";
|
||||
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./bss_btsmgr.php?btsid=$btsid&bssid=$bssid\";><b>$bconts[1]</b></a>";
|
||||
|
||||
echo "</td>";
|
||||
$deltype="BtsMgr";
|
||||
$btsid =$bconts[1];
|
||||
$objectid="BssFunc";
|
||||
$helf = "./objShow.php?language=$language&objectid=BtsMgr.$btsid&tablename=OMCR_BtsMgr&bssid=$bssid&btsid=$btsid";
|
||||
|
||||
echo "<td width=\"20%\"><a href='$helf';>\"$label\"</a></td>";
|
||||
echo "<td width=\"20%\">$e1tp</td>";
|
||||
echo "<td width=\"20%\">$rfd</td>";
|
||||
echo "<td width=\"20%\">";
|
||||
echo "<input type=\"checkbox\" name=\"select this\" title=\"Select this to delete\" value=\"1\" onClick=\"javascript:delTheObj('$bssid','$objectid','$btsid','-1','-1','$deltype',this)\"></td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
//SmsCb..>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
||||
$sqlstring = "select CBCHLoading_0,CBCHLoading_1,CBCHLoading_2,CBCHLoading_3,CBCHLoading_4 from OMCR_SmsCb where ObjectId='SmsCb.0' and bssid=$bssid";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cbc0,$cbc1,$cbc2,$cbc3,$cbc4) =$row;
|
||||
}
|
||||
$ref = "./objShow.php?language=$language&objectid=SmsCb.0&tablename=OMCR_SmsCb&bssid=$bssid";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b><a href=\"./bss_smmsg.php?bssid=$bssid\">SmsCb</b></a></td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">CBCHLoading_0</td>";
|
||||
echo "<td width=\"20%\">CBCHLoading_1</td>";
|
||||
echo "<td width=\"20%\">CBCHLoading_2</td>";
|
||||
echo "<td width=\"20%\">CBCHLoading_3</td>";
|
||||
echo "<td width=\"15%\">CBCHLoading_4</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"25%\"><a href=$ref>$cbc0</a></td>";
|
||||
echo "<td width=\"20%\">$cbc1</td>";
|
||||
echo "<td width=\"20%\">$cbc2</td>";
|
||||
echo "<td width=\"20%\">$cbc3</td>";
|
||||
echo "<td width=\"15%\">$cbc4</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
?>
|
||||
207
wxc2_omc/element/bssSpecific/bss_aif.php
Executable file
207
wxc2_omc/element/bssSpecific/bss_aif.php
Executable file
@@ -0,0 +1,207 @@
|
||||
<?php
|
||||
|
||||
require("../../inc/header.inc");
|
||||
require("logdb.inc");
|
||||
require("function.php");
|
||||
$DEBUG = 0;
|
||||
if($DEBUG) echo "<br><3E><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC>ԭ<EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD>^_^";
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "Configuration > <a href=\"JavaScript:backpage(1,'../overview/overview.php')\" > Network</a>";
|
||||
echo " > <a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\" > BSS Specific</a>";
|
||||
echo " > AIf ";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
?>
|
||||
<?php
|
||||
function flash($bssid)
|
||||
{
|
||||
echo "<script language=\"javascript\">";
|
||||
$href="$PHP_SELF?bssid=$bssid";
|
||||
echo "window.location.href='$href';";
|
||||
echo "</script>";
|
||||
}
|
||||
if($addtype=='ALink')
|
||||
{
|
||||
if($linkno > 3)
|
||||
{
|
||||
echo "<script LANGUAGE=\"JavaScript\">";
|
||||
echo "alert(\"ALink number is too big!\");";
|
||||
echo "</script>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$nmicmd="create ALink ".$linkno;
|
||||
$objectid="ALinkSet.0.0";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(1);
|
||||
flash($bssid);
|
||||
}
|
||||
|
||||
}
|
||||
if($deltype=='ALink')
|
||||
{
|
||||
//echo "ALink is OK!<br>";
|
||||
$nmicmd="delete ALink ".$linkno;
|
||||
$objectid="ALinkSet.0.0";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
flash($bssid);
|
||||
}
|
||||
//$upload = 1;
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"75%\"></td>";
|
||||
echo "<td width=\"15%\">";
|
||||
//echo "<INPUT type=button style='width: 85' value='Get All' name=upload style='width: 95' class=chinese" .
|
||||
// " onClick=\"JavaScript:upload_data('$upload','$bssid')\">";
|
||||
echo "</td>";
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a><td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
<TABLE border="1" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" width="100%">
|
||||
<?php
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>LinkSet</b></td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"20%\">SPC</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"20%\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,TheirPC from OMCR_ALinkSet where bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$theirpc) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=ALinkSet.0.0&tablename=OMCR_ALinkSet&bssid=$bssid\";<b>$theirpc</b></a></td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\"></td>";
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>" ;
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where engDisplayName like 'ALink%' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($object[])=$row;//e.g ALink.0.0.(0~3)
|
||||
}
|
||||
$no_of_link=count($object);
|
||||
$array = array(0, 1, 2, 3, 4);
|
||||
//print_r($array);
|
||||
|
||||
for($n=0;$n<$no_of_link;$n++)
|
||||
{
|
||||
$link_num = explode(".",$object[$n]);
|
||||
$num[$n] = $link_num[3];
|
||||
unset($array[$num[$n]]);
|
||||
}
|
||||
$array = array_values($array);
|
||||
//print_r($array);
|
||||
|
||||
echo "<td bgcolor=\"#E6E6E6\">";
|
||||
$linkno = $array[0];
|
||||
|
||||
$addtype = 'ALink';
|
||||
$objectid = 'ALinkSet.0.0';
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" ><tr >";
|
||||
echo "<td align=left><b>ALink</b></td>";
|
||||
echo "<td align=\"right\"><a href=\"javascript:addTheObj('$bssid','$objectid','-1','-1','$linkno','$addtype')\">+</a></td>";
|
||||
echo "</tr></table>";
|
||||
echo "</td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"20%\">No</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"20%\">Delete</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
for($i=0;$i<$no_of_link;$i++)
|
||||
{
|
||||
$alink = explode(".",$object[$i]);
|
||||
|
||||
$alinkno = $alink[3];
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus from OMCR_ALink where ObjectId='Alink.0.0.$alinkno' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=ALink.0.0.$alinkno&tablename=OMCR_ALink&bssid=$bssid\";>$alinkno</a></td>";
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
|
||||
$deltype="ALink";
|
||||
$linkno = $i;
|
||||
$objectid = "ALinkSet.0.0";
|
||||
echo "<td width=\"20%\">";
|
||||
echo "<input type=\"checkbox\" name=\"select this\" title=\"Select this to delete\" value=\"1\" onClick=\"javascript:delTheObj('$bssid','$objectid','-1','-1','$linkno','$deltype',this)\"></td>";
|
||||
|
||||
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "</tr>";
|
||||
?>
|
||||
|
||||
166
wxc2_omc/element/bssSpecific/bss_assigntrx.php
Executable file
166
wxc2_omc/element/bssSpecific/bss_assigntrx.php
Executable file
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
|
||||
require("../../inc/header.inc");
|
||||
require("logdb.inc");
|
||||
require("function.php");
|
||||
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "Configuration > <a href=\"JavaScript:backpage(1,'../overview/overview.php')\">Network</a>";
|
||||
echo "> <a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\">BSS Specific</a>";
|
||||
echo "> <a href=\"JavaScript:backpage(1,'./bss_btsmgr.php?bssid=$bssid&btsid=$btsid')\">BtsMgr $btsid</a>";
|
||||
echo "> AssignTrx for Bts.$btsid.$cellid</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
|
||||
function flash($bssid,$btsid,$cellid)
|
||||
{
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Trx.$btsid%' and Presence=1 and ObjectId not like 'Trx.$btsid.$cellid%' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
echo "<script language=\"javascript\">";
|
||||
$href="./bss_assigntrx.php?bssid=$bssid&btsid=$btsid&cellid=$cellid";
|
||||
echo "window.location.href='$href';";
|
||||
echo "</script>";
|
||||
}
|
||||
if($deltype=='AssignTrx')
|
||||
{
|
||||
$nmicmd="action 9:4 ".$trxnum;
|
||||
$objectid="Bts.".$btsid.".".$cellid;
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
/* $sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Trx.$btsid%' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($trx_object_name[]) =$row;
|
||||
}
|
||||
for($i=0;$i<count($trx_object_name);$i++)
|
||||
{
|
||||
$nmicmd = "get";
|
||||
$objectid = $trx_object_name[$i];
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
|
||||
}*/
|
||||
// $nmicmd="upload 12";
|
||||
// $objectid="BssFunc";
|
||||
// putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(3);
|
||||
flash($bssid,$btsid,$cellid);
|
||||
|
||||
// flash($bssid,$btsid,$cellid);
|
||||
}
|
||||
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"75%\"></td>";
|
||||
echo "<td width=\"15%\">";
|
||||
echo "</td>";
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage(1,'./bss_btsmgr.php?bssid=$bssid&btsid=$btsid')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a><td>";//back
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<TABLE border="1" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" width="100%">
|
||||
|
||||
<?php
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>UnAssigned TRXs</b></td>";
|
||||
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">BtsMgrNumber</td>";
|
||||
echo "<td width=\"25%\">BtsNumber</td>";
|
||||
echo "<td width=\"25%\">TrxNumber</td>";
|
||||
echo "<td width=\"25%\">Assign to Bts.$btsid.$cellid</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Trx.$btsid%' and Presence=1 and ObjectId not like 'Trx.$btsid.$cellid%' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($trx_object_name[]) =$row;
|
||||
}
|
||||
$no_of_trx = count($trx_object_name);//e.g RCarrier.0.0.4
|
||||
|
||||
for($i=0;$i<$no_of_trx;$i++)
|
||||
{
|
||||
$trx_cont = explode(".",$trx_object_name[$i]);
|
||||
echo "<tr>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
|
||||
echo "<td width=\"25%\">BtsMgr $trx_cont[1]</td>";
|
||||
echo "<td width=\"25%\">Bts $trx_cont[2]</td>";
|
||||
echo "<td width=\"25%\">Trx $trx_cont[3]</td>";
|
||||
echo "<td width=\"25%\">";
|
||||
$trxnum = $trx_cont[3];
|
||||
$objectid = "Bts.".$btsid.".".$cellid;
|
||||
$deltype = "AssignTrx";
|
||||
echo "<input type=\"checkbox\" name=\"select this\" title=\"Select this to assign\" value=\"1\" onClick=\"javascript:AssignTrx('$bssid','$objectid','$btsid','$cellid','$trxnum','$deltype',this)\"></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>Assigned TRXs</b></td>";
|
||||
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
/* echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">BtsMgrNumber</td>";
|
||||
echo "<td width=\"25%\">BtsNumber</td>";
|
||||
echo "<td width=\"25%\">TrxNumber</td>";
|
||||
echo "<td width=\"25%\"></td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
*/
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Trx.$btsid.$cellid%' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($trx_object[]) =$row;
|
||||
}
|
||||
$no_of_trx_1 = count($trx_object);//e.g RCarrier.0.0.4
|
||||
|
||||
for($i=0;$i<$no_of_trx_1;$i++)
|
||||
{
|
||||
$trx_cont = explode(".",$trx_object[$i]);
|
||||
echo "<tr>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
|
||||
echo "<td width=\"25%\">BtsMgr $trx_cont[1]</td>";
|
||||
echo "<td width=\"25%\">Bts $trx_cont[2]</td>";
|
||||
echo "<td width=\"25%\">Trx $trx_cont[3]</td>";
|
||||
echo "<td width=\"25%\"></td>";
|
||||
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>Note: If you want to assign trx,you must <b>Lock AbisMgr</b> !";
|
||||
?>
|
||||
403
wxc2_omc/element/bssSpecific/bss_bts.php
Executable file
403
wxc2_omc/element/bssSpecific/bss_bts.php
Executable file
@@ -0,0 +1,403 @@
|
||||
<?php
|
||||
|
||||
|
||||
require("../../inc/header.inc");
|
||||
require("logdb.inc");
|
||||
require("function.php");
|
||||
$DEBUG = 0;
|
||||
if($DEBUG) echo "<br><3E><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC>ԭ<EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD>^_^";
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "Configuration > <a href=\"JavaScript:backpage(1,'../overview/overview.php')\">Network</a>";
|
||||
echo "> <a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\">BSS Specific</a>";
|
||||
echo "> <a href=\"JavaScript:backpage(1,'./bss_btsmgr.php?bssid=$bssid&btsid=$btsid')\">BtsMgr $btsid</a>";
|
||||
echo "> Bts.$btsid.$cellid";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
|
||||
function flash($bssid,$btsid,$cellid)
|
||||
{
|
||||
echo "<script language=\"javascript\">";
|
||||
$href="$PHP_SELF?bssid=$bssid&btsid=$btsid&cellid=$cellid";
|
||||
echo "window.location.href='$href';";
|
||||
echo "</script>";
|
||||
}
|
||||
if($addtype=='AdjHand')
|
||||
{
|
||||
$nmicmd="create AdjHand ".$adjhand;
|
||||
$objectid="Bts.".$btsid.".".$cellid;
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(1);
|
||||
flash($bssid,$btsid,$cellid);
|
||||
}
|
||||
if($deltype=='AdjHand')
|
||||
{
|
||||
$nmicmd="delete AdjHand ".$adjhand;
|
||||
$objectid="Bts.".$btsid.".".$cellid;
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(1);
|
||||
flash($bssid,$btsid,$cellid);
|
||||
}
|
||||
|
||||
if($upload==1)
|
||||
{
|
||||
$nmicmd="upload 12";
|
||||
$objectid="BssFunc";
|
||||
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(3);
|
||||
flash($bssid,$btsid,$cellid);
|
||||
}
|
||||
$upload = 1;
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"75%\"></td>";
|
||||
echo "<td width=\"15%\">";
|
||||
echo "<INPUT type=button style='width: 85' value='Get All' name=upload style='width: 95' class=chinese" .
|
||||
" onClick=\"JavaScript:upload_data1('$upload','$bssid','$btsid')\">";
|
||||
echo "</td>";
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage(1,'./bss_btsmgr.php?bssid=$bssid&btsid=$btsid')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a><td>";//back
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
<TABLE border="1" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" width="100%">
|
||||
<?php
|
||||
$sqlstring = "select engDisplayName,ObjectId from OMCR_BSSTREE where ObjectId like 'Trx.$btsid.$cellid%' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($trx_disp_name[],$trx_object_name[]) =$row;
|
||||
}
|
||||
$no_of_trx = count($trx_object_name);//e.g RCarrier.0.0.4
|
||||
|
||||
for($i=0;$i<$no_of_trx;$i++)
|
||||
{
|
||||
//RCarrier >>>>>>>>>
|
||||
$trx_cont = explode(".",$trx_object_name[$i]);
|
||||
//echo ">>>>>$trx_$cont[0].$trx_cont[1].$trx_cont[2].$trx_cont[3]";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>RCarrier $trx_cont[3]</b></td>";
|
||||
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"20%\">Receive Mode</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"20%\"></td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,RxAntenna from OMCR_RCarrier where ObjectId='RCarrier.$trx_cont[1].$trx_cont[2].$trx_cont[3]' and bssid=$bssid";//$trx_object_name[$i]
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$rxmode) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
if($rxmode==0)$rxmode="DIVERSITY";
|
||||
else if($rxmode==1)$rxmode="ANTENNA 1";
|
||||
else if($rxmode==2)$rxmode="ANTENNA 2";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=RCarrier.$trx_cont[1].$trx_cont[2].$trx_cont[3]&tablename=OMCR_RCarrier&bssid=$bssid\";>$rxmode</a>";
|
||||
|
||||
echo "</td>";
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\"></td>";
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
//Trx ..............
|
||||
$sqlstring="select AdminState,OperState,AvailStatus,trxDiagResult from OMCR_Trx where bssid=$bssid and ObjectId like 'Trx.$trx_cont[1].$trx_cont[2].$trx_cont[3]'";
|
||||
//echo "$sqlstring<br>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$rxresult) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
//Failed=0;Passed=1;Not Performed=2
|
||||
if($rxresult==0)$rxresult="Failed";
|
||||
else if($rxresult==1)$rxresult="Passed";
|
||||
else if($rxresult==2)$rxresult="Not Performed";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>Trx $trx_cont[3]</b></td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"20%\">Diagnostic Result</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"20%\"></td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "<tr>";
|
||||
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=Trx.$trx_cont[1].$trx_cont[2].$trx_cont[3]&tablename=OMCR_Trx&bssid=$bssid\";>$rxresult</td>";
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\"></td>";
|
||||
|
||||
echo "</tr>";
|
||||
//TrxCh========
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"20%\">No</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"20%\">Usage Status</td>";
|
||||
//echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
for($j=0;$j<8;$j++)
|
||||
{
|
||||
$sqlstring="select AdminState,OperState,AvailStatus,UsageState from OMCR_TrxCh where bssid=$bssid and ObjectId like 'TrxCh.$btsid.$cellid.$trx_cont[3].$j'";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$usagestate) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
//IDLE=0;ACTIVE=1;BUSY=2
|
||||
if($usagestate==0)$usagestate="IDLE";
|
||||
else if($usagestate==1)$usagestate="ACTIVE";
|
||||
else if($usagestate==2)$usagestate="BUSY";
|
||||
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
echo"<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=TrxCh.$trx_cont[1].$trx_cont[2].$trx_cont[3].$j&tablename=OMCR_TrxCh&bssid=$bssid\";>TRXCH $j</a></td>";
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\">$usagestate</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</table>";
|
||||
|
||||
echo "</tr>";
|
||||
}
|
||||
//PowerControl
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>Power Control</b></td>";
|
||||
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">MsTxPwrMin</td>";
|
||||
echo "<td width=\"25%\">BtsTxPwrMin</td>";
|
||||
echo "<td width=\"25%\">Averging window for Level</td>";
|
||||
echo "<td width=\"25%\">Averging window for Quality</td>";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
$sqlstring="select MsTxPwrMin,BtsTxPwrMin,PcAveragingLevelParamHreqave,PcAveragingQualParamHreqave from OMCR_PwrCont where bssid=$bssid and ObjectId like 'PwrCont.$btsid.$cellid.0'";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($mtpm,$btpm,$alph,$aqph) =$row;
|
||||
}
|
||||
|
||||
echo "<tr>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=PwrCont.$btsid.$cellid.0&tablename=OMCR_PwrCont&btsid=$btsid&bssid=$bssid\";>$mtpm</a></td>";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=PwrCont.$btsid.$cellid.0&tablename=OMCR_PwrCont&btsid=$btsid&bssid=$bssid\";>$btpm</a></td>";
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=PwrCont.$btsid.$cellid.0&tablename=OMCR_PwrCont&btsid=$btsid&bssid=$bssid\";>$alph</a></td>";
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=PwrCont.$btsid.$cellid.0&tablename=OMCR_PwrCont&btsid=$btsid&bssid=$bssid\";>$aqph</a></td>";
|
||||
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>Handover Control</b></td>";
|
||||
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">Uplink RxLev Threshold</td>";
|
||||
echo "<td width=\"25%\">Uplink RxQual Threshold</td>";
|
||||
echo "<td width=\"25%\">Downlink RxLev Threshold</td>";
|
||||
echo "<td width=\"25%\">Downlink RxQual Threshold</td>";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
$sqlstring="select HoThresholdLevUl,HoThresholdQualUl,HoThresholdLevDl,HoThresholdQualDl from OMCR_HandCont where bssid=$bssid and ObjectId like 'HandCont.$btsid.$cellid.0'";
|
||||
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($htlu,$htqu,$htld,$htqd) =$row;
|
||||
}
|
||||
|
||||
echo "<tr>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=HandCont.$btsid.$cellid.0&tablename=OMCR_HandCont&btsid=$btsid&bssid=$bssid\";>$htlu</a></td>";
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=HandCont.$btsid.$cellid.0&tablename=OMCR_HandCont&btsid=$btsid&bssid=$bssid\";>$htqu</a></td>";
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=HandCont.$btsid.$cellid.0&tablename=OMCR_HandCont&btsid=$btsid&bssid=$bssid\";>$htld</a></td>";
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?&language=$language&objectid=HandCont.$btsid.$cellid.0&tablename=OMCR_HandCont&btsid=$btsid&bssid=$bssid\";>$htqd</a></td>";
|
||||
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
//AdjHand >>>>>>>>>
|
||||
echo "<tr>";
|
||||
//Check AdjHand is ok.......
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'AdjHand.$btsid.$cellid%' and engDisplayName='' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adjhand_object[]) =$row;
|
||||
}
|
||||
//echo "$adjhand_object[0]";
|
||||
$no_of_adj = count($adjhand_object);
|
||||
$array = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31);
|
||||
//print_r($array);
|
||||
|
||||
for($n=0;$n<$no_of_adj;$n++)
|
||||
{
|
||||
$adj_num = explode(".",$adjhand_object[$n]);
|
||||
$num[$n] = $adj_num[3];
|
||||
unset($array[$num[$n]]);
|
||||
}
|
||||
$array = array_values($array);
|
||||
//print_r($array);
|
||||
$adjhand = $array[0];
|
||||
$objectid = "AdjHand.".$btsid.".".$cellid.".".$adjhand;
|
||||
$addtype = "AdjHand";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" ><tr >";
|
||||
echo "<td align=left><b>Adjacent Hand</b></td>";
|
||||
echo "<td align=\"right\"><a href=javascript:addAdj('$bssid','$objectid','$btsid','$cellid','$adjhand','$addtype')>+</a></td>";
|
||||
echo "</tr></table>";
|
||||
|
||||
//////////////////////////////AdjHand Parametet//////////////////////////////////////////
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"12.5%\">Name</td>";
|
||||
echo "<td width=\"12.5%\">MCC</td>";
|
||||
echo "<td width=\"12.5%\">MNC</td>";
|
||||
echo "<td width=\"12.5%\">LAC</td>";
|
||||
echo "<td width=\"12.5%\">Cell Id</td>";
|
||||
echo "<td width=\"12.5%\">BSIC</td>";
|
||||
echo "<td width=\"12.5%\">BCCH</td>";
|
||||
echo "<td width=\"12.5%\">Delete</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
for($i=0;$i<$no_of_adj;$i++)
|
||||
{
|
||||
$adjconts = explode(".",$adjhand_object[$i]);
|
||||
$sqlstring = "select Label,CellGlobalIdentityLaiMcc,CellGlobalIdentityLaiMnc,LocationAreaCodes,CellGlobalIdentityCi,BsIdentityCodes,BcchFrequency from OMCR_AdjHand where bssid=$bssid and ObjectId like 'AdjHand.$btsid.$adjconts[2].$adjconts[3]'";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cellname,$mcc,$mnc,$lac,$cellid,$bsic,$bcch) =$row;
|
||||
}
|
||||
echo "<tr>";
|
||||
//echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
$objectid = "AdjHand.".$btsid.".".$adjconts[2].".".$adjconts[3];
|
||||
$deltype = "AdjHand";
|
||||
$adjhand = $adjconts[3];
|
||||
$cellid = $adjconts[2];
|
||||
echo "<td width=\"12.5%\"><a href=\"./objShow.php?language=$language&objectid=AdjHand.$btsid.$adjconts[2].$adjconts[3]&tablename=OMCR_AdjHand&bssid=$bssid&cellid=$cellid\";>\"$cellname\"</td>";
|
||||
echo "<td width=\"12.5%\"><a href=\"./objShow.php?language=$language&objectid=AdjHand.$btsid.$adjconts[2].$adjconts[3]&tablename=OMCR_AdjHand&bssid=$bssid\";>$mcc</td>";
|
||||
echo "<td width=\"12.5%\"><a href=\"./objShow.php?language=$language&objectid=AdjHand.$btsid.$adjconts[2].$adjconts[3]&tablename=OMCR_AdjHand&bssid=$bssid\";>$mnc</td>";
|
||||
echo "<td width=\"12.5%\"><a href=\"./objShow.php?language=$language&objectid=AdjHand.$btsid.$adjconts[2].$adjconts[3]&tablename=OMCR_AdjHand&bssid=$bssid\";>$lac</td>";
|
||||
echo "<td width=\"12.5%\"><a href=\"./objShow.php?language=$language&objectid=AdjHand.$btsid.$adjconts[2].$adjconts[3]&tablename=OMCR_AdjHand&bssid=$bssid\";>$cellid</td>";
|
||||
echo "<td width=\"12.5%\"><a href=\"./objShow.php?language=$language&objectid=AdjHand.$btsid.$adjconts[2].$adjconts[3]&tablename=OMCR_AdjHand&bssid=$bssid\";>$bsic</td>";
|
||||
echo "<td width=\"12.5%\"><a href=\"./objShow.php?language=$language&objectid=AdjHand.$btsid.$adjconts[2].$adjconts[3]&tablename=OMCR_AdjHand&bssid=$bssid\";>$bcch</td>";
|
||||
|
||||
echo "<td width=\"12.5%\">";
|
||||
echo "<input type=\"checkbox\" name=\"select this\" title=\"Select this to delete\" value=\"1\" onClick=\"javascript:delAdj('$bssid','$objectid','$btsid','$cellid','$adjhand','$deltype',this)\"></td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
?>
|
||||
444
wxc2_omc/element/bssSpecific/bss_btsmgr.php
Executable file
444
wxc2_omc/element/bssSpecific/bss_btsmgr.php
Executable file
@@ -0,0 +1,444 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
require("logdb.inc");
|
||||
require("function.php");
|
||||
$DEBUG = 0;
|
||||
if($DEBUG) echo "<br><3E><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC>ԭ<EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD>^_^";
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "Configuration > <a href=\"JavaScript:backpage(1,'../overview/overview.php')\">Network</a>";
|
||||
echo "> <a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\">BSS Specific</a>";
|
||||
echo ">BtsMgr $btsid";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
//run add or del
|
||||
function flash($bssid,$btsid)
|
||||
{
|
||||
echo "<script language=\"javascript\">";
|
||||
$href="$PHP_SELF?bssid=$bssid&btsid=$btsid";
|
||||
echo "window.location.href='$href';";
|
||||
echo "</script>";
|
||||
}
|
||||
if($addtype=='Bts')
|
||||
{
|
||||
if($cellid > 2)
|
||||
{
|
||||
echo "<script LANGUAGE=\"JavaScript\">";
|
||||
echo "alert(\"Cell number is too big!\");";
|
||||
echo "</script>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$nmicmd="create Bts ".$cellid;
|
||||
$objectid="BtsMgr.".$btsid;
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
sleep(2);
|
||||
flash($bssid,$btsid);
|
||||
}
|
||||
}
|
||||
/*
|
||||
if($deltype=='Bts')
|
||||
{
|
||||
$nmicmd="delete Bts ".$cellid;
|
||||
$objectid="BtsMgr.".$btsid;
|
||||
echo "obj=$objectid";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
flash($bssid,$btsid);
|
||||
}
|
||||
*/
|
||||
//display table
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"75%\"></td>";
|
||||
echo "<td width=\"15%\">";
|
||||
//echo "<INPUT type=button style='width: 85' value='Add Bts' name=addcell style='width: 95' class=chinese" .
|
||||
// " onClick=\"JavaScript:AddCell('$bssid','$objectid','$btsid','$cellid','$addtype')\">";
|
||||
echo "</td>";
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a><td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
<TABLE border="1" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" width="100%">
|
||||
<?php
|
||||
//AbisMgr==================>>>
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>AbisMgr</b></td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"8%\">Slot</td>";
|
||||
echo "<td width=\"8%\">Port</td>";
|
||||
echo "<td width=\"9%\">Chan</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperaState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\"></td>";
|
||||
echo "</tr>";
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,E1Port,E1Slot,E1Chan from OMCR_AbisMgr where ObjectId='AbisMgr.$btsid.0' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$e1port,$e1slot,$e1chan) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"8%\"><a href=\"./objShow.php?language=$language&objectid=AbisMgr.$btsid.0&tablename=OMCR_AbisMgr&bssid=$bssid\";>$e1slot</a></td>";
|
||||
echo "<td width=\"8%\"><a href=\"./objShow.php?language=$language&objectid=AbisMgr.$btsid.0&tablename=OMCR_AbisMgr&bssid=$bssid\";>$e1port</a></td>";
|
||||
echo "<td width=\"9%\"><a href=\"./objShow.php?language=$language&objectid=AbisMgr.$btsid.0&tablename=OMCR_AbisMgr&bssid=$bssid\";>$e1chan</a></td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"15%\"></td>";
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//Bts.......................................>
|
||||
echo "<tr>";
|
||||
//echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><a href=\"./bss_bts.php?btsid=$btsid&bssid=$bssid\";><b>Bts</b></a></td>";
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.$btsid%' and Presence=1 and bssid=$bssid";
|
||||
//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);
|
||||
$array = array(0,1,2,3);
|
||||
|
||||
|
||||
for($n=0;$n<$no_of_cell;$n++)
|
||||
{
|
||||
$cell_num = explode(".",$cell_object[$n]);
|
||||
$num[$n] = $cell_num[2];
|
||||
unset($array[$num[$n]]);
|
||||
}
|
||||
$array = array_values($array);
|
||||
//print_r($array);
|
||||
$cellid = $array[0];
|
||||
$objectid = "Bts.".$btsid.".".$cellid;
|
||||
$addtype = "Bts";
|
||||
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" ><tr >";
|
||||
echo "<td align=left><b>Cell</b></td>";
|
||||
echo "<td align=\"right\"><a href=javascript:AddCell('$bssid','$objectid','$btsid','$cellid','$addtype')>+</a></td>";
|
||||
echo "</tr></table>";
|
||||
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"8%\">No</td>";
|
||||
echo "<td width=\"17%\">Cell Name</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\"></td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
for($i=0;$i<$no_of_cell;$i++)
|
||||
{
|
||||
$cellconts = explode(".",$cell_object[$i]);
|
||||
$sqlstring = "select AdminState,OperState,AvailStatus,Label from OMCR_Bts where ObjectId='Bts.$btsid.$cellconts[2]' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$cellname) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
/* $sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Trx.$btsid.$cellconts[2]%' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($trx_list[]) =$row;
|
||||
}
|
||||
$no_of_trx = count($trx_list);
|
||||
*/
|
||||
echo "<tr>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
$cellid = $cellconts[2];
|
||||
echo "<td width=\"8%\"><a href=\"./bss_bts.php?btsid=$btsid&bssid=$bssid&cellid=$cellid\";><b>$cellconts[2]</b></a></td>";
|
||||
echo "<td width=\"17%\"><a href=\"./objShow.php?language=$language&objectid=Bts.$btsid.$cellconts[2]&tablename=OMCR_Bts&btsid=$btsid&bssid=$bssid\";>\"$cellname\"</a></td>";
|
||||
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
//echo "<td width=\"4%\">$no_of_trx</td>";
|
||||
/*echo "<td width=\"4%\">";
|
||||
$deltype = "Bts";
|
||||
|
||||
$objectid = "Bts.".$btsid.".".$cellid;
|
||||
echo "<input type=\"checkbox\" name=\"select this\" title=\"Select this to delete\" value=\"1\" onClick=\"javascript:delCell('$bssid','$objectid','$btsid','$cellid','$deltype',this)\"></td>";
|
||||
*/
|
||||
echo "<td width=\"15%\">";
|
||||
|
||||
echo "<INPUT type=button style='width: 88' value='AssignTrx' name=upload style='width: 35' class=chinese ".
|
||||
" onClick=\"JavaScript:backpage(1,'./bss_assigntrx.php?bssid=$bssid&btsid=$btsid&cellid=$cellid')\"></td>";
|
||||
|
||||
}//end for...
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//Shelf for BtsMgr (1~11)=====
|
||||
if($btsid != 0){
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>SHELF</b></td>";
|
||||
echo "<td>";
|
||||
$sqlstring = "select DoorInterlockEnable,bssUplinkVolumeControl,bssDownlinkVolumeControl from OMCR_Wavex where ObjectId like 'BtsMgr_Shelf.$btsid.0' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($dooralarm,$uvc,$dvc) =$row;
|
||||
}
|
||||
//-6dB=0;-4dB=1;-2dB=2;normal =3;+2dB=4;+4dB=5;+6dB=6;+8dB=7
|
||||
if($dooralarm==0)$dooralarm="Disable";
|
||||
else if($dooralarm==1)$dooralarm="Enable";
|
||||
if($uvc==0)$uvc="-6dB";
|
||||
else if($uvc==1)$uvc="-4dB";
|
||||
else if($uvc==2)$uvc="-2dB";
|
||||
else if($uvc==3)$uvc="normal";
|
||||
else if($uvc==4)$uvc="+2dB";
|
||||
else if($uvc==5)$uvc="+4dB";
|
||||
else if($uvc==6)$uvc="+6dB";
|
||||
else if($uvc==7)$uvc="+8dB";
|
||||
if($dvc==0)$dvc="-6dB";
|
||||
else if($dvc==1)$dvc="-4dB";
|
||||
else if($dvc==2)$dvc="-2dB";
|
||||
else if($dvc==3)$dvc="normal";
|
||||
else if($dvc==4)$dvc="+2dB";
|
||||
else if($dvc==5)$dvc="+4dB";
|
||||
else if($dvc==6)$dvc="+6dB";
|
||||
else if($dvc==7)$dvc="+8dB";
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">Door Alarm</td>";
|
||||
echo "<td width=\"40%\">Uplink Volume Control</td>";
|
||||
echo "<td width=\"30%\">Downlink Volume Control</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Shelf.$btsid.0&tablename=OMCR_Wavex&bssid=$bssid\";>$dooralarm</a></td>";
|
||||
echo "<td width=\"35%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Shelf.$btsid.0&tablename=OMCR_Wavex&bssid=$bssid\";>$uvc</a></td>";
|
||||
echo "<td width=\"35%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Shelf.$btsid.0&tablename=OMCR_Wavex&bssid=$bssid\";>$dvc</a></td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
/************************************************************************************************************/
|
||||
//BtsMgr_Shelf_Card_Port.$btsid.0.1.0
|
||||
$sqlstring="select Presence from OMCR_BSSTREE where engDisplayName like 'Card%' and ObjectId like 'BtsMgr_Shelf_Card.$btsid.0%' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($presence) =$row;
|
||||
}
|
||||
if($presence==1){
|
||||
echo "<tr>";
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
|
||||
echo "<td width=\"25%\">No</td>";
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"15%\">Interface</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"12%\">Card 1";
|
||||
$sqlstring="select AdminState,OperState,AvailStatus,INTERFACE from OMCR_E1port where bssid=$bssid and ObjectId = 'BtsMgr_Shelf_Card_Port.$btsid.0.1.0'";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$interface) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
if($interface==0)$interface="Unused";
|
||||
else if($interface==1)$interface="AIF";
|
||||
else if($interface==2)$interface="ABIS";
|
||||
else if($interface==5)$interface="R2";
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Shelf_Card_Port.$btsid.0.1.0&tablename=OMCR_E1port&bssid=$bssid\";>Port 0</a>";
|
||||
|
||||
echo "</td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"15%\">$interface</td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr onMouseOver=\"this.bgColor='#D2F0FF'\" onMouseOut=\"this.bgColor='#ffffff'\">";
|
||||
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"12%\"></td>";
|
||||
$sqlstring="select AdminState,OperState,AvailStatus,INTERFACE from OMCR_E1port where bssid=$bssid and ObjectId = 'BtsMgr_Shelf_Card_Port.$btsid.0.1.1'";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($adminstate,$operstate,$availstatus,$interface) =$row;
|
||||
}
|
||||
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
if($interface==0)$interface="Unused";
|
||||
else if($interface==1)$interface="AIF";
|
||||
else if($interface==2)$interface="ABIS";
|
||||
else if($interface==5)$interface="R2";
|
||||
echo "<td width=\"13%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Shelf_Card_Port.$btsid.0.1.1&tablename=OMCR_E1port&bssid=$bssid\";>Port 1</a>";
|
||||
|
||||
echo "</td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"15%\">$interface</td>";
|
||||
echo "</tr>";
|
||||
//Clock Module
|
||||
$sqlstring = "select Presence from OMCR_BSSTREE where ObjectId='BtsMgr_Shelf_Card.$btsid.0.17' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
$presence =$row[0];
|
||||
}
|
||||
if($presence==1){
|
||||
|
||||
echo "<tr>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Shelf_Card.$btsid.0.17&tablename=OMCR_ClockMod&bssid=$bssid\";>ClockModule</a></td>";
|
||||
echo "<td width=\"20%\">--</td>";
|
||||
echo "<td width=\"20%\">--</td>";
|
||||
echo "<td width=\"20%\">--</td>";
|
||||
echo "<td width=\"15%\">--</td>";
|
||||
echo "</tr>";
|
||||
}//if presence==1
|
||||
|
||||
}//if card presence==1
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}//end btsid!=0
|
||||
$sqlstring = "select Presence from OMCR_BSSTREE where ObjectId='BtsMgr_Software.$btsid.0' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
$presence =$row[0];
|
||||
}
|
||||
|
||||
//Software
|
||||
if($presence==1){
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>Software</b></td>";
|
||||
echo "<td>";
|
||||
$sqlstring = "select CurrentFlashVersion,PrimaryFlashVersion,SecondaryFlashVersion from OMCR_Software where bssid=$bssid and ObjectId like 'BtsMgr_Software.$btsid.0'";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cfv,$pfv,$sfv) =$row;
|
||||
}
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"25%\">CurrentFlashVersion</td>";
|
||||
echo "<td width=\"40%\">PrimaryFlashVersion</td>";
|
||||
echo "<td width=\"30%\">SecondaryFlashVersion</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "<td width=\"25%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Software.$btsid.0&tablename=OMCR_Software&bssid=$bssid\";>\"$cfv\"</a></td>";
|
||||
echo "<td width=\"35%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Software.$btsid.0&tablename=OMCR_Software&bssid=$bssid\";>\"$pfv\"</a></td>";
|
||||
echo "<td width=\"35%\"><a href=\"./objShow.php?language=$language&objectid=BtsMgr_Software.$btsid.0&tablename=OMCR_Software&bssid=$bssid\";>\"$sfv\"</a></td>";
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
}//end presence==1
|
||||
|
||||
?>
|
||||
178
wxc2_omc/element/bssSpecific/bss_dsp.php
Executable file
178
wxc2_omc/element/bssSpecific/bss_dsp.php
Executable file
@@ -0,0 +1,178 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
require("logdb.inc");
|
||||
require("function.php");
|
||||
$DEBUG = 0;
|
||||
|
||||
if($DEBUG) echo "<br><3E><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC>ԭ<EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD>^_^";
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "Configuration > <a href=\"JavaScript:backpage(1,'../overview/overview.php')\">Network</a>";
|
||||
echo "> <a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\">BSS Specific</a>";
|
||||
echo ">DSP Card ";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"75%\"></td>";
|
||||
echo "<td width=\"15%\"></td>";
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a><td>";//back
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
<TABLE border="1" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" width="100%">
|
||||
<?php
|
||||
$no_of_dsp=$dspnum;
|
||||
//DSP (0~3)
|
||||
echo "<tr>";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\"><b>DSP</b></td>";
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"20%\">DSP_Num</td>";
|
||||
|
||||
echo "<td width=\"20%\">AdminState</td>";
|
||||
echo "<td width=\"20%\">OperaState</td>";
|
||||
echo "<td width=\"20%\">AvailStatus</td>";
|
||||
echo "<td width=\"20%\">DSP Type</td>";
|
||||
echo "</tr>";//Half Rate=0;Full Rate=1;Enhanced Full Rate =2
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.0' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<tr>";//DSP 0
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.0&tablename=OMCR_TrauDsp&bssid=$bssid\";>0</a></td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\">$type</td>";
|
||||
|
||||
echo "</tr>";
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.1' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<tr>";//DSP 1
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.1&tablename=OMCR_TrauDsp&bssid=$bssid\";>1</a></td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\">$type</td>";
|
||||
|
||||
echo "</tr>";
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.2' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<tr>";//DSP 2
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.2&tablename=OMCR_TrauDsp&bssid=$bssid\";>2</a></td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\">$type</td>";
|
||||
|
||||
echo "</tr>";
|
||||
$sqlstring = "select Type,AdminState,OperState,AvailStatus from OMCR_TrauDsp where ObjectId='DSP.0.$cardnum.$dspnum.3' and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($type,$adminstate,$operstate,$availstatus) =$row;
|
||||
}
|
||||
if($type==0)$type="Half Rate";
|
||||
else if($type==1)$type="Full Rate";
|
||||
else if($type==2)$type="Enhanced Full Rate";
|
||||
if($adminstate==1)$adminstate="Locked";
|
||||
else if($adminstate==2)$adminstate="Unlocked";
|
||||
if($operstate==1)$operstate="Disable";
|
||||
else if($operstate==2)$operstate="Enable";
|
||||
if($availstatus==0)$availstatus="In_Test";
|
||||
else if($availstatus==1)$availstatus="Failed";
|
||||
else if($availstatus==2)$availstatus="Power_Off";
|
||||
else if($availstatus==3)$availstatus="Offline";
|
||||
else if($availstatus==4)$availstatus="Online";
|
||||
else if($availstatus==5)$availstatus="Dependency";
|
||||
else if($availstatus==6)$availstatus="Degraded";
|
||||
else if($availstatus==7)$availstatus="Not_Installed";
|
||||
|
||||
echo "<tr>";//DSP 3
|
||||
echo "<td width=\"20%\"><a href=\"./objShow.php?language=$language&objectid=DSP.0.$cardnum.$dspnum.3&tablename=OMCR_TrauDsp&bssid=$bssid\";>3</a></td>";
|
||||
echo "<td width=\"20%\">$adminstate</td>";
|
||||
echo "<td width=\"20%\">$operstate</td>";
|
||||
echo "<td width=\"20%\">$availstatus</td>";
|
||||
echo "<td width=\"20%\">$type</td>";
|
||||
echo "</table>";
|
||||
echo "</tr>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
131
wxc2_omc/element/bssSpecific/bss_smmsg.php
Executable file
131
wxc2_omc/element/bssSpecific/bss_smmsg.php
Executable file
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
require("../../inc/header.inc");
|
||||
require("logdb.inc");
|
||||
require("function.php");
|
||||
|
||||
$DEBUG = 0;
|
||||
if($DEBUG) echo "<br><3E><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㣬<EFBFBD><E3A3AC>ԭ<EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD>^_^";
|
||||
function flash($bssid)
|
||||
{
|
||||
echo "<br><b>$action</b><br>";
|
||||
echo "<script language=\"javascript\">";
|
||||
$href="$PHP_SELF?bssid=$bssid";
|
||||
echo "window.location.href='$href';";
|
||||
echo "</script>";
|
||||
}
|
||||
if($addtp=='SmMsg')
|
||||
{
|
||||
$nmicmd="create SmMsg ".$msgnum;
|
||||
$objectid="SmsCb.0";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
flash($bssid);
|
||||
}
|
||||
if($deltp=='SmMsg')
|
||||
{
|
||||
$nmicmd="delete SmMsg ".$msgnum;
|
||||
$objectid="SmsCb.0";
|
||||
putcommand($bssid,$objectid,$nmicmd);
|
||||
flash($bssid);
|
||||
}
|
||||
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "Configuration > <a href=\"JavaScript:backpage(1,'../overview/overview.php')\" > Network</a> >";
|
||||
echo "<a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\" > BSS Specific</a> > SmMsg";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"75%\"></td>";
|
||||
echo "<td width=\"15%\">";
|
||||
//echo "<INPUT type=button style='width: 85' value='Get All' name=upload style='width: 95' class=chinese" .
|
||||
// " onClick=\"JavaScript:upload_data('$upload','$bssid')\">";
|
||||
echo "</td>";
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage(1,'./bssSpecific.php?bssid=$bssid')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a><td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
<TABLE border="1" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" width="100%">
|
||||
|
||||
<?php
|
||||
|
||||
echo "<tr>";
|
||||
//Check SmMsg is ok.......
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'SmMsg.0%' and Presence=1 and bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($smmsg_object[]) =$row;
|
||||
}
|
||||
//echo "$adjhand_object[0]";
|
||||
$no_of_msg = count($smmsg_object);
|
||||
$array = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31);
|
||||
//print_r($array);
|
||||
|
||||
for($n=0;$n<$no_of_msg;$n++)
|
||||
{
|
||||
$msg_num = explode(".",$smmsg_object[$n]);
|
||||
$num[$n] = $msg_num[2];
|
||||
unset($array[$num[$n]]);
|
||||
}
|
||||
$array = array_values($array);
|
||||
//print_r($array);
|
||||
$msgnum = $array[0];
|
||||
$objectid = "SmMsg.0.".$msgnum;
|
||||
$addtp = "SmMsg";
|
||||
echo "<td width=\"20%\" bgcolor=\"#E6E6E6\">";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" ><tr >";
|
||||
echo "<td align=left><b>SmMsg</b></td>";
|
||||
echo "<td align=\"right\"><a href=javascript:addMsg('$bssid','$objectid','$msgnum','$addtp')>+</a></td>";
|
||||
echo "</tr></table>";
|
||||
|
||||
//////////////////////////////SmMsg Parametet//////////////////////////////////////////
|
||||
echo "<td>";
|
||||
echo "<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"13.6%\">MsgId</td>";
|
||||
echo "<td width=\"13.6%\">SerialNo</td>";
|
||||
echo "<td width=\"19.6%\">NumBroadcast</td>";
|
||||
echo "<td width=\"19.6%\">RepetitionRate</td>";
|
||||
echo "<td width=\"16.6%\">NumPages</td>";
|
||||
echo "<td width=\"16.6%\">Delete</td>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
for($i=0;$i<$no_of_msg;$i++)
|
||||
{
|
||||
$msgconts = explode(".",$smmsg_object[$i]);
|
||||
$sqlstring = "select MsgId,SerialNo,numBroadcast,RepetitionRate,NumPages from OMCR_SmMsg where bssid=$bssid and ObjectId like 'SmMsg.0.$msgconts[2]'";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($msgid,$serialno,$numbc,$rr,$np) =$row;
|
||||
}
|
||||
$ref = "./objShow.php?language=$language&objectid=SmMsg.0.$msgconts[2]&tablename=OMCR_SmMsg&bssid=$bssid";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"13.6%\"><a href=$ref>$msgid</a></td>";
|
||||
echo "<td width=\"13.6%\"><a href=$ref>$serialno</a></td>";
|
||||
echo "<td width=\"19.6%\"><a href=$ref>$numbc</a></td>";
|
||||
echo "<td width=\"19.6%\"><a href=$ref>$rr</a></td>";
|
||||
echo "<td width=\"16.6%\"><a href=$ref>$np</a></td>";
|
||||
echo "<td width=\"16.6%\">";
|
||||
$objectid = "SmMsg.0.".$msgconts[2];
|
||||
$msgnum = $msgconts[2];
|
||||
$deltp = "SmMsg";
|
||||
echo "<input type=\"checkbox\" name=\"select this\" title=\"Select this to delete\" value=\"1\" onClick=\"javascript:delMsg('$bssid','$objectid','$msgnum','$deltp',this)\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
?>
|
||||
423
wxc2_omc/element/bssSpecific/function.php
Executable file
423
wxc2_omc/element/bssSpecific/function.php
Executable file
@@ -0,0 +1,423 @@
|
||||
<?php
|
||||
$bssDb = "BssOmcDb";
|
||||
$dbname="BssOmcDb";
|
||||
$hostname="localhost";
|
||||
$username="root";
|
||||
$password="rootaa";
|
||||
|
||||
?>
|
||||
<script LANGUAGE="JavaScript">
|
||||
function AssignTrx(bssid,objectid,btsid,cellid,trxnum,deltype,delcheckbox)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
baseHref = '<?php echo $PHP_SELF."?bssid=".$bssid."&objectid=".$objectid;?>';
|
||||
if(deltype == 'AssignTrx')
|
||||
{
|
||||
if(confirm('Do you want to Assign Trx '+trxnum+' to Bts '+cellid+' ?')!=true)
|
||||
delcheckbox.checked=false;
|
||||
else
|
||||
window.location.href = baseHref+'&deltype='+deltype+'&btsid='+btsid+'&cellid='+cellid+'&trxnum='+trxnum;
|
||||
}
|
||||
}
|
||||
|
||||
function delTheObj(bssid,objectid,btsid,adjhand,linkno,deltype,delcheckbox)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
baseHref = '<?php echo $PHP_SELF."?bssid=".$bssid."&objectid=".$objectid;?>';
|
||||
if(deltype == 'BtsMgr')
|
||||
{
|
||||
if(confirm('Do you want to delete BtsMgr '+btsid+' ?')!=true)
|
||||
delcheckbox.checked=false;
|
||||
else
|
||||
window.location.href = baseHref+'&deltype='+deltype+'&btsid='+btsid;
|
||||
}
|
||||
if(deltype == 'ALink')
|
||||
{
|
||||
if(confirm('Do you want to delete ALink '+linkno+' ?')!=true)
|
||||
delcheckbox.checked=false;
|
||||
else
|
||||
window.location.href = baseHref+'&deltype='+deltype+'&linkno='+linkno;
|
||||
}
|
||||
|
||||
}
|
||||
function delAdj(bssid,objectid,btsid,cellid,adjhand,deltype,delcheckbox)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
baseHref = '<?php echo $PHP_SELF."?bssid=".$bssid."&objectid=".$objectid;?>';
|
||||
if(deltype == 'AdjHand')
|
||||
{
|
||||
if(confirm('Do you want to delete AdjHand '+adjhand+' ?')!=true)
|
||||
delcheckbox.checked=false;
|
||||
else
|
||||
window.location.href = baseHref+'&deltype='+deltype+'&cellid='+cellid+'&btsid='+btsid+'&adjhand='+adjhand;
|
||||
}
|
||||
}
|
||||
|
||||
function delMsg(bssid,objectid,msgnum,deltp,delcheckbox)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
baseHref = '<?php echo $PHP_SELF."?bssid=".$bssid."&objectid=".$objectid;?>';
|
||||
if(deltp == 'SmMsg')
|
||||
{
|
||||
if(confirm('Do you want to delete SmMsg '+msgnum+' ?')!=true)
|
||||
delcheckbox.checked=false;
|
||||
else
|
||||
window.location.href = baseHref+'&msgnum='+msgnum+'&deltp='+deltp;
|
||||
}
|
||||
}
|
||||
function delCell(bssid,objectid,btsid,cellid,deltype,delcheckbox)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
baseHref = '<?php echo $PHP_SELF."?bssid=".$bssid."&objectid=".$objectid;?>';
|
||||
if(deltype == 'Bts')
|
||||
{
|
||||
if(confirm('Do you want to delete Bts '+cellid+' ?')!=true)
|
||||
delcheckbox.checked=false;
|
||||
else
|
||||
window.location.href = baseHref+'&btsid='+btsid+'&cellid='+cellid+'&deltype='+deltype;
|
||||
}
|
||||
}
|
||||
|
||||
function AddCell(bssid,objectid,btsid,cellid,addtype)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
|
||||
baseHref = '<?php echo $PHP_SELF ?>'+'?bssid='+bssid+'&objectid='+objectid;
|
||||
|
||||
if(addtype == 'Bts')
|
||||
{
|
||||
if(confirm('Do you want to add Bts '+cellid+' ?')==true)
|
||||
{
|
||||
window.location.href = baseHref+'&addtype='+addtype+'&btsid='+btsid+'&cellid='+cellid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addAdj(bssid,objectid,btsid,cellid,adjhand,addtype)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
|
||||
baseHref = '<?php echo $PHP_SELF ?>'+'?bssid='+bssid+'&objectid='+objectid;
|
||||
if(addtype == 'AdjHand')
|
||||
{
|
||||
if(confirm('Do you want to add AdjHand '+adjhand+' ?')==true)
|
||||
{
|
||||
window.location.href = baseHref+'&addtype='+addtype+'&btsid='+btsid+'&cellid='+cellid+'&adjhand='+adjhand;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function addTheObj(bssid,objectid,btsid,adjhand,linkno,addtype)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
|
||||
baseHref = '<?php echo $PHP_SELF ?>'+'?bssid='+bssid+'&objectid='+objectid;
|
||||
if(addtype == 'BtsMgr')
|
||||
{
|
||||
if(confirm('Do you want to add BtsMgr '+btsid+' ?')==true)
|
||||
{
|
||||
window.location.href = baseHref+'&addtype='+addtype+'&btsid='+btsid;
|
||||
}
|
||||
}
|
||||
if(addtype == 'ALink')
|
||||
{
|
||||
if(confirm('Do you want to add ALink '+linkno+' ?')==true)
|
||||
{
|
||||
window.location.href = baseHref+'&addtype='+addtype+'&linkno='+linkno;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
function addMsg(bssid,objectid,msgnum,addtp)
|
||||
{
|
||||
var delValue,x,y;
|
||||
var baseHref;
|
||||
x = document.body.scrollLeft;
|
||||
y = document.body.scrollTop;
|
||||
|
||||
baseHref = '<?php echo $PHP_SELF ?>'+'?bssid='+bssid+'&objectid='+objectid;
|
||||
if(addtp == 'SmMsg')
|
||||
{
|
||||
if(confirm('Do you want to add SmMsg '+msgnum+' ?')==true)
|
||||
{
|
||||
window.location.href = baseHref+'&msgnum='+msgnum+'&addtp='+addtp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function upload_data(upload,bssid)
|
||||
{
|
||||
window.location.href = '<?php echo $PHP_SELF ?>'+'?bssid='+bssid+'&upload='+upload;
|
||||
}
|
||||
function upload_data1(upload,bssid,btsid)
|
||||
{
|
||||
window.location.href = '<?php echo $PHP_SELF ?>'+'?bssid='+bssid+'&btsid='+btsid+'&upload='+upload;
|
||||
}
|
||||
function backpage(flag,backurl)
|
||||
{
|
||||
if(flag)
|
||||
window.location.href=backurl;
|
||||
else
|
||||
history.go(-1);
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
function putcommand($bssid,$objectid,$nmicmd)
|
||||
{
|
||||
//Lock Tables
|
||||
//echo "objectid=$objectid<br>";
|
||||
$bssDb = "BssOmcDb";
|
||||
$sqlstring = "LOCK TABLES OMCR_COMMAND WRITE";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
$sqlstring = "SELECT row_no FROM OMCR_COMMAND WHERE status=0 " .
|
||||
"ORDER BY seqNum ASC LIMIT 10";
|
||||
//echo "$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
while (list($row_no[]) = mysqli_fetch_row($res));
|
||||
$no_of_rows = mysqli_num_rows($res);
|
||||
mysql_free_result($res);
|
||||
|
||||
if ( $no_of_rows <= 0 || ($no_of_rows > 10) )
|
||||
{
|
||||
// No available row in OMCR_COMMAND
|
||||
// Send error to MySQL()
|
||||
header("Location: " .
|
||||
"$url?language=$language&bssid=$bssid&objectid=$objectid" .
|
||||
"&tablename=$tablename" .
|
||||
"&status='{${$parameter}[cmdtablefull]}'" .
|
||||
(isset($x)?"&x=$x":"") .
|
||||
(isset($y)?"&y=$y":""));
|
||||
return;
|
||||
}
|
||||
// Insert 2 commands in OMCR_COMMAND out of 10 possible available rows
|
||||
$i=0;
|
||||
do//OidCommand
|
||||
{
|
||||
if ($row_no[$i] != '')
|
||||
{
|
||||
$sqlstring = "REPLACE INTO OMCR_COMMAND VALUES(" . $row_no[$i] .
|
||||
",$bssid,'oid $objectid',null,255,-1,null,null,null)";
|
||||
//echo "sql>>>$sqlstring<br>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
}
|
||||
$i++;
|
||||
} while ($i<10 && mysql_affected_rows() != 2);
|
||||
|
||||
$cmd1_row_no = $row_no[$i-1];
|
||||
|
||||
do//nmicommand
|
||||
{
|
||||
if ($row_no[$i] != '')
|
||||
{
|
||||
$sqlstring = "REPLACE INTO OMCR_COMMAND VALUES(" .
|
||||
$row_no[$i] . ",$bssid,'$nmicmd',null,255,-1,null,null,null)";
|
||||
//echo "sql>>>$sqlstring<br>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
}
|
||||
$i++;
|
||||
} while (mysql_affected_rows() != 2 && $i<10);
|
||||
$cmd2_row_no = $row_no[$i-1];
|
||||
//Unlock Tables
|
||||
$sqlstring = "UNLOCK TABLES";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
//Waiting for Response
|
||||
$timewait=0;
|
||||
$timeout =24;
|
||||
$interval=500000; // in micro-seconds
|
||||
while ($timewait < 1000000 * $timeout)
|
||||
{
|
||||
if($nmicmd!="get")
|
||||
{
|
||||
$cmd = explode(" ",$nmicmd);
|
||||
if($timewait==0){
|
||||
echo "<br>";
|
||||
if($nmicmd=="upload 12"){
|
||||
echo "<b>upload data</b>";
|
||||
}else if($cmd[0]=="action")
|
||||
{
|
||||
echo "<b>Doing this action</b>";
|
||||
}else{
|
||||
echo "<b>$nmicmd</b>";
|
||||
}
|
||||
echo "<br>";
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
}
|
||||
$resultcode=$responsecode=$result=$response=null;
|
||||
usleep($interval);
|
||||
$timewait += $interval;
|
||||
|
||||
$sqlstring = "SELECT t1.resultcode,t1.responsecode," .
|
||||
"t2.engStatInfo,t3.engStatInfo " .
|
||||
"FROM OMCR_COMMAND AS t1,OMCR_STATCODE AS t2,OMCR_VARSTATCODE AS t3 " .
|
||||
"WHERE t2.statcode=t1.resultcode AND t3.statcode=t1.responsecode " .
|
||||
"AND t1.status=0 " .
|
||||
"AND (t1.row_no=$cmd1_row_no OR t1.row_no=$cmd2_row_no) " .
|
||||
"ORDER BY seqNum ASC";
|
||||
|
||||
//echo "$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
while ( $mydata = mysqli_fetch_row($res) )
|
||||
{
|
||||
list($resultcode[],$responsecode[],$result[],$response[]) = $mydata;
|
||||
}
|
||||
$no_of_rows = mysqli_num_rows($res);
|
||||
//echo "$resultcode[0],$responsecode[0],$result[0],$response[0]<br>";
|
||||
//echo "$resultcode[1],$responsecode[1],$result[1],$response[1]<br>";
|
||||
//echo "no_of_rows = $no_of_rows<br>";
|
||||
mysql_free_result($res);
|
||||
if ($no_of_rows == 2)
|
||||
{
|
||||
|
||||
if ($resultcode[0] != 0) // 0='ok'
|
||||
{
|
||||
/*
|
||||
echo "<br>";
|
||||
echo "<font color=black size=-1><b>BSS and OMC connection broken!</b></font>";
|
||||
echo "<br>";
|
||||
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"10%\"><a href=\"./bssSpecific.php?bssid=$bssid\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
*/
|
||||
|
||||
$alarm_info="BSS and OMC connection broken!";
|
||||
$back_url="./bssSpecific.php?bssid=$bssid";
|
||||
show_alarm($alarm_info,$back_url);
|
||||
|
||||
|
||||
|
||||
exit();
|
||||
}
|
||||
elseif ($resultcode[1] != 0)
|
||||
{
|
||||
/*
|
||||
echo "<br>";
|
||||
echo "<font color=black size=-1><b>Imp Command fail!!!</b></font>";
|
||||
echo "<br>";
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"10%\"><a href=\"./bssSpecific.php?bssid=$bssid\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
*/
|
||||
|
||||
$alarm_info="Imp command fail!";
|
||||
$back_url="./bssSpecific.php?bssid=$bssid";
|
||||
show_alarm($alarm_info,$back_url);
|
||||
|
||||
exit();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
}//end while
|
||||
|
||||
// Server or BSC has no response
|
||||
// OMCR_COMMAND.status did not change to zero before timeout
|
||||
//
|
||||
$sqlstring = "SELECT * FROM OMCR_COMMAND " .
|
||||
"WHERE status=254 AND (row_no=$cmd1_row_no OR row_no=$cmd2_row_no) ";
|
||||
//echo "$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
$test = mysqli_fetch_row($res);
|
||||
//echo "You are >>> $test";
|
||||
if (mysqli_fetch_row($res))
|
||||
{
|
||||
/*
|
||||
echo "<br>";
|
||||
echo "<font color=black size=-1><b>No response from Bsc!!!</b></font>";
|
||||
echo "<br>";
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"10%\"><a href=\"./bssSpecific.php?bssid=$bssid\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
*/
|
||||
|
||||
$alarm_info="No response from Bsc!";
|
||||
$back_url="./bssSpecific.php?bssid=$bssid";
|
||||
show_alarm($alarm_info,$back_url);
|
||||
|
||||
exit();
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
echo "<br>";
|
||||
echo "<font color=black size=-1><b>No response from BssComm!!!</b></font>";
|
||||
echo "<br>";
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"10%\"><a href=\"./bssSpecific.php?bssid=$bssid\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
*/
|
||||
|
||||
$alarm_info="No response from BssComm!";
|
||||
$back_url="./bssSpecific.php?bssid=$bssid";
|
||||
show_alarm($alarm_info,$back_url);
|
||||
|
||||
exit();
|
||||
//echo date('h:i:s') . "\n";
|
||||
|
||||
}
|
||||
$sqlstring = "UPDATE OMCR_COMMAND SET status=0 WHERE row_no=$cmd1_row_no OR row_no=$cmd2_row_no";
|
||||
//echo "$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
|
||||
}
|
||||
|
||||
//==================show the alarm info==========================
|
||||
function show_alarm($info,$backurl)
|
||||
{
|
||||
echo "\n<script language=\"JavaScript\">\n";
|
||||
echo "window.location.href=\"./alarm_show.php?info=$info&backurl=$backurl\";\n";
|
||||
echo "</script>\n";
|
||||
|
||||
}
|
||||
?>
|
||||
8
wxc2_omc/element/bssSpecific/logdb.inc
Executable file
8
wxc2_omc/element/bssSpecific/logdb.inc
Executable file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$bssDb = "BssOmcDb";
|
||||
$dbname="BssOmcDb";
|
||||
$hostname="localhost";
|
||||
$username="root";
|
||||
$password="rootaa";
|
||||
?>
|
||||
|
||||
339
wxc2_omc/element/bssSpecific/objModify.php
Executable file
339
wxc2_omc/element/bssSpecific/objModify.php
Executable file
@@ -0,0 +1,339 @@
|
||||
<?php
|
||||
|
||||
require("../../inc/config.inc");
|
||||
$DEBUG=0;
|
||||
//echo "nmicommand = $nmicommand<br>";
|
||||
//echo "modified_data = $modified_data<br>";
|
||||
//exit();
|
||||
if (!isset($url))
|
||||
$url = "objShow.php";
|
||||
if (!isset($timeout))
|
||||
$timeout = 15;
|
||||
|
||||
if (!isset($language))
|
||||
$language = "eng";
|
||||
|
||||
|
||||
if($language == "chn"){
|
||||
$parameter = Array(
|
||||
saveiscompleted => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
actioniscompleted => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
nobsscommresponse => "BssComm û<>л<EFBFBD>Ӧ",
|
||||
nobscresponse => "BSC û<>л<EFBFBD>Ӧ",
|
||||
cmdtablefull => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>пռ䣬һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
);
|
||||
}else{
|
||||
$parameter = Array(
|
||||
saveiscompleted => "Save is Completed: (modified items are highlighted)",
|
||||
actioniscompleted => "Action is completed",
|
||||
nobsscommresponse => "No response from BssComm",
|
||||
nobscresponse => "No response from BSC",
|
||||
cmdtablefull => "Command table is full: wait and send the command later"
|
||||
);
|
||||
}
|
||||
|
||||
// Display_Type
|
||||
define("DO_NOT_DISPLAY",0);
|
||||
define("PULLDOWN_MENU",1);
|
||||
define("TEXTBOX",2);
|
||||
define("LABEL",3);
|
||||
define("RADIO_BUTTON",4);
|
||||
define("PUSH_BUTTON",5);
|
||||
define("CHECKBOX",6);
|
||||
define("TEXTAREA",7);
|
||||
define("CONFIRM_PUSH_BUTTON",8);
|
||||
|
||||
// Attribute_Type
|
||||
define("READONLY", 0);
|
||||
define("NUMBERS", 1);
|
||||
define("STRINGS", 2);
|
||||
define("INTEGER_ARRAY", 3);
|
||||
|
||||
$bssDb = "BssOmcDb";
|
||||
//
|
||||
// if nothing has been modified, reload the original page
|
||||
//
|
||||
|
||||
if ( ($modified_data == '') && ($nmicommand == ''))
|
||||
{
|
||||
header("Location: " .
|
||||
"$url?language=$language&bssid=$bssid&objectid=$objectid" .
|
||||
"&tablename=$tablename" .
|
||||
"&status='Nothing is requested'" .
|
||||
(isset($x)?"&x=$x":"") .
|
||||
(isset($y)?"&y=$y":"")
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Find the available row in OMCR_COMMAND to insert nmi commands
|
||||
// Get 10 available and insert 2 nmi commands
|
||||
// 1. oid $objectid
|
||||
// 2. set $para1=$val1 [$para2=$val2] ...
|
||||
//
|
||||
function displayaction()
|
||||
{
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
}
|
||||
$dbname="BssOmcDb";
|
||||
$hostname="localhost";
|
||||
$username="root";
|
||||
$password="rootaa";
|
||||
|
||||
$db = mysql_connect($hostname, $username, $password);
|
||||
mysql_select_db($dbname,$db);
|
||||
|
||||
if ($nmicommand != '')
|
||||
{
|
||||
$nmicmd = $nmicommand;
|
||||
}
|
||||
else if ($modified_data != '')
|
||||
{
|
||||
//echo $modified_data . "<BR>";
|
||||
$parm_name = explode(",",$modified_data);
|
||||
$nmicmd="set";
|
||||
foreach ($parm_name as $attribute)
|
||||
{
|
||||
switch(${"t$attribute"})
|
||||
{
|
||||
|
||||
case NUMBERS:
|
||||
$tmpSql="SELECT Attribute_Id FROM OMCR_Meta_Table WHERE Attribute_Name='$attribute'";
|
||||
$tmpResult = mysql_query($tmpSql,$db) or
|
||||
die("Invalid query: $tmpSql\n" . mysqli_error($pubConn));
|
||||
$tmpRow = mysqli_fetch_row($tmpResult);
|
||||
$tmpStr=$tmpRow[0];
|
||||
|
||||
if (${$attribute})
|
||||
{
|
||||
//$nmicmd.=" $attribute=${$attribute}";
|
||||
$nmicmd.=" $tmpStr=${$attribute}";
|
||||
}
|
||||
else // for checkbox: ${$attribute}=true or false
|
||||
{
|
||||
//$nmicmd.=" $attribute=0";
|
||||
$nmicmd.=" $tmpStr=0";
|
||||
}
|
||||
break;
|
||||
case STRINGS:
|
||||
if($attribute=="Label"){
|
||||
$nmicmd.=" $attribute=\"" . rawurlencode(${$attribute}) . "\"";
|
||||
}
|
||||
else
|
||||
{
|
||||
$tmpSql="SELECT Attribute_Id FROM OMCR_Meta_Table WHERE Attribute_Name='$attribute'";
|
||||
$tmpResult = mysql_query($tmpSql,$db) or
|
||||
die("Invalid query: $tmpSql\n" . mysqli_error($pubConn));
|
||||
$tmpRow = mysqli_fetch_row($tmpResult);
|
||||
$tmpStr=$tmpRow[0];
|
||||
//$nmicmd.=" $tmpStr=\"" . rawurlencode(${$attribute}) . "\"";
|
||||
$nmicmd.=" $tmpStr=\"" . (${$attribute}) . "\"";
|
||||
//echo "string == ${$attribute}";
|
||||
}
|
||||
break;
|
||||
case INTEGER_ARRAY:
|
||||
$tmpSql="SELECT Attribute_Id FROM OMCR_Meta_Table WHERE Attribute_Name='$attribute'";
|
||||
$tmpResult = mysql_query($tmpSql,$db) or
|
||||
die("Invalid query: $tmpSql\n" . mysqli_error($pubConn));
|
||||
$tmpRow = mysqli_fetch_row($tmpResult);
|
||||
$tmpStr=$tmpRow[0];
|
||||
$stringarray = explode("_",$tmpStr);
|
||||
$nmicmd.= " $stringarray[0]=[$stringarray[1]=${$attribute}]";
|
||||
break;
|
||||
default:
|
||||
break;;
|
||||
}
|
||||
//echo $nmicmd . "<BR>";
|
||||
}
|
||||
}
|
||||
|
||||
$sqlstring = "LOCK TABLES OMCR_COMMAND WRITE";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
$sqlstring = "SELECT row_no FROM OMCR_COMMAND WHERE status=0 " .
|
||||
"ORDER BY seqNum ASC LIMIT 10";
|
||||
//echo "$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
while (list($row_no[]) = mysqli_fetch_row($res));
|
||||
$no_of_rows = mysqli_num_rows($res);
|
||||
mysql_free_result($res);
|
||||
|
||||
if ( $no_of_rows <= 0 || ($no_of_rows > 10) )
|
||||
{
|
||||
//
|
||||
// No available row in OMCR_COMMAND
|
||||
// Send error to MySQL()
|
||||
//
|
||||
header("Location: " .
|
||||
"$url?language=$language&bssid=$bssid&objectid=$objectid" .
|
||||
"&tablename=$tablename" .
|
||||
"&status='{${$parameter}[cmdtablefull]}'" .
|
||||
(isset($x)?"&x=$x":"") .
|
||||
(isset($y)?"&y=$y":"")
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Insert 2 commands in OMCR_COMMAND out of 10 possible available rows
|
||||
//
|
||||
$i=0;
|
||||
do
|
||||
{
|
||||
if ($row_no[$i] != '')
|
||||
{
|
||||
$sqlstring = "REPLACE INTO OMCR_COMMAND VALUES(" . $row_no[$i] .
|
||||
",$bssid,'oid $objectid',null,255,-1,null,null,null)";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
}
|
||||
$i++;
|
||||
} while ($i<10 && mysql_affected_rows() != 2);
|
||||
|
||||
$cmd1_row_no = $row_no[$i-1];
|
||||
|
||||
do
|
||||
{
|
||||
if ($row_no[$i] != '')
|
||||
{
|
||||
$sqlstring = "REPLACE INTO OMCR_COMMAND VALUES(" .
|
||||
$row_no[$i] . ",$bssid,'$nmicmd',null,255,-1,null,null,null)";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
}
|
||||
$i++;
|
||||
} while (mysql_affected_rows() != 2 && $i<10);
|
||||
$cmd2_row_no = $row_no[$i-1];
|
||||
//echo "cmd1_row_no=$cmd1_row_no,cmd2_row_no=$cmd2_row_no<br>";
|
||||
$sqlstring = "UNLOCK TABLES";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
|
||||
//
|
||||
// Wait for response: timeout value = $timeout
|
||||
//
|
||||
$timewait=0;
|
||||
$interval=500000; // in micro-seconds
|
||||
|
||||
while ($timewait < 1000000 * $timeout)
|
||||
{
|
||||
$resultcode=$responsecode=$result=$response=null;
|
||||
usleep($interval);
|
||||
//echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
//flush();
|
||||
$timewait += $interval;
|
||||
|
||||
$sqlstring = "SELECT t1.resultcode,t1.responsecode," .
|
||||
"t2.engStatInfo,t3.engStatInfo " .
|
||||
"FROM OMCR_COMMAND AS t1,OMCR_STATCODE AS t2,OMCR_VARSTATCODE AS t3 " .
|
||||
"WHERE t2.statcode=t1.resultcode AND t3.statcode=t1.responsecode " .
|
||||
"AND t1.status=0 " .
|
||||
"AND (t1.row_no=$cmd1_row_no OR t1.row_no=$cmd2_row_no) " .
|
||||
"ORDER BY seqNum ASC";
|
||||
|
||||
//echo "$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
while ( $mydata = mysqli_fetch_row($res) )
|
||||
{
|
||||
list($resultcode[],$responsecode[],$result[],$response[]) = $mydata;
|
||||
}
|
||||
$no_of_rows = mysqli_num_rows($res);
|
||||
//echo "no_of_row=$no_of_rows<br>";
|
||||
mysql_free_result($res);
|
||||
|
||||
if ($no_of_rows == 2)
|
||||
{
|
||||
if ($resultcode[0] != 0) // 0='ok'
|
||||
{
|
||||
// Oid failed !!!
|
||||
header("Location: " .
|
||||
"$url?language=$language&bssid=$bssid" .
|
||||
"&objectid=$objectid&tablename=$tablename" .
|
||||
"&alarm=$result[0]" .
|
||||
(($responsecode[0]!=0)? " --- $response[0]":"") .
|
||||
(isset($x)?"&x=$x":"") .
|
||||
(isset($y)?"&y=$y":""));
|
||||
//echo "<script language=\"javascript\">";
|
||||
//$href="$url?language=$language&bssid=$bssid&objectid=$objectid&tablename=$tablename".
|
||||
// "&objectid=$objectid&tablename=$tablename&alarm=$result[0]".
|
||||
// "
|
||||
//echo "window.location.href='$href';";
|
||||
//echo "</script>";
|
||||
|
||||
}
|
||||
elseif ($resultcode[1] != 0)
|
||||
{
|
||||
// Nmi command failed !!!
|
||||
header("Location: " .
|
||||
"$url?language=$language&bssid=$bssid" .
|
||||
"&objectid=$objectid&tablename=$tablename" .
|
||||
"&alarm=$result[1]" .
|
||||
(($responsecode[1]!=0)? " --- $response[1]":"") .
|
||||
(isset($x)?"&x=$x":"") .
|
||||
(isset($y)?"&y=$y":""));
|
||||
}
|
||||
else
|
||||
{
|
||||
// Success !!!
|
||||
header("Location: " .
|
||||
"$url?language=$language&bssid=$bssid" .
|
||||
"&objectid=$objectid" .
|
||||
"&tablename=$tablename" .
|
||||
( (strncmp(strtolower($nmicommand), "create",6)
|
||||
&& strncmp(strtolower($nmicommand), "delete",6)
|
||||
&& (strncmp(strtolower($objectid),"abismgr",7) || strncmp(strtolower($nmicommand),"set adminstate=2",16))
|
||||
)?
|
||||
"&status={${$parameter}[saveiscompleted]}":
|
||||
"&status={${$parameter}[actioniscompleted]}"
|
||||
) .
|
||||
// (($nmicommand != '') ? "&status={${$parameter}[actioniscompleted]}":
|
||||
// "&status={${$parameter}[saveiscompleted]}") .
|
||||
(($modified_data == '') ? "":"&saved=$modified_data") .
|
||||
(isset($x)?"&x=$x":"") .
|
||||
(isset($y)?"&y=$y":"")
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}//end if
|
||||
|
||||
}//end while
|
||||
|
||||
//
|
||||
// Server or BSC has no response
|
||||
// OMCR_COMMAND.status did not change to zero before timeout
|
||||
//
|
||||
$sqlstring = "SELECT * FROM OMCR_COMMAND " .
|
||||
"WHERE status=254 AND (row_no=$cmd1_row_no OR row_no=$cmd2_row_no) ";
|
||||
//echo "sql>$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
$test = mysqli_fetch_row($res);
|
||||
//echo "result>>$test<br>";
|
||||
if (mysqli_fetch_row($res))
|
||||
{
|
||||
echo "<br>";
|
||||
echo "<font color=red size=+3><b>No response from Bsc!!!</b></font>";
|
||||
echo "<br>";
|
||||
echo "<a href=\"JavaScript:history.go(-1)\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br>";
|
||||
echo "<font color=red size=+3><b>No response from BssComm!!!</b></font>";
|
||||
echo "<br>";
|
||||
echo "<a href=\"JavaScript:history.go(-1)\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a>";
|
||||
}
|
||||
|
||||
//
|
||||
// Change status to 0
|
||||
//
|
||||
$sqlstring = "UPDATE OMCR_COMMAND SET status=0 WHERE row_no=$cmd1_row_no OR row_no=$cmd2_row_no";
|
||||
//echo "$sqlstring<BR>";
|
||||
$res = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query:$sqlstring\n" . mysqli_error($pubConn));
|
||||
?>
|
||||
709
wxc2_omc/element/bssSpecific/objShow.php
Executable file
709
wxc2_omc/element/bssSpecific/objShow.php
Executable file
@@ -0,0 +1,709 @@
|
||||
<?php
|
||||
|
||||
require("../../inc/header.inc");
|
||||
require("./function.php");
|
||||
require("logdb.inc");
|
||||
$DEBUG=1;
|
||||
|
||||
|
||||
//*****
|
||||
//$url_temp=$_SERVER["REQUEST_URI"];
|
||||
//echo "This page URL:$url_temp<br>";
|
||||
|
||||
|
||||
|
||||
//onclick('objects.php?language=eng&bssid=0&objectid=ALinkSet.0.0&tablename=OMCR_ALinkSet');">
|
||||
if($language == 'chn'){
|
||||
$parameter = Array(
|
||||
confirmquestionbegin => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ",
|
||||
confirmquestionend => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
entervalidvalue => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD>ֵ",
|
||||
actioniscompleted => "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
|
||||
savenotneed => "û<EFBFBD>б䶯"
|
||||
);
|
||||
}else{
|
||||
$parameter = Array(
|
||||
confirmquestionbegin => "Are you sure you want to ",
|
||||
confirmquestionend => "?",
|
||||
entervalidvalue => "You must enter valid value",
|
||||
actioniscompleted => "Action is completed",
|
||||
savenotneed => "Save Not needed"
|
||||
);
|
||||
}
|
||||
|
||||
// Display_Type
|
||||
define("DO_NOT_DISPLAY",0);
|
||||
define("PULLDOWN_MENU",1);
|
||||
define("TEXTBOX",2);
|
||||
define("LABEL",3);
|
||||
define("RADIO_BUTTON",4);
|
||||
define("PUSH_BUTTON",5);
|
||||
define("CHECKBOX",6);
|
||||
define("TEXTAREA",7);
|
||||
define("CONFIRM_PUSH_BUTTON",8);
|
||||
|
||||
// Attribute_Type
|
||||
define("READONLY", 0);
|
||||
define("NUMBERS", 1);
|
||||
define("STRINGS", 2);
|
||||
define("INTEGER_ARRAY", 3);
|
||||
|
||||
?>
|
||||
|
||||
<HTML>
|
||||
<HEAD>
|
||||
|
||||
|
||||
<SCRIPT language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
var alerting=false;
|
||||
var oldvalue=0;
|
||||
var no_of_refresh=0;
|
||||
var timeout_handle = null;
|
||||
var refresh_bsstree_string="<?=${$parameter}[actioniscompleted]?>";
|
||||
|
||||
function actions(objValue,nmicmd,need_confirm)
|
||||
{
|
||||
if (need_confirm)
|
||||
{
|
||||
window.status = "<?=${$parameter}[confirmquestionbegin]?>"
|
||||
+ objValue + "<?=${$parameter}[confirmquestionend]?>";
|
||||
answer = confirm("<?=${$parameter}[confirmquestionbegin]?>"
|
||||
+ objValue + "<?=${$parameter}[confirmquestionend]?>");
|
||||
window.status = "";
|
||||
if (answer != true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (nmicmd != '')
|
||||
{
|
||||
this.document.object_form.modified_data.value = '';
|
||||
this.document.object_form.nmicommand.value = nmicmd;
|
||||
}
|
||||
this.document.object_form.submit();
|
||||
}
|
||||
function show_status(status,alarm)
|
||||
{
|
||||
//
|
||||
// alarm and status display
|
||||
if ((typeof(alarm) != "undefined") && (alarm != ""))
|
||||
{
|
||||
window.status=alarm;
|
||||
//alert(alarm);
|
||||
window.status="";
|
||||
}
|
||||
if ((typeof(status) != "undefined") && (status != ""))
|
||||
{
|
||||
window.status=status;
|
||||
if ((no_of_refresh < 5) && (status == refresh_bsstree_string))
|
||||
{
|
||||
if (no_of_refresh++ < 5)
|
||||
{
|
||||
//refresh every 2 seconds and repeat for 5 times
|
||||
timeout_handle = setTimeout(show_status,2);
|
||||
parent.contents.location.href=parent.contents.location;
|
||||
}
|
||||
else
|
||||
{
|
||||
clearTimeout(timeout_handle);
|
||||
timeout_handle = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function submit_form(data)
|
||||
{
|
||||
if (( data.modified_data.value == '') && ( data.nmicommand.value == ''))
|
||||
{
|
||||
window.status="<?=${$parameter}[savenotneed]?>";
|
||||
return(false);
|
||||
}
|
||||
else
|
||||
return(true);
|
||||
}
|
||||
function b4_change(data)
|
||||
{
|
||||
data = eval(data);
|
||||
if (alerting)
|
||||
return;
|
||||
|
||||
|
||||
if ( data.value != '' )
|
||||
{
|
||||
oldvalue=data.value;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( oldvalue!=0 )
|
||||
data.value=oldvalue;
|
||||
}
|
||||
}
|
||||
function change_made(data)
|
||||
{
|
||||
data = eval(data);
|
||||
var parm_string=this.document.object_form.modified_data.value;
|
||||
//alert(data.value);
|
||||
|
||||
if ( data.value == '')
|
||||
{
|
||||
|
||||
if ( oldvalue!=0 )
|
||||
{
|
||||
alerting = true; // True if alert() dialogue box is displayed.
|
||||
alert("<?=${$parameter}[entervalidvalue]?>");
|
||||
data.value = oldvalue;
|
||||
data.focus();
|
||||
alerting = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (data.value == oldvalue) //no Change
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ( parm_string == '' )
|
||||
{
|
||||
this.document.object_form.modified_data.value = data.name;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (parm_string.search(data.name) == -1)
|
||||
this.document.object_form.modified_data.value += ","+data.name;
|
||||
}
|
||||
}
|
||||
|
||||
function backpage(flag,backurl)
|
||||
{
|
||||
if(flag)
|
||||
window.location.href=backurl;
|
||||
else
|
||||
history.go(-1);
|
||||
}
|
||||
|
||||
//-->
|
||||
</SCRIPT>
|
||||
<TITLE>
|
||||
WXC2 OMC V8.3
|
||||
</TITLE>
|
||||
</HEAD>
|
||||
<BODY onLoad='show_status("<?=$status?>","<?=$alarm?>");'>
|
||||
<?php
|
||||
//echo "<font color=red size=+1>$alarm</font>";
|
||||
|
||||
|
||||
$url_temp=$_SERVER["REQUEST_URI"];
|
||||
|
||||
if(isset($alarm)&&$alarm!="OMC"&&$alarm!="attr")
|
||||
{
|
||||
$url_temp=urlencode($url_temp);
|
||||
show_alarm($alarm,$url_temp);
|
||||
}
|
||||
|
||||
|
||||
$status="";
|
||||
|
||||
if (!isset($bssid) || !isset($objectid) || !isset($tablename))
|
||||
{
|
||||
echo "The required information for this page is invalid.<br>\n";
|
||||
echo "</BODY>\n</HTML>";
|
||||
exit();
|
||||
}
|
||||
|
||||
//
|
||||
// Translate the value to string
|
||||
// e.g. AdminState=2 --> AdminState=Unlocked
|
||||
//
|
||||
function translate($input,$data)
|
||||
{
|
||||
$found=-1;
|
||||
if ($data)
|
||||
{
|
||||
$items=split("[;=]",$data);
|
||||
$no_of_items=count($items);
|
||||
|
||||
for ($i=0;$i<$no_of_items;$i+=2) {
|
||||
if ( $input == $items[$i+1] ) {
|
||||
$found=$i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($found != -1)
|
||||
return($items[$found]);
|
||||
}
|
||||
return($input);
|
||||
}
|
||||
|
||||
$db = mysql_connect($hostname, $username, $password);
|
||||
mysql_select_db($dbname,$db);
|
||||
|
||||
// LOOK UP OMCR_META_TABLE for display parameters and buttons
|
||||
//
|
||||
// Display different xxxDisplay_Name base on the language selected
|
||||
//
|
||||
//
|
||||
$sqlstring = "select Object_Name,Attribute_Name,Attribute_Id,Attribute_Type,Display_Type," .
|
||||
"${language}Display_Name,${language}Lookup,${language}Help_Text" .
|
||||
" from OMCR_Meta_Table " .
|
||||
"where Display_Type<> 0 AND Object_Name='" . substr($tablename,5) . "'";
|
||||
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while ( $row = mysqli_fetch_row($result) )
|
||||
{
|
||||
|
||||
//echo "object_name:{$rows[0]}<br>";
|
||||
if (($row[4] == PUSH_BUTTON) || ($row[4] == CONFIRM_PUSH_BUTTON)) //For action item in NMI
|
||||
list($act_object_name[], $act_attribute_name[], $act_attribute_id[], $act_attribute_type[],
|
||||
$act_display_type[], $act_display_name[], $act_lookup[],
|
||||
$act_help_text[]) = $row;
|
||||
else
|
||||
list($object_name[],$attribute_name[],$attribute_id[],$attribute_type[],$display_type[],
|
||||
$display_name[],$lookup[],$help_text[]) = $row;
|
||||
}
|
||||
//
|
||||
// Display the action buttons & confirmed action buttons
|
||||
//
|
||||
$no_of_actions = count($act_attribute_name);
|
||||
|
||||
//========move the Bsc's reboot button on the buttom of the page==================
|
||||
//echo "no_of_Actions:$no_of_actions<br>";
|
||||
//print_r($act_lookup);
|
||||
//echo "<hr>";
|
||||
//print_r($act_attribute_name);
|
||||
$bscFlag=substr($objectid,0,3);
|
||||
$rebootButtonIndex=0;
|
||||
//echo "object_id:$bscFlag<br>";
|
||||
//===================================================================================
|
||||
//echo "<FONT color=#000000 size=+3pt><b>$objectid:</b></FONT>";
|
||||
echo "<br>";
|
||||
echo "<FORM action=./objModify.php name='object_form' method=post " .
|
||||
"onSubmit='return submit_form(this.document.object_form);'>";
|
||||
|
||||
|
||||
if($tablename=="OMCR_BtsMgr")//||$tablename=="OMCR_Bts")
|
||||
{
|
||||
$PubDb = "OMC_PUB";
|
||||
$sqlstring="select Label from $tablename where ObjectId like '$objectid%'";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$cellname = $row[0];
|
||||
$objconts = explode(".",$objectid);
|
||||
$bts_id = $objconts[1];
|
||||
if($cellname!='')
|
||||
{
|
||||
//$tab = explode("_",$tablename);
|
||||
//$str=strtoupper($tab[1]);
|
||||
$sqlstring="select ledOffset from sysConf where sysTypeName like 'BTS%'";//368
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
//echo "sql>$sqlstring<br>";
|
||||
//echo "ledOffset=$row[0]<br>";
|
||||
$ext = $row[0]*16+(($bssid*12)+$bts_id)*16;
|
||||
//echo "<br>bssid=$bssid,btsid=$bts_id";
|
||||
$key_led_num=$ext;
|
||||
//echo "key_led_num=$key_led_num<br>";
|
||||
$sqlstring = "select key_src_page_num from sysLedConf where key_led_num=$key_led_num";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$key_led_num2=$row[0];
|
||||
//echo "key_src_page_num=$key_led_num2<br>";
|
||||
$sqlstring = "select remark from sysLedConf where key_led_num=$key_led_num2";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
//echo "$row[0]<br>";
|
||||
$sqlstring = "select remark from sysLedConf where sync_from_led=$key_led_num2";
|
||||
//echo "$sqlstring<br>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$remark = $row[0];
|
||||
//echo "$row[0]";
|
||||
//echo "cellname=$cellname<br>";
|
||||
$site = explode("[",$cellname);
|
||||
$point= explode(",",$site[1]);
|
||||
$pointx=$point[0];$point_t=explode("]",$point[1]);
|
||||
$pointy=$point_t[0];
|
||||
//echo "x=$pointx,y=$pointy<br>";
|
||||
if($pointx!='')
|
||||
{
|
||||
$sqlstring = "update sysLedConf set point_x=$pointx,point_y=$pointy where sync_from_led=$key_led_num2";
|
||||
//echo "sql>$sqlstring";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
}
|
||||
$test = explode(":",$remark);
|
||||
$sqlstring = "update sysLedConf set remark = '$test[0]:$cellname' where remark='$remark'";//sync_from_led=$key_led_num2";and remark not like '$remark:$cellname%'
|
||||
//echo "sql>$sqlstring<br>";
|
||||
$remark = "$remark:$cellname";
|
||||
$conts = explode(":",$remark);
|
||||
//if($conts[2]=='')
|
||||
//echo "<br>PubDb=$PubDb";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
}
|
||||
}
|
||||
$sqlbuf = "select CurrentBuildDir from OMCR_Software where bssid=$bssid";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$results = mysqli_query($pubConn,$sqlbuf) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$rows = mysqli_fetch_row($results);
|
||||
|
||||
|
||||
$software = explode("_",$rows[0]);
|
||||
|
||||
$flag = 1;
|
||||
$contain = explode(".",$objectid);
|
||||
switch($contain[0])
|
||||
{
|
||||
case "Shelf":
|
||||
case "Port":
|
||||
case "Card":
|
||||
$backurl = "./bssSpecific.php?bssid=$bssid";
|
||||
break;
|
||||
case "DSP":
|
||||
//$dspcont =explode(".",$objectid);
|
||||
//$dspnum = $dspcont[3];
|
||||
//$cardnum = $dspcont[2];
|
||||
//$backurl = "./bss_dsp.php?bssid=$bssid&dspnum=$dspnum&cardnum=$cardnum";
|
||||
$backurl = "./bssSpecific.php?bssid=$bssid";
|
||||
break;
|
||||
case "BtsMgr_Shelf":
|
||||
case "BtsMgr_Shelf_Card_Port":
|
||||
case "BtsMgr_Software":
|
||||
case "BtsMgr_Shelf_Card":
|
||||
$btscont = explode(".",$objectid);
|
||||
$btsid = $btscont[1];
|
||||
$backurl = "./bss_btsmgr.php?bssid=$bssid&btsid=$btsid";
|
||||
break;
|
||||
case "AdjHand":
|
||||
$btscont = explode(".",$objectid);
|
||||
$btsid = $btscont[1];
|
||||
$backurl = "./bss_bts.php?bssid=$bssid&btsid=$btsid&cellid=$cellid";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch($tablename)
|
||||
{
|
||||
case "OMCR_AIf":
|
||||
case "OMCR_Bsc":
|
||||
case "OMCR_BtsMgr":
|
||||
$backurl = "./bssSpecific.php?bssid=$bssid";
|
||||
break;
|
||||
case "OMCR_SmsCb":
|
||||
$backurl = "./bssSpecific.php?bssid=$bssid";
|
||||
break;
|
||||
case "OMCR_SmMsg":
|
||||
$backurl = "./bss_smmsg.php?bssid=$bssid";
|
||||
break;
|
||||
case "OMCR_ALinkSet":
|
||||
case "OMCR_ALink":
|
||||
$backurl = "./bss_aif.php?bssid=$bssid";
|
||||
break;
|
||||
case "OMCR_AbisMgr":
|
||||
case "OMCR_Bts":
|
||||
$btscont = explode(".",$objectid);
|
||||
$btsid = $btscont[1];
|
||||
$backurl = "./bss_btsmgr.php?bssid=$bssid&btsid=$btsid";
|
||||
break;
|
||||
case "OMCR_RCarrier":
|
||||
case "OMCR_Trx":
|
||||
case "OMCR_TrxCh":
|
||||
case "OMCR_PwrCont":
|
||||
case "OMCR_HandCont":
|
||||
$btscont = explode(".",$objectid);
|
||||
$btsid = $btscont[1];
|
||||
$cellid = $btscont[2];
|
||||
$backurl = "./bss_bts.php?bssid=$bssid&btsid=$btsid&cellid=$cellid";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
//show the navigation for this page
|
||||
|
||||
|
||||
$temp=explode("/",$backurl);
|
||||
$temp=explode("?",$temp[1]);
|
||||
$temp=$temp[0];
|
||||
//echo "<br>$temp<br>";
|
||||
if($temp=="bssSpecific.php")
|
||||
$navigation_title="Configuration > Network > BSS Specific > $objectid";
|
||||
if($temp=="bss_aif.php")
|
||||
$navigation_title="Configuration > Network > BSS Specific > AIf > $objectid";
|
||||
if($temp=="bss_smmsg.php")
|
||||
$navigation_title="Configuration > Network > BSS Specific > SmMsg > $objectid";
|
||||
if($tablename=="OMCR_ClockMod")
|
||||
$navigation_title="Configuration > Network > BSS Specific > Clock Module";
|
||||
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">$navigation_title</td>";
|
||||
echo "<td width=\"50%\"></td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
|
||||
|
||||
echo "<table width=\"100%\"border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\"></td>";
|
||||
//echo "<td width=\"50%\"><font color=#000000 size=+3pt><b>$objectid:</b></font></td>";
|
||||
echo "<td width=\"40%\">";
|
||||
for ($i=0;$i<$no_of_actions;$i++)
|
||||
{
|
||||
if($bscFlag=="Bsc"&&$act_attribute_name[$i]=="Reboot")
|
||||
{
|
||||
$rebootButtonIndex=$i;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!strncmp($act_lookup[$i],"javascript:",11)) // Direct to another webpage
|
||||
{
|
||||
echo "<INPUT type=submit value='" . $act_display_name[$i] .
|
||||
"' name='" . $act_attribute_name[$i] .
|
||||
"' onClick='" . $act_lookup[$i] . "'>";
|
||||
|
||||
}
|
||||
else if ($act_lookup[$i] != '') // NMI Actions
|
||||
{
|
||||
|
||||
if ($act_display_type[$i] == CONFIRM_PUSH_BUTTON)
|
||||
$need_confirm = "true";
|
||||
else
|
||||
$need_confirm = "false";
|
||||
|
||||
if ($act_attribute_name[$i] == "Audit")
|
||||
{
|
||||
|
||||
echo "<INPUT type=button value=' Get " . //$act_display_name[$i] .
|
||||
"' name='" . $act_attribute_name[$i] .
|
||||
"' onClick=\"JavaScript:actions('" .
|
||||
$act_attribute_name[$i] . "','" . $act_lookup[$i] . "',$need_confirm)\">";
|
||||
echo " $nbsp  ";
|
||||
|
||||
}
|
||||
else if($act_attribute_name[$i] != "New_ALink1"&&$act_attribute_name[$i] != "Del_ALink1"&&$act_attribute_name[$i] != "Del_Bss_DB")
|
||||
{
|
||||
echo "<INPUT type=button value='" . $act_display_name[$i] .
|
||||
"' name='" . $act_attribute_name[$i] .
|
||||
"' onClick=\"JavaScript:actions('".
|
||||
$act_attribute_name[$i] . "','" . $act_lookup[$i] . "',$need_confirm)\">";
|
||||
}
|
||||
}
|
||||
else if ($act_attribute_name[$i] == "Revert") // Reset Webpage input the original value
|
||||
{
|
||||
|
||||
//echo "<INPUT type=reset value='Reset" . //$act_display_name[$i] .
|
||||
// "' name='Revert'>\n";
|
||||
}
|
||||
else // Simply Save the altered values
|
||||
{
|
||||
|
||||
if ($act_attribute_name[$i] == "Save")
|
||||
{
|
||||
echo "<INPUT type=submit value=' Set " . //$act_display_name[$i] .
|
||||
"' name='" . $act_attribute_name[$i] . "'>";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<INPUT type=submit value='" . $act_display_name[$i] .
|
||||
"' name='" . $act_attribute_name[$i] . "'>";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
echo "</td>";
|
||||
|
||||
|
||||
|
||||
|
||||
if(isset($backurl))
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:backpage($flag,'$backurl')\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a></td></tr></table>";
|
||||
else
|
||||
echo "<td width=\"10%\"><a href=\"JavaScript:history.go(-1)\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">Back</a></td></tr></table>";
|
||||
////////////////////////////////////////////////
|
||||
$no_of_parms = count($attribute_name);
|
||||
|
||||
if ($no_of_parms == 0)
|
||||
{
|
||||
echo "<BR>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//
|
||||
// LOOK UP OMCR_<Object ID> getting real parameter
|
||||
//
|
||||
$sqlstring = "select " . join(",",$attribute_name) .
|
||||
",ObjectId from $tablename " .
|
||||
"where bssid=$bssid and ObjectId like '$objectid'";
|
||||
|
||||
//echo "<BR>".$sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$no_of_instance = mysqli_num_rows($result);
|
||||
|
||||
while ( $row = mysqli_fetch_row($result) )
|
||||
{
|
||||
echo "<table width=\"100%\"border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=\"50%\"><b>Parameter</b></td>";
|
||||
echo "<td width=\"50%\"><b>Value</b></td>";
|
||||
echo "</tr>";
|
||||
for ($i=0; $i<$no_of_parms; $i++)
|
||||
{
|
||||
if($tablename=="OMCR_E1port" && $row[7]==0 && $attribute_name[$i]=="FrameFormat")//if E1 not display T1
|
||||
{
|
||||
$display_type[$i]=0;
|
||||
$display_name[$i]="";
|
||||
}
|
||||
if($tablename=="OMCR_AIf" && $software[0]=="iw06" && $attribute_name[$i]=="dpcLen")
|
||||
{
|
||||
$display_type[$i]=0;
|
||||
$display_name[$i]="";
|
||||
}
|
||||
switch($display_type[$i])
|
||||
{
|
||||
case DO_NOT_DISPLAY: //do not display
|
||||
$widget="";
|
||||
continue;
|
||||
case PULLDOWN_MENU: //pulldown menu
|
||||
$widget="<SELECT size=1 name='" . $attribute_name[$i] .
|
||||
"' onFocus='b4_change(\"this.document.object_form." .
|
||||
$attribute_name[$i] .
|
||||
"\")' onBlur='change_made(\"this.document.object_form." .
|
||||
$attribute_name[$i] .
|
||||
"\")' style='font-size: 10pt; border: 1 solid #646464'>";
|
||||
$existed=0;
|
||||
|
||||
$menu_items=split("[;=]", $lookup[$i]);
|
||||
$no_of_menu_items=count($menu_items);
|
||||
for($j=0;$j<$no_of_menu_items;$j+=2)
|
||||
{
|
||||
$widget.="<option value=" . $menu_items[$j+1];
|
||||
if ($row[$i] == $menu_items[$j+1])
|
||||
{
|
||||
$widget.=" selected>";
|
||||
$existed=1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$widget.=">";
|
||||
}
|
||||
$widget.=$menu_items[$j] . "</option>\n";
|
||||
}
|
||||
$widget.="</SELECT>";
|
||||
if (!$existed)
|
||||
$widget="* Unknown value ($row[$i]) *";
|
||||
break;
|
||||
case TEXTBOX: //text box
|
||||
$widget="<INPUT type=text name=" . $attribute_name[$i] .
|
||||
" size=20 value='" . rawurldecode($row[$i]) .
|
||||
"' onFocus='b4_change(\"this.document.object_form." .
|
||||
$attribute_name[$i] .
|
||||
"\")' onBlur='change_made(\"this.document.object_form." .
|
||||
$attribute_name[$i] .
|
||||
"\")' style='font-size: 10pt; border: 1 solid #646464'>";
|
||||
break;
|
||||
case LABEL: //label
|
||||
if (!strcasecmp($attribute_name[$i], "adminstate"))
|
||||
$adminstate = $row[$i];
|
||||
$widget=translate($row[$i],$lookup[$i]);
|
||||
$widget.= "<INPUT type=hidden name='$attribute_name[$i]' value='$row[$i]'>\n";
|
||||
break;
|
||||
case RADIO_BUTTON: //radio button
|
||||
$widget="<INPUT type=radio name=" . $attribute_name .
|
||||
" value='" . translate($row[$i],$lookup[$i]) .
|
||||
"' onBlur='change_made(\"this.document.object_form." .
|
||||
$attribute_name[$i] . "\")'>" .
|
||||
$row[$i] . "\n";
|
||||
break;
|
||||
case CHECKBOX: //check box
|
||||
$widget="<INPUT type=checkbox name=" . $attribute_name[$i] .
|
||||
" value=1" . ($row[$i]? " CHECKED ":" ") .
|
||||
"onBlur='change_made(\"this.document.object_form." .
|
||||
$attribute_name[$i] . "\")'>";
|
||||
break;
|
||||
case TEXTAREA: //text area
|
||||
$tmpText=rawurldecode($row[$i]);
|
||||
$widget="<TEXTAREA onpropertychange=\"if(value.length>82)value=value.substr(0,82)\" name=" . $attribute_name[$i] .
|
||||
" rows=4 cols=40 " .
|
||||
"onBlur='change_made(\"this.document.object_form." .
|
||||
$attribute_name[$i] . "\")'>$tmpText </TEXTAREA>";
|
||||
//$str = "(MaxLength=36)";
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if (strstr($saved,$attribute_name[$i]) != false)
|
||||
$color="#D2F0FF";
|
||||
else
|
||||
$color="#FFFFFF";
|
||||
|
||||
$widget_type = "<INPUT type=hidden name=t$attribute_name[$i] value=$attribute_type[$i]>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\" bgcolor=$color title='$help_text[$i]'>$display_name[$i]$widget_type</td>";
|
||||
echo "<td width=\"50%\" bgcolor=$color>$widget</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</TABLE>\n";
|
||||
} /* End of while() */
|
||||
}
|
||||
|
||||
echo "<INPUT type=hidden name='modified_data' value=''>\n";
|
||||
echo "<INPUT type=hidden name='nmicommand' value=''>\n";
|
||||
echo "<INPUT type=hidden name='bssid' value=$bssid>\n";
|
||||
echo "<INPUT type=hidden name='objectid' value=$objectid>\n";
|
||||
echo "<INPUT type=hidden name='tablename' value=$tablename>\n";
|
||||
echo "<INPUT type=hidden name='language' value=$language>\n";
|
||||
echo "<INPUT type=hidden name='x' value=$x>\n";
|
||||
echo "<INPUT type=hidden name='y' value=$y>\n";
|
||||
|
||||
//==================Add the Bsc reboot button on the buttom of the page============
|
||||
if($bscFlag=="Bsc")
|
||||
{
|
||||
echo "<table><tr><td align=\"right\" width=\"800\">";
|
||||
if ($act_display_type[$rebootButtonIndex] == CONFIRM_PUSH_BUTTON)
|
||||
$need_confirm = "true";
|
||||
else
|
||||
$need_confirm = "false";
|
||||
|
||||
if ($act_attribute_name[$rebootButtonIndex] == "Audit")
|
||||
{
|
||||
|
||||
echo "<INPUT type=button value=' Get " . //$act_display_name[$i] .
|
||||
"' name='" . $act_attribute_name[$rebootButtonIndex] .
|
||||
"' onClick=\"JavaScript:actions('" .
|
||||
$act_attribute_name[$rebootButtonIndex] . "','" . $act_lookup[$rebootButtonIndex] . "',$need_confirm)\">";
|
||||
echo " $nbsp  ";
|
||||
|
||||
}
|
||||
else if($act_attribute_name[$rebootButtonIndex] != "New_ALink1"&&$act_attribute_name[$rebootButtonIndex] != "Del_ALink1"&&$act_attribute_name[$rebootButtonIndex] != "Del_Bss_DB")
|
||||
{
|
||||
echo "<INPUT type=button value='" . $act_display_name[$rebootButtonIndex] .
|
||||
"' name='" . $act_attribute_name[$rebootButtonIndex] .
|
||||
"' onClick=\"JavaScript:actions('".
|
||||
$act_attribute_name[$rebootButtonIndex] . "','" . $act_lookup[$rebootButtonIndex] . "',$need_confirm)\">";
|
||||
}
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
//=================================================================================
|
||||
//echo "<HR size=1>\n";
|
||||
?>
|
||||
|
||||
</FORM>
|
||||
</BODY>
|
||||
</HTML>
|
||||
Reference in New Issue
Block a user