init web ems all

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

View File

@@ -0,0 +1,159 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>Cui Ticun 2004-12-14
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?
adjust_head_frame("down");
adjust_title_head_frame("down");
adjust_title_tail_frame("down");
adjust_content_head_frame("down");
echo "<br>";
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$showDate = omc_keep_length($showDate,0,2);
$db=$csta_db;
$time_column = "csta_datetime";
$table_name='aasDetail'."_".$showDate;
$title_time=date("Y-m-d", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));//<2F><>ͷ<EFBFBD><CDB7>ʾʱ<CABE><CAB1>
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list)
{
echo "<br>$strNotFindRecord.";
exit();
}
$strServerStatistics = "Server statistics";
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
if($sel_date<0)
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
elseif($sel_date>0)
{
if($sel_time)
{
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}
else
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
}
}
else
{
if($sel_time)
{
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}
else
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
}
/* where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>Ϊ$w1,ϵͳid<69><64><EFBFBD><EFBFBD>Ϊ$w2 */
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
//<2F>ϳ<EFBFBD>where<72><65><EFBFBD><EFBFBD>
$where=" WHERE ".$w1;
$str_sql_all="SELECT count(*) as number_of_records FROM $table_name ".$where;
$csta_result= mysqli_query($pubConn,$str_sql_all);
$record = mysql_fetch_object($csta_result);
$number_of_records = $record->number_of_records;
if(!$number_of_records)
{
echo "$strNotFindRecord";
exit();
}
$sum_sql="
SELECT
SUM(pps_service_attempt) AS pps_service_attempt,
SUM(pps_service_success) AS pps_service_success,
SUM(msc_service_attempt) AS msc_service_attempt,
SUM(msc_service_success) AS msc_service_success,
SUM(invalid_call) AS invalid_call
FROM $table_name
";
//echo "<br>sum_sql=$sum_sql";
$sum_res = mysqli_query($pubConn,$sum_sql);
$sum_row = @mysqli_fetch_array($sum_res);
echo mysqli_error($pubConn);
?>
<form method="POST" action="./saveCsv.php" name="selectform">
<table border="0" width="100%">
<tr>
<td width="25%">
</td>
<td width="50%">
<p align="center"><b><?php echo "$strServerStatistics"; ?></b><b>&nbsp;
Date:<?php echo $title_time; ?></b>
</td>
<td width="20%" align="right">
<div onClick="window.print();" style="cursor:hand">
<img align=absBottom border=0 src="../../images/printer.gif" width="16" height="16">
</div>
</td>
</tr>
</table>
<table border="1" width="100%" bordercolordark="#FFFFFF" bordercolor="#808080" cellspacing="0">
<?php
echo " <tr bgcolor=\"#E6E6E6\">";
echo " <td width=\"10%\">&nbsp;</td>";
echo " <td width=\"40%\">Type</td>";
echo " <td width=\"40%\">Number</td>";
echo " </tr>";
echo " <td rowspan=\"2\">PPS Service</td>";
echo " <td>Attempt</td>";
echo " <td>&nbsp;$sum_row[pps_service_attempt]</td>";
echo " </tr>";
echo " <tr>";
echo " <td>Success</td>";
echo " <td>&nbsp;$sum_row[pps_service_success]</td>";
echo " </tr>";
echo " <td rowspan=\"2\">MSC Service</td>";
echo " <td>Attempt</td>";
echo " <td>&nbsp;$sum_row[msc_service_attempt]</td>";
echo " </tr>";
echo " <tr>";
echo " <td>Success</td>";
echo " <td>&nbsp;$sum_row[msc_service_success]</td>";
echo " </tr>";
echo " <tr>";
echo " <td>Invalid</td>";
echo " <td>Invalid Calls</td>";
echo " <td>&nbsp;$sum_row[invalid_call]</td>";
echo "</tr>";
echo "</table>";
adjust_content_tail("down");
?>
</form>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="dataAnalysisUp.php">
<frame name="main" src="dataAnalysisDown.php" scrolling="auto">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,86 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>Cui Ticun 2002-03-13
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.8";
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
?>
<script language="javascript">
function selPage(){
var url,sel_date;
sel_date=document.selectform.sel_date.value;
url="./dataAnalysisDown.php?sel_date="+sel_date;
window.parent.main.location.href=url;
}
</script>
<base target="main">
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<form method="POST" action="./dataAnalysisDown.php" name="selectform">
<?php
adjust_head_frame("up");
adjust_title_head_frame("up");
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "$strTitlePerformance > AAS";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\">";
echo "$strDate:";
?>
<select style="font-family: Verdana; font-size: 8pt" name="sel_date" size=1 onChange="javascript:selPage()">
<?php
echo "<OPTION value=\"0\">$day0</OPTION>";
echo "<OPTION value=\"1\">$day1</OPTION>";
echo "<OPTION value=\"2\">$day2</OPTION>";
echo "<OPTION value=\"3\">$day3</OPTION>";
echo "<OPTION value=\"4\">$day4</OPTION>";
echo "<OPTION value=\"5\">$day5</OPTION>";
echo "<OPTION value=\"6\">$day6</OPTION>";
?>
</SELECT>
<?php
echo "</td>";
echo "<tdalign=\"right\">";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
?>
</form>
</body>
</html>

View File

@@ -0,0 +1,115 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD>ѯ
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>Cui Ticun 2004-12-14
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head_frame("down");
adjust_title_head_frame("down");
adjust_title_tail_frame("down");
adjust_content_head_frame("down");
echo "<br>";
$DEBUG=0;
$db='CSTA_DB';
$sort_field = 'csta_datetime DESC, key_sys_id ASC'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>
$number_records_to_display = 200; //ÿҳ<C3BF><D2B3>¼<EFBFBD><C2BC>
$time_column = "csta_datetime";
if(!isset($sel_date)){
$sel_date = date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$timeItem = date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
if($DEBUG) echo "<br>sel_date=$sel_date";
}
$tmpDay = explode('-',$sel_date);
$tmpDay = $tmpDay[2];
$table_name='aasDetail'."_".$tmpDay;
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list){
echo "<br>$strNotFindRecord.";
exit();
}
$sysTypeNo=311;
switch($sysTypeNo){
case '311':
$helpId = "3.8";
$callTypeDefArr=array('PPS','MSC','Invalid Calls');
$fieldTypeDef='pps_service_attempt,pps_service_success,msc_service_attempt,msc_service_success,invalid_call';
break;
default:
echo "Can not support this sysTypeNo($sysTypeNo)";
exit();
}
?>
<?php
//<2F>ϳ<EFBFBD>sql<71><6C><EFBFBD><EFBFBD>
$order=" ORDER BY $sort_field $sort_direction";
$limit=" LIMIT $initial_record, $number_records_to_display";
$csta_sql="SELECT * FROM $table_name ".$order;
if($DEBUG)echo "<br>csta_sql=$csta_sql";
$csta_result = mysqli_query($pubConn,$csta_sql);
$csta_rows = @mysqli_fetch_array($csta_result);
echo mysqli_error($pubConn);
//<2F><>ʾ<EFBFBD><CABE>ͷ
echo "<table border=\"1\" width=\"100%\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\" align=\"center\">";
echo "<td rowspan=\"2\" width=\"10%\">system ID</td>";
echo "<td colspan=\"2\" width=\"30%\">PPS Service</td>";
echo "<td colspan=\"2\" width=\"30%\">MSC Service</td>";
echo "<td rowspan=\"2\" width=\"10%\">Invalid call</td>";
echo "<td rowspan=\"2\" width=\"20%\">Time($timeItem)</td>";
echo "</tr>";
echo "<tr bgcolor=\"#E6E6E6\" align=\"center\">";
echo "<td>Attempt</td>";
echo "<td>Success</td>";
echo "<td>Attempt</td>";
echo "<td>Success</td>";
echo "</tr>";
//<2F><>ʾ<EFBFBD><CABE><EFBFBD>ļ<EFBFBD>¼
$fieldArr=explode(',',$fieldTypeDef);
do{
echo "<tr>";
echo "<td align=\"center\">$csta_rows[key_sys_id]</td>";
for($i=0;$i<sizeof($fieldArr);$i++){
$tmpFieldName= $fieldArr[$i];
echo "<td align=\"right\">$csta_rows[$tmpFieldName]</td>";
}
$tmpArray = explode(" ",$csta_rows[csta_datetime]);
echo "<td align=\"center\">$tmpArray[1]</td>";
echo "</tr>";
}while($csta_rows= mysqli_fetch_array($csta_result));
?>
</table>
<?php
adjust_content_tail("down");
?>
</form>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="dataQueryUp.php">
<frame name="main" src="dataQueryDown.php" scrolling="auto" target="_self">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,96 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>Cui Ticun 2004-12-14
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<form method="post" name="selectform" id="selectform" action="dataQueryDown.php" >
<?php
adjust_head_frame("up");
adjust_title_head_frame("up");
$sysTypeNo=311;
switch($sysTypeNo){
case '311':
$helpId = "3.8";
$callTypeDefArr=array('PPS','MSC','Invalid Calls');
break;
default:
echo "Can not support this sysTypeNo($sysTypeNo)";
exit();
}
?>
<base target="main">
<script language="javascript">
function showReportPage(){
var url,sel_date;
sel_date=document.selectform.sel_date.value;
url="./dataQueryDown.php?sel_date="+sel_date;
window.parent.main.location.href=url;
}
</script>
<?php
//page title and help
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Performance > AAS > Query";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\">";
echo "<select name=\"sel_date\" size=1 onChange=\"javascript:showReportPage()\">";
for($i=7;$i >= 0;$i--){
$dayStr=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
if($date == $dayStr){
echo "<option value=\"$dayStr\" selected>$dayStr</option> ";
}elseif($i == 0 && !isset($date)){
echo "<option value=\"$dayStr\" selected>$dayStr</option> ";
$date=$dayStr;
}else{
echo "<option value=\"$dayStr\">$dayStr</option> ";
}
}
echo "</select>";
echo "</td>";
echo "<td align=\"right\">";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
?>
</form>
</body>
</html>

View File

@@ -0,0 +1,434 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head_frame("down");
adjust_title_head_frame("down");
adjust_title_tail_frame("down");
adjust_content_head_frame("down");
echo "<br>";
$db=$csta_db;
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$showDate = omc_keep_length($showDate,0,2);
$time_column = "csta_datetime";
$table_name='aucDetail'."_".$showDate;
$title_time=date("Y-m-d", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));//<2F><>ͷ<EFBFBD><CDB7>ʾʱ<CABE><CAB1>
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list)
{
echo "<br>$strNotFindRecord.";
exit();
}
if($language == 'eng'){
}else{
}
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
if($sel_date<0)
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
elseif($sel_date>0)
{
if($sel_time)
{
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}
else
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
}
}
else
{
if($sel_time)
{
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}
else
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
}
/* where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>Ϊ$w1,ϵͳid<69><64><EFBFBD><EFBFBD>Ϊ$w2 */
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
//<2F>ϳ<EFBFBD>where<72><65><EFBFBD><EFBFBD>
$where=" WHERE".$w1;
$str_sql_all="SELECT count(*) as number_of_records FROM $table_name ".$where;
$csta_result= mysqli_query($pubConn,$str_sql_all);
$record = mysql_fetch_object($csta_result);
$number_of_records = $record->number_of_records;
if(!$number_of_records)
{
echo "$strNotFindRecord";
exit();
}
$sum_sql=" SELECT SUM(auc_auth_suc),SUM(auc_auth_fail),SUM(auc_created_sub_suc),SUM(auc_created_sub_fail),SUM(auc_del_sub_suc), SUM(auc_del_sub_fail),SUM(hlr_created_sub_suc),SUM(hlr_created_sub_fail),SUM(hlr_del_sub_suc),SUM(hlr_del_sub_fail),SUM(int_sub_suc),SUM(int_sub_fail) FROM $table_name ".$where;
//echo "<br>sum_sql=$sum_sql";
$sum_res=mysqli_query($pubConn,$sum_sql);
$sum_row=mysqli_fetch_array($sum_res);
$auc_auth_suc=$sum_row[0];
$auc_auth_fail=$sum_row[1];
$total_auc_auth=$auc_auth_suc+$auc_auth_fail;
if($total_auc_auth>0)
{
$auc_auth_suc_point=$auc_auth_suc/$total_auc_auth;
$auc_auth_suc_scale=change_percent($auc_auth_suc/$total_auc_auth);
$auc_auth_fail_point=$auc_auth_fail/$total_auc_auth;
$auc_auth_fail_scale=change_percent($auc_auth_fail/$total_auc_auth);
}
else
{
$auc_auth_suc_point=0;
$auc_auth_suc_scale="0%";
$auc_auth_fail_point=0;
$auc_auth_fail_scale="0%";
}
$auc_created_sub_suc=$sum_row[2];
$auc_created_sub_fail=$sum_row[3];
$total_auc_created_sub=$auc_created_sub_suc+$auc_created_sub_fail;
if($total_auc_created_sub>0)
{
$auc_created_sub_suc_point=$auc_created_sub_suc/$total_auc_created_sub;
$auc_created_sub_suc_scale=change_percent($auc_created_sub_suc/$total_auc_created_sub);
$auc_created_sub_fail_point=$auc_created_sub_fail/$total_auc_created_sub;
$auc_created_sub_fail_scale=change_percent($auc_created_sub_fail/$total_auc_created_sub);
}
else
{
$auc_created_sub_suc_point=0;
$auc_created_sub_suc_scale="0%";
$auc_created_sub_fail_point=0;
$auc_created_sub_fail_scale="0%";
}
$auc_del_sub_suc=$sum_row[4];
$auc_del_sub_fail=$sum_row[5];
$total_auc_del_sub=$auc_del_sub_suc+$auc_del_sub_fail;
if($total_auc_del_sub>0)
{
$auc_del_sub_suc_point=$auc_del_sub_suc/$total_auc_del_sub;
$auc_del_sub_suc_scale=change_percent($auc_del_sub_suc/$total_auc_del_sub);
$auc_del_sub_fail_point=$auc_del_sub_fail/$total_auc_del_sub;
$auc_del_sub_fail_scale=change_percent($auc_del_sub_fail/$total_auc_del_sub);
}
else
{
$auc_del_sub_suc_point=0;
$auc_del_sub_suc_scale="0%";
$auc_del_sub_fail_point=0;
$auc_del_sub_fail_scale="0%";
}
$hlr_created_sub_suc=$sum_row[6];
$hlr_created_sub_fail=$sum_row[7];
$total_hlr_created_sub=$hlr_created_sub_suc+$hlr_created_sub_fail;
if($total_hlr_created_sub>0)
{
$hlr_created_sub_suc_point=$hlr_created_sub_suc/$total_hlr_created_sub;
$hlr_created_sub_suc_scale=change_percent($hlr_created_sub_suc/$total_hlr_created_sub);
$hlr_created_sub_fail_point=$hlr_created_sub_fail/$total_hlr_created_sub;
$hlr_created_sub_fail_scale=change_percent($hlr_created_sub_fail/$total_hlr_created_sub);
}
else
{
$hlr_created_sub_suc_point=0;
$hlr_created_sub_suc_scale="0%";
$hlr_created_sub_fail_point=0;
$hlr_created_sub_fail_scale="0%";
}
$hlr_del_sub_suc=$sum_row[8];
$hlr_del_sub_fail=$sum_row[9];
$total_hlr_del_sub=$hlr_del_sub_suc+$hlr_del_sub_fail;
if($total_hlr_del_sub)
{
$hlr_del_sub_suc_point=$hlr_del_sub_suc/$total_hlr_del_sub;
$hlr_del_sub_suc_scale=change_percent($hlr_del_sub_suc/$total_hlr_del_sub);
$hlr_del_sub_fail_point=$hlr_del_sub_fail/$total_hlr_del_sub;
$hlr_del_sub_fail_scale=change_percent($hlr_del_sub_fail/$total_hlr_del_sub);
}
else
{
$hlr_del_sub_suc_point=0;
$hlr_del_sub_suc_scale="0%";
$hlr_del_sub_fail_point=0;
$hlr_del_sub_fail_scale="0%";
}
$int_sub_suc=$sum_row[10];
$int_sub_fail=$sum_row[11];
$total_int_sub=$int_sub_suc+$int_sub_fail;
if($total_int_sub)
{
$int_sub_suc_point=$int_sub_suc/$total_int_sub;
$int_sub_suc_scale=change_percent($int_sub_suc/$total_int_sub);
$int_sub_fail_point=$int_sub_fail/$total_int_sub;
$int_sub_fail_scale=change_percent($int_sub_fail/$total_int_sub);
}
else
{
$int_sub_suc_point=0;
$int_sub_suc_scale="0%";
$int_sub_fail_point=0;
$int_sub_fail_scale="0%";
}
?>
<form method="POST" action="./saveCsv.php" name="selectform">
<table border="0" width="100%">
<tr>
<td width="25%">
</td>
<td width="50%">
<p align="center"><font size="2"><b><?php echo "$strAucStatistic"; ?></b></font><font size="2"><b>&nbsp;
Date:<?php echo $title_time; ?></b></font>
</td>
<td width="20%" align="right">
<div onClick="window.print();" style="cursor:hand">
<img align=absBottom border=0 src="../../images/printer.gif" width="16" height="16">
</div>
</td>
<!--
<td width="5%" align="center">
<div onClick="javascript:document.selectform.submit();" style="cursor:hand">
<img align=absBottom border=0 src="../../images/save.gif" width="16" height="16">
</div>
</td>
-->
</tr>
</table>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr bgcolor="#E6E6E6">
<td width="606" colspan="4" height="16">
<p align="center">1.<?php echo "$strPercentStatTable"; ?></td>
</tr>
<tr>
<td width="143" height="16">
<p align="center"><?php echo "$strItem";?></td>
<td width="151" height="16">
<p align="center"><?php echo "$strAttribute";?></td>
<td width="151" height="16">
<p align="center"><?php echo "$strTimes";?></td>
<td width="151" height="16">
<p align="center"><?php echo "$strPercent";?></td>
</tr>
<tr>
<td width="143" rowspan="2" align="center" height="40">
<p align="center"><?php echo "$strAUCAuthorization";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_auth_suc";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_auth_suc_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_auth_fail";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_auth_fail_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" align="center" height="40"><?php echo "$strAUCCreateCustomer";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_created_sub_suc";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_created_sub_suc_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_created_sub_fail";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_created_sub_fail_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" height="40">
<p align="center"><?php echo "$strAUCDeleteCustomer";?></td>
<td width="151" align="center" height="19"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_del_sub_suc";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$auc_del_sub_suc_scale";?></td>
</tr>
<tr>
<td width="151" height="16">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="16">
<p align="center">&nbsp;<?php echo "$auc_del_sub_fail";?></td>
<td width="151" height="16">
<p align="center">&nbsp;<?php echo "$auc_del_sub_fail_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" height="40">
<p align="center"><?php echo "$strHLRCreateCustomer";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_created_sub_suc";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_created_sub_suc_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_created_sub_fail";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_created_sub_fail_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" height="40">
<p align="center"><?php echo "$strHLRDeleteCustomer";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_del_sub_suc";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_del_sub_suc_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_del_sub_fail";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$hlr_del_sub_fail_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" height="40">
<p align="center"><?php echo "$strInterrogateSubscriber";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$int_sub_suc";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$int_sub_suc_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$int_sub_fail";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$int_sub_fail_scale";?></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
<tr>
<td colspan="17" height="20">
<b><img border="0" src="../../images/Icon-0.gif" width="2" height="1">&nbsp;<INPUT type="text" size="10" name="topNumber_2" id="topNumber" value="100" style="border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)" readonly><INPUT type="hidden" size="10" name="org_topNumber_2" id="topNumber" value="100" ></b>2.<?php echo "$strPercentStatLegend";?>
</td>
</tr>
<tr>
<td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$auc_auth_suc_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$auc_auth_fail_point; ?>"></td>
<td valign="bottom" height="200" width="20" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$auc_created_sub_suc_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$auc_created_sub_fail_point; ?>"></td>
<td valign="bottom" height="200" width="20" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$auc_del_sub_suc_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$auc_del_sub_fail_point; ?>"></td>
<td valign="bottom" height="200" width="20" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$hlr_created_sub_suc_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$hlr_created_sub_fail_point; ?>"></td>
<td valign="bottom" height="200" width="20" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$hlr_del_sub_suc_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$hlr_del_sub_fail_point; ?>"></td>
<td valign="bottom" height="200" width="20" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$int_sub_suc_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$int_sub_fail_point; ?>"></td>
</tr>
<tr><td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td></tr>
<tr><td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td></tr>
<tr><td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td></tr>
<tr><td valign="bottom" height="40" width="20"></td></tr>
</table>
<table width=600>
<tr align="center">
<td width=20>&nbsp;</td>
<td width=80><?php echo "$strAUCAuthorization";?></td>
<td width=20>&nbsp;</td>
<td width=80><?php echo "$strAUCCreateCustomer";?></td>
<td width=20>&nbsp;</td>
<td width=80><?php echo "$strAUCDeleteCustomer";?></td>
<td width=20>&nbsp;</td>
<td width=80><?php echo "$strHLRCreateCustomer";?></td>
<td width=20>&nbsp;</td>
<td width=80><?php echo "$strHLRDeleteCustomer";?></td>
<td width=20>&nbsp;</td>
<td width=80><?php echo "$strInterrogateSubscriber";?></td>
</tr>
</table>
<p></p>
<table border="0" width="330" height="18">
<tr>
<td width="60" height="18"><b><?php echo $strLegend; ?>:</b></td>
<td width="18" height="18"><img border="0" src="../../images/legend_dark_blue.GIF" width="18" height="18"></td>
<td width="182" height="18"><?php echo "$strSuccess"; ?></td>
<td width="18" height="18"><img border="0" src="../../images/red.gif" width="18" height="18"></td>
<td width="182" height="18"><?php echo "$strFailure"; ?></td>
</tr>
</table>
<?php
adjust_content_tail("down");
?>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="dataAnalysisUp.php">
<frame name="main" src="dataAnalysisDown.php" scrolling="auto">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,84 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$helpId="6.8.6.2";
?>
<script language="javascript">
function selPage(){
var url,sel_date;
sel_date=document.selectform.sel_date.value;
url="./dataAnalysisDown.php?sel_date="+sel_date;
window.parent.main.location.href=url;
}
</script>
<base target="main">
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<form method="POST" action="./dataAnalysisDown.php" name="selectform">
<?php
adjust_head_frame("up");
adjust_title_head_frame("up");
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Advanced > $strPerformance > AUC > Statistics";
echo "</td>";
echo "<td align=\"right\" title=\"Help\">";
// showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\">";
?>
<select style="font-family: Verdana; font-size: 8pt" name="sel_date" size=1 onChange="javascript:selPage()">
<?php
echo "<OPTION value=\"0\">$day0</OPTION>";
echo "<OPTION value=\"1\">$day1</OPTION>";
echo "<OPTION value=\"2\">$day2</OPTION>";
echo "<OPTION value=\"3\">$day3</OPTION>";
echo "<OPTION value=\"4\">$day4</OPTION>";
echo "<OPTION value=\"5\">$day5</OPTION>";
echo "<OPTION value=\"6\">$day6</OPTION>";
?>
</SELECT>
<?php
echo "</td>";
echo "<td align=\"right\">";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
?>
</form>
</body>
</html>

View File

@@ -0,0 +1,263 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD>ѯ,<2C><>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$db=$csta_db;
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$timeItem = date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$showDate = omc_keep_length($showDate,0,2);
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head_frame("down");
adjust_title_head_frame("down");
adjust_title_tail_frame("down");
adjust_content_head_frame("down");
echo "<br>";
$sort_field = 'csta_datetime'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>
$sort_direction = 'DESC'; //<2F><><EFBFBD><EFBFBD>˳<EFBFBD><CBB3>
$number_records_to_display = 200; //ÿҳ<C3BF><D2B3>¼<EFBFBD><C2BC>
$time_column = "csta_datetime";
$table_name='aucDetail'."_".$showDate;
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list)
{
echo "<br>$strNotFindRecord.";
exit();
}
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
//ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if($delete){
$sql_query="DELETE FROM $table_name ".$where;
$sql_query=urlencode($sql_query); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo " <meta http-equiv=\"refresh\" content=\"0; url=./csta_del.php?del_sql=$sql_query\"> ";
}//end of delete
?>
<script LANGUAGE="JavaScript">
function goto(){
var url_1,url_2,url_3,url_4,url_5,initial_record,gotopage,number_records_to_display,where,number_of_records,sort_field,sel_date;
gotopage=document.selectform.gotopage.value;
number_records_to_display=<?php echo $number_records_to_display; ?>;
where=document.selectform.where.value;
initial_record=number_records_to_display*(gotopage-1);
number_of_records=document.selectform.number_of_records.value;
sort_field=document.selectform.sort_field.value;
sel_date=document.selectform.sel_date.value;
url_1='<?php echo $PHP_SELF;?>?initial_record='+initial_record;
url_2="&where="+where;
url_3="&number_of_records="+number_of_records;
url_4="&sort_field="+sort_field;
url_5="&sel_date="+sel_date;
window.location.href=url_1+url_2+url_3+url_4+url_5;
}
</script>
<?php
// <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if (!$number_of_records){//<2F><>תҳ<D7AA><EFBFBD><E6B2BB><EFBFBD>г<EFBFBD>ʼ<EFBFBD><CABC>
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
if($sel_date<0){
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}elseif($sel_date>0){
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
}
}else{
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
}
/* where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>Ϊ$w1,ϵͳid<69><64><EFBFBD><EFBFBD>Ϊ$w2 */
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
//<2F>ϳ<EFBFBD>where<72><65><EFBFBD><EFBFBD>
$where=" WHERE".$w1;
$initial_record = 0;//<2F><>ʼ<EFBFBD><CABC>¼<EFBFBD><C2BC>
$str_sql_all="SELECT count(*) as number_of_records FROM $table_name ".$where;
$csta_result= mysqli_query($pubConn,$str_sql_all);
$record = mysql_fetch_object($csta_result);
$number_of_records = $record->number_of_records;
if(!$number_of_records)
{
echo "<br>$strNotFindRecord";
exit();
}
}//endif
$page_num= ($initial_record / $number_records_to_display) +1; //<2F><>ҳҳ<D2B3><D2B3>
$all_page_num= ceil($number_of_records / $number_records_to_display); //<2F><>ҳ<EFBFBD><D2B3>
if ($number_of_records >= 1){
$next_index = $initial_record + $number_records_to_display; //<2F><>ҳ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>Ŀ
if ($next_index > $number_of_records)
{
$next_index = $number_of_records;
}
$t1 = $initial_record + 1;
$prev_index = $initial_record - $number_records_to_display;
if ($prev_index < 0){
$prev_index = 0;
}
}
$show_initital_record=$initial_record+1;
?>
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<TR>
<TD width="50%"><?php echo "$strDisplayRecords:<FONT color=#0000ff>&nbsp;$show_initital_record - $next_index</FONT>, ($strTotalRecords:$number_of_records ) &nbsp;&nbsp;"; ?></TD>
<TD width="100" align="center">&nbsp;
<?php
//$number_of_records_on_current_page = mysqli_num_rows($csta_result);
//echo "$number_of_records_on_current_page<br>";
//<2F><><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF>Ʒ<EFBFBD>ҳ<EFBFBD><D2B3>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD>
if ($initial_record != 0)
{
$t1 = "initial_record=$prev_index&number_of_records=$number_of_records&table_name=$table_name&sel_date=$sel_date";
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type\">";
?>
<IMG alt=ǰһҳ src="../../images/pre_page.gif" border="0"></a>&nbsp;
<?php
}
// NEW: Display a link for the next set of records.
if ($next_index != $number_of_records && $number_of_records >0 && $number_of_records > $number_records_to_display )
{
$t1 = "initial_record=$next_index&number_of_records=$number_of_records&table_name=$table_name&sel_date=$sel_date";
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type\">";
?>
<IMG alt=<3D><>һҳ src="../../images/next_page.gif" border="0"></a>
<?php
}
?>
</TD>
<form name="selectform" method="post" action="<?php echo "$PHP_SELF?initial_record=$prev_index&number_of_records=$number_of_records&where=$where&table_name=$table_name&call_type=$call_type";?>"
>
<TD align="center">
<?php echo "$strPage"; ?>
<select size="1" name="gotopage" onChange="javascript:goto()">
<?php
for($i=1;$i<=$all_page_num;$i++){
if($i== $page_num ){
echo "<option selected value=\"$i\" >$i</option>";
}else{
echo "<option value=\"$i\">$i</option>";
}
}
?>
</select></td>
</TR>
</TABLE>
<?php
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
//<2F><>ѯ<EFBFBD><D1AF><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD>myrows<77><73><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>
//<2F>ϳ<EFBFBD>sql<71><6C><EFBFBD><EFBFBD>
$order=" ORDER BY $sort_field $sort_direction";
$limit=" LIMIT $initial_record, $number_records_to_display";
$csta_sql="SELECT * FROM $table_name"."\n".$where.$order.$limit;
//echo "$csta_sql<br>";
$csta_result = mysqli_query($pubConn,$csta_sql);
$csta_rows = mysqli_fetch_array($csta_result);
?>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr bgcolor="#E6E6E6" align="center">
<td rowspan="2"><?php echo $strSystem; ?></td>
<td colspan="2"><?php echo $strAUCAuthorization; ?></td>
<td colspan="2"><?php echo $strAUCCreateCustomer; ?></td>
<td colspan="2"><?php echo $strAUCDeleteCustomer; ?></td>
<td colspan="2"><?php echo $strHLRCreateCustomer; ?></td>
<td colspan="2"><?php echo $strHLRDeleteCustomer; ?></td>
<td colspan="2"><?php echo $strInterrogateSubscriber; ?></td>
<td rowspan="2"><?php echo "$strTime($timeItem)"; ?></td>
</tr>
<tr bgcolor="#E6E6E6" align="center">
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
</tr>
<?php
do
{
?>
<tr>
<td align="center"><?php
echo "AUC"."$csta_rows[0]";?></td>
<td align="center"><?php echo "$csta_rows[auc_auth_suc] ";?></td>
<td align="center"><?php echo "$csta_rows[auc_auth_fail] ";?></td>
<td align="center"><?php echo "$csta_rows[auc_created_sub_suc]";?></td>
<td align="center"><?php echo "$csta_rows[auc_created_sub_fail]";?></td>
<td align="center"><?php echo "$csta_rows[auc_del_sub_suc] ";?></td>
<td align="center"><?php echo "$csta_rows[auc_del_sub_fail] ";?></td>
<td align="center"><?php echo "$csta_rows[hlr_created_sub_suc]";?></td>
<td align="center"><?php echo "$csta_rows[hlr_created_sub_fail]";?></td>
<td align="center"><?php echo "$csta_rows[hlr_del_sub_suc] ";?></td>
<td align="center"><?php echo "$csta_rows[hlr_del_sub_fail] ";?></td>
<td align="center"><?php echo "$csta_rows[int_sub_suc] ";?></td>
<td align="center"><?php echo "$csta_rows[int_sub_fail] ";?></td>
<td align="center">
<?php
$tmpArray = explode(" ",$csta_rows[csta_datetime]);
echo "$tmpArray[1] ";
?>
</td>
</tr>
<?php
}while($csta_rows= mysqli_fetch_array($csta_result));
?>
</table>
<input type="hidden" name="where" value="<?php echo $where; ?>">
<input type="hidden" name="number_of_records" value="<?php echo $number_of_records; ?>">
<input type="hidden" name="sort_field" value="<?php echo $sort_field; ?>">
<input type="hidden" name="sel_date" value="<?php echo $sel_date; ?>">
</form>
<?php
adjust_content_tail("down");
?>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="dataQueryUp.php">
<frame name="main" src="dataQueryDown.php" scrolling="auto" target="_self">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,82 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$helpId="6.8.6.2";
?>
<script language="javascript">
function selPage(){
var url,sel_date;
sel_date=document.selectform.sel_date.value;
url="./dataQueryDown.php?sel_date="+sel_date;
window.parent.main.location.href=url;
}
</script>
<base target="main">
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<form method="POST" action="./dataQueryDown.php" name="selectform">
<?php
adjust_head_frame("up");
adjust_title_head_frame("up");
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "$strAdvanced > $strPerformance > AUC > Data";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
// showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\">";
?>
<select style="font-family: Verdana; font-size: 8pt" name="sel_date" size=1 onChange="javascript:selPage()">
<?php
echo "<OPTION value=\"0\">$day0</OPTION>";
echo "<OPTION value=\"1\">$day1</OPTION>";
echo "<OPTION value=\"2\">$day2</OPTION>";
echo "<OPTION value=\"3\">$day3</OPTION>";
echo "<OPTION value=\"4\">$day4</OPTION>";
echo "<OPTION value=\"5\">$day5</OPTION>";
echo "<OPTION value=\"6\">$day6</OPTION>";
?>
</SELECT>
<?php
echo "</td>";
echo "<td align=\"right\">";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
?>
</form>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,74 @@
<?php
/*********************************************************
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD>ʾ
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc,lib.inc
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$db = $bss_db;
$table = "OMCR_BtsMeasurements";
$DEBUG = 0;
?>
</head>
<body>
<?php
if($DEBUG) echo "<br>$selected_field_list";
$select_sql_bgn = "SELECT ";
$select_sql_end = " FROM $table
WHERE CellIdentity = '$cell_id'
AND startTime >= '$date_bgn'
AND endTime <= '$date_end'
ORDER BY startTime,bssid
";
$fields_arr = explode('>',$selected_field_list);
$field_num = sizeof($fields_arr);
for($i=1; $i<$field_num; $i++){
if($i < $field_num-1){
$select_sql_bgn = $select_sql_bgn ." $fields_arr[$i],";
}else{
$select_sql_bgn = $select_sql_bgn ." $fields_arr[$i] ";
}
}
$select_sql = $select_sql_bgn.$select_sql_end;
if($DEBUG) echo "<br> $select_sql";
?>
<form method="POST" action="./data_list.php" name="selectform">
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<?php
echo "<tr bgcolor=\"E6E6E6\" >";
for($i=1; $i<$field_num; $i++){
echo "<td>{$fields_arr[$i]}</td>";
}
echo "</tr>";
$result = mysqli_query($pubConn,$select_sql);
$rows = mysqli_fetch_array($result);
echo mysqli_error($pubConn);
while($rows){
echo "<tr>";
for($i=1; $i<$field_num; $i++){
echo "<td>{$rows[$i]}</td>";
}
echo "</tr>";
}
?>
</TABLE>
</form>
</body>
</html>

View File

@@ -0,0 +1,86 @@
<?php
/*********************************************************
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD>ʾ
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc,lib.inc
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$db = $bss_db;
$table = "OMCR_BtsMeasurements";
?>
<script language="JavaScript1.2" type="text/javascript">
function select_field(){
var field_name;
field_name=document.selectform.fields_list.options[document.selectform.fields_list.selectedIndex].value;
document.selectform.selected_field_list.value = document.selectform.selected_field_list.value + '>' +field_name +'\n' ;
}
</script>
</head>
<body>
<form method="POST" action="./data_list.php" name="selectform">
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<tr bgcolor="E6E6E6">
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD>ݵķ<DDB5>Χ:</td>
</tr>
<tr>
<td>С<><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<input type="text" name="cell_id" size="5"> </td>
</tr>
<tr>
<td>
<09><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>:<input type="text" name="date_bgn" size="20" maxlength="19">
<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<input type="text" name="date_end" size="20" maxlength="19">
<br><3E><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD>ʽ<EFBFBD><CABD>YYYY-MM-DD hh:mm:ss&nbsp; <20><><EFBFBD><EFBFBD>2002-01-15 14:32:18<31><38>
</td>
</tr>
<tr bgcolor="E6E6E6">
<td><3E><>ѡ<EFBFBD><D1A1>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>:</td>
</tr>
<tr><td>
<table border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td width="118" valign="top">
<select size="15" name="fields_list">
<?php
$fields_result = mysql_list_fields($db,$table,$link[0]);
echo mysqli_error($pubConn);
$i=0;
while($fields_name = @mysql_field_name($fields_result,$i)){
echo "<option value=\"$fields_name\">$fields_name</option>";
$i++;
}
?>
</select>
</td>
<td width="65"> <p align="center">
<input type="button" value="->" name="B1" onClick ="javascript:select_field()"></p>
</td>
<td width="211" valign="top">
<textarea rows="15" name="selected_field_list" cols="40"></textarea>
</td>
</tr>
</table>
</td></tr>
</TABLE>
<input type="submit" value="ȷ<><C8B7>">&nbsp;&nbsp;&nbsp;<input type="reset" value="ȡ<><C8A1>">
</form>
</body>
</html>

View File

@@ -0,0 +1,489 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD><EFBFBD><EFBFBD>BTS<54><53>erlang<6E>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>ʾ
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$DEBUG=0;
$db=$bss_db;
$csta_table = 'OMCR_BtsMeasurements';
$bts_table = 'OMCR_Bts';
//$btsBgnNo=0;
//$btsEndNo=12;
if(!isset($bss_id)){
$bss_id= 0;
}
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
$row = mysqli_fetch_row($result);
$isbsplus = $row[0];
if($isbsplus == 0)
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
else
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($cell_object[]) =$row;
}
$no_of_cell = count($cell_object);
$btsBgnNo=0;
$btsEndNo=$no_of_cell;
//----------------------get BssId <--> CellIdentity----------------------
//---init this bsc's bts array---
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
//array(cellid,0,...,23);
$btsArray[$i]=array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);//25<32><35>Ԫ<EFBFBD><D4AA>
}
/*
$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
$sel_result=mysqli_query($pubConn,$sel_sql);
$result_rows=mysqli_fetch_array($sel_result);
if($DEBUG) echo "<br>db=$db<br>sel_sql=$sel_sql";
do{
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
$temp_bts_id = explode('.',$temp_bts_id);
$temp_bts_id = $temp_bts_id[1];
$temp_cell_id= $result_rows[CellIdentity];
if($temp_cell_id > 0){
$btsArray[$temp_bts_id][0]= $temp_cell_id;
}
}while($result_rows=mysqli_fetch_array($sel_result));
*/
//-----------get where---------------
$where=" bssid='$bss_id' ";
//data
if(isset($sel_date)){
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
}else{
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date =date("Y-m-d H:i:s",mktime());
}
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
?>
<body leftmargin=12 topmargin=0>
<?php
//------------------------------<2D><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><E2A3AC><EFBFBD><EFBFBD>--------------------------------------
?>
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<TR>
<TD>
<?php
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum $strErlang $strStatistics </b></font>";
?>
</TD>
<TD align="right">
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> &nbsp;&nbsp;$strTo&nbsp;&nbsp; <font color=\"#0000ff\">$end_date</font>";?>
</TD>
</TR>
</TABLE>
<?php
//------------------------------<2D><>ʾ<EFBFBD>б<EFBFBD>--------------------------------------
?>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<?php
echo "<TR>";
echo "<TD>BTS ID</TD>";
echo "<TD>$strCellID</TD>";
for($clock=0;$clock<24;$clock++){
echo "<TD>$clock</TD>";
}
echo "</TR>";
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
if($DEBUG) echo "<br>btsBgnNo=$btsBgnNo,btsEndNo=$btsEndNo ";
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
//$bts_num=($i<10)?'0'.$i:$i;
$cellcont = explode(".",$cell_object[$i]);
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
$sel_result=mysqli_query($pubConn,$sel_sql);
//echo "<br>sel_sql=$sel_sql<br>";
echo mysqli_error($pubConn);
$result_row=@mysqli_fetch_row($sel_result);
$temp_cell_id = $result_row[0];
if($temp_cell_id > 0){
$btsArray[$i][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
$sum_sql="SELECT
CellIdentity as CellIdentity,
hour(from_unixtime(StartTime)) as hours,
(meanTCHBusyTime * nbrOfAvailableTCHs)/(100 * (EndTime - StartTime)) as erlang
FROM $csta_table
WHERE $where AND CellIdentity = '$temp_cell_id'
Group By hours,CellIdentity
";
$sel_result=mysqli_query($pubConn,$sum_sql);
if($DEBUG) echo "<br>sel_sql=$sum_sql<br> ";
echo mysqli_error($pubConn);
while($rows=mysqli_fetch_array($sel_result)){
$btsArray[$i][0] == $rows[CellIdentity];
$hourse=$rows[hours]+1;
$btsArray[$i][$hourse] += $rows[erlang];
if($btsArray[$i][$hourse] > $maxNum)
$maxNum = $btsArray[$i][$hourse];
}
if($btsArray[$i][0] > 0){
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>{$btsArray[$i][0]}</TD>";
for($clock=1;$clock<25;$clock++){
echo "<TD>{$btsArray[$i][$clock]}</TD>";
}
echo "</TR>";
}
else
{
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD><nobr>--</nobr></TD>";
for($clock=1;$clock<25;$clock++){
echo "<TD><nobr>--</nobr></TD>";
}
echo "</TR>";
}
}
$y_max = ceil($maxNum);
if($y_max < 1){
$y_max = 1;
}
?>
</table>
<br><br>
<?php
if(1)
{
$colorArr = array("00FFFF","000000","FF00FF","008000","00FF00","800000",
"000080","808000","800080","FF0000","008080","00FF00");
for($i=$btsBgnNo;$i< $btsEndNo;$i++)
{
//$formatNum = $i < 10 ? '0'.$i : $i;
$btsName = $cell_object[$i];//"BTS.".$$cell_object[1].$cell_object[2];
$color = $colorArr[$i];
$legendArr[$i] = array($btsName, $color, 0);
}
$title = ucfirst("Service erlang statistic graphic");
$maxYNum=$y_max;
//-----ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EAA3AC>ʾ<EFBFBD>Ȼ<EFBFBD><C8BB><EFBFBD>Ԫ<EFBFBD>أ<EFBFBD><D8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD><DEB8>ⲿ<EFBFBD><E2B2BF>
$sizex=800;
$sizey=320;
$bgcolor=F8F8F8;
$fgcolor=000000;
$dayStr=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
$im = ImageCreate ($sizex, $sizey);
$background_color = ImageColorAllocate ($im,
hexdec(substr($bgcolor, 0, 2)),
hexdec(substr($bgcolor, 2, 2)),
hexdec(substr($bgcolor, 4, 2)));
$text_color = ImageColorAllocate ($im,
hexdec(substr($fgcolor, 0, 2)),
hexdec(substr($fgcolor, 2, 2)),
hexdec(substr($fgcolor, 4, 2)));
//<2F><><EFBFBD><EFBFBD>
ImageFilledRectangle($im,0,0,$sizex,$sizey,ImageColorAllocate ($im, 198, 198, 198));
ImageFilledRectangle($im,2,2,$sizex,$sizey,ImageColorAllocate ($im, 130, 130, 130));
$tmpPointArr=array(0,$sizey-1,3,$sizey-4,4,$sizey-1);
Imagefilledpolygon($im, $tmpPointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
$tmpPointArr=array($sizex-1,0,$sizex-4,3,$sizex,4);
Imagefilledpolygon($im, $tmpPointArr, 3, ImageColorAllocate ($im, 130, 130, 130));
ImageFilledRectangle($im,2,2,$sizex-3,$sizey-3,$background_color);
//ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Imagestring($im, 2, 300,5, $title, $text_color);
//<2F>߿<EFBFBD>
$xBgn=60;
$yBgn=25;
$xEnd=780;
$yEnd=275;
$unitXPix=30;
ImageLine($im, $xBgn, $yBgn, $xBgn, $yEnd, $text_color);
ImageLine($im, $xBgn, $yBgn, $xEnd, $yBgn, $text_color);
ImageLine($im, $xBgn, $yEnd, $xEnd, $yEnd, $text_color);
ImageLine($im, $xEnd, $yBgn, $xEnd, $yEnd, $text_color);
//<2F><><EFBFBD><EFBFBD><EFBFBD>񼰱<EFBFBD>ע
for($i=0;$i<24;$i++){
ImageDashedLine($im, $xBgn + $i*30, $yBgn, $xBgn + $i*30, $yEnd, $text_color);
Imagestring($im, 2, $xBgn + $i*30 - 4, $yEnd, "$i", $text_color);
}
//<2F><><EFBFBD><EFBFBD><EFBFBD>񼰱<EFBFBD>ע
for($i=0;$i<10;$i++){
ImageDashedLine($im, $xBgn, $yBgn + $i*25, $xEnd, $yBgn + $i*25, $text_color);
$scale=$maxYNum / 10 * (10 - $i);
if($scale>1000*1000){
$displayMaxData = round($scale/100000)/10;
$displayMaxData = $displayMaxData."M";
}elseif($scale>1000){
$displayMaxData = round($scale/100)/10;
$displayMaxData = $displayMaxData."K";
}else
$displayMaxData=$scale;
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$displayMaxData", $text_color);
}
//ɫ<><C9AB>ͼ<EFBFBD>꼰˵<EABCB0><CBB5>
$order = 0;
for($i=$btsBgnNo; $i < $btsEndNo; $i++)
{
if($btsArray[$i][0] > 0)
{
$tmpName=$legendArr[$i][0];
$tmpColor=$legendArr[$i][1];
$color = ImageColorAllocate ($im, hexdec(substr($tmpColor, 0, 2)), hexdec(substr($tmpColor, 2, 2)),hexdec(substr($tmpColor, 4, 2)));
$legendArr[$i][2]=$color;
ImageFilledRectangle($im,60 + $order* 60,$yEnd + 22,58 + $order* 60 + 10,$yEnd + 30,$legendArr[$i][2]);
Imagestring($im, 2, 73 + $order* 60,$yEnd + 20, "$tmpName", $text_color);
$order++;
}
}
function getNewXY(&$pointArr)
{
global $xBgn,$yBgn,$xEnd,$yEnd,$maxYNum,$unitXPix;
$DEBUG=0;
for($i=0;$i<sizeof($pointArr);$i=$i+2){
$pointArr[$i] = $xBgn + $pointArr[$i] * $unitXPix;
if($DEBUG) echo "<br>pointArr[$i]={$pointArr[$i]}";
$pointArr[$i+1] = $yEnd - round(($yEnd - $yBgn) * ($pointArr[$i+1] / $maxYNum));
if($DEBUG) echo "<br>pointArr[$i+1]={$pointArr[$i+1]}";
}
$pointArr[$i] = $pointArr[$i-2];
if($DEBUG) echo "<br>pointArr[$i]={$pointArr[$i]}";
$pointArr[$i+1] = $yEnd-1;
if($DEBUG) echo "<br>pointArr[$i+1]={$pointArr[$i+1]}";
}
//get x,y points.
for($i=$btsBgnNo; $i <= $btsEndNo; $i++)
{
if($btsArray[$i][0] > 0)
{
for($j=1;$j<26;$j++)
{
$pointArr[$i][$j*2] = $j-1;
$pointArr[$i][$j*2+1] = $btsArray[$i][$j];
}
getNewXY($pointArr[$i]);
$pointNum[$i]= sizeof($pointArr[$i]) / 2;
$tmpColor[$i]=$legendArr[$i][2];
}
}
for($i=$btsBgnNo; $i <= $btsEndNo; $i++)
{
if($btsArray[$i][0] > 0)
{
for($j=1;$j<26;$j++)
{
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
imageline($im,$pointArr[$i][$j*2],$pointArr[$i][$j*2+1],$pointArr[$i][$j*2+2],$pointArr[$i][$j*2+3],$tmpColor[$i]);
}
}
}
//-----<2D><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
//delete *.png
$handle=opendir('.');
while($file=readdir($handle)){
$retval="";
$pt=strrpos($file,".");
if($pt) $retval=substr($file,$pt+1,strlen($file)-$pt);
if($retval=='png') unlink($file);
}
$filename=time().".png";
if(!$DEBUG){
ImagePng ($im,"$filename");
ImageDestroy($im);
}
//-----<2D><>ʾͼƬ
echo "<body topmargin=\"0\" leftmargin=\"5\">";
echo "<img src=\"$filename\">";
echo "</body>";
exit;
}//end if.
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
$base_field=10; //$btsArray[bts_num][j]'s j
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
}
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
$base_number=round($top_number/100);
$base_number=($base_number <= 0)?1:$base_number;
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
$show_field=array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24);
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
//$legend_def=array(''); //erlangֻ<67><D6BB>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB>ʾ
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
//$legend_color=array('blue',.....,'blue');//erlangֻ<67><D6BB>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB>ʾ
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
?>
<!--
<table border="0">
<tr>
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
<?php
//for($i=0;$i<sizeof($legend_def);$i++){
// echo "<td width=\"10\">";
// showImg($i,10,10);
// echo "</td>";
// echo "<td width=\"120\">{$legend_def[$i]}</td>";
//}
?>
<td></td>
</tr>
</table>
-->
<br>
<script language="JavaScript1.2" type="text/javascript">
<!--
function chgBaseNum(){
var old_base_number=1.00 * oldBaseNumSet.value;
var max_first_num = 12;
var max_second_num = <?php echo sizeof($show_field);?>;
var new_base_number=1.00 * baseNumSet.value;
var i=0,j=0,maxHeight=200,maxNum=0;
if(new_base_number <=0){
baseNumSet.value=old_base_number;
return(-1);
}
for(i=1;i <= max_first_num;i++){
for(j=0;j < max_second_num;j++){
temp_obj_name='img'+i+'_'+j;
temp_input_name='img'+i+'_'+j+'_org';
temp_obj=eval(temp_obj_name);
temp_height=eval(temp_input_name);
if(temp_obj.height > 0 && new_base_number > 0){
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
//alert(temp_obj.height+'-'+temp_obj.alt);
maxNum = temp_obj.alt;
}
}
}
}
for(i=1;i<=12;i++){
tmpobj=eval('topNumber_'+i);
org_tmpobj=eval('org_topNumber_'+i);
if(maxNum > 0){
tmpobj.value = maxNum;
baseNumSet.value = maxNum;
}else{
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
}
}
}
-->
</script>
<?php
echo "Erlang (hour):<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
echo "<br>";
//-----------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ-------------------------------------
$bts_num=$btsBgnNo;
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
if($DEBUG) echo "<br>btsBgnNo=$btsBgnNo,btsArray[$bts_num][$arrNum] ={$btsArray[$bts_num][$arrNum]}";
?>
<br>
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
<tr>
<td colspan="100" height="20">
<b>
<?php
$num = $i;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_1='BTS'."$bss_id"."_$num";
echo"$dot_img&nbsp;";
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
echo "<b>$strErlang $strStatistics</b>";
?>
</b>
</td>
</tr>
<tr>
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
<?php
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
for($k=0;$k<sizeof($show_field);$k++){
$arrNum = $show_field[$k];
$alt = $k.':00 = '.$btsArray[$bts_num][$arrNum].' Erlang';
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
$width = 19;
$imgName = 'img'.$j.'_'.$k;
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
showImg('blue',$width,$height,$imgName,$alt);
echo "</td>";
}
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
$bts_num++;
?>
<td valign="bottom" height="200" width="100" rowspan="5"></td>
</tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"></td></tr>
</table>
<table border="0">
<tr>
<td valign="bottom" width="20">&nbsp;</td>
<?php
$tdWidth=20*sizeof($show_field)+40;
echo "<td width=\"$tdWidth\">$BTS_ID_1</td>";
?>
</tr>
</table>
<?php
}
?>
</body>
</html>

View File

@@ -0,0 +1,15 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="Erlang_up.php">
<frame name="main" src="Erlang_down.php" scrolling="auto" target="_self">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,117 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE>Ϣ
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.4.3";
$ThisPage = "$strTitlePerformance&nbsp;>&nbsp;BSS&nbsp;>&nbsp;Erlang";
$db=$ts_db;
if(!isset($device_name)){
$device_name = 'LAN';
}
?>
<script language="javascript">
<!--
function display(){
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
document.all["set_time"].style.visibility="visible";
}else{
document.all["set_time"].style.visibility="hidden";
}
}
//-->
</script>
<base target="main">
<body leftmargin=12 topmargin=5>
<?php
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$ThisPage";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
?>
<form method="post" name="selectform" id="selectform" action="Erlang_down.php" >
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr>
<td><nobr>
<?php echo "BSC ID"; ?>:
<SELECT name=bss_id size=1 >
<?php
for($i=0;$i<12;$i++){
$sys_num=($i<10)?'0'.$i:$i;
$sys_id='BSS'.$sys_num;
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
}
?>
</SELECT>
</nobr>
</td>
<td><nobr>
<?php echo "$strDate"; ?>:
<SELECT name=sel_date size=1 class="text">
<?php
for($i=0;$i<7;$i++){
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<OPTION value=\"$date\">$date</OPTION>";
}
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
?>
</SELECT>
<input type="submit" value="<?php echo $strSearch; ?>" class="button" name="search">
&nbsp;&nbsp;
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true">
</nobr>
</td>
<td>
<nobr>
<DIV align=left id=set_time style="VISIBILITY: hidden;">
<nobr>
<?php echo $strFrom; ?>
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
&nbsp;<?php echo $strTo; ?>&nbsp;
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
</nobr>
</DIV>
</nobr>
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,473 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$db=$bss_db;
$csta_table = 'OMCR_BtsMeasurements';
$bts_table = 'OMCR_Bts';
if(!isset($bss_id)){
$bss_id= 0;
}
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
$row = mysqli_fetch_row($result);
$isbsplus = $row[0];
if($isbsplus == 0)
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
else
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($cell_object[]) =$row;
}
$no_of_cell = count($cell_object);
$btsBgnNo=0;
$btsEndNo=$no_of_cell;
//----------------------get BssId <--> CellIdentity----------------------
//---init this bsc's bts array---
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp0;
$btsArray[$i]=array(0,0,0,0,0,0,0,0,0,0,0,0);
}
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
$sel_result=mysqli_query($pubConn,$sel_sql);
$result_rows=mysqli_fetch_array($sel_result);
do{
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
$temp_bts_id = explode('.',$temp_bts_id);
$temp_bts_id = $temp_bts_id[1];
$temp_cell_id= $result_rows[CellIdentity];
if($temp_cell_id > 0){
$btsArray[$temp_bts_id][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
}while($result_rows=mysqli_fetch_array($sel_result));
*/
//-----------get where---------------
$where=" bssid='$bss_id' ";
//data
if(isset($sel_date)){
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
}else{
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date =date("Y-m-d H:i:s",mktime());
}
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
//-----inter BSS Handover-------
$sel_sql="SELECT
CellIdentity as CellIdentity,
SUM(HoInterBSCReqToMSC) AS sum_req,
SUM(HoInterBSCOutAtmpt) AS sum_att,
SUM(HoInterBSCOut) AS sum_outsucc,
SUM(HoInterBSCMSFail) AS sum_msfail,
SUM(HoInterBSCInAtmpt) AS sum_inatt,
SUM(HoInterBSCIn) AS sum_insucc
FROM $csta_table
WHERE $where
GROUP BY CellIdentity
";
$sel_result=mysqli_query($pubConn,$sel_sql);
//echo "<br>$sel_sql<br> ";
echo mysqli_error($pubConn);
while($rows=mysqli_fetch_array($sel_result)){
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
if($btsArray[$i][0] == $rows[CellIdentity]){
$btsArray[$i][1]=$rows[sum_req];
$btsArray[$i][2]=$rows[sum_att];
$btsArray[$i][3]=$rows[sum_outsucc];
$btsArray[$i][4]=$rows[sum_msfail];
$btsArray[$i][5]=$rows[sum_inatt];
$btsArray[$i][6]=$rows[sum_insucc];
break;
}
}
}
//-----intra BSS Handover-------
?>
<script language="javascript">
<!--
function display(ID) {
which=eval(ID);
if(which.style.display == "none") {
which.style.display = "block";
signRemark.style.display = "block";
}else {
which.style.display = "none";
}
window.event.cancelBubble = true ;
}
//-->
</script>
<body leftmargin=12 topmargin=0>
<?php
//------------------------------<2D><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><E2A3AC><EFBFBD><EFBFBD>--------------------------------------
?>
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<TR>
<TD>
<?php
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum Handover $strStatistics </b></font>";
?>
</TD>
<TD align="right">
<?php echo "$strDate:$strFrom<font color=\"#0000ff\"> $bgn_date</font> &nbsp;&nbsp;$strTo &nbsp;&nbsp; <font color=\"#0000ff\">$end_date</font>";?>
</TD>
</TR>
</TABLE>
<?php
//------------------------------<2D><>ʾ<EFBFBD>б<EFBFBD>--------------------------------------
?>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<?php
echo "<TR align=\"center\"><TD colspan=\"2\">&nbsp;</TD><TD colspan=\"8\"> $strInsterBSC </TD><TD colspan=\"7\"> $strInstraBSC </TD></TR>";
echo "<TD>BTS ID</TD>";
echo "<TD>$strCellID</TD>";
//---inter---
echo "<TD>OutAtt</TD>";
echo "<TD>OutReq</TD>";
echo "<TD>OutSucc</TD>";
echo "<TD>OutFail</TD>";
echo "<TD>OutSucc (%)</TD>";
echo "<TD>InAtt</TD>";
echo "<TD>InSucc</TD>";
echo "<TD>InSucc (%)</TD>";
//---intra---
echo "<TD>OutAtt</TD>";
echo "<TD>OutSucc</TD>";
echo "<TD>OutFail</TD>";
echo "<TD>OutSucc (%)</TD>";
echo "<TD>InAtt</TD>";
echo "<TD>InSucc</TD>";
echo "<TD>InSucc (%)</TD>";
echo "</TR>";
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
//$bts_num=($i<10)?'0'.$i:$i;
$cellcont = explode(".",$cell_object[$i]);
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
$sel_result=mysqli_query($pubConn,$sel_sql);
//echo "<br>sel_sql=$sel_sql<br>";
echo mysqli_error($pubConn);
$result_row=@mysqli_fetch_row($sel_result);
$temp_cell_id = $result_row[0];
if($temp_cell_id > 0){
$btsArray[$i][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
$sum_sql="SELECT
CellIdentity as CellIdentity,
SUM(HoIntraBSCAtmpt) AS sum_att,
SUM(succOutgoingInternalInterCellHDOs) AS sum_succ,
SUM(HoIntraBscLostMs) AS sum_drop,
SUM(HoIntraBSCIn) AS sum_insucc,
SUM(FailIncomingHDOs) AS sum_infail
FROM $csta_table
WHERE $where AND CellIdentity = '$temp_cell_id'
GROUP BY CellIdentity
";
$sel_result=mysqli_query($pubConn,$sum_sql);
//echo "<br>$sel_sql<br> ";
echo mysqli_error($pubConn);
while($rows=mysqli_fetch_array($sel_result)){
$btsArray[$i][0]=$rows[CellIdentity];
$btsArray[$i][7]=$rows[sum_att];
$btsArray[$i][8]=$rows[sum_succ];
$btsArray[$i][9]=$rows[sum_drop];
$btsArray[$i][10]=$rows[sum_insucc];
$btsArray[$i][11]=$rows[sum_infail];
}
if($btsArray[$i][0] > 0){
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;{$btsArray[$i][0]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][2]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][1]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][3]}</TD>";
$InterOutDrop=($btsArray[$i][2] - $btsArray[$i][3] - $btsArray[$i][4])*100;
echo "<TD>&nbsp;$InterOutDrop</TD>";
if($btsArray[$i][2] > 0){
$SuccRate = ($btsArray[$i][3] / $btsArray[$i][2])* 100;
$SuccRate = sprintf("%01.2f",$SuccRate);
echo "<TD>&nbsp;$SuccRate"."%</TD>";
}else{
echo "<TD>&nbsp;--</TD>";
}
echo "<TD>&nbsp;{$btsArray[$i][5]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][6]}</TD>";
if($btsArray[$i][5] > 0){
$SuccRate = ($btsArray[$i][6] / $btsArray[$i][5]) * 100;
$SuccRate = sprintf("%01.2f",$SuccRate);
echo "<TD>&nbsp;$SuccRate"."%</TD>";
}else{
echo "<TD>&nbsp;--</TD>";
}
echo "<TD>&nbsp;{$btsArray[$i][7]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][8]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][9]}</TD>";
if($btsArray[$i][7] > 0){
$SuccRate = ($btsArray[$i][8] / $btsArray[$i][7]) * 100;
$SuccRate = sprintf("%01.2f",$SuccRate);
echo "<TD>&nbsp;$SuccRate"."%</TD>";
}else{
echo "<TD>&nbsp;--</TD>";
}
$IntraInAtt=$btsArray[$i][10]+$btsArray[$i][11];
echo "<TD>&nbsp;$IntraInAtt</TD>";
echo "<TD>&nbsp;{$btsArray[$i][10]}</TD>";
if($IntraInAtt > 0){
$SuccRate=($btsArray[$i][10] / ($btsArray[$i][10]+$btsArray[$i][11])) * 100;;
$SuccRate = sprintf("%01.2f",$SuccRate);
echo "<TD>&nbsp;$SuccRate"."%</TD>";
}else{
echo "<TD>&nbsp;--</TD>";
}
echo "</TR>";
}else{
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "</TR>";
}
}
?>
</table>
<br><br>
<?php
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
$base_field=7; //$btsArray[bts_num][j]'s j
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
}
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
$base_number=round($top_number/100);
$base_number=($base_number <= 0)?1:$base_number;
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
$show_field=array(2,3,5,6,7,8,10,11);
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><E5A3AC>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
$legend_def=array('Inter_out Att','Inter_out succ','Inter_in Att','Inter_in succ','Intra_out Att','Intra_out succ','Intra_in Att','Intra_in succ',);
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
$legend_color=array('blue','green','blue','green','blue','green','blue','green');
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
?>
<table border="0">
<tr>
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
<?php
for($i=0;$i<sizeof($legend_def);$i++){
echo "<td width=\"10\">";
showImg($legend_color[$i],10,10);
echo "</td>";
echo "<td width=\"120\">{$legend_def[$i]}</td>";
if($i == 3){
echo "<tr>";
echo "<td width=\"60\">&nbsp;</td>";
}
}
?>
<td></td>
</tr>
</table>
<br>
<script language="JavaScript1.2" type="text/javascript">
<!--
function chgBaseNum(max_first_num){
var old_base_number=1.00 * oldBaseNumSet.value;
var max_second_num = <?php echo sizeof($show_field);?>;
var new_base_number=1.00 * baseNumSet.value;
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
if(new_base_number <=0){
baseNumSet.value=old_base_number;
return(-1);
}
for(i=0;i < max_first_num;i++){
for(k=0;k<3;k++){
for(j=0;j < max_second_num;j++){
temp_obj_name='img'+i+'_'+k+'_'+j;
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
temp_obj=eval(temp_obj_name);
temp_height=eval(temp_input_name);
if(temp_obj.height > 0 && new_base_number > 0){
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
//alert(temp_obj.height+'-'+temp_obj.alt);
maxNum = temp_obj.alt;
}
}
}
}
}
/*
for(i=0;i<4;i++){
tmpobj=eval('topNumber_'+i);
org_tmpobj=eval('org_topNumber_'+i);
if(maxNum > 0){
tmpobj.value = maxNum;
baseNumSet.value = maxNum;
}else{
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
}
}*/
}
-->
</script>
<?php
//echo "$strHandover:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
//echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
//echo "<br>";
//------------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ----------------------------------
$bts_num=$btsBgnNo;
$bts_num=$btsBgnNo;
if($isbsplus == 0){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
}else if($isbsplus == 1){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
}
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($btsmgr_list[]) =$row;
}
$no_of_btsmgr = count($btsmgr_list);
echo "$strHandover:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
echo "<br>";
for($i=0;$i<$no_of_btsmgr;$i++){
?>
<br>
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
<tr>
<td colspan="100" height="20">
<b>
<?php
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
/*$num = $bts_num;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_1='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_2='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_3='BTS'."$bss_id"."_$num";
*/
echo"$dot_img&nbsp;";
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
echo "<b>$btsmgr_list[$i]:TCH($strHOExplain) $strStatistics</b>";
?>
</b>
</td>
</tr>
<tr>
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
<?php
for($j=0;$j<3;$j++){
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
for($k=0;$k<sizeof($show_field);$k++){
$arrNum = $show_field[$k];
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
$width = 19;
$imgName = 'img'.$i.'_'.$j.'_'.$k;
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
showImg($legend_color[$k],$width,$height,$imgName,$alt);
echo "</td>";
}
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
$bts_num++;
}
?>
<td valign="bottom" height="200" width="100" rowspan="5"></td>
</tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"></td></tr>
</table>
<table border="0">
<tr>
<td valign="bottom" width="20">&nbsp;</td>
<?php
$tdWidth=20*sizeof($show_field)+40;
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
?>
</tr>
</table>
<?php
}
?>
</body>
</html>

View File

@@ -0,0 +1,15 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="Handover_up.php">
<frame name="main" src="Handover_down.php" scrolling="auto" target="_self">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,118 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE>Ϣ
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.4.5";
$ThisPage = "$strTitlePerformance&nbsp;>&nbsp;BSS&nbsp;>&nbsp;$strHandover";
$db=$ts_db;
if(!isset($device_name)){
$device_name = 'LAN';
}
?>
<script language="javascript">
<!--
function display(){
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
document.all["set_time"].style.visibility="visible";
}else{
document.all["set_time"].style.visibility="hidden";
}
}
//-->
</script>
<base target="main">
<body leftmargin=12 topmargin=5>
<?php
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$ThisPage";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
?>
<form method="post" name="selectform" id="selectform" action="Handover_down.php" >
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr>
<td><nobr>
<?php echo "BSC ID"; ?>:
<SELECT name=bss_id size=1 >
<?php
for($i=0;$i<12;$i++){
$sys_num=($i<10)?'0'.$i:$i;
$sys_id='BSS'.$sys_num;
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
}
?>
</SELECT>
</nobr>
</td>
<td><nobr>
<?php echo "$strDate"; ?>:
<SELECT name=sel_date size=1 >
<?php
for($i=0;$i<7;$i++){
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<OPTION value=\"$date\">$date</OPTION>";
}
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
?>
</SELECT>
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
&nbsp;&nbsp;
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
</nobr>
</td>
<td>
<nobr>
<DIV align=left id=set_time style="VISIBILITY: hidden;">
<nobr>
<?php echo $strFrom; ?>
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
&nbsp;<?php echo $strTo; ?>&nbsp;
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
</nobr>
</DIV>
</nobr>
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,385 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$db=$bss_db;
$csta_table = 'OMCR_BtsMeasurements';
$bts_table = 'OMCR_Bts';
if(!isset($bss_id)){
$bss_id= 0;
}
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
$row = mysqli_fetch_row($result);
$isbsplus = $row[0];
if($isbsplus == 0)
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
else
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($cell_object[]) =$row;
}
$no_of_cell = count($cell_object);
$btsBgnNo=0;
$btsEndNo=$no_of_cell;
//----------------------get BssId <--> CellIdentity----------------------
//---init this bsc's bts array---
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp0;
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
}
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
$sel_result=mysqli_query($pubConn,$sel_sql);
$result_rows=mysqli_fetch_array($sel_result);
do{
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
$temp_bts_id = explode('.',$temp_bts_id);
$temp_bts_id = $temp_bts_id[1];
$temp_cell_id= $result_rows[CellIdentity];
if($temp_cell_id > 0){
$btsArray[$temp_bts_id][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
}while($result_rows=mysqli_fetch_array($sel_result));
*/
//-----------get where---------------
$where=" bssid='$bss_id' ";
//data
if(isset($sel_date)){
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
}else{
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date =date("Y-m-d H:i:s",mktime());
}
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
?>
<script language="javascript">
<!--
function display(ID) {
which=eval(ID);
if(which.style.display == "none") {
which.style.display = "block";
signRemark.style.display = "block";
}else {
which.style.display = "none";
}
window.event.cancelBubble = true ;
}
//-->
</script>
<body leftmargin=12 topmargin=0>
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<TR>
<TD>
<?php
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum $strReceiveLevelAndQuality $strStatistics </b></font>";
?>
</TD>
<TD align="right">
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> &nbsp;&nbsp;$strTo &nbsp;&nbsp; <font color=\"#0000ff\">$end_date</font>";?>
</TD>
</TR>
</TABLE>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<?php
echo "<TR>";
echo "<TD width=\"12%\">BTS ID</TD>";
echo "<TD width=\"12%\">$strCellID</TD>";
echo "<TD width=\"12%\">UL Rx level</TD>";
echo "<TD width=\"12%\">DL Rx level</TD>";
echo "<TD width=\"12%\">UL Rx quality</TD>";
echo "<TD width=\"12%\">DL Rx quality</TD>";
echo "</TR>";
//echo "ddd = $btsEndNo";
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
//$bts_num=($i<10)?'0'.$i:$i;
$cellcont = explode(".",$cell_object[$i]);
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
$sel_result=mysqli_query($pubConn,$sel_sql);
//echo "<br>sel_sql=$sel_sql<br>";
echo mysqli_error($pubConn);
$result_row=@mysqli_fetch_row($sel_result);
$temp_cell_id = $result_row[0];
if($temp_cell_id > 0){
$btsArray[$i][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
$sum_sql="SELECT CellIdentity as CellIdentity,
8*(
0.5*SUM(UplinkAvgSignal_0)+1.5*SUM(UplinkAvgSignal_1)+2.5*SUM(UplinkAvgSignal_2)+3.5*SUM(UplinkAvgSignal_3)
+4.5*SUM(UplinkAvgSignal_4)+5.5*SUM(UplinkAvgSignal_5)+6.5*SUM(UplinkAvgSignal_6)+7.5*SUM(UplinkAvgSignal_7)
) / (SUM(UplinkAvgSignal_0)+SUM(UplinkAvgSignal_1)+SUM(UplinkAvgSignal_2)+SUM(UplinkAvgSignal_3)
+SUM(UplinkAvgSignal_4)+SUM(UplinkAvgSignal_5)+SUM(UplinkAvgSignal_6)+SUM(UplinkAvgSignal_7)
) as UL_level,
8*(
0.5*SUM(DownlinkAvgSignal_0)+1.5*SUM(DownlinkAvgSignal_1)+2.5*SUM(DownlinkAvgSignal_2)+3.5*SUM(DownlinkAvgSignal_3)
+4.5*SUM(DownlinkAvgSignal_4)+5.5*SUM(DownlinkAvgSignal_5)+6.5*SUM(DownlinkAvgSignal_6)+7.5*SUM(DownlinkAvgSignal_7))
/ (SUM(DownlinkAvgSignal_0)+SUM(DownlinkAvgSignal_1)+SUM(DownlinkAvgSignal_2)+SUM(DownlinkAvgSignal_3)
+SUM(DownlinkAvgSignal_4)+SUM(DownlinkAvgSignal_5)+SUM(DownlinkAvgSignal_6)+SUM(DownlinkAvgSignal_7)
) as DL_level,
(SUM(TotalQualityDurationUL_0)*0+SUM(TotalQualityDurationUL_1)+SUM(TotalQualityDurationUL_2)*2+SUM(TotalQualityDurationUL_3)*3+SUM(TotalQualityDurationUL_4)*4
+SUM(TotalQualityDurationUL_5)*5+SUM(TotalQualityDurationUL_6)*6+SUM(TotalQualityDurationUL_7)*7)
/ SUM(TotalQualityDurationUL_0+TotalQualityDurationUL_1+TotalQualityDurationUL_2+TotalQualityDurationUL_3
+TotalQualityDurationUL_4+TotalQualityDurationUL_5+TotalQualityDurationUL_6+TotalQualityDurationUL_7) as UL_quality,
(SUM(TotalQualityDurationDL_0)*0+SUM(TotalQualityDurationDL_1)+SUM(TotalQualityDurationDL_2)*2+SUM(TotalQualityDurationDL_3)*3+SUM(TotalQualityDurationDL_4)*4
+SUM(TotalQualityDurationDL_5)*5+SUM(TotalQualityDurationDL_6)*6+SUM(TotalQualityDurationDL_7)*7)
/ SUM(TotalQualityDurationDL_0+TotalQualityDurationDL_1+TotalQualityDurationDL_2+TotalQualityDurationDL_3
+TotalQualityDurationDL_4+TotalQualityDurationDL_5+TotalQualityDurationDL_6+TotalQualityDurationDL_7) as DL_quality
FROM $csta_table
WHERE $where AND CellIdentity = '$temp_cell_id' GROUP BY CellIdentity";
$sel_result=mysqli_query($pubConn,$sum_sql);
//echo "<br>$sel_sql<br> ";
echo mysqli_error($pubConn);
while($rows=mysqli_fetch_array($sel_result)){
$btsArray[$i][0]=$rows[CellIdentity];
$btsArray[$i][1]=$rows[UL_level];
$btsArray[$i][2]=$rows[DL_level];
$btsArray[$i][3]=$rows[UL_quality];
$btsArray[$i][4]=$rows[DL_quality];
}
if($btsArray[$i][0] > 0){
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;{$btsArray[$i][0]}</TD>";
echo "<TD>&nbsp;".round($btsArray[$i][1])."</TD>";
echo "<TD>&nbsp;".round($btsArray[$i][2])."</TD>";
echo "<TD>&nbsp;{$btsArray[$i][3]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][4]}</TD>";
echo "</TR>";
}else{
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "</TR>";
}
}
?>
</table>
<br><br>
<?php
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
//$base_field=1; //$btsArray[bts_num][j]'s j
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
}
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
$base_number=round($top_number/100);
$base_number=($base_number <= 0)?1:$base_number;
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
//$show_field=array(1,2,3,4);
$show_field=array(1,2);
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><E5A3AC>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
//$legend_def=array('UL Rx Level','DL Rx Level','UL Rx Quality','DL Rx Quality');
$legend_def=array('UL Rx level','DL Rx level');
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
$legend_color=array('blue','orange');
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
?>
<table border="0">
<tr>
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
<?php
for($i=0;$i<sizeof($legend_def);$i++){
echo "<td width=\"10\">";
showImg($legend_color[$i],10,10);
echo "</td>";
echo "<td width=\"120\">{$legend_def[$i]}</td>";
}
?>
<td></td>
</tr>
</table>
<br>
<script language="JavaScript1.2" type="text/javascript">
<!--
function chgBaseNum(max_first_num){
var old_base_number=1.00 * oldBaseNumSet.value;
var max_second_num = <?php echo sizeof($show_field);?>;
var new_base_number=1.00 * baseNumSet.value;
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
if(new_base_number <=0){
baseNumSet.value=old_base_number;
return(-1);
}
for(i=0;i < max_first_num;i++){
for(k=0;k<3;k++){
for(j=0;j < max_second_num;j++){
temp_obj_name='img'+i+'_'+k+'_'+j;
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
temp_obj=eval(temp_obj_name);
temp_height=eval(temp_input_name);
if(temp_obj.height > 0 && new_base_number > 0){
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
//alert(temp_obj.height+'-'+temp_obj.alt);
maxNum = temp_obj.alt;
}
}
}
}
}
/*
for(i=0;i<4;i++){
tmpobj=eval('topNumber_'+i);
org_tmpobj=eval('org_topNumber_'+i);
if(maxNum > 0){
tmpobj.value = maxNum;
baseNumSet.value = maxNum;
}else{
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
}
}*/
}
-->
</script>
<?php
//echo "Receive quality:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
//echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
//echo "<br>";
//------------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ----------------------------------
$bts_num=$btsBgnNo;
if($isbsplus == 0){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
}else if($isbsplus == 1){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
}
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($btsmgr_list[]) =$row;
}
$no_of_btsmgr = count($btsmgr_list);
echo "Receive quality:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
echo "<br>";
for($i=0;$i<$no_of_btsmgr;$i++){
?>
<br>
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
<tr>
<td colspan="100" height="20">
<b>
<?php
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
/*$num = $bts_num;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_1='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_2='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_3='BTS'."$bss_id"."_$num";
*/
echo"$dot_img&nbsp;";
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
echo "<b>$btsmgr_list[$i]:TCH($strTCHExplain) $strStatistics</b>";
?>
</b>
</td>
</tr>
<tr>
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
<?php
for($j=0;$j<3;$j++){
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
for($k=0;$k<sizeof($show_field);$k++){
$arrNum = $show_field[$k];
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
$width = 19;
//$imgName = 'img'.$j.'_'.$k;
$imgName = 'img'.$i.'_'.$j.'_'.$k;
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
showImg($legend_color[$k],$width,$height,$imgName,$alt);
echo "</td>";
}
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
$bts_num++;
}
?>
<td valign="bottom" height="200" width="100" rowspan="5"></td>
</tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"></td></tr>
</table>
<table border="0">
<tr>
<td valign="bottom" width="20">&nbsp;</td>
<?php
$tdWidth=20*sizeof($show_field)+40;
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
?>
</tr>
</table>
<?php
}
?>
</body>
</html>

View File

@@ -0,0 +1,15 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="ReceLevAndQua_up.php">
<frame name="main" src="ReceLevAndQua_down.php" scrolling="auto" target="_self">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,117 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE>Ϣ
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.4.4";
$ThisPage = "$strTitlePerformance&nbsp;>&nbsp;BSS&nbsp;>&nbsp;$strReceiveLevelAndQuality";
$db=$ts_db;
if(!isset($device_name)){
$device_name = 'LAN';
}
?>
<script language="javascript">
<!--
function display(){
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
document.all["set_time"].style.visibility="visible";
}else{
document.all["set_time"].style.visibility="hidden";
}
}
//-->
</script>
<base target="main">
<body leftmargin=12 topmargin=5>
<?php
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$ThisPage";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
?>
<form method="post" name="selectform" id="selectform" action="ReceLevAndQua_down.php" >
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr>
<td><nobr>
<?php echo "BSC ID"; ?>:
<SELECT name=bss_id size=1 >
<?php
for($i=0;$i<12;$i++){
$sys_num=($i<10)?'0'.$i:$i;
$sys_id='BSS'.$sys_num;
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
}
?>
</SELECT>
</nobr>
</td>
<td><nobr>
<?php echo "$strDate"; ?>:
<SELECT name=sel_date size=1 >
<?php
for($i=0;$i<7;$i++){
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<OPTION value=\"$date\">$date</OPTION>";
}
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
?>
</SELECT>
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
&nbsp;&nbsp;
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
</nobr>
</td>
<td>
<nobr>
<DIV align=left id=set_time style="VISIBILITY: hidden;">
<nobr>
<?php echo $strFrom; ?>
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
&nbsp;<?php echo $strTo; ?>&nbsp;
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
</nobr>
</DIV>
</nobr>
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,394 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$db=$bss_db;
$csta_table = 'OMCR_BtsMeasurements';
$bts_table = 'OMCR_Bts';
if(!isset($bss_id)){
$bss_id= 0;
}
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
$row = mysqli_fetch_row($result);
$isbsplus = $row[0];
//----------------------get BssId <--> CellIdentity----------------------
//---init this bsc's bts array---
if($isbsplus == 0)
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
else
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($cell_object[]) =$row;
}
$no_of_cell = count($cell_object);
$btsBgnNo=0;
$btsEndNo=$no_of_cell;
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp);
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
}
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
$sel_result=mysqli_query($pubConn,$sel_sql);
$result_rows=mysqli_fetch_array($sel_result);
do{
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
$temp_bts_id = explode('.',$temp_bts_id);
$temp_bts_id = $temp_bts_id[1];
$temp_cell_id= $result_rows[CellIdentity];
if($temp_cell_id > 0){
$btsArray[$temp_bts_id][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
}while($result_rows=mysqli_fetch_array($sel_result));
*/
//-----------get where---------------
$where=" bssid='$bss_id' ";
//data
if(isset($sel_date)){
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
}else{
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date =date("Y-m-d H:i:s",mktime());
}
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
?>
<script language="javascript">
<!--
function display(ID) {
which=eval(ID);
if(which.style.display == "none") {
which.style.display = "block";
signRemark.style.display = "block";
}else {
which.style.display = "none";
}
window.event.cancelBubble = true ;
}
//-->
</script>
<body leftmargin=12 topmargin=0>
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<TR>
<TD>
<?php
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
echo "<nobr><font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum SDCCH($strSDCCHExplain) $strStatistics </b></font></nobr>";
?>
</TD>
<TD align="right">
<?php echo ":$strFrom<font color=\"#0000ff\"> $bgn_date</font> &nbsp;&nbsp;$strTo &nbsp;&nbsp; <font color=\"#0000ff\">$end_date</font>";?>
</TD>
</TR>
</TABLE>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<?php
echo "<TR>";
echo "<TD width=\"12%\">BTS ID</TD>";
echo "<TD width=\"12%\">$strCellID </TD>";
echo "<TD width=\"12%\" title=\"$strAttSDCCH\">SDCCH attempt</TD>";
echo "<TD width=\"12%\" title=\"$strFailSDCCH\">SDCCH failure</TD>";
echo "<TD width=\"12%\" title=\"$strDCCHFailRate\">SDCCH Failure (%)</TD>";
echo "<TD width=\"12%\" title=\"$strRFDrop\">RF Failure</TD>";
echo "<TD width=\"12%\" title=\"$strDrop\">Failure</TD>";
echo "<TD width=\"12%\" title=\"$strDropRate\">Failure (%)</TD>";
echo "</TR>";
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
//$bts_num=($i<10)?'0'.$i:$i;
$cellcont = explode(".",$cell_object[$i]);
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND ObjectId like '$cell_object[$i]' AND bssid=$bss_id";
$sel_result=mysqli_query($pubConn,$sel_sql);
//echo "<br>sel_sql=$sel_sql";
echo mysqli_error($pubConn);
$result_row=@mysqli_fetch_row($sel_result);
$temp_cell_id = $result_row[0];
if($temp_cell_id > 0){
$btsArray[$i][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
$sum_sql="SELECT
CellIdentity as CellIdentity,
SUM(attSDCCHSeizures) as sum_attSDCCH,
SUM(attSDCCHSeizuresFailures) as sum_failSDCCH,
SUM(chanReqMSFail) as sum_CRMSfail,
SUM(SDCCHRadioFail) as sum_SDCCHRfail,
SUM(SDCCHBssDrop) as sum_SDCCHdrop
FROM $csta_table
WHERE $where AND CellIdentity = '$temp_cell_id'
GROUP BY CellIdentity
";
$sel_result=mysqli_query($pubConn,$sum_sql);
//echo "<br>$sel_sql<br> ";
echo mysqli_error($pubConn);
while($rows=mysqli_fetch_array($sel_result)){
$btsArray[$i][0]=$rows[CellIdentity];
$btsArray[$i][1]=$rows[sum_attSDCCH];
$btsArray[$i][2]=$rows[sum_failSDCCH];
$btsArray[$i][3]=$rows[sum_CRMSfail];
$btsArray[$i][4]=$rows[sum_SDCCHRfail];
$btsArray[$i][5]=$rows[sum_SDCCHdrop];
}
if($btsArray[$i][0] > 0){
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;{$btsArray[$i][0]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][1]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][2]}</TD>";
if($btsArray[$i][1] <= 0){
$SDCCHFailRate=0;
}else{
$SDCCHFailRate = $btsArray[$i][2]/$btsArray[$i][1]*100;
$SDCCHFailRate = sprintf("%01.2f",$SDCCHFailRate);
}
echo "<TD>&nbsp;$SDCCHFailRate"."%</TD>";
echo "<TD>&nbsp;{$btsArray[$i][3]}</TD>";
$Drop=$btsArray[$i][4]+$btsArray[$i][5];
echo "<TD>&nbsp;$Drop</TD>";
if($btsArray[$i][1] <=0){
$DropRate=0;
}else{
$DropRate = $Drop/$btsArray[$i][1]*100;
$DropRate = sprintf("%01.2f",$DropRate);
}
echo "<TD>&nbsp;$DropRate"."%</TD>";
echo "</TR>";
}else{
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "</TR>";
}
}
?>
</table>
<br><br>
<?php
//<2F>̶<EFBFBD><CCB6><EFBFBD>ͼƬ
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD>߶ȵĻ<C8B5><C4BB><EFBFBD> get the Division by number
//$base_field=1; //$btsArray[bts_num][j]'s j
for($base_field=1;$base_field<8;$base_field++){
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
}
}
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
}
$top_number =(round($max_number/100)+1)*100; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ȣ<CCB6><C8A3><EFBFBD>ֵ<EFBFBD>Ǹ<EFBFBD><C7B8><EFBFBD><EFBFBD><EFBFBD>
$base_number=round($top_number/100);
$base_number=($base_number <= 0)?1:$base_number;
//<2F><>Ҫ<EFBFBD><D2AA>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>״ͼ<D7B4><CDBC>$btsArray[bts_num][j]Ԫ<>ر<EFBFBD><D8B1><EFBFBD>j
$show_field=array(1,2,4,5);
//<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><E5A3AC>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
$legend_def=array('SDCCH attempt','SDCCH failure','RF failure','Failure');
//<2F><>ʾͼ<CABE><CDBC>ɫ<EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD>Ҫ<EFBFBD><D2AA>$show_field<6C><64><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
$legend_color=array('blue','orange','yellow','red');
//------------------------------<2D><>ʾͼ<CABE><CDBC>--------------------------------------
?>
<table border="0">
<tr>
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
<?php
for($i=0;$i<sizeof($legend_def);$i++){
echo "<td width=\"10\">";
showImg($legend_color[$i],10,10);
echo "</td>";
echo "<td width=\"120\">{$legend_def[$i]}</td>";
}
?>
<td></td>
</tr>
</table>
<br>
<script language="JavaScript1.2" type="text/javascript">
<!--
function chgBaseNum(max_first_num){
var old_base_number=1.00 * oldBaseNumSet.value;
var max_second_num = <?php echo sizeof($show_field);?>;
var new_base_number=1.00 * baseNumSet.value;
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
if(new_base_number <=0){
baseNumSet.value=old_base_number;
return(-1);
}
for(i=0;i < max_first_num;i++){
for(k=0;k<3;k++){
for(j=0;j < max_second_num;j++){
temp_obj_name='img'+i+'_'+k+'_'+j;
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
temp_obj=eval(temp_obj_name);
temp_height=eval(temp_input_name);
if(temp_obj.height > 0 && new_base_number > 0){
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
//alert(temp_obj.height+'-'+temp_obj.alt);
maxNum = temp_obj.alt;
}
}
}
}
}
/*
for(i=0;i<4;i++){
tmpobj=eval('topNumber_'+i);
org_tmpobj=eval('org_topNumber_'+i);
if(maxNum > 0){
tmpobj.value = maxNum;
baseNumSet.value = maxNum;
}else{
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
}
}*/
}
-->
</script>
<?php
//echo "SDCCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
//echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
//echo "<br>";
//------------------------------<2D><>ʾ<EFBFBD><CABE>״ͼ----------------------------------
$bts_num=$btsBgnNo;
if($isbsplus == 0){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
}else if($isbsplus == 1){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
}
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($btsmgr_list[]) =$row;
}
$no_of_btsmgr = count($btsmgr_list);
echo "SDCCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
echo "<br>";
for($i=0;$i<$no_of_btsmgr;$i++){
?>
<br>
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
<tr>
<td colspan="100" height="20">
<b>
<?php
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
/*$num = $bts_num;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_1='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_2='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_3='BTS'."$bss_id"."_$num";
*/
echo"$dot_img&nbsp;";
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
echo "<b>BtsMgr.$btsmgrcont[1]:SDCCH($strSDCCHExplain) $strStatistics</b>";
?>
</b>
</td>
</tr>
<tr>
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
<?php
for($j=0;$j<3;$j++){
//<2F><>ʾÿ<CABE><C3BF>bts<74><73><EFBFBD><EFBFBD>״ͼ
for($k=0;$k<sizeof($show_field);$k++){
$arrNum = $show_field[$k];
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
$width = 19;
$imgName = 'img'.$i.'_'.$j.'_'.$k;
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
showImg($legend_color[$k],$width,$height,$imgName,$alt);
echo "</td>";
}
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
$bts_num++;
}
?>
<td valign="bottom" height="200" width="100" rowspan="5"></td>
</tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"></td></tr>
</table>
<table border="0">
<tr>
<td valign="bottom" width="20">&nbsp;</td>
<?php
$tdWidth=20*sizeof($show_field)+40;
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
?>
</tr>
</table>
<?php
}
?>
</body>
</html>

View File

@@ -0,0 +1,15 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="SDCCH_up.php">
<frame name="main" src="SDCCH_down.php" scrolling="auto" target="_self">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,117 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE>Ϣ
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.4.2";
$ThisPage = "$strTitlePerformance&nbsp;>&nbsp;BSS&nbsp;>&nbsp;SDCCH";
$db=$ts_db;
if(!isset($device_name)){
$device_name = 'LAN';
}
?>
<script language="javascript">
<!--
function display(){
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
document.all["set_time"].style.visibility="visible";
}else{
document.all["set_time"].style.visibility="hidden";
}
}
//-->
</script>
<base target="main">
<body leftmargin=12 topmargin=5>
<?php
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$ThisPage";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
?>
<form method="post" name="selectform" id="selectform" action="SDCCH_down.php" >
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr>
<td><nobr>
<?php echo "BSC ID"; ?>:
<SELECT name=bss_id size=1 >
<?php
for($i=0;$i<12;$i++){
$sys_num=($i<10)?'0'.$i:$i;
$sys_id='BSS'.$sys_num;
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
}
?>
</SELECT>
</nobr>
</td>
<td><nobr>
<?php echo "$strDate"; ?>:
<SELECT name=sel_date size=1 >
<?php
for($i=0;$i<7;$i++){
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<OPTION value=\"$date\">$date</OPTION>";
}
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
?>
</SELECT>
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
&nbsp;&nbsp;
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
</nobr>
</td>
<td>
<nobr>
<DIV align=left id=set_time style="VISIBILITY: hidden;">
<nobr>
<?php echo $strFrom; ?>
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
&nbsp;<?php echo $strTo; ?>&nbsp;
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
</nobr>
</DIV>
</nobr>
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,385 @@
<?php
/*********************************************************
.....
...........
.......: header.inc
...:
.....
.....
...
.....
NO.1
...
...
.....
*********************************************************/
require("../../inc/header.inc");
$db=$bss_db;
$node_table = 'OMCR_BSSTREE';
$csta_table = 'OMCR_BtsMeasurements';
$bts_table = 'OMCR_Bts';
if(!isset($bss_id)){
$bss_id= 0;
}
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
$row = mysqli_fetch_row($result);
$isbsplus = $row[0];
if($isbsplus == 0)
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
else
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
//echo $sqlstring . "<BR>";
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($cell_object[]) =$row;
}
$no_of_cell = count($cell_object);
$btsBgnNo=0;
$btsEndNo=$no_of_cell;
//----------------------get BssId <--> CellIdentity----------------------
//---init this bsc's bts array---
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
//$btsArray[$i]=array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp);
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
}
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
$sel_result=mysqli_query($pubConn,$sel_sql);
//echo "<br>sel_sql=$sel_sql";
echo mysqli_error($pubConn);
$result_rows=@mysqli_fetch_array($sel_result);
do{
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
$temp_bts_id = explode('.',$temp_bts_id);
$temp_bts_id = $temp_bts_id[1]; //here Bts's ID =bts change by hewd 2003-02-27
$temp_cell_id= $result_rows[CellIdentity];
if($temp_cell_id > 0){
$btsArray[$temp_bts_id][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
}while($result_rows=@mysqli_fetch_array($sel_result));
*/
//-----------get where---------------
$where=" bssid='$bss_id' ";
//data
if(isset($sel_date)){
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
}else{
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date =date("Y-m-d H:i:s",mktime());
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
}
?>
<script language="javascript">
<!--
function display(ID) {
which=eval(ID);
if(which.style.display == "none") {
which.style.display = "block";
signRemark.style.display = "block";
}else {
which.style.display = "none";
}
window.event.cancelBubble = true ;
}
//-->
</script>
<body leftmargin=12 topmargin=0>
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<TR>
<TD>
<?php
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum TCH($strTCHExplain) $strStatistics </b></font>";
?>
</TD>
<TD align="right">
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> &nbsp;&nbsp;$strTo &nbsp;&nbsp; <font color=\"#0000ff\">$end_date</font>";?>
</TD>
</TR>
</TABLE>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<?php
echo "<TR>";
echo "<TD width=\"10%\">BTS ID</TD>";
echo "<TD width=\"10%\"> $strCellID </TD>";
echo "<TD width=\"10%\" title=\"$strMOExplain\">MO call</TD>";
echo "<TD width=\"10%\" title=\"$strMTExplain\">MT call</TD>";
echo "<TD width=\"10%\" title=\"$strLUExplain_1\">LU</TD>";
echo "<TD width=\"10%\" title=\"$strSSExplain\">SS</TD>";
echo "<TD width=\"10%\" title=\"$strAttempt\">TCH attempt</TD>";
echo "<TD width=\"10%\" title=\"$strSuccess\">TCH success</TD>";
echo "<TD width=\"10%\" title=\"$strRFExplain"."$strDrop\">RF failure</TD>";
echo "</TR>";
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
//$bts_num=($i<10)?'0'.$i:$i;
$cellcont = explode(".",$cell_object[$i]);
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
$sel_result=mysqli_query($pubConn,$sel_sql);
//echo "<br>sel_sql=$sel_sql<br>";
echo mysqli_error($pubConn);
$result_row=@mysqli_fetch_row($sel_result);
$temp_cell_id = $result_row[0];
if($temp_cell_id > 0){
$btsArray[$i][0]= $temp_cell_id;
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
}
$sum_sql="SELECT
bssid,CellIdentity,
SUM(succAccProcCMOrigCall) as sum_MO,
SUM(succAccProcPageRsp) as sum_MT,
SUM(succAccProcLocUpd) as sum_LU,
SUM(succAccProcCMSs) as sum_SS,
SUM(attTCHSeizures) as sum_AttTCH,
SUM(succTCHSeizures) as sum_SuccTCH,
SUM(TCHRadioFail) as sum_RFDorp
FROM $csta_table
WHERE $where AND CellIdentity = '$temp_cell_id' GROUP BY CellIdentity";
//echo "<br>$sum_sql<br> ";
$sel_result=mysqli_query($pubConn,$sum_sql);
echo mysqli_error($pubConn);
while($rows=@mysqli_fetch_array($sel_result)){
$btsArray[$i][0]=$rows[CellIdentity];
$btsArray[$i][1]=$rows[sum_MO];
echo "MO-{$btsArray[$i][1]}<br>";
$btsArray[$i][2]=$rows[sum_MT];
$btsArray[$i][3]=$rows[sum_LU];
$btsArray[$i][4]=$rows[sum_SS];
$btsArray[$i][5]=$rows[sum_AttTCH];
$btsArray[$i][6]=$rows[sum_SuccTCH];
$btsArray[$i][7]=$rows[sum_RFDorp];
}
if($btsArray[$i][0] > 0){
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;{$btsArray[$i][0]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][1]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][2]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][3]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][4]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][5]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][6]}</TD>";
echo "<TD>&nbsp;{$btsArray[$i][7]}</TD>";
echo "</TR>";
}else{
echo "<TR>";
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "<TD>&nbsp;--</TD>";
echo "</TR>";
}
}
?>
</table>
<br><br>
<?php
//.....
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
//........ get the Division by number
//$base_field=5; //$btsArray[bts_num][j]'s j
for($base_field=1;$base_field<8;$base_field++){
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
}
}
//echo "max_number=$max_number";
$top_number =(round($max_number/100)+1)*100; //.............
$base_number=round($top_number/100);
$base_number=($base_number <= 0)?1:$base_number;
//.........$btsArray[bts_num][j]....j
$show_field=array(1,2,3,4,5,6,7);
//............$show_field....
$legend_def=array('MO call','MT call','LU','SS','TCH attempt','TCH success','RF failure');
//..........$show_field....
$legend_color=array('blue','brown','orange','yellow','blue','green','red');
//------------------------------....--------------------------------------
?>
<table border="0">
<tr>
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
<?php
for($i=0;$i<sizeof($legend_def);$i++){
echo "<td width=\"10\">";
showImg($legend_color[$i],10,10);
echo "</td>";
echo "<td width=\"120\">{$legend_def[$i]}</td>";
}
?>
<td></td>
</tr>
</table>
<br>
<script language="JavaScript1.2" type="text/javascript">
<!--
function chgBaseNum(max_first_num){
var old_base_number=1.00 * oldBaseNumSet.value;
var max_second_num = <?php echo sizeof($show_field);?>;
var new_base_number=1.00 * baseNumSet.value;
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
if(new_base_number <=0){
baseNumSet.value=old_base_number;
return(-1);
}
for(i=0;i < max_first_num;i++){
for(k=0;k<3;k++){
for(j=0;j < max_second_num;j++){
temp_obj_name='img'+i+'_'+k+'_'+j;
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
temp_obj=eval(temp_obj_name);
temp_height=eval(temp_input_name);
if(temp_obj.height > 0 && new_base_number > 0){
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
//alert(temp_obj.height+'-'+temp_obj.alt);
maxNum = temp_obj.alt;
}
}
}
}
}
/*
for(i=0;i<4;i++){
tmpobj=eval('topNumber_'+i);
org_tmpobj=eval('org_topNumber_'+i);
if(maxNum > 0){
tmpobj.value = maxNum;
baseNumSet.value = maxNum;
}else{
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
}
}*/
}
-->
</script>
<?php
//------------------------------.....----------------------------------
$bts_num=$btsBgnNo;
if($isbsplus == 0){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
}else if($isbsplus == 1){
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
}
$result = mysqli_query($pubConn,$sqlstring) or
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
while($row = mysqli_fetch_row($result))
{
list($btsmgr_list[]) =$row;
}
$no_of_btsmgr = count($btsmgr_list);
echo "TCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
echo "&nbsp;<input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
echo "<br>";
for($i=0;$i<$no_of_btsmgr;$i++){
?>
<br>
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
<tr>
<td colspan="100" height="20">
<?php
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
/*$num = $bts_num;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_1='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_2='BTS'."$bss_id"."_$num";
$num++;
$num =(strlen($num)<2)?'0'.$num:$num;
$BTS_ID_3='BTS'."$bss_id"."_$num";
*/
echo"$dot_img&nbsp;";
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
echo "<b>$btsmgr_list[$i]:TCH($strTCHExplain) $strStatistics</b>";
?>
</td>
</tr>
<tr>
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
<?php
for($j=0;$j<3;$j++){
//....bts....
for($k=0;$k<sizeof($show_field);$k++){
$arrNum = $show_field[$k];
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
//echo "<br>btsArray[$bts_num][$arrNum]={$btsArray[$bts_num][$arrNum]}";
$width = 19;
$imgName = 'img'.$i.'_'.$j.'_'.$k;
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
showImg($legend_color[$k],$width,$height,$imgName,$alt);
echo "</td>";
}
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
$bts_num++;
}
?>
<td valign="bottom" height="200" width="20" rowspan="5"></td>
</tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
<tr><td valign="bottom" height="40" width="20"></td></tr>
</table>
<table border="0">
<tr>
<td valign="bottom" width="20">&nbsp;</td>
<?php
$tdWidth=20*sizeof($show_field)+40;
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
?>
</tr>
</table>
<?php
}
?>
</body>
</html>

View File

@@ -0,0 +1,15 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="TCH_up.php">
<frame name="main" src="TCH_down.php" scrolling="auto" target="_self">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,117 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>$language_version_TS<54>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>session<6F>е<EFBFBD><D0B5><EFBFBD><EFBFBD>԰汾<D4B0><E6B1BE>Ϣ
$len_of_subsys_num<75><6D><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>config.inc<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳID<49><44><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.4.1";
$ThisPage = $strTitlePerformance."&nbsp;>&nbsp;BSS&nbsp;>&nbsp;TCH";
$db=$ts_db;
if(!isset($device_name)){
$device_name = 'LAN';
}
?>
<script language="javascript">
<!--
function display(){
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
document.all["set_time"].style.visibility="visible";
}else{
document.all["set_time"].style.visibility="hidden";
}
}
//-->
</script>
<base target="main">
<body leftmargin=12 topmargin=5>
<?php
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$ThisPage";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
?>
<form method="post" name="selectform" id="selectform" action="TCH_down.php" >
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr>
<td><nobr>
<?php echo "BSC ID"; ?>:
<SELECT name=bss_id size=1 >
<?php
for($i=0;$i<12;$i++){
$sys_num=($i<10)?'0'.$i:$i;
$sys_id='BSS'.$sys_num;
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
}
?>
</SELECT>
</nobr>
</td>
<td><nobr>
<?php echo "$strDate"; ?>:
<SELECT name=sel_date size=1 >
<?php
for($i=0;$i<7;$i++){
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
echo "<OPTION value=\"$date\">$date</OPTION>";
}
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
?>
</SELECT>
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
&nbsp;&nbsp;
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
</nobr>
</td>
<td>
<nobr>
<DIV align=left id=set_time style="VISIBILITY: hidden;">
<nobr>
<?php echo $strFrom; ?>
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
&nbsp;<?php echo $strTo; ?>&nbsp;
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
</nobr>
</DIV>
</nobr>
</td>
</tr>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,339 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD>񣬲<EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$timeItem = date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$showDate = omc_keep_length($showDate,0,2);
$db = $csta_db;
$sort_field = 'csta_datetime'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>
$sort_direction = 'DESC'; //<2F><><EFBFBD><EFBFBD>˳<EFBFBD><CBB3>
$number_records_to_display = 200; //ÿҳ<C3BF><D2B3>¼<EFBFBD><C2BC>
$time_column = "csta_datetime"; //ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$sysType = isset($sysType)?$sysType:$DEFAULT_SYS; //<2F><EFBFBD><E8B1B8>
$csta_type = isset($csta_type)?$csta_type:'csta-q';
$table_name = omc_table_name($sysType,$csta_type); //ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD>
if($sysType == 'CNF' || $sysType == 'VPS'){
$table_name="vpsDetail";
}
$table_name = $table_name."_".$showDate;
$query_type = isset($query_type)?$query_type:'0'; //ȡ<>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
$sysIdFiled="key_sys_id";
$subsysIdFiled="key_subsys_id";
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list)
{
echo "<br>$strNotFindRecord.";
exit();
}
//ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if($delete)
{
$sql_query="DELETE FROM $table_name ".$where;
$sql_query=urlencode($sql_query); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo " <meta http-equiv=\"refresh\" content=\"0; url=./csta_del.php?del_sql=$sql_query\"> ";
}//endif($delete)
//<2F><>ת<EFBFBD><D7AA>ָ<EFBFBD><D6B8>ҳ<EFBFBD><D2B3>
if($go)
{
$initial_record = $number_records_to_display * ( $gotopage - 1 );
if($initial_record >= $number_of_records || $initial_record < 0)
{
echo "<script language=\"javascript\"> ";
echo "alert('";
echo $strInputPageNumberHasAMistake;
echo "'); ";
echo "</script>";
$initial_record = 0;
}
}//endif($go)
// <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if (!$number_of_records)
{
//<2F><>תҳ<D7AA><EFBFBD><E6B2BB><EFBFBD>г<EFBFBD>ʼ<EFBFBD><CABC>
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
if($sel_date<0){
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}elseif($sel_date>0){
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
}
}else{
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w0
$w0=" key_type<10 ";
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w1
$w1=" AND $time_column >= '$bgn_date' AND $time_column <= '$end_date'";
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳid<69><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w2
if($sys_num!='-1' && $sys_num!=''){
$w2=" AND $sysIdFiled=$sys_num";
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳid<69><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w3
if($subsys_num!='-1' && $subsys_num!=''){
$w3=" AND $subsysIdFiled=$subsys_num";
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>E1id<69><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w4
if($e1_num!='-1' && $e1_num!='' && $query_type<5 && $query_type>0){
$w4=" AND key_e1_tg=$e1_num";
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w5
if($query_type>0)
{
$w5=" AND key_type=$query_type ";
}
if($sysType == 'VPS'){
$w6=" AND key_type=1 ";
}elseif($sysType == 'CNF'){
$w6=" AND key_type=2 ";
}
//<2F>ϳɲ<CFB3>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>$where
$where=" WHERE ".$w0.$w1.$w2.$w3.$w4.$w5.$w6;
//echo "$where<br>";
$initial_record = 0;//<2F><>ʼ<EFBFBD><CABC>¼<EFBFBD><C2BC>
$str_sql_all="SELECT count(*) as number_of_records FROM $table_name ".$where;
//echo "<br>str_sql_all=$str_sql_all";
$csta_result= mysqli_query($pubConn,$str_sql_all);
$record = mysql_fetch_object($csta_result);
$number_of_records = $record->number_of_records;
if(!$number_of_records)
{
echo $strNotFindRecord;
exit();
} //endif(!$number_of_records)
}//endif(!$number_of_records)
$page_num= ($initial_record / $number_records_to_display) +1; //<2F><>ҳҳ<D2B3><D2B3>
$all_page_num= ceil($number_of_records / $number_records_to_display); //<2F><>ҳ<EFBFBD><D2B3>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
if($page_num <=1)
{
insertLog("CSTA data query",2,1);
}
//<2F><><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF>Ʒ<EFBFBD>ҳ<EFBFBD><D2B3>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD>
if ($number_of_records >= 1)
{
$next_index = $initial_record + $number_records_to_display; //<2F><>ҳ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>Ŀ
if ($next_index > $number_of_records)
{
$next_index = $number_of_records;
}
$t1 = $initial_record + 1;
$prev_index = $initial_record - $number_records_to_display;
if($prev_index < 0)
{
$prev_index = 0;
}
}
$show_initial_record=$initial_record+1;
?>
<base target="_self">
<body leftmargin=12 topmargin=0>
<script LANGUAGE="JavaScript">
function goto(){
var url_1,url_2,url_3,url_4,url_5,initial_record,gotopage,number_records_to_display,where,number_of_records,sort_field,sel_date;
gotopage=document.selectform.gotopage.value;
number_records_to_display=<?php echo $number_records_to_display; ?>;
where=document.selectform.where.value;
initial_record=number_records_to_display*(gotopage-1);
number_of_records=document.selectform.number_of_records.value;
sort_field=document.selectform.sort_field.value;
sel_date=document.selectform.sel_date.value;
url_1='<?php echo $PHP_SELF;?>?initial_record='+initial_record;
url_2="&where="+where;
url_3="&number_of_records="+number_of_records;
url_4="&sort_field="+sort_field;
url_5="&sel_date="+sel_date;
window.location.href=url_1+url_2+url_3+url_4+url_5;
}
</script>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td width="50%">
<?php
echo "$strDisplayRecords:<FONT color=#0000ff>&nbsp;$show_initial_record - $next_index</FONT>, ($strTotalRecords:$number_of_records )&nbsp;&nbsp;";
?>
</td>
<td width="10%" align="center">&nbsp;
<?php
// NEW: Display a link for the previous set of records.
if ($initial_record != 0)
{
$t1 = "initial_record=$prev_index&number_of_records=$number_of_records&sys_id=$sys_id&sysType=$sysType&csta_type=$csta_type&query_type=$query_type";
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo "<a href=\"$PHP_SELF?$t1&where=$where&end_date=$end_date&bgn_date=$bgn_date&sel_date=$sel_date\">";
echo "<IMG alt=\"$strPreviousPage\" src=\"../../images/pre_page.gif\" border=\"0\"></a>&nbsp;";
}
// NEW: Display a link for the next set of records.
if ($next_index != $number_of_records && $number_of_records >0 && $number_of_records > $number_records_to_display )
{
$t1 = "initial_record=$next_index&number_of_records=$number_of_records&sys_id=$sys_id&sysType=$sysType&csta_type=$csta_type&query_type=$query_type";
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo "<a href=\"$PHP_SELF?$t1&where=$where&end_date=$end_date&bgn_date=$bgn_date&sel_date=$sel_date\">";
echo "<IMG alt=\"$strNextPage\" src=\"../../images/next_page.gif\" border=\"0\"></a>";
}
?>
</td>
<form name="selectform" method="post" action="<?php echo "$PHP_SELF?initial_record=$prev_index&number_of_records=$number_of_records&where=$where&sys_id=$sys_id&sysType=$sysType&csta_type=$csta_type&query_type=$query_type";?>" >
<td width="20%" align="center"><?php echo $strTopage;?>
<select size="1" name="gotopage" onChange="javascript:goto()">
<?php
for($i=1;$i<=$all_page_num;$i++)
{
if($i== $page_num ){
echo "<option selected value=\"$i\" >$i</option>";
}else{
echo "<option value=\"$i\">$i</option>";
}
}
?>
</select>
</td>
<!--
<td width="10%" align="center"><input type="submit" value="<?php echo $strDeleteQueryResult;?>" name="delete" ></td>
-->
</tr>
</table>
<?php
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
//<2F><>ѯ<EFBFBD><D1AF><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD>myrows<77><73><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>
//<2F>ϳ<EFBFBD>sql<71><6C><EFBFBD><EFBFBD>
$order=" ORDER BY $sort_field $sort_direction";
$limit=" LIMIT $initial_record, $number_records_to_display";
$csta_sql="SELECT * FROM $table_name"."\n".$where.$order.$limit;
//echo "$csta_sql<br>";
$csta_result = mysqli_query($pubConn,$csta_sql);
$csta_rows = mysqli_fetch_array($csta_result);
?>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr bgcolor="#E6E6E6">
<td colspan="3" align="center" ><?php echo $strEquipment; ?>
</td>
<td colspan="9" align="center" >
<?php
echo "{$defineQueryType[$query_type][name]}";
?>
</td>
<td align="center" >&nbsp; </td>
</tr>
<tr bgcolor="#E6E6E6">
<td align="center"><?php echo $strSystem; ?></td>
<td align="center"><?php echo $strType; ?></td>
<td align="center">E1</td>
<td align="center"><?php echo $strAttemptedCall; ?></td>
<td align="center"><?php echo "$strAnswer"; ?></td>
<td align="center"><?php echo "$strCallerClear"; ?></td>
<td align="center"><?php echo "$strNoAnswer"; ?></td>
<td align="center"><?php echo "Conference full"; ?></td>
<td align="center"><?php echo "Password error"; ?></td>
<td align="center"><?php echo "Call rejected"; ?></td>
<td align="center"><?php echo "Signal timeout"; ?></td>
<td align="center"><?php echo "$strTotalHoldingTime(s)"; ?></td>
<td align="center"><?php echo "$strTime($timeItem)"; ?></td>
</tr>
<?php
do{
?>
<tr>
<td align="center"><?php
$csta_rows[0]=$csta_rows[$sysIdFiled];
$csta_rows[1]=$csta_rows[$subsysIdFiled];
echo "$sysType"."_"."$csta_rows[0]_$csta_rows[1]";?></td>
<td align="center">
<?php
echo $csta_rows[2];
?>
</td>
<td align="center">
<?php
if($sysType==$DEFAULT_SYS){
echo $csta_rows[3];
}else{
echo "--";
}
?>
</td>
<td align="center"><?php echo $csta_rows[4];?></td>
<td align="center"><?php echo $csta_rows[5];?></td>
<td align="center"><?php echo $csta_rows[6];?></td>
<td align="center"><?php echo $csta_rows[7];?></td>
<td align="center"><?php echo $csta_rows[8];?></td>
<td align="center"><?php echo $csta_rows[9];?></td>
<td align="center"><?php echo $csta_rows[10];?></td>
<td align="center"><?php echo $csta_rows[11];?></td>
<?php $tmpDisp = $csta_rows[12]*6; ?>
<td align="center"><?php echo $tmpDisp;?></td>
<td align="center">
<?php
$tmpArray = explode(" ",$csta_rows[csta_datetime]);
echo "$tmpArray[1] ";
?>
</td>
</tr>
<?php
}while($csta_rows= mysqli_fetch_array($csta_result));
?>
<input type="hidden" name="where" value="<?php echo $where; ?>">
<input type="hidden" name="number_of_records" value="<?php echo $number_of_records; ?>">
<input type="hidden" name="sort_field" value="<?php echo $sort_field; ?>">
<input type="hidden" name="sel_date" value="<?php echo $sel_date; ?>">
</form>
</table>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="70,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="dataUp.php?sysType=<?php echo $sysType; ?>">
<frame name="main" src="dataDown.php?sysType=<?php echo $sysType; ?>" scrolling="auto" target="_self">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,146 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
NO.2
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.6";
$device_name=isset($device_name)?$device_name:$DEFAULT_SYS;
$db=$omc_db;
?>
<base target="main">
<script language="javascript">
<!--
function display(){
if(document.selectform.sel_time.checked){
document.all["set_time"].style.visibility="visible";
}else{
document.all["set_time"].style.visibility="hidden";
}
}
function select_device(){
var base_url,url_add,url;
base_url='<?php echo"$PHP_SELF";?>?device_name=';
url_add=document.selectform.device_list.value;
url=base_url+url_add;
window.location=url;
}
//-->
</script>
<body leftmargin=12 topmargin=0>
<?php
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$strTitlePerformance > $sysType > $strData";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
?>
<form method="post" name="selectform" id="selectform" action="dataDown.php" >
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr bgcolor="#FFFFFF">
<?php
$sys_num= get_sys_total($device_name);
$subsys_num= get_subsys_total($device_name);
$e1_num= get_e1_total($device_name);
echo "<td width=\"100\">";
echo "<nobr>";
if($sysType == 'MSC'){
echo "<select style=\"font-family: Verdana; font-size: 8pt\" name=\"query_type\" size=\"1\">";
echo "<option value=\"0\">All</option>";
echo "<option value=\"1\">$strIncomingCallPerE1</option>";
echo "<option value=\"2\">$strOutgoingCallPerE1</option>";
echo "<option value=\"3\">$strIncomingCallPerTrunkGroup</option>";
echo "<option value=\"4\">$strOutgoingCallPerTrunkGroup</option>";
echo "<option value=\"5\">$strTrunkToSubscriberCall</option>";
echo "<option value=\"6\">$strTrunkToTrunkCall</option>";
echo "<option value=\"7\">$strTotalSubscriberToSubscriberCall</option>";
echo "<option value=\"8\">$strTotalSubscriberToTrunkLocalCall</option>";
//echo "<option value=\"9\">$strTotalSubscriberToTrunkTollCall</option>";
echo "</select>";
echo "&nbsp;";
}
echo "$strDate:";
echo "<select style=\"font-family: Verdana; font-size: 8pt\" name=\"sel_date\" size=\"1\">";
echo "<OPTION selected value=\"0\">$day0</OPTION>";
echo "<OPTION value=\"1\">$day1</OPTION>";
echo "<OPTION value=\"2\">$day2</OPTION>";
echo "<OPTION value=\"3\">$day3</OPTION>";
echo "<OPTION value=\"4\">$day4</OPTION>";
echo "<OPTION value=\"5\">$day5</OPTION>";
echo "<OPTION value=\"6\">$day6</OPTION>";
echo "</SELECT></nobr></td>";
?>
<td bgcolor="#FFFFFF">
<div onClick="javascript:document.selectform.submit();" style="cursor:hand">
<IMG align=absBottom border=0 src="../../images/search.gif" ><?php echo "$strSearch"; ?>
<div>
</td>
<td bgcolor="#FFFFFF" width="30">
</td>
<td width="100" bgcolor="#FFFFFF">
<?php echo "$strSpecifyTime" ?><input style="font-family: Verdana; font-size: 8pt" name=sel_time onClick=display() value="true" type="checkbox" >
</td>
<td bgcolor="#FFFFFF">
<DIV align=left id=set_time style="VISIBILITY: hidden;">
<table width="100%">
<tr>
<td align="center">
<?php echo "$strFrom"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="hou_1" size="2" value="00" maxLength="2">&nbsp;<?php echo "$strHour"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="mid_1" size="2" value="00" maxLength="2">&nbsp;<?php echo "$strMinute"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="sec_1" size="2" value="00" maxLength="2">&nbsp;<?php echo "$strSencond"; ?>&nbsp;
<?php echo "$strTo"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" maxLength="2" name="hou_2" size="2" value="23">&nbsp;<?php echo "$strHour"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="mid_2" size="2" value="59" maxLength="2">&nbsp;<?php echo "$strMinute"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="sec_2" size="2" value="59" maxLength="2">&nbsp;<?php echo "$strSencond"; ?>&nbsp;
</td>
</tr>
</table>
</DIV>
</td>
</tr>
</table>
<input type="hidden" name="sysType" value="<?php echo $sysType;?>">
</form>
</body>
</html>

View File

@@ -0,0 +1,231 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: connectdb.inc,header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
?>
<base target="_self">
<body leftmargin=12 topmargin=0>
<?php
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$showDate = omc_keep_length($showDate,0,2);
$db = $csta_db;
$sort_field = 'csta_datetime'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>
$sort_direction = 'DESC'; //<2F><><EFBFBD><EFBFBD>˳<EFBFBD><CBB3>
$number_records_to_display = 200; //ÿҳ<C3BF><D2B3>¼<EFBFBD><C2BC>
$time_column = "csta_datetime"; //ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
$sysType = isset($sysType)?$sysType:$DEFAULT_SYS; //<2F><EFBFBD><E8B1B8>
$table_name = omc_table_name($sysType,'csta-q'); //ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD>
if($sysType == 'CNF' || $sysType == 'VPS'){
$table_name="vpsDetail";
}
$table_name = $table_name."_".$showDate;
$query_type = isset($query_type)?$query_type:'0'; //ȡ<>ò<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
$head_name = "&nbsp";
$title_time=date("Y-m-d", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));//<2F><>ͷ<EFBFBD><CDB7>ʾʱ<CABE><CAB1>
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list){
echo "<br>$strNotFindRecord.";
exit();
}
$sysIdFiled="key_sys_id";
$subsysIdFiled="key_subsys_id";
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
if($sel_date<0){
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}elseif($sel_date>0){
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
}
}else{
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
}
//ͳ<><CDB3>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if($sel_time){
$sum_time = ($hou_2*3600+$mid_2*60+$sec_2)-($hou_1*3600+$mid_1*60+$sec_1);//ָ<><D6B8>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}else{
if($sel_date<0){
$sum_time = 24*7*3600;//һ<><D2BB><EFBFBD><EFBFBD>ӵ<EFBFBD>е<EFBFBD><D0B5><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
}elseif($sel_date>0){
$sum_time=24*3600;//һ<><D2BB>ӵ<EFBFBD>е<EFBFBD><D0B5><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
}else{
$hou=date("H");
$mid=date("i");
$sec=date("s");
$sum_time=$hou*3600+$mid*60+$sec;
}
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w1
$w1=" $time_column >= '$bgn_date' AND $time_column <= '$end_date'";
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳid<69><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w2
if($sys_num!='-1' && $sys_num!='')
{
$w2=" AND $sysIdFiled=$sys_num";
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳid<69><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w3
if($subsys_num!='-1' && $subsys_num!='')
{
$w3=" AND $subsysIdFiled=$subsys_num";
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>E1id<69><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w4
if($e1_num!='-1' && $e1_num!='')
{
$w4=" AND key_e1_tg=$e1_num";
}
//where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>$w5
$w5=" AND key_type=2 ";
$sys_id=$sysType.$sys.$subsys.$e1;
//<2F>ϳɲ<CFB3>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>$where
$where=" WHERE ".$w0.$w1.$w2.$w3.$w4.$w5;
//echo "$where<br>";
$str_sql_all=" SELECT count(*) as number_of_records FROM $table_name ".$where;
//echo "$str_sql_all<br>";
$csta_result= mysqli_query($pubConn,$str_sql_all);
$record = mysql_fetch_object($csta_result);
$number_of_records = $record->number_of_records;
if(!$number_of_records)
{
echo $strNotFindRecord;
exit();
}
//insert log
insertLog('table',2,4);
//<2F>ϳ<EFBFBD><CFB3><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>ͳ<EFBFBD>Ƶ<EFBFBD>sql<71><6C><EFBFBD><EFBFBD>
$order_1=" ORDER BY $sysIdFiled,$subsysIdFiled";
$group_1=" GROUP BY $sysIdFiled,$subsysIdFiled";
//<2F>ϳ<EFBFBD>sql<71><6C><EFBFBD><EFBFBD>
$csta_sql_1="SELECT $sysIdFiled,$subsysIdFiled, SUM(att),SUM(ans),SUM(caller_clear),SUM(no_ans),SUM(subscriber_busy),SUM(network_busy),
SUM(call_barred),SUM(signaling_timer_expired),SUM(total_holding_time) FROM $table_name".$where.$group_1.$order_1;
//echo "$csta_sql_1<br>";
$result_1=mysqli_query($pubConn,$csta_sql_1);
$rows_1 = mysqli_fetch_array($result_1);
?>
<form method="POST" action="./saveCsv.php" name="selectform">
<table border="0" width="100%">
<tr>
<td width="25%">
</td>
<td width="50%">
<p align="center"><font size="2"><b><?php echo "CNF Statistic"; ?></b></font><font size="2"><b>&nbsp;
Date:<?php echo $title_time; ?></b></font>
</td>
<td width="20%" align="right">
<div onClick="window.print();" style="cursor:hand">
<img align=absBottom border=0 src="../../images/printer.gif" width="16" height="16">
</div>
</td>
</tr>
</table>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<tr bgcolor="#E6E6E6">
<td colspan="1" align="center" height="15">&nbsp;
</td>
<td colspan="10" align="center" height="15"><b>&nbsp;
<?php
if($sysType == $DEFAULT_SYS)
echo "1.$head_name";
?>
</b></td>
</td>
</tr>
<tr bgcolor="#EFEFEF">
<td align="center"><?php echo $strSystem; ?></td>
<td align="center"><?php echo $strAttemptedCall; ?></td>
<td align="center"><?php echo "$strAnswer"; ?></td>
<td align="center"><?php echo "$strCallerClear"; ?></td>
<td align="center"><?php echo "$strNoAnswer"; ?></td>
<td align="center"><?php echo "Conference full"; ?></td>
<td align="center"><?php echo "Password error"; ?></td>
<td align="center"><?php echo "Call rejected"; ?></td>
<td align="center"><?php echo "Signal timeout"; ?></td>
<td align="center"><?php echo "$strTotalHoldingTime"; ?></td>
<td align="center"><?php echo "$strAverageCallDuration"; ?></td>
</tr>
<?php
do{
?>
<tr>
<td align="center">
<?php
$row[0]=$rows_1[0];
$row[1]=$rows_1[1];
echo $sysType."_"."$row[0]_$row[1]";
?>
</td>
<td align="center"><?php echo $rows_1[2];?></td>
<td align="center"><?php echo $rows_1[3];?></td>
<td align="center"><?php echo $rows_1[4];?></td>
<td align="center"><?php echo $rows_1[5];?></td>
<td align="center"><?php echo $rows_1[6];?></td>
<td align="center"><?php echo $rows_1[7];?></td>
<td align="center"><?php echo $rows_1[8];?></td>
<td align="center"><?php echo $rows_1[9];?></td>
<?php
$format_1=Second2format($rows_1[10]*6);
?>
<td align="center"><?php echo $format_1;?></td>
<?php
if(($rows_1[3]+$rows_1[12])>0)
{
$aht_1=round($rows_1[10]*6/$rows_1[3]);
}
else
{
$aht_1=0;
}
?>
<td align="center"><?php echo $aht_1;?></td>
</tr>
<?php
}while($rows_1 = @mysqli_fetch_array($result_1));
?>
</table>
</form>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="85,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="e1Up.php?sysType=<?php echo $sysType; ?>">
<frame name="main" src="e1Down.php?sysType=<?php echo $sysType; ?>" scrolling="auto">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,148 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId = "3.6";
$db=$csta_db;
$device_name=isset($device_name)?$device_name:$DEFAULT_SYS;
if($sysType == 'MSC'){
$headName = "MSC > E1";
}else{
$headName = $sysType;
}
?>
<base target="main">
<script language="javascript">
<!--
function display(){
if (document.selectform.sel_time.checked){
document.all["set_time"].style.visibility="visible";
}else{
document.all["set_time"].style.visibility="hidden";
}
}
function preview_E1(){
var URL;
URL="./set_trunk_graphing.php?"+"device_name="+"<?php echo $device_name; ?>";
var msgWindow = open(URL, 'newWin', 'toolbar=yes,directories=yes,menubar=yes,status=yes,resizable=yes,scrollbars=yes,left=0,top=0,width=800,height=600');
msgWindow.focus();
}
function select_device(){
var base_url,url_add,url;
base_url='<?php echo"$PHP_SELF";?>?device_name=';
url_add=document.selectform.device_list.options[document.selectform.device_list.selectedIndex].value;
url=base_url+url_add;
window.location=url;
}
//-->
</script>
<body leftmargin=12 topmargin=0>
<?php
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
?>
<?php
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$strTitlePerformance > $headName";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "</table>";
?>
<form method="post" name="selectform" id="selectform" action="e1Down.php" >
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" > <tr bgcolor="#E6E6E6">
<td bgcolor="#FFFFFF">
<?php
if($sysType=='MSC'){
?>
<select style="font-family: Verdana; font-size: 8pt" name="query_type" size="1">
<option value="0">In & out</option>
<option value="1">Incoming</option>
<option value="2">Outgoing</option>
</select>&nbsp;
<?php
}
?>
<?php
echo "$strDate:";
?>
<select style="font-family: Verdana; font-size: 8pt" name="sel_date" size="1">
<?php
echo "<OPTION selected value=\"0\">$day0</OPTION>";
echo "<OPTION value=\"1\">$day1</OPTION>";
echo "<OPTION value=\"2\">$day2</OPTION>";
echo "<OPTION value=\"3\">$day3</OPTION>";
echo "<OPTION value=\"4\">$day4</OPTION>";
echo "<OPTION value=\"5\">$day5</OPTION>";
echo "<OPTION value=\"6\">$day6</OPTION>";
?>
</SELECT>
</td>
<td bgcolor="#FFFFFF">
<div onClick="javascript:document.selectform.submit();" style="cursor:hand">
<IMG align=absBottom border=0 src="../../images/search.gif" ><?php echo "$strSearch"; ?>
<div>
</td>
<td bgcolor="#FFFFFF"> <20><>
</td>
<td bgcolor="#FFFFFF" width="40">
<td bgcolor="#FFFFFF" width="5">
</td>
<td width="100" bgcolor="#FFFFFF">
<?php echo "$strSpecifyTime"; ?><input style="font-family: Verdana; font-size: 8pt" name=sel_time onClick=display() value="true" type="checkbox" >
</td>
<td bgcolor="#FFFFFF">
<DIV align=left id=set_time style="VISIBILITY: hidden;">
<table width="100%">
<tr>
<td align="center">
<?php echo "$strFrom"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="hou_1" size="2" value="00" maxLength="2">&nbsp;<?php echo "$strHour"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="mid_1" size="2" value="00" maxLength="2">&nbsp;<?php echo "$strMinute"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="sec_1" size="2" value="00" maxLength="2">&nbsp;<?php echo "$strSecond"; ?>&nbsp;
<?php echo "$strTo"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" maxLength="2" name="hou_2" size="2" value="23">&nbsp;<?php echo "$strHour"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="mid_2" size="2" value="59" maxLength="2">&nbsp;<?php echo "$strMinute"; ?>&nbsp;
<input style="font-family: Verdana; font-size: 8pt" name="sec_2" size="2" value="59" maxLength="2">&nbsp;<?php echo "$strSecond"; ?>&nbsp;
</td>
</tr>
</table>
</DIV>
</td>
</tr>
</table>
<input type="hidden" name="sysType" value="<?php echo $sysType;?>">
</form>
</body>
</html>

View File

@@ -0,0 +1,76 @@
<?php
require("../../inc/header.inc");
require("../generalCsta/function.inc");
?>
<?php
echo "<form action=\"$PHP_SELF\" method=\"post\">";
$generalConf=parse_ini_file("general.conf",true);
$csvFieldName=GetRowCsv("./fieldConf/{$sysTypeNo}_name.csv");
$sql="show fields from {$generalConf[$sysTypeNo][DataTable]} where Field <> 'key_sys_id' and Field <> 'key_subsys_id' and Field <> 'key_type' and Field <> 'key_e1_tg' and Field <> 'csta_datetime' ";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
if($_SERVER['REQUEST_METHOD'] == "POST")
{
unlink("./fieldConf/{$sysTypeNo}_flag.csv");
$content="";
for($i=0;$i<$num;$i++)
{
$param="field_$i";
$value=$$param;
//echo "$i={$value}<br>";
if(strcasecmp($value,"on"))
$content.="0";
else
$content.="1";
if($i != ($num-1))
$content.=",";
}
$content.="\n";
file_put_contents("./fieldConf/{$sysTypeNo}_flag.csv",$content);
echo "<script language=\"JavaScript\">\n";
echo "window.close();\n";
echo "</script>\n";
}
echo "{$generalConf[$sysTypeNo][PageTitle]}<br><br>";
echo "<b>Please select the fields to browse</b><br>";
echo "<table border=0 width=\"70%\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td width=\"60%\">Name</td>";
echo "<td width=\"10%\">Flag</td>";
echo "</tr>";
$csvData=GetRowCsv("./fieldConf/{$sysTypeNo}_flag.csv");
if(0)
{
echo "<pre>";
print_r($csvData);
echo "</pre>";
}
for($i=0;$i<$num;$i++)
{
$row=@mysqli_fetch_array($res);
echo "<tr>";
echo "<td>{$csvFieldName[$i]}</td>";
echo "<td>";
if($csvData[$i] != 0)
echo "<input type=\"checkbox\" checked name=\"field_$i\">";
else
echo "<input type=\"checkbox\" name=\"field_$i\">";
echo "</td>";
echo "</tr>";
}
echo "</table>";
echo "<br>";
echo "<input type=\"submit\" name=\"save\" value=\"Save\" class=\"button\">";
echo "<input type=\"hidden\" name=\"sysTypeNo\" value=\"$sysTypeNo\">";
echo "</form>";
?>

View File

@@ -0,0 +1,309 @@
<?php
require("../../inc/header.inc");
require("../generalCsta/function.inc");
global $OMC_server;
$cstaDbConn = mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password'], "CSTA_DB");
if($scroll_y > 0){
echo "<body leftmargin=\"15\" rightmargin=\"10\" onload=\"javascript:scroll_div('$scroll_y');javascript:adjust_frame('down');\" onresize=\"javascript:adjust_frame('down');\" style=\"overflow:hidden;overflow-x:hidden;overflow-y:hidden;\">";
}else{
echo "<body leftmargin=\"15\" rightmargin=\"10\" onload=\"javascript:adjust_frame('down');\" onresize=\"javascript:adjust_frame('down');\" style=\"overflow:hidden;overflow-x:hidden;overflow-y:hidden;\">";
}
?>
<script language="JavaScript">
function select_page_up(sysTypeNo,sel_date_from,keyOne,keyTwo)
{
var page_id=document.myform.page_select_up.value;
var newurl="./detail_csta_down.php?sysTypeNo="+sysTypeNo+"&sel_date_from="+sel_date_from+"&keyOne="+keyOne+"&keyTwo="+keyTwo+"&page_id="+page_id;
window.location.href=newurl;
}
function select_page_down(sysTypeNo,sel_date_from,keyOne,keyTwo)
{
var page_id=document.myform.page_select_down.value;
var newurl="./detail_csta_down.php?sysTypeNo="+sysTypeNo+"&sel_date_from="+sel_date_from+"&keyOne="+keyOne+"&keyTwo="+keyTwo+"&page_id="+page_id;
window.location.href=newurl;
}
</script>
<form name="myform" action="detail_csta_down.php" method="POST">
<?php
adjust_head_frame("down");
adjust_title_head_frame("down");
adjust_title_tail_frame("down");
adjust_content_head_frame("down");
$sel_date_from = $_REQUEST['sel_date_from'];
$sysTypeNo = $_REQUEST['sysTypeNo'];
$keyOne = $_REQUEST['keyOne'];
$keyTwo = $_REQUEST['keyTwo'];
$page_id = $_REQUEST['page_id'];
if(!isset($keyOne))
$keyOne=-1;
if(!isset($keyTwo))
$keyTwo=-1;
if(!isset($page_id))
$page_id=0;
if(0)
{
echo "sysTypeNo=$sysTypeNo<br>";
echo "sel_date_from=$sel_date_from<br>";
echo "keyOne=$keyOne,keyTwo=$keyTwo<br>";
echo "page_id=$page_id<br>";
}
$generalConf=parse_ini_file("general.conf",true);
$cstaConf=GetCstaConf($sysTypeNo);
if(0)
{
echo "sysTypeNo=$sysTypeNo<br>";
echo "<pre>";
print_r($cstaConf);
echo "</pre>";
}
$sql="show fields from {$generalConf[$sysTypeNo][DataTable]} where Field <> 'key_sys_id' and Field <> 'key_subsys_id' and Field <> 'key_type' and Field <> 'key_e1_tg' and Field <> 'csta_datetime' ";
$res=mysqli_query($cstaDbConn,$sql);
$num=mysqli_num_rows($res);
$fieldnum=$num;
if(0)
{
echo "sql:$sql<br>";
echo "num:$num<br>";
}
for($i=0;$i<$fieldnum;$i++)
{
$row=@mysqli_fetch_array($res);
$csta_fields[]=$row[Field];
}
$cstafieldstr=implode(",",$csta_fields);
$csvData=GetRowCsv("./fieldConf/{$sysTypeNo}_flag.csv");
$csvFieldName=GetRowCsv("./fieldConf/{$sysTypeNo}_name.csv");
if(0)
{
echo "cstafieldstr=$cstafieldstr<br>";
echo "<pre>";
print_r($csta_fields);
print_r($csvFieldName);
echo "</pre>";
}
$startTime=date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")-$sel_date_from,date("Y")));
$endTime=date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-$sel_date_from,date("Y")));
//echo "sel_date_from=$sel_date_from,startTime=$startTime,endTime=$endTime<br>";
//echo "keyOne=$keyOne,keyTwo=$keyTwo<br>";
$condition="";
if($keyOne != -1)
{
$condition.=" and key_type=$keyOne ";
}
if($keyTwo != -1)
{
$condition.=" and key_e1_tg=$keyTwo ";
}
// echo "<pre>";
// echo print_r($generalConf);
// echo "</pre>";
$start_record=$generalConf[MaxRow]*$page_id;
$end_record=$generalConf[MaxRow]*($page_id+1);
$sql="select * from {$generalConf[$sysTypeNo][DataTable]} where csta_datetime>='$startTime' and csta_datetime <= '$endTime' $condition order by csta_datetime desc ";
//echo "$sql<br>";
$res=mysqli_query($cstaDbConn,$sql);
$num=mysqli_num_rows($res);
echo mysqli_error($cstaDbConn);
$totalrecordnum=$num;
if(0)
{
echo "sql2:$sql<br>";
echo "num2:$num<br>";
}
$sql="select * from {$generalConf[$sysTypeNo][DataTable]} where csta_datetime>='$startTime' and csta_datetime <= '$endTime' $condition order by csta_datetime desc LIMIT $start_record, {$generalConf[MaxRow]} ";
//echo "$sql<br>";
$res=mysqli_query($cstaDbConn,$sql);
$num=mysqli_num_rows($res);
$recordnum=$num;
$pagenum=ceil($totalrecordnum/$generalConf[MaxRow]);
if(0)
{
echo "recordnum=$recordnum,max={$generalConf[MaxRow]},pagenum=$pagenum<br>";
}
$start_recordstr=$start_record++;
if($start_recordstr >= $totalrecordnum)
$start_recordstr=$totalrecordnum;
else
$start_recordstr=$start_record;
if($end_record > $totalrecordnum)
$end_recordstr=$totalrecordnum;
else
$end_recordstr=$end_record;
$prev_page_id=$page_id-1;
$next_page_id=$page_id+1;
echo "<table border=0 width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Record: $start_recordstr - $end_recordstr, Total: $totalrecordnum";
echo "</td>";
echo "<td width=\"50%\" align=\"right\">";
if($page_id > 0)
{
echo "<a href=\"$PHP_SELF?sysTypeNo=$sysTypeNo&sel_date_from=$sel_date_from&keyOne=$keyOne&keyTwo=$keyTwo&page_id=$prev_page_id\">";
echo "Previous<img src=\"../../images/left.gif\" alt=$strNextPage align=absBottom border=0></img></a>";
}
else
{
echo "<font color=\"#808080\">Previous</font><img src=\"../../images/left_1.gif\" alt=$strNextPage align=absBottom border=0></img>";
}
echo "<select name=\"page_select_up\" onchange=\"javascript:select_page_up('$sysTypeNo','$sel_date_from','$keyOne','$keyTwo');\">";
for($i=0;$i<$pagenum;$i++)
{
$showpage=$i+1;
if($page_id == $i)
echo "<option value=\"$i\" selected>$showpage</option>";
else
echo "<option value=\"$i\">$showpage</option>";
}
echo "</select>";
if($page_id < ($pagenum-1))
{
echo "<a href=\"$PHP_SELF?sysTypeNo=$sysTypeNo&sel_date_from=$sel_date_from&keyOne=$keyOne&keyTwo=$keyTwo&page_id=$next_page_id\">";
echo "<img src=\"../../images/right.gif\" alt=$strNextPage align=absBottom border=0>Next</a>";
}
else
{
echo "<img src=\"../../images/right_1.gif\" alt=$strNextPage align=absBottom border=0><font color=\"#808080\">Next</font>";
}
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td>System</td>";
echo "<td>Type</td>";
echo "<td>TG</td>";
for($i=0;$i<$fieldnum;$i++)
{
//{$csta_fields[$i]}
if($csvData[$i] != 0)
echo "<td>{$csvFieldName[$i]}</td>";
}
echo "<td>Time</td>";
echo "</tr>";
if($recordnum == 0)
{
echo "<tr>";
echo "<td>--</td>";
echo "<td>--</td>";
echo "<td>--</td>";
for($j=0;$j<$fieldnum;$j++)
{
if($csvData[$j] != 0)
echo "<td>--</td>";
}
echo "<td>--</td>";
echo "</tr>";
}
for($i=0;$i<$cstaConf[DataObjectCount];$i++)
{
$doConf=$cstaConf[DataObject][$i];
for($keyIndex=$doConf[KeyOneStart];$keyIndex<=$doConf[KeyOneEnd];$keyIndex++)
{
$keyCountConf[$keyIndex]=$doConf[KeyFieldCount];
}
}
if(0)
{
echo "<pre>";
print_r($keyCountConf);
echo "</pre>";
}
for($i=0;$i<$recordnum;$i++)
{
$row=@mysqli_fetch_array($res);
echo "<tr>";
$system_id="{$generalConf[$sysTypeNo][Module]}_".($row[key_sys_id]+0);
echo "<td>$system_id</td>";
$typestr=$generalConf[KeyOneName][$sysTypeNo][$row[key_type]];
if($keyCountConf[$row[key_type]] > 0)
echo "<td>$typestr</td>";
else
echo "<td>--</td>";
if($keyCountConf[$row[key_type]] == 2)
echo "<td>{$row[key_e1_tg]}</td>";
else
echo "<td>--</td>";
for($j=0;$j<$fieldnum;$j++)
{
if($csvData[$j] != 0)
echo "<td>{$row[$csta_fields[$j]]}</td>";
}
echo "<td>{$row[csta_datetime]}</td>";
echo "</tr>";
}
echo "</table>";
if($recordnum >= 25)
{
echo "<table border=0 width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Record: $start_recordstr - $end_recordstr, Total: $totalrecordnum";
echo "</td>";
echo "<td width=\"50%\" align=\"right\">";
if($page_id > 0)
{
echo "<a href=\"$PHP_SELF?sysTypeNo=$sysTypeNo&sel_date_from=$sel_date_from&keyOne=$keyOne&keyTwo=$keyTwo&page_id=$prev_page_id\">";
echo "Previous<img src=\"../../images/left.gif\" alt=$strNextPage align=absBottom border=0></img></a>";
}
else
{
echo "<font color=\"#808080\">Previous</font><img src=\"../../images/left_1.gif\" alt=$strNextPage align=absBottom border=0></img>";
}
echo "<select name=\"page_select_down\" onchange=\"javascript:select_page_down('$sysTypeNo','$sel_date_from','$keyOne','$keyTwo');\">";
for($i=0;$i<$pagenum;$i++)
{
$showpage=$i+1;
if($page_id == $i)
echo "<option value=\"$i\" selected>$showpage</option>";
else
echo "<option value=\"$i\">$showpage</option>";
}
echo "</select>";
if($page_id < ($pagenum-1))
{
echo "<a href=\"$PHP_SELF?sysTypeNo=$sysTypeNo&sel_date_from=$sel_date_from&keyOne=$keyOne&keyTwo=$keyTwo&page_id=$next_page_id\">";
echo "<img src=\"../../images/right.gif\" alt=$strNextPage align=absBottom border=0>Next</a>";
}
else
{
echo "<img src=\"../../images/right_1.gif\" alt=$strNextPage align=absBottom border=0><font color=\"#808080\">Next</font>";
}
echo "</td>";
echo "</tr>";
echo "</table>";
}
adjust_content_tail("down");
echo "</form>";
?>

View File

@@ -0,0 +1,8 @@
<frameset rows="75,*" frameborder=0 border=0>
<?php
$sysTypeNo = $_REQUEST['sysTypeNo'];
$sysNo=$_REQUEST['sysNo'];
echo "<frame scrolling=\"no\" name=\"detail_csta_up\" src=\"detail_csta_up.php?sysTypeNo=$sysTypeNo\">";
echo "<frame name=\"detail_csta_down\" src=\"detail_csta_down.php?sysTypeNo=$sysTypeNo\">";
?>
</frameset>

View File

@@ -0,0 +1,178 @@
<?php
//Include the head file
require("../../inc/header.inc");
require("../generalCsta/function.inc");
?>
<script language="JavaScript">
function refresh_page()
{
var sysTypeNo=document.myform.sysTypeNo.value;
var down_date_from=document.myform.sel_date_from.value;
var keyOne=document.myform.keyOne.value;
var keyTwo=document.myform.keyTwo.value;
var urll='<?php echo"$PHP_SELF";?>?sysTypeNo='+sysTypeNo+'&sel_date_from='+down_date_from+'&keyOne='+keyOne+'&keyTwo='+keyTwo;
window.location.href=urll;
}
function openFieldConf(sysTypeNo)
{
URL="./csta_field.php?sysTypeNo="+sysTypeNo;
var setWindow = open(URL, 'newWin', 'toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,status=yes,width=400,height=350');
setWindow.focus();
}
</script>
<base target="detail_csta_down">
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<form action="detail_csta_down.php" method="post" name="myform">
<?php
$sysTypeNo=$_REQUEST['sysTypeNo'];
$generalConf=parse_ini_file("general.conf",true);
$cstaConf=GetCstaConf($sysTypeNo);
if(0)
{
echo "<pre>";
print_r($generalConf);
echo "</pre>";
}
adjust_head_frame("up");
adjust_title_head_frame("up");
echo "<table id=\"table_up\" border=0 width=\"100%\">";
echo "<tr>";
echo "<td width=80% align=\"left\">";
echo "{$generalConf[$sysTypeNo][PageTitle]}";
echo "</td>";
echo "<td align=\"right\">";
if(isset($generalConf[HelpID][$sysTypeNo][$page_id]))
showHelp($generalConf[HelpID][$sysTypeNo][$page_id]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\">";
//select day
for($i=0;$i<$generalConf[MaxDay];$i++)
{
$startDay[]=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
}
echo "Date <select name=\"sel_date_from\">";
for($i=0;$i<$generalConf[MaxDay];$i++)
{
if($i==$sel_date_from)
echo "<option selected value=$i>{$startDay[$i]}</option>";
else
echo "<option value=$i>{$startDay[$i]}</option>";
}
echo "</select>&nbsp;";
//KeyOne selection
if(!isset($keyOne))
$keyOne=-1;
$keyonenum=sizeof($generalConf[KeyOneName][$sysTypeNo]);
echo "Type <select name=\"keyOne\" onchange=\"javascript:refresh_page();\">";
if($keyOne==-1)
echo "<option selected value=\"-1\">All</option>";
else
echo "<option value=\"-1\">All</option>";
for($i=0;$i<$keyonenum;$i++)
{
if(strcmp($generalConf[KeyOneName][$sysTypeNo][$i],"none"))
{
if($keyOne == $i)
echo "<option selected value=\"$i\">{$generalConf[KeyOneName][$sysTypeNo][$i]}</option>";
else
echo "<option value=\"$i\">{$generalConf[KeyOneName][$sysTypeNo][$i]}</option>";
}
}
echo "</select>&nbsp;";
//KeyTwo selection
if(!isset($keyTwo))
$keyTwo=-1;
$hideFlag=0;
if($keyOne == -1)
{
$hideFlag=0;
}
else
{
for($i=0;$i<$cstaConf[DataObjectCount];$i++)
{
$doConf=$cstaConf[DataObject][$i];
if($keyOne >= $doConf[KeyOneStart] && $keyOne <= $doConf[KeyOneEnd])
break;
}
}
if($i == $cstaConf[DataObjectCount])
$hideFlag=1;
else
{
if($doConf[KeyFieldCount] == 2)
$hideFlag=0;
else
$hideFlag=1;
}
echo "<span ";
if($hideFlag == 1)
echo " style=\"display:none;\" ";
echo ">";
echo "TG <select name=\"keyTwo\">";
if($keyTwo==-1)
echo "<option selected value=\"-1\">All</option>";
else
echo "<option value=\"-1\">All</option>";
if($hideFlag == 0)
{
for($i=$doConf[KeyTwoStart];$i<=$doConf[KeyTwoEnd];$i++)
{
if($keyTwo == $i)
echo "<option selected value=\"$i\">{$i}</option>";
else
echo "<option value=\"$i\">{$i}</option>";
}
}
echo "</select>&nbsp;";
echo "</span>";
if($hideFlag == 1)
echo "<input type=\"hidden\" name=\"keyTwo\" value=\"-1\">";
//search button
echo "<span onClick=\"javascript:myform.submit()\" style=\"cursor:hand\">";
echo "<IMG align=absBottom border=0 src=\"../../images/search.gif\">$strSearch";
echo "</span>";
echo "</td>";
echo "<td align=\"right\">";
//Config the field
echo "<span onClick=\"javascript:openFieldConf('$sysTypeNo');\" style=\"cursor:hand\">";
echo "<img border=0 src=\"../../images/list.gif\" width=16 height=16>";
echo "</span>&nbsp;&nbsp;&nbsp;&nbsp;";
?>
<span onClick="window.print();" style="cursor:hand">
<img border=0 src="../../images/printer.gif" width="16" height="16">
</span>
<?php
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<input type=\"hidden\" name=\"sysTypeNo\" value=\"$sysTypeNo\">";
echo "</form>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
echo "</form>";
?>

View File

@@ -0,0 +1 @@
1,1,1,1,1
1 1 1 1 1 1

View File

@@ -0,0 +1 @@
PPS service attempt,PPS service success,MSC service attempt,MSC service success,Invalid call
1 PPS service attempt PPS service success MSC service attempt MSC service success Invalid call

View File

@@ -0,0 +1 @@
1,1,1,1,1,0,0,0,0,0
1 1 1 1 1 1 0 0 0 0 0

View File

@@ -0,0 +1 @@
Attempt,Success,Duration,Normal,Call Deny,Net Busy,Caller Clear,Sub Busy,No Answer,Signal Error
1 Attempt Success Duration Normal Call Deny Net Busy Caller Clear Sub Busy No Answer Signal Error

View File

@@ -0,0 +1 @@
0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,1
1 0 0 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0 0 1 1

View File

@@ -0,0 +1 @@
Attempted MS memory available notifications,Successful MS memory available notifications,Attempted Identification requests to PVLRs,Successful Identification requests to PVLRs,Attempted page requests,Successful page requests,Attempted page requests per Location Area,Successful page requests per Location Area,Attempted requests for Authentication sets sent to HLR by VLRs,Successful received Authentication sets from HLR to VLRs,Empty responses to request for Authentication sets from HLR to VLRs,Attempted authentication procedures in VLR,Successful authentication procedures in the VLR,Attempted intra-VLR Location Updates,Successful intra-VLR Location Updates,Attempted inter-VLR Location Updates,Successful inter-VLR Location Updates,Arrivals of Visitors from other PLMNs,Subscribers from other PLMNs registered in the VLR,Number of roamers in the VLR
1 Attempted MS memory available notifications Successful MS memory available notifications Attempted Identification requests to PVLRs Successful Identification requests to PVLRs Attempted page requests Successful page requests Attempted page requests per Location Area Successful page requests per Location Area Attempted requests for Authentication sets sent to HLR by VLRs Successful received Authentication sets from HLR to VLRs Empty responses to request for Authentication sets from HLR to VLRs Attempted authentication procedures in VLR Successful authentication procedures in the VLR Attempted intra-VLR Location Updates Successful intra-VLR Location Updates Attempted inter-VLR Location Updates Successful inter-VLR Location Updates Arrivals of Visitors from other PLMNs Subscribers from other PLMNs registered in the VLR Number of roamers in the VLR

View File

@@ -0,0 +1 @@
0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0

View File

@@ -0,0 +1 @@
Number of current MS's Roaming outside HPLMN,Attempted requests for Authentication sets,Successful returned Authentication sets,Empty responses to request for Authentication sets,Attempted insert subscriber data service,Successful insert subscriber data service,Attempted Location Updates,Successful Location Updates,Attempted SS related operations,Successful SS related operations,Attempted request for SM routing information,Successful request for SM routing information,Attempted SM delivery status report procedures,Successful SM delivery status report procedures,Attempted number of send alerts,Successful number of send alerts,Attempted request for MSRN,Successful request for MSRN,MS Initial USSD Attempt,MS Initial USSD Success,Relay USSD to SCF Attempt,Relay USSD to SCF Success
1 Number of current MS's Roaming outside HPLMN Attempted requests for Authentication sets Successful returned Authentication sets Empty responses to request for Authentication sets Attempted insert subscriber data service Successful insert subscriber data service Attempted Location Updates Successful Location Updates Attempted SS related operations Successful SS related operations Attempted request for SM routing information Successful request for SM routing information Attempted SM delivery status report procedures Successful SM delivery status report procedures Attempted number of send alerts Successful number of send alerts Attempted request for MSRN Successful request for MSRN MS Initial USSD Attempt MS Initial USSD Success Relay USSD to SCF Attempt Relay USSD to SCF Success

View File

@@ -0,0 +1 @@
1,1,1,1,1,1,0,0,0,0,0,0
1 1 1 1 1 1 1 0 0 0 0 0 0

View File

@@ -0,0 +1 @@
Triplets require success,HLR create subscriber success,HLR delete subscriber success,AUC create subscriber success,AUC delete subscriber success,Tripletes require fail,HLR create subscriber fail,HLR delete subscriber fail,AUC create subscriber fail,AUC delete subscriber fail,Interrogate subscriber success,Interrogate subscriber fail
1 Triplets require success HLR create subscriber success HLR delete subscriber success AUC create subscriber success AUC delete subscriber success Tripletes require fail HLR create subscriber fail HLR delete subscriber fail AUC create subscriber fail AUC delete subscriber fail Interrogate subscriber success Interrogate subscriber fail

View File

@@ -0,0 +1 @@
1,1,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

View File

@@ -0,0 +1 @@
MS to SMSC attempt,MS to SMSC success,MS to SMSC sysfail,MS to SMSC userfail,MS to SMSC smfail,MS to SMSC byte,PPS to SMSC attempt,PPS to SMSC success,PPS to SMSC sysfail,PPS to SMSC userfail,PPS to SMSC smfail,PPS to SMSC byte,VMS to SMSC attempt,VMS to SMSC success,VMS to SMSC sysfail,VMS to SMSC userfail,VMS to SMSC smfail,VMS to SMSC byte,SMPP to SMSC attempt,SMPP to SMSC success,SMPP to SMSC sysfail,SMPP to SMSC userfail,SMPP to SMSC smfail,SMPP to SMSC byte,SMSC to MS attempt,SMSC to MS success,SMSC to MS sysfail,SMSC to MS userfail,SMSC to MS smfail,SMSC to MS byte,SMSC to PPS attempt,SMSC to PPS success,SMSC to PPS sysfail,SMSC to PPS userfail,SMSC to PPS smfail,SMSC to PPS byte,SMSC to VMS attempt,SMSC to VMS success,SMSC to VMS sysfail,SMSC to VMS userfail,SMSC to VMS smfail,SMSC to VMS byte,SMSC to SMPP attempt,SMSC to SMPP success,SMSC to SMPP sysfail,SMSC to SMPP userfail,SMSC to SMPP smfail,SMSC to SMPP byte,SM begin,SM end
1 MS to SMSC attempt MS to SMSC success MS to SMSC sysfail MS to SMSC userfail MS to SMSC smfail MS to SMSC byte PPS to SMSC attempt PPS to SMSC success PPS to SMSC sysfail PPS to SMSC userfail PPS to SMSC smfail PPS to SMSC byte VMS to SMSC attempt VMS to SMSC success VMS to SMSC sysfail VMS to SMSC userfail VMS to SMSC smfail VMS to SMSC byte SMPP to SMSC attempt SMPP to SMSC success SMPP to SMSC sysfail SMPP to SMSC userfail SMPP to SMSC smfail SMPP to SMSC byte SMSC to MS attempt SMSC to MS success SMSC to MS sysfail SMSC to MS userfail SMSC to MS smfail SMSC to MS byte SMSC to PPS attempt SMSC to PPS success SMSC to PPS sysfail SMSC to PPS userfail SMSC to PPS smfail SMSC to PPS byte SMSC to VMS attempt SMSC to VMS success SMSC to VMS sysfail SMSC to VMS userfail SMSC to VMS smfail SMSC to VMS byte SMSC to SMPP attempt SMSC to SMPP success SMSC to SMPP sysfail SMSC to SMPP userfail SMSC to SMPP smfail SMSC to SMPP byte SM begin SM end

View File

@@ -0,0 +1 @@
1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

View File

@@ -0,0 +1 @@
Local call,Trunk out,NDD call,HMT call,IDD call,Local called,Call in,Periodic charge,Assisted recharge,Assisted withdraw,Recharge success,Recharge fail,SM,CNF,Third party,Emergency call number,Local calling cost,Trunk out cost,NDD call cost,HMT call cost,IDD call cost,Local called cost,Call in cost,Periodic charge cost,Assisted recharge cost,Assisted withdraw cost,Recharge success cost,Recharge fail cost,SM cost,CNF cost,Third party cost,Emergency call cost,Local calling duration,Trunk out duration,NDD call duration,HMT call duration,IDD call duration,Local called duration,Call in duration,Periodic charge duration,Assisted recharge duration,Assisted withdraw duration,Recharge success duration,Recharge fail duration,SM duration,CNF duration,Third party duration,Emergency call duration,GPRS attempt,GPRS total charged,GPRS duration,GPRS total volumn
1 Local call Trunk out NDD call HMT call IDD call Local called Call in Periodic charge Assisted recharge Assisted withdraw Recharge success Recharge fail SM CNF Third party Emergency call number Local calling cost Trunk out cost NDD call cost HMT call cost IDD call cost Local called cost Call in cost Periodic charge cost Assisted recharge cost Assisted withdraw cost Recharge success cost Recharge fail cost SM cost CNF cost Third party cost Emergency call cost Local calling duration Trunk out duration NDD call duration HMT call duration IDD call duration Local called duration Call in duration Periodic charge duration Assisted recharge duration Assisted withdraw duration Recharge success duration Recharge fail duration SM duration CNF duration Third party duration Emergency call duration GPRS attempt GPRS total charged GPRS duration GPRS total volumn

View File

@@ -0,0 +1 @@
1,1,1,1
1 1 1 1 1

View File

@@ -0,0 +1 @@
num_of_online_enb,num_of_registered_ues,num_of_connected_ues,num_of_idle_ues
1 num_of_online_enb num_of_registered_ues num_of_connected_ues num_of_idle_ues

View File

@@ -0,0 +1 @@
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0

View File

@@ -0,0 +1 @@
attemp_sess_est_num,suc_sess_est_num,actived_user_num,max_actived_user_num,cur_ps_active_user_num,max_cur_ps_active_user_num,cur_ims_active_user_num,max_cur_ims_active_user_num,ps_ip_addr_allocated,ps_ip_addr_free,ims_ip_addr_allocated,ims_ip_addr_free,ps_pagin_num,fail_ps_paging_num,ims_paging_num,fail_ims_paging_num,ps_ccr_update_num,ps_ccr_update_time_interval,uplink_average_pack_num,downlink_average_pack_num,uplink_average_pack_size,downlink_average_pack_size,uplink_data_bit_rate,uplink_data_max_bit_rate,downlink_data_bit_rate,downlink_data_max_bit_rate,gtp_context_num,gtp_active_tunnrl_num,total_up_pktnum,total_down_pktnum
1 attemp_sess_est_num suc_sess_est_num actived_user_num max_actived_user_num cur_ps_active_user_num max_cur_ps_active_user_num cur_ims_active_user_num max_cur_ims_active_user_num ps_ip_addr_allocated ps_ip_addr_free ims_ip_addr_allocated ims_ip_addr_free ps_pagin_num fail_ps_paging_num ims_paging_num fail_ims_paging_num ps_ccr_update_num ps_ccr_update_time_interval uplink_average_pack_num downlink_average_pack_num uplink_average_pack_size downlink_average_pack_size uplink_data_bit_rate uplink_data_max_bit_rate downlink_data_bit_rate downlink_data_max_bit_rate gtp_context_num gtp_active_tunnrl_num total_up_pktnum total_down_pktnum

View File

@@ -0,0 +1 @@
1,1,1,1,1,1
1 1 1 1 1 1 1

View File

@@ -0,0 +1 @@
num_of_register_success,num_of_register_failed,num_of_moc_setup,num_of_moc_ring,num_of_mtc_setup,num_of_mtc_ring
1 num_of_register_success num_of_register_failed num_of_moc_setup num_of_moc_ring num_of_mtc_setup num_of_mtc_ring

View File

@@ -0,0 +1 @@
1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

View File

@@ -0,0 +1 @@
numRtpBytesReceivedUplink,numRtpPacketsReceivedUplink,numRtpBytesSentUplink,numRtpPacketsSentUplink,numRtpBytesReceivedDnlink,numRtpPacketsReceivedDnlink,numRtpBytesSentDnlink,numRtpPacketsSentDnlink,numLsCall,numGtpKBytesReceivedUplink,numGtpPacketsReceivedUplink,numGtpKBytesSentUplink,numGtpPacketsSentUplink,numGtpKBytesReceivedDnlink,numGtpPacketsReceivedDnlink,numGtpKBytesSentDnlink,numGtpPacketsSentDnlink,numLuAttempt,numLuSuccess,numDetach,numMoAttempt,numMoSuccess,numMoNoAnswer,numMtAttempt,numMtSuccess,numMtNoAnswer,numEmoAttempt,numEmoSuccess,numEmoNoAnswer,numSmoAttempt,numSmoSuccess,numSmtAttempt,numSmtSuccess,numGprsAttachAttempt,numGprsAttachSuccess,numRauAttempt,numRauSuccess,numPdpActivateAttempt,numPdpActivateSuccess,numPdpDeactivate
1 numRtpBytesReceivedUplink numRtpPacketsReceivedUplink numRtpBytesSentUplink numRtpPacketsSentUplink numRtpBytesReceivedDnlink numRtpPacketsReceivedDnlink numRtpBytesSentDnlink numRtpPacketsSentDnlink numLsCall numGtpKBytesReceivedUplink numGtpPacketsReceivedUplink numGtpKBytesSentUplink numGtpPacketsSentUplink numGtpKBytesReceivedDnlink numGtpPacketsReceivedDnlink numGtpKBytesSentDnlink numGtpPacketsSentDnlink numLuAttempt numLuSuccess numDetach numMoAttempt numMoSuccess numMoNoAnswer numMtAttempt numMtSuccess numMtNoAnswer numEmoAttempt numEmoSuccess numEmoNoAnswer numSmoAttempt numSmoSuccess numSmtAttempt numSmtSuccess numGprsAttachAttempt numGprsAttachSuccess numRauAttempt numRauSuccess numPdpActivateAttempt numPdpActivateSuccess numPdpDeactivate

View File

@@ -0,0 +1 @@
1,1,1,1,1,0,0,0,0,0
1 1 1 1 1 1 0 0 0 0 0

View File

@@ -0,0 +1 @@
n5GAKAAuthAttempt,n5GAKAAuthSuc,nEAPAKAAuthAttempt,nEAPAKAAuthSuc,nAMF3GPPAccessRegAttempt,nAMF3GPPAccessRegSuc,nAMFNON3GPPAccessRegAttempt,nAMFNON3GPPAccessRegSuc,nSMFRegAttempt,nAMFRegSuc
1 n5GAKAAuthAttempt n5GAKAAuthSuc nEAPAKAAuthAttempt nEAPAKAAuthSuc nAMF3GPPAccessRegAttempt nAMF3GPPAccessRegSuc nAMFNON3GPPAccessRegAttempt nAMFNON3GPPAccessRegSuc nSMFRegAttempt nAMFRegSuc

View File

@@ -0,0 +1 @@
1,1,1,1,1,1,0,0,1,1
1 1 1 1 1 1 1 0 0 1 1

View File

@@ -0,0 +1 @@
MSs added to black-list success,MSs added black-list fail,MSs added to gray-list success,MSs added to gray-list fail,MSs deleted from black-list success,MSs deleted from black-list fail,MSs deleted from gray-list success,MSs deleted from gray-list fail,Times of checking IMEI success,Times of checking IMEI fail
1 MSs added to black-list success MSs added black-list fail MSs added to gray-list success MSs added to gray-list fail MSs deleted from black-list success MSs deleted from black-list fail MSs deleted from gray-list success MSs deleted from gray-list fail Times of checking IMEI success Times of checking IMEI fail

View File

@@ -0,0 +1 @@
1,1,1,1,1,1,1,1,1
1 1 1 1 1 1 1 1 1 1

View File

@@ -0,0 +1 @@
Original call attempt,Original call success,Terminal call attempt,Terminal call success,Leave message attempt,Leave message success,Maintain message attempt,Maintain message success,Access to fail
1 Original call attempt Original call success Terminal call attempt Terminal call success Leave message attempt Leave message success Maintain message attempt Maintain message success Access to fail

View File

View File

@@ -0,0 +1,102 @@
; The day range to statistic the CSTA
MaxDay=30
MaxRow=50
[320]
PageTitle="Advanced > Performance > MSC"
DataTable="mscSumData"
Module="MSC"
[330]
PageTitle="Advanced > Performance > HLR"
DataTable="hlrDetailData"
Module="HLR"
[325]
PageTitle="Advanced > Performance > VLR"
DataTable="vlrDetailData"
Module="VLR"
[360]
PageTitle="Advanced > Performance > PPS"
DataTable="ppsDetailData"
Module="PPS"
[361]
PageTitle="Advanced > Performance > MME"
DataTable="mmeDetailData"
Module="MME"
[362]
PageTitle="Advanced > Performance > SPGW"
DataTable="spgwDetailData"
Module="SPGW"
[363]
PageTitle="Advanced > Performance > IMS"
DataTable="imsDetailData"
Module="IMS"
[364]
PageTitle="Advanced > Performance > RCS"
DataTable="rcsDetailData"
Module="RCS"
[365]
PageTitle="Advanced > Performance > UDM"
DataTable="udmDetailData"
Module="UDM"
[366]
PageTitle="Advanced > Performance > AUSF"
DataTable="ausfDetailData"
Module="AUSF"
[350]
PageTitle="Advanced > Performance > SMSC"
DataTable="smscDetailData"
Module="SMSC"
[340]
PageTitle="Advanced > Performance > AUC"
DataTable="aucDetailData"
Module="AUC"
[380]
PageTitle="Advanced > Performance > EIR"
DataTable="eirDetailData"
Module="EIR"
[390]
PageTitle="Advanced > Performance > VSS"
DataTable="vssDetailData"
Module="VSS"
[311]
PageTitle="Advanced > Performance > AAS"
DataTable="aasDetailData"
Module="AAS"
[KeyOneName]
320[]="none"
320[]="none"
320[]="none"
320[]="TG Incoming"
320[]="TG Outgoing"
320[]="Subs to Subs"
320[]="Subs to Trunk"
320[]="Trunk to Subs"
320[]="Trunk to Trunk"
320[]="Intraconnection"
320[]="Subs to IP"
320[]="Trunk to IP"
320[]="Mobile Originated"
320[]="Mobile Terminated"
320[]="In Trunk"
320[]="Out Trunk"
320[]="IP Termiginated"
390[]="none"
390[]="ISUP"
390[]="VMS APP"

View File

@@ -0,0 +1,385 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head_frame("down");
adjust_title_head_frame("down");
adjust_title_tail_frame("down");
adjust_content_head_frame("down");
echo "<br>";
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$showDate = omc_keep_length($showDate,0,2);
$db=$csta_db;
$time_column = "csta_datetime";
$table_name='eirDetail'."_".$showDate;
$title_time=date("Y-m-d", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));//<2F><>ͷ<EFBFBD><CDB7>ʾʱ<CABE><CAB1>
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list)
{
echo "<br>$strNotFindRecord.";
exit();
}
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
if($sel_date<0)
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
elseif($sel_date>0)
{
if($sel_time)
{
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}
else
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
}
}
else
{
if($sel_time)
{
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}
else
{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
}
/* where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>Ϊ$w1,ϵͳid<69><64><EFBFBD><EFBFBD>Ϊ$w2 */
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
//<2F>ϳ<EFBFBD>where<72><65><EFBFBD><EFBFBD>
$where=" WHERE".$w1;
$str_sql_all="SELECT count(*) as number_of_records FROM $table_name ".$where;
$csta_result= mysqli_query($pubConn,$str_sql_all);
$record = mysql_fetch_object($csta_result);
$number_of_records = $record->number_of_records;
if(!$number_of_records)
{
echo "$strNotFindRecord";
exit();
}
$sum_sql=" SELECT SUM(mabls),SUM(mablf),SUM(magls),SUM(maglf),SUM(mdbls), SUM(mdblf),SUM(mdgls),SUM(mdglf),SUM(tcis),SUM(tcif) FROM $table_name ".$where;
//echo "<br>sum_sql=$sum_sql";
$sum_res=mysqli_query($pubConn,$sum_sql);
$sum_row=mysqli_fetch_array($sum_res);
$mabls=$sum_row[0];
$mablf=$sum_row[1];
$total_mabl=$mabls+$mablf;
if($total_mabl>0)
{
$mabls_point=$mabls/$total_mabl;
$mabls_scale=change_percent($mabls/$total_mabl);
$mablf_point=$mablf/$total_mabl;
$mablf_scale=change_percent($mablf/$total_mabl);
}
else
{
$mabls_point=0;
$mabls_scale="0%";
$mablf_point=0;
$mablf_scale="0%";
}
$magls=$sum_row[2];
$maglf=$sum_row[3];
$total_magl=$magls+$maglf;
if($total_magl>0)
{
$magls_point=$magls/$total_magl;
$magls_scale=change_percent($magls/$total_magl);
$maglf_point=$maglf/$total_magl;
$maglf_scale=change_percent($maglf/$total_magl);
}
else
{
$magls_point=0;
$magls_scale="0%";
$maglf_point=0;
$maglf_scale="0%";
}
$mdbls=$sum_row[4];
$mdblf=$sum_row[5];
$total_mdbl=$mdbls+$mdblf;
if($total_mdbl>0)
{
$mdbls_point=$mdbls/$total_mdbl;
$mdbls_scale=change_percent($mdbls/$total_mdbl);
$mdblf_point=$mdblf/$total_mdbl;
$mdblf_scale=change_percent($mdblf/$total_mdbl);
}
else
{
$mdbls_point=0;
$mdbls_scale="0%";
$mdblf_point=0;
$mdblf_scale="0%";
}
$mdgls=$sum_row[6];
$mdglf=$sum_row[7];
$total_mdgl=$mdgls+$mdglf;
if($total_mdgl>0)
{
$mdgls_point=$mdgls/$total_mdgl;
$mdgls_scale=change_percent($mdgls/$total_mdgl);
$mdglf_point=$mdglf/$total_mdgl;
$mdglf_scale=change_percent($mdglf/$total_mdgl);
}
else
{
$mdgls_point=0;
$mdgls_scale="0%";
$mdglf_point=0;
$mdglf_scale="0%";
}
$tcis=$sum_row[8];
$tcif=$sum_row[9];
$total_tci=$tcis+$tcif;
if($total_tci)
{
$tcis_point=$tcis/$total_tci;
$tcis_scale=change_percent($tcis/$total_tci);
$tcif_point=$tcif/$total_tci;
$tcif_scale=change_percent($tcif/$total_tci);
}
else
{
$tcis_point=0;
$tcis_scale="0%";
$tcif_point=0;
$tcif_scale="0%";
}
?>
<form method="POST" action="./saveCsv.php" name="selectform">
<table border="0" width="100%">
<tr>
<td width="25%">
</td>
<td width="50%">
<p align="center"><font size="2"><b><?php echo "$strEirStatistic"; ?></b></font><font size="2"><b>&nbsp;
Date:<?php echo $title_time; ?></b></font>
</td>
<td width="20%" align="right">
<div onClick="window.print();" style="cursor:hand">
<img align=absBottom border=0 src="../../images/printer.gif" width="16" height="16">
</div>
</td>
<!--
<td width="5%" align="center">
<div onClick="javascript:document.selectform.submit();" style="cursor:hand">
<img align=absBottom border=0 src="../../images/save.gif" width="16" height="16">
</div>
</td>
-->
</tr>
</table>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr bgcolor="#E6E6E6">
<td width="606" colspan="4" height="16">
<p align="center">1.<?php echo "$strPercentStatTable"; ?></td>
</tr>
<tr>
<td width="143" height="16">
<p align="center"><?php echo "$strItem";?></td>
<td width="151" height="16">
<p align="center"><?php echo "$strAttribute";?></td>
<td width="151" height="16">
<p align="center"><?php echo "$strTimes";?></td>
<td width="151" height="16">
<p align="center"><?php echo "$strPercent";?></td>
</tr>
<tr>
<td width="143" rowspan="2" align="center" height="40">
<p align="center"><?php echo "<nobr>$strMSsAddedBlackList";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mabls";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mabls_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mablf";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mablf_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" align="center" height="40"><?php echo "<nobr>$strMSsAddedGrayList";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$magls";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$magls_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$maglf";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$maglf_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" height="40">
<p align="center"><?php echo "<nobr>$strMSsDeletedBlackList";?></td>
<td width="151" align="center" height="19"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mdbls";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mdbls_scale";?></td>
</tr>
<tr>
<td width="151" height="16">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="16">
<p align="center">&nbsp;<?php echo "$mdblf";?></td>
<td width="151" height="16">
<p align="center">&nbsp;<?php echo "$mdblf_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" height="40">
<p align="center"><?php echo "<nobr>$strMSsDeletedGrayList";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mdgls";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mdgls_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mdglf";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$mdglf_scale";?></td>
</tr>
<tr>
<td width="143" rowspan="2" height="40">
<p align="center"><?php echo "<nobr>$strTimesCheckingIMEI";?></td>
<td width="151" height="19">
<p align="center"><?php echo "$strSuccess";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$tcis";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$tcis_scale";?></td>
</tr>
<tr>
<td width="151" height="19">
<p align="center"><?php echo "$strFailure";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$tcif";?></td>
<td width="151" height="19">
<p align="center">&nbsp;<?php echo "$tcif_scale";?></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
<tr>
<td colspan="17" height="20">
<b><img border="0" src="../../images/Icon-0.gif" width="2" height="1">&nbsp;<INPUT type="text" size="10" name="topNumber_2" id="topNumber" value="100" style="border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)" readonly><INPUT type="hidden" size="10" name="org_topNumber_2" id="topNumber" value="100" ></b>2.<?php echo "$strPercentStatLegend";?>
</td>
</tr>
<tr>
<td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$mabls_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$mablf_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$magls_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$maglf_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$mdbls_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$mdblf_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$mdgls_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$mdglf_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/dark_blue.GIF" width="40" height="<?php echo 200*$tcis_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$tcif_point; ?>"></td>
<td valign="bottom" height="200" width="40" rowspan="5"></td>
</tr>
<tr><td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td></tr>
<tr><td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td></tr>
<tr><td valign="bottom" height="40" width="20"><img border="0" src="../../images/Icon-0.gif" width="2" height="1"></td></tr>
<tr><td valign="bottom" height="40" width="20"></td></tr>
</table>
<table width=620>
<tr align="center">
<td width=20>&nbsp;</td>
<td width=80><?php echo "$strMSsAddedBlackList";?></td>
<td width=40>&nbsp;</td>
<td width=80><?php echo "$strMSsAddedGrayList";?></td>
<td width=40>&nbsp;</td>
<td width=80><?php echo "$strMSsDeletedBlackList";?></td>
<td width=40>&nbsp;</td>
<td width=80><?php echo "$strMSsDeletedGrayList";?></td>
<td width=40>&nbsp;</td>
<td width=80><?php echo "$strTimesCheckingIMEI";?></td>
<td width=40>&nbsp;</td>
</tr>
</table>
<p></p>
<table border="0" width="330" height="18">
<tr>
<td width="60" height="18"><b><?php echo $strLegend; ?>:</b></td>
<td width="18" height="18"><img border="0" src="../../images/legend_dark_blue.GIF" width="18" height="18"></td>
<td width="182" height="18"><?php echo "$strSuccess"; ?></td>
<td width="18" height="18"><img border="0" src="../../images/red.gif" width="18" height="18"></td>
<td width="182" height="18"><?php echo "$strFailure"; ?></td>
</tr>
</table>
<?php
adjust_content_tail("down");
?>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="dataAnalysisUp.php">
<frame name="main" src="dataAnalysisDown.php" scrolling="auto">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,85 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$helpId="6.8.7.1";
?>
<script language="javascript">
function selPage(){
var url,sel_date;
sel_date=document.selectform.sel_date.value;
url="./dataAnalysisDown.php?sel_date="+sel_date;
window.parent.main.location.href=url;
}
</script>
<base target="main">
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<form method="POST" action="./dataAnalysisDown.php" name="selectform">
<?php
adjust_head_frame("up");
adjust_title_head_frame("up");
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$strAdvanced > $strPerformance > EIR > Statistics";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
//showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\">";
?>
<select style="font-family: Verdana; font-size: 8pt" name="sel_date" size=1 onChange="javascript:selPage()">
<?php
echo "<OPTION value=\"0\">$day0</OPTION>";
echo "<OPTION value=\"1\">$day1</OPTION>";
echo "<OPTION value=\"2\">$day2</OPTION>";
echo "<OPTION value=\"3\">$day3</OPTION>";
echo "<OPTION value=\"4\">$day4</OPTION>";
echo "<OPTION value=\"5\">$day5</OPTION>";
echo "<OPTION value=\"6\">$day6</OPTION>";
?>
</SELECT>
<?php
echo "</td>";
echo "<td align=\"right\">";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
?>
</form>
</body>
</html>

View File

@@ -0,0 +1,257 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD>ѯ,<2C><>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$timeItem = date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$showDate = omc_keep_length($showDate,0,2);
$db=$csta_db;
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head_frame("down");
adjust_title_head_frame("down");
adjust_title_tail_frame("down");
adjust_content_head_frame("down");
echo "<br>";
$sort_field = 'csta_datetime'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>
$sort_direction = 'DESC'; //<2F><><EFBFBD><EFBFBD>˳<EFBFBD><CBB3>
$number_records_to_display = 200; //ÿҳ<C3BF><D2B3>¼<EFBFBD><C2BC>
$time_column = "csta_datetime";
$table_name='eirDetail'."_".$showDate;
$sel_field_list= @mysql_list_fields($db,$table_name);
if(!$sel_field_list)
{
echo "<br>$strNotFindRecord.";
exit();
}
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
//ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if($delete){
$sql_query="DELETE FROM $table_name ".$where;
$sql_query=urlencode($sql_query); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo " <meta http-equiv=\"refresh\" content=\"0; url=./csta_del.php?del_sql=$sql_query\"> ";
}//end of delete
?>
<script LANGUAGE="JavaScript">
function goto(){
var url_1,url_2,url_3,url_4,url_5,initial_record,gotopage,number_records_to_display,where,number_of_records,sort_field,sel_date;
gotopage=document.selectform.gotopage.value;
number_records_to_display=<?php echo $number_records_to_display; ?>;
where=document.selectform.where.value;
initial_record=number_records_to_display*(gotopage-1);
number_of_records=document.selectform.number_of_records.value;
sort_field=document.selectform.sort_field.value;
sel_date=document.selectform.sel_date.value;
url_1='<?php echo $PHP_SELF;?>?initial_record='+initial_record;
url_2="&where="+where;
url_3="&number_of_records="+number_of_records;
url_4="&sort_field="+sort_field;
url_5="&sel_date="+sel_date;
window.location.href=url_1+url_2+url_3+url_4+url_5;
}
</script>
<?php
// <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if (!$number_of_records){//<2F><>תҳ<D7AA><EFBFBD><E6B2BB><EFBFBD>г<EFBFBD>ʼ<EFBFBD><CABC>
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
if($sel_date<0){
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}elseif($sel_date>0){
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
}
}else{
if($sel_time){
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
}else{
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
$end_date=date("Y-m-d H:i:s", mktime());
}
}
/* where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>Ϊ$w1,ϵͳid<69><64><EFBFBD><EFBFBD>Ϊ$w2 */
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
//<2F>ϳ<EFBFBD>where<72><65><EFBFBD><EFBFBD>
$where=" WHERE".$w1;
$initial_record = 0;//<2F><>ʼ<EFBFBD><CABC>¼<EFBFBD><C2BC>
$str_sql_all="SELECT count(*) as number_of_records FROM $table_name ".$where;
$csta_result= mysqli_query($pubConn,$str_sql_all);
$record = mysql_fetch_object($csta_result);
$number_of_records = $record->number_of_records;
if(!$number_of_records)
{
echo $strNotFindRecord;
exit();
}
}//endif
$page_num= ($initial_record / $number_records_to_display) +1; //<2F><>ҳҳ<D2B3><D2B3>
$all_page_num= ceil($number_of_records / $number_records_to_display); //<2F><>ҳ<EFBFBD><D2B3>
if ($number_of_records >= 1){
$next_index = $initial_record + $number_records_to_display; //<2F><>ҳ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>Ŀ
if ($next_index > $number_of_records)
{
$next_index = $number_of_records;
}
$t1 = $initial_record + 1;
$prev_index = $initial_record - $number_records_to_display;
if ($prev_index < 0){
$prev_index = 0;
}
}
$show_initital_record=$initial_record+1;
?>
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<TR>
<TD width="50%"><?php echo "$strDisplayRecords:<FONT color=#0000ff>&nbsp;$show_initital_record - $next_index</FONT>, ($strTotalRecords:$number_of_records ) &nbsp;&nbsp;"; ?></TD>
<TD width="100" align="center">&nbsp;
<?php
//$number_of_records_on_current_page = mysqli_num_rows($csta_result);
//echo "$number_of_records_on_current_page<br>";
//<2F><><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF>Ʒ<EFBFBD>ҳ<EFBFBD><D2B3>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD>
if ($initial_record != 0)
{
$t1 = "initial_record=$prev_index&number_of_records=$number_of_records&table_name=$table_name&sel_date=$sel_date";
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type&sel_date=$sel_date\">";
?>
<IMG alt=ǰһҳ src="../../images/pre_page.gif" border="0"></a>&nbsp;
<?php
}
// NEW: Display a link for the next set of records.
if ($next_index != $number_of_records && $number_of_records >0 && $number_of_records > $number_records_to_display )
{
$t1 = "initial_record=$next_index&number_of_records=$number_of_records&table_name=$table_name&sel_date=$sel_date";
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type\">";
?>
<IMG alt=<3D><>һҳ src="../../images/next_page.gif" border="0"></a>
<?php
}
?>
</TD>
<form name="selectform" method="post" action="<?php echo "$PHP_SELF?initial_record=$prev_index&number_of_records=$number_of_records&where=$where&table_name=$table_name&call_type=$call_type";?>"
>
<TD align="center">
<?php echo "$strPage"; ?>
<select size="1" name="gotopage" onChange="javascript:goto()">
<?php
for($i=1;$i<=$all_page_num;$i++){
if($i== $page_num ){
echo "<option selected value=\"$i\" >$i</option>";
}else{
echo "<option value=\"$i\">$i</option>";
}
}
?>
</select></td>
</TR>
</TABLE>
<?php
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
//<2F><>ѯ<EFBFBD><D1AF><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD>myrows<77><73><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>
//<2F>ϳ<EFBFBD>sql<71><6C><EFBFBD><EFBFBD>
$order=" ORDER BY $sort_field $sort_direction";
$limit=" LIMIT $initial_record, $number_records_to_display";
$csta_sql="SELECT * FROM $table_name"."\n".$where.$order.$limit;
//echo "$csta_sql<br>";
$csta_result = mysqli_query($pubConn,$csta_sql);
$csta_rows = mysqli_fetch_array($csta_result);
?>
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
<tr bgcolor="#E6E6E6" align="center">
<td rowspan="2"><?php echo $strSystem; ?></td>
<td colspan="2"><?php echo $strMSsAddedBlackList; ?></td>
<td colspan="2"><?php echo $strMSsAddedGrayList; ?></td>
<td colspan="2"><?php echo $strMSsDeletedBlackList; ?></td>
<td colspan="2"><?php echo $strMSsDeletedGrayList; ?></td>
<td colspan="2"><?php echo $strTimesCheckingIMEI; ?></td>
<td rowspan="2"><?php echo "$strTime($timeItem)"; ?></td>
</tr>
<tr bgcolor="#E6E6E6" align="center">
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
<td><?php echo $strSuccess; ?></td>
<td><?php echo $strFailure; ?></td>
</tr>
<?php
do
{
?>
<tr>
<td align="center"><?php
echo "EIR"."$csta_rows[0]";?></td>
<td align="center"><?php echo "$csta_rows[mabls] ";?></td>
<td align="center"><?php echo "$csta_rows[mablf] ";?></td>
<td align="center"><?php echo "$csta_rows[magls] ";?></td>
<td align="center"><?php echo "$csta_rows[maglf] ";?></td>
<td align="center"><?php echo "$csta_rows[mdbls] ";?></td>
<td align="center"><?php echo "$csta_rows[mdblf] ";?></td>
<td align="center"><?php echo "$csta_rows[mdgls] ";?></td>
<td align="center"><?php echo "$csta_rows[mdglf] ";?></td>
<td align="center"><?php echo "$csta_rows[tcis] ";?></td>
<td align="center"><?php echo "$csta_rows[tcif] ";?></td>
<td align="center">
<?php
$tmpArray = explode(" ",$csta_rows[csta_datetime]);
echo "$tmpArray[1] ";
?>
</td>
</tr>
<?php
}while($csta_rows= mysqli_fetch_array($csta_result));
?>
</table>
<input type="hidden" name="where" value="<?php echo $where; ?>">
<input type="hidden" name="number_of_records" value="<?php echo $number_of_records; ?>">
<input type="hidden" name="sort_field" value="<?php echo $sort_field; ?>">
<input type="hidden" name="sel_date" value="<?php echo $sel_date; ?>"
</form>
<?php
adjust_content_tail("down");
?>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<?php
require("../../inc/header.inc");
?>
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
<frame name="header" scrolling="no" noresize target="main" src="dataQueryUp.php">
<frame name="main" src="dataQueryDown.php" scrolling="auto" target="_self">
<noframes>
<body>
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,85 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ʱ<EFBFBD>
<EFBFBD>޸<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*********************************************************/
require("../../inc/header.inc");
$helpId="6.8.7.2";
$day0=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
$day1=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-1,date("Y")));
$day2=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-2,date("Y")));
$day3=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-3,date("Y")));
$day4=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-4,date("Y")));
$day5=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-5,date("Y")));
$day6=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-6,date("Y")));
?>
<script language="javascript">
function selPage(){
var url,sel_date;
sel_date=document.selectform.sel_date.value;
url="./dataQueryDown.php?sel_date="+sel_date;
window.parent.main.location.href=url;
}
</script>
<base target="main">
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<form method="POST" action="./dataQueryDown.php" name="selectform">
<?php
adjust_head_frame("up");
adjust_title_head_frame("up");
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" alig\"left\">";
echo "$strAdvanced > $strPerformance > EIR > Data";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
// showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td alig\"left\">";
?>
<select style="font-family: Verdana; font-size: 8pt" name="sel_date" size=1 onChange="javascript:selPage()">
<?php
echo "<OPTION value=\"0\">$day0</OPTION>";
echo "<OPTION value=\"1\">$day1</OPTION>";
echo "<OPTION value=\"2\">$day2</OPTION>";
echo "<OPTION value=\"3\">$day3</OPTION>";
echo "<OPTION value=\"4\">$day4</OPTION>";
echo "<OPTION value=\"5\">$day5</OPTION>";
echo "<OPTION value=\"6\">$day6</OPTION>";
?>
</SELECT>
<?php
echo "</td>";
echo "<td align=\"right\">";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail_frame("up");
adjust_content_head_frame("up");
adjust_content_tail_frame("up");
?>
</form>
</body>
</html>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

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

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Some files were not shown because too many files have changed in this diff Show More