init web ems all
This commit is contained in:
1 parent
81c97acbe9
commit
5cc56f8078
4263 files changed
+798779
No files matched your search
+159
@@ -0,0 +1,159 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:进行话务分析
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:Cui Ticun 2004-12-14
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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")));//表头显示时间
|
||||
|
||||
$sel_field_list= @mysql_list_fields($db,$table_name);
|
||||
if(!$sel_field_list)
|
||||
{
|
||||
echo "<br>$strNotFindRecord.";
|
||||
exit();
|
||||
}
|
||||
$strServerStatistics = "Server statistics";
|
||||
//-------确定日期范围-----
|
||||
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语句的时间限制组成部分为$w1,系统id限制为$w2 */
|
||||
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//合成where语句
|
||||
$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>
|
||||
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%\"> </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> $sum_row[pps_service_attempt]</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Success</td>";
|
||||
echo " <td> $sum_row[pps_service_success]</td>";
|
||||
echo " </tr>";
|
||||
echo " <td rowspan=\"2\">MSC Service</td>";
|
||||
echo " <td>Attempt</td>";
|
||||
echo " <td> $sum_row[msc_service_attempt]</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Success</td>";
|
||||
echo " <td> $sum_row[msc_service_success]</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Invalid</td>";
|
||||
echo " <td>Invalid Calls</td>";
|
||||
echo " <td> $sum_row[invalid_call]</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
adjust_content_tail("down");
|
||||
?>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
+16
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:Cui Ticun 2002-03-13
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>
|
||||
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:进行话务查询
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:Cui Ticun 2004-12-14
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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'; //排序所依赖的字段名
|
||||
$number_records_to_display = 200; //每页纪录数
|
||||
$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
|
||||
//合成sql语句
|
||||
$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);
|
||||
|
||||
//显示表头
|
||||
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>";
|
||||
|
||||
//显示表的记录
|
||||
$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>
|
||||
+17
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
Executable
+96
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:Cui Ticun 2004-12-14
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>
|
||||
+434
@@ -0,0 +1,434 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:进行话务分析
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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")));//表头显示时间
|
||||
|
||||
$sel_field_list= @mysql_list_fields($db,$table_name);
|
||||
if(!$sel_field_list)
|
||||
{
|
||||
echo "<br>$strNotFindRecord.";
|
||||
exit();
|
||||
}
|
||||
|
||||
if($language == 'eng'){
|
||||
|
||||
}else{
|
||||
|
||||
}
|
||||
|
||||
//-------确定日期范围-----
|
||||
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语句的时间限制组成部分为$w1,系统id限制为$w2 */
|
||||
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//合成where语句
|
||||
$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>
|
||||
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"> <?php echo "$auc_auth_suc";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$auc_auth_fail";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$auc_created_sub_suc";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$auc_created_sub_fail";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$auc_del_sub_suc";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$auc_del_sub_fail";?></td>
|
||||
<td width="151" height="16">
|
||||
<p align="center"> <?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"> <?php echo "$hlr_created_sub_suc";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$hlr_created_sub_fail";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$hlr_del_sub_suc";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$hlr_del_sub_fail";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$int_sub_suc";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$int_sub_fail";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <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> </td>
|
||||
<td width=80><?php echo "$strAUCAuthorization";?></td>
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strAUCCreateCustomer";?></td>
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strAUCDeleteCustomer";?></td>
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strHLRCreateCustomer";?></td>
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strHLRDeleteCustomer";?></td>
|
||||
<td width=20> </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>
|
||||
+17
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>
|
||||
|
||||
+263
@@ -0,0 +1,263 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:进行话务查询,并删除所查询的话务
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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'; //排序所依赖的字段名
|
||||
$sort_direction = 'DESC'; //排序顺序
|
||||
$number_records_to_display = 200; //每页纪录数
|
||||
$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) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? stripslashes($where) : ''; //解除一些'/'
|
||||
//删除所查询的内容
|
||||
if($delete){
|
||||
$sql_query="DELETE FROM $table_name ".$where;
|
||||
$sql_query=urlencode($sql_query); //将该字符串编码,适合传递
|
||||
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
|
||||
// 初始化变量
|
||||
if (!$number_of_records){//跳转页面不进行初始化
|
||||
//-------确定日期范围-----
|
||||
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语句的时间限制组成部分为$w1,系统id限制为$w2 */
|
||||
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//合成where语句
|
||||
$where=" WHERE".$w1;
|
||||
|
||||
$initial_record = 0;//初始纪录号
|
||||
|
||||
$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; //该页页码
|
||||
$all_page_num= ceil($number_of_records / $number_records_to_display); //总页码
|
||||
if ($number_of_records >= 1){
|
||||
$next_index = $initial_record + $number_records_to_display; //本页的结束数目
|
||||
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> $show_initital_record - $next_index</FONT>, ($strTotalRecords:$number_of_records ) "; ?></TD>
|
||||
<TD width="100" align="center">
|
||||
<?php
|
||||
//$number_of_records_on_current_page = mysqli_num_rows($csta_result);
|
||||
//echo "$number_of_records_on_current_page<br>";
|
||||
//下面是控制分页显示,传递变量
|
||||
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); //将该字符串编码,适合传递
|
||||
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>
|
||||
<?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); //将该字符串编码,适合传递
|
||||
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type\">";
|
||||
?>
|
||||
<IMG alt=下一页 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) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? urldecode($where) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? stripslashes($where) : ''; //解除一些'/'
|
||||
|
||||
//查询数据并放入myrows数租中。
|
||||
//合成sql语句
|
||||
$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>
|
||||
+17
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
Executable
+82
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>
|
||||
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
+74
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务统计数据的显示
|
||||
|
||||
调用关系:调用:header.inc,lib.inc
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名 :
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db = $bss_db;
|
||||
$table = "OMCR_BtsMeasurements";
|
||||
$DEBUG = 0;
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
|
||||
if($DEBUG) echo "<br>$selected_field_list";
|
||||
$select_sql_bgn = "SELECT ";
|
||||
$select_sql_end = " FROM $table
|
||||
WHERE CellIdentity = '$cell_id'
|
||||
AND startTime >= '$date_bgn'
|
||||
AND endTime <= '$date_end'
|
||||
ORDER BY startTime,bssid
|
||||
";
|
||||
$fields_arr = explode('>',$selected_field_list);
|
||||
$field_num = sizeof($fields_arr);
|
||||
for($i=1; $i<$field_num; $i++){
|
||||
if($i < $field_num-1){
|
||||
$select_sql_bgn = $select_sql_bgn ." $fields_arr[$i],";
|
||||
}else{
|
||||
$select_sql_bgn = $select_sql_bgn ." $fields_arr[$i] ";
|
||||
}
|
||||
}
|
||||
$select_sql = $select_sql_bgn.$select_sql_end;
|
||||
if($DEBUG) echo "<br> $select_sql";
|
||||
?>
|
||||
<form method="POST" action="./data_list.php" name="selectform">
|
||||
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<?php
|
||||
echo "<tr bgcolor=\"E6E6E6\" >";
|
||||
for($i=1; $i<$field_num; $i++){
|
||||
echo "<td>{$fields_arr[$i]}</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
$result = mysqli_query($pubConn,$select_sql);
|
||||
$rows = mysqli_fetch_array($result);
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows){
|
||||
echo "<tr>";
|
||||
for($i=1; $i<$field_num; $i++){
|
||||
echo "<td>{$rows[$i]}</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</TABLE>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务统计数据的显示
|
||||
|
||||
调用关系:调用:header.inc,lib.inc
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名 :
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>请输入要显示数据的范围:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>小区编号:<input type="text" name="cell_id" size="5"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
开始日期:<input type="text" name="date_bgn" size="20" maxlength="19">
|
||||
<br>结束日期:<input type="text" name="date_end" size="20" maxlength="19">
|
||||
<br>(日期格式:YYYY-MM-DD hh:mm:ss 例:2002-01-15 14:32:18)
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="E6E6E6">
|
||||
<td>请选择要显示的列:</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="确定"> <input type="reset" value="取消">
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+489
@@ -0,0 +1,489 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务统计,各个BTS的erlang列表和柱状图显示
|
||||
|
||||
调用关系:调用: header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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个元素
|
||||
}
|
||||
/*
|
||||
$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
|
||||
//------------------------------显示标题,日期--------------------------------------
|
||||
?>
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum $strErlang $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<?php
|
||||
//------------------------------显示列表--------------------------------------
|
||||
?>
|
||||
<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;
|
||||
//-----图片背景和坐标,标示等基本元素,请勿修改这部分
|
||||
$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)));
|
||||
|
||||
//背景
|
||||
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);
|
||||
|
||||
//图表名称
|
||||
Imagestring($im, 2, 300,5, $title, $text_color);
|
||||
|
||||
//边框
|
||||
$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);
|
||||
|
||||
//竖网格及标注
|
||||
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);
|
||||
}
|
||||
|
||||
//横网格及标注
|
||||
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);
|
||||
}
|
||||
|
||||
//色块图标及说明
|
||||
$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++)
|
||||
{
|
||||
//画线条
|
||||
imageline($im,$pointArr[$i][$j*2],$pointArr[$i][$j*2+1],$pointArr[$i][$j*2+2],$pointArr[$i][$j*2+3],$tmpColor[$i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----输出图形文件,请勿修改
|
||||
//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);
|
||||
}
|
||||
|
||||
//-----显示图片
|
||||
echo "<body topmargin=\"0\" leftmargin=\"5\">";
|
||||
echo "<img src=\"$filename\">";
|
||||
echo "</body>";
|
||||
exit;
|
||||
}//end if.
|
||||
//刻度线图片
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//求图像高度的基数 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; //算出最大刻度,该值是个整数
|
||||
$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,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24);
|
||||
//显示图例,需要和$show_field保持一致
|
||||
//$legend_def=array(''); //erlang只用一种颜色显示
|
||||
|
||||
//显示图例色彩,需要和$show_field保持一致
|
||||
//$legend_color=array('blue',.....,'blue');//erlang只用一种颜色显示
|
||||
//------------------------------显示图例--------------------------------------
|
||||
?>
|
||||
<!--
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
//for($i=0;$i<sizeof($legend_def);$i++){
|
||||
// echo "<td width=\"10\">";
|
||||
// showImg($i,10,10);
|
||||
// echo "</td>";
|
||||
// echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
//}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
-->
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(){
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_first_num = 12;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=1;i <= max_first_num;i++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+j;
|
||||
temp_input_name='img'+i+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for(i=1;i<=12;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
echo "Erlang (hour):<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
//-----------------------------显示柱状图-------------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
if($DEBUG) echo "<br>btsBgnNo=$btsBgnNo,btsArray[$bts_num][$arrNum] ={$btsArray[$bts_num][$arrNum]}";
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$num = $i;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$strErlang $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
//显示每个bts的柱状图
|
||||
for($k=0;$k<sizeof($show_field);$k++){
|
||||
$arrNum = $show_field[$k];
|
||||
$alt = $k.':00 = '.$btsArray[$bts_num][$arrNum].' Erlang';
|
||||
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
|
||||
$width = 19;
|
||||
$imgName = 'img'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg('blue',$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">$BTS_ID_1</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
+15
@@ -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>
|
||||
Executable
+117
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用: connectdb.inc,header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:$language_version_TS是保存在session中的语言版本信息
|
||||
$len_of_subsys_num是在公共变量文件config.inc定义的系统ID长度变量
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.3";
|
||||
$ThisPage = "$strTitlePerformance > BSS > Erlang";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="Erlang_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 class="text">
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" class="button" name="search">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true">
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
+473
@@ -0,0 +1,473 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:查询话务流量
|
||||
|
||||
调用关系:调用: header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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
|
||||
//------------------------------显示标题,日期--------------------------------------
|
||||
?>
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum Handover $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strDate:$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<?php
|
||||
//------------------------------显示列表--------------------------------------
|
||||
?>
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR align=\"center\"><TD colspan=\"2\"> </TD><TD colspan=\"8\"> $strInsterBSC </TD><TD colspan=\"7\"> $strInstraBSC </TD></TR>";
|
||||
echo "<TD>BTS ID</TD>";
|
||||
echo "<TD>$strCellID</TD>";
|
||||
//---inter---
|
||||
echo "<TD>OutAtt</TD>";
|
||||
echo "<TD>OutReq</TD>";
|
||||
echo "<TD>OutSucc</TD>";
|
||||
echo "<TD>OutFail</TD>";
|
||||
echo "<TD>OutSucc (%)</TD>";
|
||||
echo "<TD>InAtt</TD>";
|
||||
echo "<TD>InSucc</TD>";
|
||||
echo "<TD>InSucc (%)</TD>";
|
||||
//---intra---
|
||||
echo "<TD>OutAtt</TD>";
|
||||
echo "<TD>OutSucc</TD>";
|
||||
echo "<TD>OutFail</TD>";
|
||||
echo "<TD>OutSucc (%)</TD>";
|
||||
echo "<TD>InAtt</TD>";
|
||||
echo "<TD>InSucc</TD>";
|
||||
echo "<TD>InSucc (%)</TD>";
|
||||
echo "</TR>";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
|
||||
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql<br>";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
$sum_sql="SELECT
|
||||
CellIdentity as CellIdentity,
|
||||
SUM(HoIntraBSCAtmpt) AS sum_att,
|
||||
SUM(succOutgoingInternalInterCellHDOs) AS sum_succ,
|
||||
SUM(HoIntraBscLostMs) AS sum_drop,
|
||||
SUM(HoIntraBSCIn) AS sum_insucc,
|
||||
SUM(FailIncomingHDOs) AS sum_infail
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id'
|
||||
GROUP BY CellIdentity
|
||||
";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
//echo "<br>$sel_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][7]=$rows[sum_att];
|
||||
$btsArray[$i][8]=$rows[sum_succ];
|
||||
$btsArray[$i][9]=$rows[sum_drop];
|
||||
$btsArray[$i][10]=$rows[sum_insucc];
|
||||
$btsArray[$i][11]=$rows[sum_infail];
|
||||
}
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][2]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][1]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
|
||||
$InterOutDrop=($btsArray[$i][2] - $btsArray[$i][3] - $btsArray[$i][4])*100;
|
||||
echo "<TD> $InterOutDrop</TD>";
|
||||
if($btsArray[$i][2] > 0){
|
||||
$SuccRate = ($btsArray[$i][3] / $btsArray[$i][2])* 100;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
|
||||
echo "<TD> {$btsArray[$i][5]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][6]}</TD>";
|
||||
if($btsArray[$i][5] > 0){
|
||||
$SuccRate = ($btsArray[$i][6] / $btsArray[$i][5]) * 100;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
echo "<TD> {$btsArray[$i][7]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][8]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][9]}</TD>";
|
||||
if($btsArray[$i][7] > 0){
|
||||
$SuccRate = ($btsArray[$i][8] / $btsArray[$i][7]) * 100;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
$IntraInAtt=$btsArray[$i][10]+$btsArray[$i][11];
|
||||
echo "<TD> $IntraInAtt</TD>";
|
||||
echo "<TD> {$btsArray[$i][10]}</TD>";
|
||||
if($IntraInAtt > 0){
|
||||
$SuccRate=($btsArray[$i][10] / ($btsArray[$i][10]+$btsArray[$i][11])) * 100;;
|
||||
$SuccRate = sprintf("%01.2f",$SuccRate);
|
||||
echo "<TD> $SuccRate"."%</TD>";
|
||||
}else{
|
||||
echo "<TD> --</TD>";
|
||||
}
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//刻度线图片
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//求图像高度的基数 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; //算出最大刻度,该值是个整数
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
//需要显示成柱状图的$btsArray[bts_num][j]元素编号j
|
||||
$show_field=array(2,3,5,6,7,8,10,11);
|
||||
|
||||
//显示图例名称定义,需要和$show_field保持一致
|
||||
$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',);
|
||||
|
||||
//显示图例色彩,需要和$show_field保持一致
|
||||
$legend_color=array('blue','green','blue','green','blue','green','blue','green');
|
||||
|
||||
//------------------------------显示图例--------------------------------------
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
for($i=0;$i<sizeof($legend_def);$i++){
|
||||
echo "<td width=\"10\">";
|
||||
showImg($legend_color[$i],10,10);
|
||||
echo "</td>";
|
||||
echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
if($i == 3){
|
||||
echo "<tr>";
|
||||
echo "<td width=\"60\"> </td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(max_first_num){
|
||||
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=0;i < max_first_num;i++){
|
||||
for(k=0;k<3;k++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+k+'_'+j;
|
||||
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(i=0;i<4;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
//echo "$strHandover:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
//echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
//echo "<br>";
|
||||
//------------------------------显示柱状图----------------------------------
|
||||
|
||||
$bts_num=$btsBgnNo;
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "$strHandover:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$btsmgr_list[$i]:TCH($strHOExplain) $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//显示每个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;
|
||||
$width = 19;
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
+15
@@ -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>
|
||||
Executable
+118
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用: connectdb.inc,header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:$language_version_TS是保存在session中的语言版本信息
|
||||
$len_of_subsys_num是在公共变量文件config.inc定义的系统ID长度变量
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.5";
|
||||
$ThisPage = "$strTitlePerformance > BSS > $strHandover";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="Handover_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
+385
@@ -0,0 +1,385 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:查询话务流量
|
||||
|
||||
调用关系:调用: header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db=$bss_db;
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp0;
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
|
||||
}
|
||||
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
$result_rows=mysqli_fetch_array($sel_result);
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1];
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
}while($result_rows=mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
}
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(ID) {
|
||||
which=eval(ID);
|
||||
if(which.style.display == "none") {
|
||||
which.style.display = "block";
|
||||
signRemark.style.display = "block";
|
||||
}else {
|
||||
which.style.display = "none";
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<body leftmargin=12 topmargin=0>
|
||||
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum $strReceiveLevelAndQuality $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR>";
|
||||
echo "<TD width=\"12%\">BTS ID</TD>";
|
||||
echo "<TD width=\"12%\">$strCellID</TD>";
|
||||
echo "<TD width=\"12%\">UL Rx level</TD>";
|
||||
echo "<TD width=\"12%\">DL Rx level</TD>";
|
||||
echo "<TD width=\"12%\">UL Rx quality</TD>";
|
||||
echo "<TD width=\"12%\">DL Rx quality</TD>";
|
||||
echo "</TR>";
|
||||
//echo "ddd = $btsEndNo";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
|
||||
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql<br>";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
|
||||
$sum_sql="SELECT CellIdentity as CellIdentity,
|
||||
8*(
|
||||
0.5*SUM(UplinkAvgSignal_0)+1.5*SUM(UplinkAvgSignal_1)+2.5*SUM(UplinkAvgSignal_2)+3.5*SUM(UplinkAvgSignal_3)
|
||||
+4.5*SUM(UplinkAvgSignal_4)+5.5*SUM(UplinkAvgSignal_5)+6.5*SUM(UplinkAvgSignal_6)+7.5*SUM(UplinkAvgSignal_7)
|
||||
) / (SUM(UplinkAvgSignal_0)+SUM(UplinkAvgSignal_1)+SUM(UplinkAvgSignal_2)+SUM(UplinkAvgSignal_3)
|
||||
+SUM(UplinkAvgSignal_4)+SUM(UplinkAvgSignal_5)+SUM(UplinkAvgSignal_6)+SUM(UplinkAvgSignal_7)
|
||||
) as UL_level,
|
||||
8*(
|
||||
0.5*SUM(DownlinkAvgSignal_0)+1.5*SUM(DownlinkAvgSignal_1)+2.5*SUM(DownlinkAvgSignal_2)+3.5*SUM(DownlinkAvgSignal_3)
|
||||
+4.5*SUM(DownlinkAvgSignal_4)+5.5*SUM(DownlinkAvgSignal_5)+6.5*SUM(DownlinkAvgSignal_6)+7.5*SUM(DownlinkAvgSignal_7))
|
||||
/ (SUM(DownlinkAvgSignal_0)+SUM(DownlinkAvgSignal_1)+SUM(DownlinkAvgSignal_2)+SUM(DownlinkAvgSignal_3)
|
||||
+SUM(DownlinkAvgSignal_4)+SUM(DownlinkAvgSignal_5)+SUM(DownlinkAvgSignal_6)+SUM(DownlinkAvgSignal_7)
|
||||
) as DL_level,
|
||||
(SUM(TotalQualityDurationUL_0)*0+SUM(TotalQualityDurationUL_1)+SUM(TotalQualityDurationUL_2)*2+SUM(TotalQualityDurationUL_3)*3+SUM(TotalQualityDurationUL_4)*4
|
||||
+SUM(TotalQualityDurationUL_5)*5+SUM(TotalQualityDurationUL_6)*6+SUM(TotalQualityDurationUL_7)*7)
|
||||
/ SUM(TotalQualityDurationUL_0+TotalQualityDurationUL_1+TotalQualityDurationUL_2+TotalQualityDurationUL_3
|
||||
+TotalQualityDurationUL_4+TotalQualityDurationUL_5+TotalQualityDurationUL_6+TotalQualityDurationUL_7) as UL_quality,
|
||||
(SUM(TotalQualityDurationDL_0)*0+SUM(TotalQualityDurationDL_1)+SUM(TotalQualityDurationDL_2)*2+SUM(TotalQualityDurationDL_3)*3+SUM(TotalQualityDurationDL_4)*4
|
||||
+SUM(TotalQualityDurationDL_5)*5+SUM(TotalQualityDurationDL_6)*6+SUM(TotalQualityDurationDL_7)*7)
|
||||
/ SUM(TotalQualityDurationDL_0+TotalQualityDurationDL_1+TotalQualityDurationDL_2+TotalQualityDurationDL_3
|
||||
+TotalQualityDurationDL_4+TotalQualityDurationDL_5+TotalQualityDurationDL_6+TotalQualityDurationDL_7) as DL_quality
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id' GROUP BY CellIdentity";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
//echo "<br>$sel_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][1]=$rows[UL_level];
|
||||
$btsArray[$i][2]=$rows[DL_level];
|
||||
$btsArray[$i][3]=$rows[UL_quality];
|
||||
$btsArray[$i][4]=$rows[DL_quality];
|
||||
|
||||
}
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> ".round($btsArray[$i][1])."</TD>";
|
||||
echo "<TD> ".round($btsArray[$i][2])."</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][4]}</TD>";
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//刻度线图片
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//求图像高度的基数 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; //算出最大刻度,该值是个整数
|
||||
$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);
|
||||
$show_field=array(1,2);
|
||||
|
||||
//显示图例名称定义,需要和$show_field保持一致
|
||||
//$legend_def=array('UL Rx Level','DL Rx Level','UL Rx Quality','DL Rx Quality');
|
||||
$legend_def=array('UL Rx level','DL Rx level');
|
||||
|
||||
//显示图例色彩,需要和$show_field保持一致
|
||||
$legend_color=array('blue','orange');
|
||||
|
||||
//------------------------------显示图例--------------------------------------
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
for($i=0;$i<sizeof($legend_def);$i++){
|
||||
echo "<td width=\"10\">";
|
||||
showImg($legend_color[$i],10,10);
|
||||
echo "</td>";
|
||||
echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(max_first_num){
|
||||
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=0;i < max_first_num;i++){
|
||||
for(k=0;k<3;k++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+k+'_'+j;
|
||||
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(i=0;i<4;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
//echo "Receive quality:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
//echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
//echo "<br>";
|
||||
//------------------------------显示柱状图----------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "Receive quality:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$btsmgr_list[$i]:TCH($strTCHExplain) $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//显示每个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;
|
||||
$width = 19;
|
||||
//$imgName = 'img'.$j.'_'.$k;
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="ReceLevAndQua_up.php">
|
||||
<frame name="main" src="ReceLevAndQua_down.php" scrolling="auto" target="_self">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用: connectdb.inc,header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:$language_version_TS是保存在session中的语言版本信息
|
||||
$len_of_subsys_num是在公共变量文件config.inc定义的系统ID长度变量
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.4";
|
||||
$ThisPage = "$strTitlePerformance > BSS > $strReceiveLevelAndQuality";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="ReceLevAndQua_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+394
@@ -0,0 +1,394 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:查询话务流量
|
||||
|
||||
调用关系:调用: header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db=$bss_db;
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp);
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
|
||||
}
|
||||
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
$result_rows=mysqli_fetch_array($sel_result);
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1];
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
}while($result_rows=mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
}
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(ID) {
|
||||
which=eval(ID);
|
||||
if(which.style.display == "none") {
|
||||
which.style.display = "block";
|
||||
signRemark.style.display = "block";
|
||||
}else {
|
||||
which.style.display = "none";
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<body leftmargin=12 topmargin=0>
|
||||
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<nobr><font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum SDCCH($strSDCCHExplain) $strStatistics </b></font></nobr>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo ":$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR>";
|
||||
echo "<TD width=\"12%\">BTS ID</TD>";
|
||||
echo "<TD width=\"12%\">$strCellID </TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strAttSDCCH\">SDCCH attempt</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strFailSDCCH\">SDCCH failure</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strDCCHFailRate\">SDCCH Failure (%)</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strRFDrop\">RF Failure</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strDrop\">Failure</TD>";
|
||||
echo "<TD width=\"12%\" title=\"$strDropRate\">Failure (%)</TD>";
|
||||
echo "</TR>";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND ObjectId like '$cell_object[$i]' AND bssid=$bss_id";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
|
||||
$sum_sql="SELECT
|
||||
CellIdentity as CellIdentity,
|
||||
SUM(attSDCCHSeizures) as sum_attSDCCH,
|
||||
SUM(attSDCCHSeizuresFailures) as sum_failSDCCH,
|
||||
SUM(chanReqMSFail) as sum_CRMSfail,
|
||||
SUM(SDCCHRadioFail) as sum_SDCCHRfail,
|
||||
SUM(SDCCHBssDrop) as sum_SDCCHdrop
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id'
|
||||
GROUP BY CellIdentity
|
||||
";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
//echo "<br>$sel_sql<br> ";
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=mysqli_fetch_array($sel_result)){
|
||||
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][1]=$rows[sum_attSDCCH];
|
||||
$btsArray[$i][2]=$rows[sum_failSDCCH];
|
||||
$btsArray[$i][3]=$rows[sum_CRMSfail];
|
||||
$btsArray[$i][4]=$rows[sum_SDCCHRfail];
|
||||
$btsArray[$i][5]=$rows[sum_SDCCHdrop];
|
||||
}
|
||||
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][1]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][2]}</TD>";
|
||||
if($btsArray[$i][1] <= 0){
|
||||
$SDCCHFailRate=0;
|
||||
}else{
|
||||
$SDCCHFailRate = $btsArray[$i][2]/$btsArray[$i][1]*100;
|
||||
$SDCCHFailRate = sprintf("%01.2f",$SDCCHFailRate);
|
||||
}
|
||||
echo "<TD> $SDCCHFailRate"."%</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
$Drop=$btsArray[$i][4]+$btsArray[$i][5];
|
||||
echo "<TD> $Drop</TD>";
|
||||
if($btsArray[$i][1] <=0){
|
||||
$DropRate=0;
|
||||
}else{
|
||||
$DropRate = $Drop/$btsArray[$i][1]*100;
|
||||
$DropRate = sprintf("%01.2f",$DropRate);
|
||||
}
|
||||
echo "<TD> $DropRate"."%</TD>";
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//刻度线图片
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//求图像高度的基数 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; //算出最大刻度,该值是个整数
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
//需要显示成柱状图的$btsArray[bts_num][j]元素编号j
|
||||
$show_field=array(1,2,4,5);
|
||||
|
||||
//显示图例名称定义,需要和$show_field保持一致
|
||||
$legend_def=array('SDCCH attempt','SDCCH failure','RF failure','Failure');
|
||||
|
||||
//显示图例色彩,需要和$show_field保持一致
|
||||
$legend_color=array('blue','orange','yellow','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
|
||||
//echo "SDCCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
//echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum()\" class=\"button\"> ";
|
||||
//echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
//echo "<br>";
|
||||
//------------------------------显示柱状图----------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "SDCCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<b>
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>BtsMgr.$btsmgrcont[1]:SDCCH($strSDCCHExplain) $strStatistics</b>";
|
||||
?>
|
||||
</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//显示每个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;
|
||||
$width = 19;
|
||||
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="100" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+15
@@ -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>
|
||||
Executable
+117
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用: connectdb.inc,header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:$language_version_TS是保存在session中的语言版本信息
|
||||
$len_of_subsys_num是在公共变量文件config.inc定义的系统ID长度变量
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.2";
|
||||
$ThisPage = "$strTitlePerformance > BSS > SDCCH";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="SDCCH_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+385
@@ -0,0 +1,385 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
.....
|
||||
...........
|
||||
|
||||
.......: header.inc
|
||||
...:
|
||||
|
||||
.....
|
||||
|
||||
.....
|
||||
|
||||
...
|
||||
|
||||
.....
|
||||
NO.1
|
||||
...
|
||||
...
|
||||
.....
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$db=$bss_db;
|
||||
$node_table = 'OMCR_BSSTREE';
|
||||
$csta_table = 'OMCR_BtsMeasurements';
|
||||
$bts_table = 'OMCR_Bts';
|
||||
|
||||
if(!isset($bss_id)){
|
||||
$bss_id= 0;
|
||||
}
|
||||
$sqlstring = "select BsPlus,BsPlusMaxExtBtsMgr from OMCR_BssFunc where bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
$row = mysqli_fetch_row($result);
|
||||
$isbsplus = $row[0];
|
||||
|
||||
if($isbsplus == 0)
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and ObjectId not like 'Bts.0%' and Presence=1 and bssid=$bss_id";
|
||||
else
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'Bts.%' and Presence=1 and bssid=$bss_id";
|
||||
//echo $sqlstring . "<BR>";
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($cell_object[]) =$row;
|
||||
}
|
||||
$no_of_cell = count($cell_object);
|
||||
|
||||
$btsBgnNo=0;
|
||||
$btsEndNo=$no_of_cell;
|
||||
|
||||
//----------------------get BssId <--> CellIdentity----------------------
|
||||
//---init this bsc's bts array---
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
//$btsArray[$i]=array(cellid,MO,MT,LU,SS,AttTCH,SuccTCH,RFDorp);
|
||||
$btsArray[$i]=array(0,0,0,0,0,0,0,0);
|
||||
}
|
||||
/*$sel_sql="SELECT ObjectId,CellIdentity FROM OMCR_Bts WHERE CellIdentity >='0' AND bssid='$bss_id'";
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_rows=@mysqli_fetch_array($sel_result);
|
||||
do{
|
||||
$temp_bts_id = $result_rows[ObjectId]; //like"Bts.1.0"
|
||||
$temp_bts_id = explode('.',$temp_bts_id);
|
||||
$temp_bts_id = $temp_bts_id[1]; //here Bts's ID =bts change by hewd 2003-02-27
|
||||
|
||||
$temp_cell_id= $result_rows[CellIdentity];
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$temp_bts_id][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
}while($result_rows=@mysqli_fetch_array($sel_result));
|
||||
*/
|
||||
|
||||
//-----------get where---------------
|
||||
|
||||
$where=" bssid='$bss_id' ";
|
||||
//data
|
||||
if(isset($sel_date)){
|
||||
$bgn_date=$sel_date.' '.$hou_1.':'.$mid_1.':'.$sec_1;
|
||||
$end_date=$sel_date.' '.$hou_2.':'.$mid_2.':'.$sec_2;
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
}else{
|
||||
$bgn_date =date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date =date("Y-m-d H:i:s",mktime());
|
||||
$where = $where." AND startTime >=UNIX_TIMESTAMP('$bgn_date') AND EndTime <=UNIX_TIMESTAMP('$end_date')";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(ID) {
|
||||
which=eval(ID);
|
||||
if(which.style.display == "none") {
|
||||
which.style.display = "block";
|
||||
signRemark.style.display = "block";
|
||||
}else {
|
||||
which.style.display = "none";
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<body leftmargin=12 topmargin=0>
|
||||
|
||||
<TABLE border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD>
|
||||
<?php
|
||||
$bscNum=(strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
echo "<font color=\"#0000ff\" size=\"2\"><b>BSS"."$bscNum TCH($strTCHExplain) $strStatistics </b></font>";
|
||||
?>
|
||||
</TD>
|
||||
<TD align="right">
|
||||
<?php echo "$strFrom<font color=\"#0000ff\"> $bgn_date</font> $strTo <font color=\"#0000ff\">$end_date</font>";?>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<?php
|
||||
echo "<TR>";
|
||||
echo "<TD width=\"10%\">BTS ID</TD>";
|
||||
echo "<TD width=\"10%\"> $strCellID </TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strMOExplain\">MO call</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strMTExplain\">MT call</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strLUExplain_1\">LU</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strSSExplain\">SS</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strAttempt\">TCH attempt</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strSuccess\">TCH success</TD>";
|
||||
echo "<TD width=\"10%\" title=\"$strRFExplain"."$strDrop\">RF failure</TD>";
|
||||
echo "</TR>";
|
||||
//$bss_id = (strlen($bss_id)<2)?'0'.$bss_id:$bss_id;
|
||||
for($i=$btsBgnNo; $i < $btsEndNo; $i++){
|
||||
//$bts_num=($i<10)?'0'.$i:$i;
|
||||
$cellcont = explode(".",$cell_object[$i]);
|
||||
|
||||
|
||||
$sel_sql="SELECT CellIdentity FROM OMCR_Bts WHERE CellIdentity >=0 AND ObjectId like '$cell_object[$i]%' AND bssid=$bss_id";
|
||||
|
||||
$sel_result=mysqli_query($pubConn,$sel_sql);
|
||||
//echo "<br>sel_sql=$sel_sql<br>";
|
||||
echo mysqli_error($pubConn);
|
||||
$result_row=@mysqli_fetch_row($sel_result);
|
||||
$temp_cell_id = $result_row[0];
|
||||
|
||||
if($temp_cell_id > 0){
|
||||
$btsArray[$i][0]= $temp_cell_id;
|
||||
//echo "<br>btsArray[$temp_bts_id][0]= $temp_cell_id";
|
||||
}
|
||||
$sum_sql="SELECT
|
||||
bssid,CellIdentity,
|
||||
SUM(succAccProcCMOrigCall) as sum_MO,
|
||||
SUM(succAccProcPageRsp) as sum_MT,
|
||||
SUM(succAccProcLocUpd) as sum_LU,
|
||||
SUM(succAccProcCMSs) as sum_SS,
|
||||
SUM(attTCHSeizures) as sum_AttTCH,
|
||||
SUM(succTCHSeizures) as sum_SuccTCH,
|
||||
SUM(TCHRadioFail) as sum_RFDorp
|
||||
FROM $csta_table
|
||||
WHERE $where AND CellIdentity = '$temp_cell_id' GROUP BY CellIdentity";
|
||||
|
||||
|
||||
//echo "<br>$sum_sql<br> ";
|
||||
$sel_result=mysqli_query($pubConn,$sum_sql);
|
||||
echo mysqli_error($pubConn);
|
||||
while($rows=@mysqli_fetch_array($sel_result)){
|
||||
$btsArray[$i][0]=$rows[CellIdentity];
|
||||
$btsArray[$i][1]=$rows[sum_MO];
|
||||
echo "MO-{$btsArray[$i][1]}<br>";
|
||||
$btsArray[$i][2]=$rows[sum_MT];
|
||||
$btsArray[$i][3]=$rows[sum_LU];
|
||||
$btsArray[$i][4]=$rows[sum_SS];
|
||||
$btsArray[$i][5]=$rows[sum_AttTCH];
|
||||
$btsArray[$i][6]=$rows[sum_SuccTCH];
|
||||
$btsArray[$i][7]=$rows[sum_RFDorp];
|
||||
}
|
||||
|
||||
if($btsArray[$i][0] > 0){
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> {$btsArray[$i][0]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][1]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][2]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][3]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][4]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][5]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][6]}</TD>";
|
||||
echo "<TD> {$btsArray[$i][7]}</TD>";
|
||||
echo "</TR>";
|
||||
}else{
|
||||
echo "<TR>";
|
||||
echo "<TD>Bts.$cellcont[1].$cellcont[2]</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "<TD> --</TD>";
|
||||
echo "</TR>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br><br>
|
||||
<?php
|
||||
//.....
|
||||
$dot_img="<img border=\"0\" src=\"../../images/Icon-0.gif\" width=\"2\" height=\"1\">";
|
||||
|
||||
//........ get the Division by number
|
||||
//$base_field=5; //$btsArray[bts_num][j]'s j
|
||||
for($base_field=1;$base_field<8;$base_field++){
|
||||
for($i=$btsBgnNo; $i <= $btsEndNo; $i++){
|
||||
$max_number=($btsArray[$i][$base_field] > $max_number)?$btsArray[$i][$base_field]:$max_number;
|
||||
}
|
||||
}
|
||||
//echo "max_number=$max_number";
|
||||
$top_number =(round($max_number/100)+1)*100; //.............
|
||||
$base_number=round($top_number/100);
|
||||
$base_number=($base_number <= 0)?1:$base_number;
|
||||
|
||||
|
||||
//.........$btsArray[bts_num][j]....j
|
||||
$show_field=array(1,2,3,4,5,6,7);
|
||||
|
||||
//............$show_field....
|
||||
$legend_def=array('MO call','MT call','LU','SS','TCH attempt','TCH success','RF failure');
|
||||
|
||||
//..........$show_field....
|
||||
$legend_color=array('blue','brown','orange','yellow','blue','green','red');
|
||||
|
||||
//------------------------------....--------------------------------------
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="60"><b><?php echo "$strLegend"; ?>:</b></td>
|
||||
<?php
|
||||
for($i=0;$i<sizeof($legend_def);$i++){
|
||||
echo "<td width=\"10\">";
|
||||
showImg($legend_color[$i],10,10);
|
||||
echo "</td>";
|
||||
echo "<td width=\"120\">{$legend_def[$i]}</td>";
|
||||
}
|
||||
?>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function chgBaseNum(max_first_num){
|
||||
|
||||
var old_base_number=1.00 * oldBaseNumSet.value;
|
||||
var max_second_num = <?php echo sizeof($show_field);?>;
|
||||
var new_base_number=1.00 * baseNumSet.value;
|
||||
var i=0,j=0,k=0,maxHeight=200,maxNum=0;
|
||||
if(new_base_number <=0){
|
||||
baseNumSet.value=old_base_number;
|
||||
return(-1);
|
||||
}
|
||||
for(i=0;i < max_first_num;i++){
|
||||
for(k=0;k<3;k++){
|
||||
for(j=0;j < max_second_num;j++){
|
||||
temp_obj_name='img'+i+'_'+k+'_'+j;
|
||||
temp_input_name='img'+i+'_'+k+'_'+j+'_org';
|
||||
temp_obj=eval(temp_obj_name);
|
||||
temp_height=eval(temp_input_name);
|
||||
if(temp_obj.height > 0 && new_base_number > 0){
|
||||
temp_obj.height = 1.0 * temp_height.value * (old_base_number / new_base_number )+1;
|
||||
if(temp_obj.height > maxHeight && temp_obj.alt > maxNum){
|
||||
//alert(temp_obj.height+'-'+temp_obj.alt);
|
||||
maxNum = temp_obj.alt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for(i=0;i<4;i++){
|
||||
tmpobj=eval('topNumber_'+i);
|
||||
org_tmpobj=eval('org_topNumber_'+i);
|
||||
if(maxNum > 0){
|
||||
tmpobj.value = maxNum;
|
||||
baseNumSet.value = maxNum;
|
||||
}else{
|
||||
tmpobj.value = Math.round(org_tmpobj.value * (new_base_number/ old_base_number));
|
||||
}
|
||||
}*/
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<?php
|
||||
//------------------------------.....----------------------------------
|
||||
$bts_num=$btsBgnNo;
|
||||
if($isbsplus == 0){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and ObjectId not like 'BtsMgr.0%' and Presence=1 and bssid=$bss_id";
|
||||
}else if($isbsplus == 1){
|
||||
$sqlstring = "select ObjectId from OMCR_BSSTREE where ObjectId like 'BtsMgr.%' and Presence=1 and bssid=$bss_id";
|
||||
}
|
||||
$result = mysqli_query($pubConn,$sqlstring) or
|
||||
die("Invalid query: $sqlstring\n" . mysqli_error($pubConn));
|
||||
while($row = mysqli_fetch_row($result))
|
||||
{
|
||||
list($btsmgr_list[]) =$row;
|
||||
}
|
||||
$no_of_btsmgr = count($btsmgr_list);
|
||||
echo "TCH:<input type=\"text\" size=\"4\" name=\"baseNumSet\" id=\"baseNumSet\" value=\"$top_number\" class=\"text\">";
|
||||
|
||||
echo " <input type=\"button\" value=\"$strAdjustHeight\" name=\"chge\" onclick=\"chgBaseNum($no_of_btsmgr)\" class=\"button\"> ";
|
||||
echo "<input type=\"hidden\" size=\"4\" name=\"oldBaseNumSet\" id=\"oldBaseNumSet\" value=\"$top_number\">";
|
||||
echo "<br>";
|
||||
for($i=0;$i<$no_of_btsmgr;$i++){
|
||||
?>
|
||||
<br>
|
||||
<table border="0" cellPadding="0" cellSpacing="0" height="220" style="BORDER-BOTTOM: rgb(0,0,0) 1px solid; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: medium none; BORDER-TOP: medium none" >
|
||||
<tr>
|
||||
<td colspan="100" height="20">
|
||||
<?php
|
||||
$btsmgrcont = explode(".",$btsmgr_list[$i]);//e.g BtsMgr.1
|
||||
/*$num = $bts_num;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_1='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_2='BTS'."$bss_id"."_$num";
|
||||
$num++;
|
||||
$num =(strlen($num)<2)?'0'.$num:$num;
|
||||
$BTS_ID_3='BTS'."$bss_id"."_$num";
|
||||
*/
|
||||
echo"$dot_img ";
|
||||
echo "<INPUT type=\"text\" size=\"10\" name=\"topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" style=\"border-left:medium none;border-right:medium none;border-top:medium none;border-bottom:medium none; solid rgb(0,0,0)\" readonly>";
|
||||
echo "<INPUT type=\"hidden\" size=\"10\" name=\"org_topNumber_".$i."\" id=\"topNumber\" value=\"$top_number\" >";
|
||||
echo "<b>$btsmgr_list[$i]:TCH($strTCHExplain) $strStatistics</b>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td>
|
||||
<?php
|
||||
for($j=0;$j<3;$j++){
|
||||
//....bts....
|
||||
for($k=0;$k<sizeof($show_field);$k++){
|
||||
$arrNum = $show_field[$k];
|
||||
$alt = $legend_def[$k].'='.$btsArray[$bts_num][$arrNum];
|
||||
$height = $btsArray[$bts_num][$arrNum] / $base_number * 2;
|
||||
//echo "<br>btsArray[$bts_num][$arrNum]={$btsArray[$bts_num][$arrNum]}";
|
||||
$width = 19;
|
||||
$imgName = 'img'.$i.'_'.$j.'_'.$k;
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"20\" rowspan=\"5\">";
|
||||
showImg($legend_color[$k],$width,$height,$imgName,$alt);
|
||||
echo "</td>";
|
||||
}
|
||||
echo "<td valign=\"bottom\" height=\"200\" width=\"40\" rowspan=\"5\"></td>";
|
||||
$bts_num++;
|
||||
}
|
||||
?>
|
||||
<td valign="bottom" height="200" width="20" rowspan="5"></td>
|
||||
</tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"><?php echo"$dot_img";?></td></tr>
|
||||
<tr><td valign="bottom" height="40" width="20"></td></tr>
|
||||
</table>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="bottom" width="20"> </td>
|
||||
<?php
|
||||
$tdWidth=20*sizeof($show_field)+40;
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].0</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].1</td>";
|
||||
echo "<td width=\"$tdWidth\">Bts.$btsmgrcont[1].2</td>";
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+15
@@ -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>
|
||||
Executable
+117
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用: connectdb.inc,header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:$language_version_TS是保存在session中的语言版本信息
|
||||
$len_of_subsys_num是在公共变量文件config.inc定义的系统ID长度变量
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.4.1";
|
||||
$ThisPage = $strTitlePerformance." > BSS > TCH";
|
||||
$db=$ts_db;
|
||||
if(!isset($device_name)){
|
||||
$device_name = 'LAN';
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
<!--
|
||||
function display(){
|
||||
if(document.selectform.sel_time.checked && document.selectform.sel_date.value != 'ALL'){
|
||||
document.all["set_time"].style.visibility="visible";
|
||||
}else{
|
||||
document.all["set_time"].style.visibility="hidden";
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<base target="main">
|
||||
|
||||
<body leftmargin=12 topmargin=5>
|
||||
<?php
|
||||
$this_month=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$last_month=date("Y-m-d",mktime(0,0,0,date("m")-1,date("d"),date("Y")));
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$ThisPage";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" name="selectform" id="selectform" action="TCH_down.php" >
|
||||
<table border="0" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" >
|
||||
<tr>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "BSC ID"; ?>:
|
||||
<SELECT name=bss_id size=1 >
|
||||
<?php
|
||||
for($i=0;$i<12;$i++){
|
||||
$sys_num=($i<10)?'0'.$i:$i;
|
||||
$sys_id='BSS'.$sys_num;
|
||||
echo "<OPTION value=\"$sys_num\">$sys_id</OPTION>";
|
||||
}
|
||||
?>
|
||||
</SELECT>
|
||||
</nobr>
|
||||
</td>
|
||||
|
||||
<td><nobr>
|
||||
<?php echo "$strDate"; ?>:
|
||||
<SELECT name=sel_date size=1 >
|
||||
<?php
|
||||
for($i=0;$i<7;$i++){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<OPTION value=\"$date\">$date</OPTION>";
|
||||
}
|
||||
//echo "<OPTION value=\"$this_month\">this_month</OPTION>";
|
||||
//echo "<OPTION value=\"$last_month\">last_month</OPTION>";
|
||||
?>
|
||||
</SELECT>
|
||||
|
||||
<input type="submit" value="<?php echo $strSearch; ?>" name="search" class="button">
|
||||
|
||||
|
||||
<?php echo $strSpecifyTime; ?><input type="checkbox" name=sel_time onClick=display() value="true" >
|
||||
</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>
|
||||
<DIV align=left id=set_time style="VISIBILITY: hidden;">
|
||||
<nobr>
|
||||
<?php echo $strFrom; ?>
|
||||
<INPUT maxLength="2" name="hou_1" size="2" value="00" class="text"><?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_1" size="2" value="00" class="text"><?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_1" size="2" value="00" class="text"><?php echo "$strSecond"; ?>
|
||||
<?php echo $strTo; ?>
|
||||
<INPUT maxLength="2" name="hou_2" size="2" value="23" class="text"> <?php echo "$strHour"; ?>
|
||||
<INPUT maxLength="2" name="mid_2" size="2" value="59" class="text"> <?php echo "$strMinute"; ?>
|
||||
<INPUT maxLength="2" name="sec_2" size="2" value="59" class="text"> <?php echo "$strSecond"; ?>
|
||||
</nobr>
|
||||
</DIV>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+339
@@ -0,0 +1,339 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:按照所选条件查询话务,并删除查询到的话务
|
||||
|
||||
调用关系:调用: header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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'; //排序所依赖的字段名
|
||||
$sort_direction = 'DESC'; //排序顺序
|
||||
$number_records_to_display = 200; //每页纪录数
|
||||
$time_column = "csta_datetime"; //时间列名
|
||||
$sysType = isset($sysType)?$sysType:$DEFAULT_SYS; //设备名
|
||||
$csta_type = isset($csta_type)?$csta_type:'csta-q';
|
||||
$table_name = omc_table_name($sysType,$csta_type); //取得数据库名
|
||||
if($sysType == 'CNF' || $sysType == 'VPS'){
|
||||
$table_name="vpsDetail";
|
||||
}
|
||||
$table_name = $table_name."_".$showDate;
|
||||
$query_type = isset($query_type)?$query_type:'0'; //取得查询类型
|
||||
$where = isset($where) ? urldecode($where) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? stripslashes($where) : ''; //解除一些'/'
|
||||
|
||||
$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();
|
||||
}
|
||||
|
||||
//删除所查询的内容
|
||||
if($delete)
|
||||
{
|
||||
$sql_query="DELETE FROM $table_name ".$where;
|
||||
$sql_query=urlencode($sql_query); //将该字符串编码,适合传递
|
||||
echo " <meta http-equiv=\"refresh\" content=\"0; url=./csta_del.php?del_sql=$sql_query\"> ";
|
||||
}//endif($delete)
|
||||
|
||||
//跳转到指定页面
|
||||
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)
|
||||
|
||||
// 初始化变量
|
||||
if (!$number_of_records)
|
||||
{
|
||||
//跳转页面不进行初始化
|
||||
//-------确定日期范围-----
|
||||
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语句的类型限制组成部分$w0
|
||||
$w0=" key_type<10 ";
|
||||
|
||||
//where语句的时间限制组成部分$w1
|
||||
$w1=" AND $time_column >= '$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//where语句的系统id限制组成部分$w2
|
||||
if($sys_num!='-1' && $sys_num!=''){
|
||||
$w2=" AND $sysIdFiled=$sys_num";
|
||||
}
|
||||
|
||||
//where语句的子系统id限制组成部分$w3
|
||||
if($subsys_num!='-1' && $subsys_num!=''){
|
||||
$w3=" AND $subsysIdFiled=$subsys_num";
|
||||
}
|
||||
|
||||
//where语句的E1id限制组成部分$w4
|
||||
if($e1_num!='-1' && $e1_num!='' && $query_type<5 && $query_type>0){
|
||||
$w4=" AND key_e1_tg=$e1_num";
|
||||
}
|
||||
|
||||
//where语句的呼叫类型限制组成部分$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 ";
|
||||
|
||||
}
|
||||
//合成查询语句$where
|
||||
$where=" WHERE ".$w0.$w1.$w2.$w3.$w4.$w5.$w6;
|
||||
//echo "$where<br>";
|
||||
|
||||
$initial_record = 0;//初始纪录号
|
||||
|
||||
$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; //该页页码
|
||||
$all_page_num= ceil($number_of_records / $number_records_to_display); //总页码
|
||||
//插入日志
|
||||
if($page_num <=1)
|
||||
{
|
||||
insertLog("CSTA data query",2,1);
|
||||
}
|
||||
//下面是控制分页显示,传递变量
|
||||
if ($number_of_records >= 1)
|
||||
{
|
||||
$next_index = $initial_record + $number_records_to_display; //本页的结束数目
|
||||
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> $show_initial_record - $next_index</FONT>, ($strTotalRecords:$number_of_records ) ";
|
||||
?>
|
||||
</td>
|
||||
<td width="10%" align="center">
|
||||
<?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); //将该字符串编码,适合传递
|
||||
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> ";
|
||||
}
|
||||
|
||||
|
||||
// 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); //将该字符串编码,适合传递
|
||||
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) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? urldecode($where) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? stripslashes($where) : ''; //解除一些'/'
|
||||
|
||||
//查询数据并放入myrows数租中。
|
||||
|
||||
//合成sql语句
|
||||
$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" > </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>
|
||||
Executable
+17
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
Executable
+146
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用: header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
|
||||
NO.2
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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 " ";
|
||||
}
|
||||
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"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="hou_1" size="2" value="00" maxLength="2"> <?php echo "$strHour"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="mid_1" size="2" value="00" maxLength="2"> <?php echo "$strMinute"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="sec_1" size="2" value="00" maxLength="2"> <?php echo "$strSencond"; ?>
|
||||
<?php echo "$strTo"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" maxLength="2" name="hou_2" size="2" value="23"> <?php echo "$strHour"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="mid_2" size="2" value="59" maxLength="2"> <?php echo "$strMinute"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="sec_2" size="2" value="59" maxLength="2"> <?php echo "$strSencond"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="sysType" value="<?php echo $sysType;?>">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+231
@@ -0,0 +1,231 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务分析
|
||||
|
||||
调用关系:调用: connectdb.inc,header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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'; //排序所依赖的字段名
|
||||
$sort_direction = 'DESC'; //排序顺序
|
||||
$number_records_to_display = 200; //每页纪录数
|
||||
$time_column = "csta_datetime"; //时间列名
|
||||
$sysType = isset($sysType)?$sysType:$DEFAULT_SYS; //设备名
|
||||
$table_name = omc_table_name($sysType,'csta-q'); //取得数据库名
|
||||
if($sysType == 'CNF' || $sysType == 'VPS'){
|
||||
$table_name="vpsDetail";
|
||||
}
|
||||
$table_name = $table_name."_".$showDate;
|
||||
$query_type = isset($query_type)?$query_type:'0'; //取得查询类型
|
||||
$where = isset($where) ? urldecode($where) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? stripslashes($where) : ''; //解除一些'/'
|
||||
$head_name = " ";
|
||||
$title_time=date("Y-m-d", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));//表头显示时间
|
||||
|
||||
$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";
|
||||
|
||||
|
||||
//-------确定日期范围-----
|
||||
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());
|
||||
}
|
||||
}
|
||||
//统计时间的总秒数
|
||||
if($sel_time){
|
||||
$sum_time = ($hou_2*3600+$mid_2*60+$sec_2)-($hou_1*3600+$mid_1*60+$sec_1);//指定时间的总秒数
|
||||
}else{
|
||||
if($sel_date<0){
|
||||
$sum_time = 24*7*3600;//一星期拥有的总时间数
|
||||
}elseif($sel_date>0){
|
||||
$sum_time=24*3600;//一天拥有的总时间数
|
||||
}else{
|
||||
$hou=date("H");
|
||||
$mid=date("i");
|
||||
$sec=date("s");
|
||||
$sum_time=$hou*3600+$mid*60+$sec;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//where语句的时间限制组成部分$w1
|
||||
$w1=" $time_column >= '$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//where语句的系统id限制组成部分$w2
|
||||
if($sys_num!='-1' && $sys_num!='')
|
||||
{
|
||||
$w2=" AND $sysIdFiled=$sys_num";
|
||||
}
|
||||
|
||||
//where语句的子系统id限制组成部分$w3
|
||||
if($subsys_num!='-1' && $subsys_num!='')
|
||||
{
|
||||
$w3=" AND $subsysIdFiled=$subsys_num";
|
||||
}
|
||||
|
||||
//where语句的E1id限制组成部分$w4
|
||||
if($e1_num!='-1' && $e1_num!='')
|
||||
{
|
||||
$w4=" AND key_e1_tg=$e1_num";
|
||||
}
|
||||
|
||||
//where语句的类型限制组成部分$w5
|
||||
$w5=" AND key_type=2 ";
|
||||
|
||||
|
||||
|
||||
$sys_id=$sysType.$sys.$subsys.$e1;
|
||||
//合成查询语句$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);
|
||||
|
||||
//合成子系统编号统计的sql语句
|
||||
$order_1=" ORDER BY $sysIdFiled,$subsysIdFiled";
|
||||
$group_1=" GROUP BY $sysIdFiled,$subsysIdFiled";
|
||||
|
||||
//合成sql语句
|
||||
$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>
|
||||
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">
|
||||
</td>
|
||||
<td colspan="10" align="center" height="15"><b>
|
||||
<?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>
|
||||
Executable
+17
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
Executable
+148
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务分析条件选择
|
||||
|
||||
调用关系:调用: header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>
|
||||
<?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">
|
||||
</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"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="hou_1" size="2" value="00" maxLength="2"> <?php echo "$strHour"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="mid_1" size="2" value="00" maxLength="2"> <?php echo "$strMinute"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="sec_1" size="2" value="00" maxLength="2"> <?php echo "$strSecond"; ?>
|
||||
<?php echo "$strTo"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" maxLength="2" name="hou_2" size="2" value="23"> <?php echo "$strHour"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="mid_2" size="2" value="59" maxLength="2"> <?php echo "$strMinute"; ?>
|
||||
<input style="font-family: Verdana; font-size: 8pt" name="sec_2" size="2" value="59" maxLength="2"> <?php echo "$strSecond"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="sysType" value="<?php echo $sysType;?>">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
+76
@@ -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>";
|
||||
?>
|
||||
+309
@@ -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>";
|
||||
?>
|
||||
@@ -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>
|
||||
+178
@@ -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> ";
|
||||
|
||||
|
||||
//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> ";
|
||||
|
||||
//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> ";
|
||||
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> ";
|
||||
|
||||
?>
|
||||
<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>";
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
1,1,1,1,1
|
||||
|
@@ -0,0 +1 @@
|
||||
PPS service attempt,PPS service success,MSC service attempt,MSC service success,Invalid call
|
||||
|
@@ -0,0 +1 @@
|
||||
1,1,1,1,1,0,0,0,0,0
|
||||
|
@@ -0,0 +1 @@
|
||||
Attempt,Success,Duration,Normal,Call Deny,Net Busy,Caller Clear,Sub Busy,No Answer,Signal Error
|
||||
|
@@ -0,0 +1 @@
|
||||
0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,1,1
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -0,0 +1 @@
|
||||
1,1,1,1,1,1,0,0,0,0,0,0
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -0,0 +1 @@
|
||||
1,1,1,1
|
||||
|
@@ -0,0 +1 @@
|
||||
num_of_online_enb,num_of_registered_ues,num_of_connected_ues,num_of_idle_ues
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -0,0 +1 @@
|
||||
1,1,1,1,1,1
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -0,0 +1 @@
|
||||
1,1,1,1,1,0,0,0,0,0
|
||||
|
@@ -0,0 +1 @@
|
||||
n5GAKAAuthAttempt,n5GAKAAuthSuc,nEAPAKAAuthAttempt,nEAPAKAAuthSuc,nAMF3GPPAccessRegAttempt,nAMF3GPPAccessRegSuc,nAMFNON3GPPAccessRegAttempt,nAMFNON3GPPAccessRegSuc,nSMFRegAttempt,nAMFRegSuc
|
||||
|
@@ -0,0 +1 @@
|
||||
1,1,1,1,1,1,0,0,1,1
|
||||
|
@@ -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
|
||||
|
@@ -0,0 +1 @@
|
||||
1,1,1,1,1,1,1,1,1
|
||||
|
@@ -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
|
||||
|
Whitespace-only changes.
Executable
+102
@@ -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"
|
||||
|
||||
+385
@@ -0,0 +1,385 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:进行话务分析
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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")));//表头显示时间
|
||||
|
||||
$sel_field_list= @mysql_list_fields($db,$table_name);
|
||||
if(!$sel_field_list)
|
||||
{
|
||||
echo "<br>$strNotFindRecord.";
|
||||
exit();
|
||||
}
|
||||
|
||||
//-------确定日期范围-----
|
||||
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语句的时间限制组成部分为$w1,系统id限制为$w2 */
|
||||
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//合成where语句
|
||||
$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>
|
||||
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"> <?php echo "$mabls";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$mablf";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$magls";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$maglf";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$mdbls";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$mdblf";?></td>
|
||||
<td width="151" height="16">
|
||||
<p align="center"> <?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"> <?php echo "$mdgls";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$mdglf";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$tcis";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <?php echo "$tcif";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?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"> <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> </td>
|
||||
<td width=80><?php echo "$strMSsAddedBlackList";?></td>
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strMSsAddedGrayList";?></td>
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strMSsDeletedBlackList";?></td>
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strMSsDeletedGrayList";?></td>
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strTimesCheckingIMEI";?></td>
|
||||
<td width=40> </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>
|
||||
+17
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>
|
||||
|
||||
+257
@@ -0,0 +1,257 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:进行话务查询,并删除所查询的话务
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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'; //排序所依赖的字段名
|
||||
$sort_direction = 'DESC'; //排序顺序
|
||||
$number_records_to_display = 200; //每页纪录数
|
||||
$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) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? stripslashes($where) : ''; //解除一些'/'
|
||||
//删除所查询的内容
|
||||
if($delete){
|
||||
$sql_query="DELETE FROM $table_name ".$where;
|
||||
$sql_query=urlencode($sql_query); //将该字符串编码,适合传递
|
||||
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
|
||||
// 初始化变量
|
||||
if (!$number_of_records){//跳转页面不进行初始化
|
||||
//-------确定日期范围-----
|
||||
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语句的时间限制组成部分为$w1,系统id限制为$w2 */
|
||||
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//合成where语句
|
||||
$where=" WHERE".$w1;
|
||||
|
||||
$initial_record = 0;//初始纪录号
|
||||
|
||||
$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; //该页页码
|
||||
$all_page_num= ceil($number_of_records / $number_records_to_display); //总页码
|
||||
if ($number_of_records >= 1){
|
||||
$next_index = $initial_record + $number_records_to_display; //本页的结束数目
|
||||
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> $show_initital_record - $next_index</FONT>, ($strTotalRecords:$number_of_records ) "; ?></TD>
|
||||
<TD width="100" align="center">
|
||||
<?php
|
||||
//$number_of_records_on_current_page = mysqli_num_rows($csta_result);
|
||||
//echo "$number_of_records_on_current_page<br>";
|
||||
//下面是控制分页显示,传递变量
|
||||
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); //将该字符串编码,适合传递
|
||||
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>
|
||||
<?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); //将该字符串编码,适合传递
|
||||
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type\">";
|
||||
?>
|
||||
<IMG alt=下一页 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) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? urldecode($where) : ''; //传回变量后解url码
|
||||
$where = isset($where) ? stripslashes($where) : ''; //解除一些'/'
|
||||
|
||||
//查询数据并放入myrows数租中。
|
||||
//合成sql语句
|
||||
$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>
|
||||
+17
@@ -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>此网页使用了框架,但您的浏览器不支持框架。</p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
Executable
+85
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
程序说明:
|
||||
功能说明:话务查询条件选择
|
||||
|
||||
调用关系:调用:header.inc
|
||||
被调用:
|
||||
|
||||
变量说明:
|
||||
返回值:无
|
||||
|
||||
作者:
|
||||
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
*********************************************************/
|
||||
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>
|
||||
Executable
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Executable
+404
@@ -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 " ";
|
||||
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();
|
||||
?>
|
||||
|
||||
+459
@@ -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 表格
|
||||
|
||||
{
|
||||
$table_title="MT,MO Erlang Statistic 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> </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>";
|
||||
}
|
||||
|
||||
|
||||
//时间间隔
|
||||
$day=$sel_date_from-$sel_date_to+1;
|
||||
$day_num=720/($day+1);
|
||||
|
||||
|
||||
|
||||
//画图
|
||||
|
||||
//
|
||||
|
||||
//=======================================================================================|
|
||||
//=========== 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")));
|
||||
}
|
||||
|
||||
//////纵轴
|
||||
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);
|
||||
}
|
||||
|
||||
//横轴
|
||||
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);
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//画线
|
||||
|
||||
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);
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////
|
||||
//-----输出图形文件,请勿修改
|
||||
//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);
|
||||
}
|
||||
//-----显示图片
|
||||
flush();
|
||||
echo "</form>";
|
||||
echo "<img src=\"$filename\"></img>";
|
||||
|
||||
adjust_content_tail();
|
||||
?>
|
||||
|
||||
</body>
|
||||
+382
@@ -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 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>";
|
||||
|
||||
|
||||
//时间间隔
|
||||
$day=$sel_date_from-$sel_date_to+1;
|
||||
$day_num=30;
|
||||
|
||||
|
||||
//画图
|
||||
|
||||
//
|
||||
|
||||
//=======================================================================================|
|
||||
//=========== 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);
|
||||
|
||||
///////////////////////表示 X,Y轴坐标
|
||||
|
||||
|
||||
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")));
|
||||
}
|
||||
|
||||
//////纵轴
|
||||
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);
|
||||
}
|
||||
|
||||
////纵轴标记
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//横轴
|
||||
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);
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//画线
|
||||
|
||||
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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////
|
||||
//-----输出图形文件,请勿修改
|
||||
//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);
|
||||
}
|
||||
//-----显示图片
|
||||
flush();
|
||||
echo "</form>";
|
||||
echo "<img src=\"$filename\"></img>";
|
||||
|
||||
adjust_content_tail();
|
||||
|
||||
?>
|
||||
+442
@@ -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 表格
|
||||
|
||||
{
|
||||
$table_title=" Erlang Statistic 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> </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>";
|
||||
}
|
||||
|
||||
|
||||
//时间间隔
|
||||
$day=$sel_date_from-$sel_date_to+1;
|
||||
$day_num=720/($day+1);
|
||||
|
||||
|
||||
|
||||
//画图
|
||||
|
||||
//
|
||||
|
||||
//=======================================================================================|
|
||||
//=========== 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")));
|
||||
}
|
||||
|
||||
//////纵轴
|
||||
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);
|
||||
}
|
||||
|
||||
//横轴
|
||||
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);
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//画线
|
||||
|
||||
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);
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////
|
||||
//-----输出图形文件,请勿修改
|
||||
//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);
|
||||
}
|
||||
//-----显示图片
|
||||
flush();
|
||||
echo "</form>";
|
||||
echo "<img src=\"$filename\"></img>";
|
||||
|
||||
adjust_content_tail();
|
||||
?>
|
||||
|
||||
</body>
|
||||
+400
@@ -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 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>";
|
||||
|
||||
|
||||
//时间间隔
|
||||
$day=$sel_date_from-$sel_date_to+1;
|
||||
$day_num=30;
|
||||
|
||||
|
||||
//画图
|
||||
|
||||
//
|
||||
|
||||
//=======================================================================================|
|
||||
//=========== 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);
|
||||
|
||||
///////////////////////表示 X,Y轴坐标
|
||||
|
||||
|
||||
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")));
|
||||
}
|
||||
|
||||
//////纵轴
|
||||
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);
|
||||
}
|
||||
|
||||
////纵轴标记
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//横轴
|
||||
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);
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
//画线
|
||||
|
||||
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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////
|
||||
//-----输出图形文件,请勿修改
|
||||
//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);
|
||||
}
|
||||
//-----显示图片
|
||||
flush();
|
||||
echo "</form>";
|
||||
echo "<img src=\"$filename\"></img>";
|
||||
|
||||
adjust_content_tail();
|
||||
|
||||
?>
|
||||
|
||||
+319
@@ -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"> </td>
|
||||
<td align="center" width="106"><?php echo $strHexadecNumber;?></td>
|
||||
<td align="center" width="70"> </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="<-" name="B4" onClick="hex2dec_input(document.D2H2B.hex)">
|
||||
<input type="button" value="->" 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="<-" name="B6" onClick="bin2hex_input(document.D2H2B.bin)">
|
||||
<input type="button" value="->" 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>
|
||||
|
||||
|
||||
|
||||
+477
@@ -0,0 +1,477 @@
|
||||
<?php
|
||||
//公用词库
|
||||
$strAbnormal ="异常";
|
||||
$strAccessManagement ="操作管理";
|
||||
$strAccountAdmin ="帐号管理";
|
||||
$strAccountCannotBeEmpty ="帐号不能为空";
|
||||
$strAccountName ="帐号名";
|
||||
$strAdd ="添 加";
|
||||
$strAddCustomer ="增加客户";
|
||||
$strAddDevice ="添加设备";
|
||||
$strAddFails ="增加失败";
|
||||
$strAddOperator ="添加操作员";
|
||||
$strAddOption ="添加选项";
|
||||
$strAddRoute ="添加路由";
|
||||
$strAddSucceeds ="增加成功";
|
||||
$strAdvancedSetup ="高级";
|
||||
$strAlarmClean ="告警清除";
|
||||
$strAlarmContent ="告警内容";
|
||||
$strAlarmLevel ="告警等级";
|
||||
$strAlarmLog ="告警日志";
|
||||
$strAlarmTime ="告警时间";
|
||||
$strAlarmType ="告警类型";
|
||||
$strAllAccounts ="所有帐号";
|
||||
$strAllCall ="所有呼叫";
|
||||
$strAllE1 ="所有E1";
|
||||
$strAllE1ID ="所有E1";
|
||||
$strAllSubsys ="所有子系统";
|
||||
$strAllSystems ="所有系统";
|
||||
$strAllTheTypes ="所有类型";
|
||||
$strAlterSymbol ="修改标志";
|
||||
$strAppealTime ="请求时间";
|
||||
$strApplicableType ="适用类型";
|
||||
$strAreYouSureToDelete ="您确定删除";
|
||||
$strAreYouSureToEdit ="您确定编辑";
|
||||
$strAttribute ="属性";
|
||||
$strAuthority ="权限";
|
||||
$strAuthResult ="鉴权结果";
|
||||
$strBack ="返回";
|
||||
$strBasicStatus ="基本状态";
|
||||
$strBinNumber ="二进制数";
|
||||
$strBringToRest ="停止运行";
|
||||
$strCallAnalysis ="话务分析";
|
||||
$strCalledBusy ="被叫忙";
|
||||
$strCallFailure ="呼损";
|
||||
$strCallingPullDown ="主叫拆线";
|
||||
$strCallLoss ="呼损";
|
||||
$strCallProcess ="话务处理";
|
||||
$strCallStatistics ="话务统计";
|
||||
$strCallType ="通话类型";
|
||||
$strCancel ="取 消";
|
||||
$strCDRAdmin ="CDR维护";
|
||||
$strCheckInfo ="检测信息";
|
||||
$strCheckResult ="检测结果";
|
||||
$strChinese = "中文";
|
||||
$strClear ="清除";
|
||||
$strClearedAlarm ="告警清除";
|
||||
$strClearTime ="清除时间";
|
||||
$strCommandBeExecute ="命令正在执行";
|
||||
$strCommandControl ="命令控制";
|
||||
$strComponentCode ="组件编号";
|
||||
$strComponentName ="组件名称";
|
||||
$strConfirm ="确 定";
|
||||
$strConfirmPassword ="确认密码";
|
||||
$strCPULoad ="CPU使用率";
|
||||
$strCreationTime ="创建时间";
|
||||
$strCriticalAlarm ="严重告警";
|
||||
$strCustermerAdmin ="客户管理";
|
||||
$strCustomerInformation ="用户资料";
|
||||
$strCustomerManagement ="客户管理";
|
||||
$strCustomerQuery ="客户查询";
|
||||
$strSubscriberStatus ="用户状态";
|
||||
$strDaemonOperationFailure ="后台操作失败";
|
||||
$strDaemonOperationSuccess ="后台操作成功";
|
||||
$strDaemonOperationTimeout ="后台操作超时";
|
||||
$strDaemonRecordNoChange ="后台处理纪录数连续4秒不变";
|
||||
$strDataBackup ="数据备份";
|
||||
$strDatabase ="数据库";
|
||||
$strDatabaseBackup ="数据库备份";
|
||||
$strDate ="日期";
|
||||
$strDay ="日";
|
||||
$strDecNumber ="十进制数";
|
||||
$strDelete ="删 除";
|
||||
$strDeleteFailure ="删除失败";
|
||||
$strDeleteMode ="删除该模板";
|
||||
$strDeleteQueryResult ="删除查询结果";
|
||||
$strDeleteRoute ="删除路由";
|
||||
$strDeleteSuccess ="删除成功";
|
||||
$strDeleteSystem ="删除设备";
|
||||
$strDescription ="说明";
|
||||
$strDetailDescription ="详细说明";
|
||||
$strDevice ="设备";
|
||||
$strDeviceType ="设备类型";
|
||||
$strDisable ="禁用";
|
||||
$strDisplayRecords ="显示记录";
|
||||
$strDownload ="下载";
|
||||
$strE1ID ="E1编号";
|
||||
$strE1Status ="E1状态";
|
||||
$strEdit ="编 辑";
|
||||
$strEditFailure ="编辑失败";
|
||||
$strEditMode ="编辑方式";
|
||||
$strEditObject ="编辑对象";
|
||||
$strEditSuccess ="编辑成功";
|
||||
$strEnable ="安装";
|
||||
$strEnglish = "英文";
|
||||
$strEquipment ="设备";
|
||||
$strError ="出错";
|
||||
$strEventType ="事件类型";
|
||||
$strExample ="例如";
|
||||
$strExit ="退 出";
|
||||
$strFailure ="失败";
|
||||
$strFileUpload ="文件上载";
|
||||
$strFinish ="完 毕";
|
||||
$strFriday ="周五";
|
||||
$strFrom ="从";
|
||||
$strGlobalSystemPara ="全局系统参数";
|
||||
$strGraphTemplate ="图形模板";
|
||||
$strGuide ="用户指南";
|
||||
$strHalt ="中断";
|
||||
$strHardDiskSpace ="硬盘空间";
|
||||
$strHelp ="帮助";
|
||||
$strHexadecNumber ="十六进制数";
|
||||
$strHour ="时";
|
||||
$strIncoming ="入局";
|
||||
$strIncomingLimit ="入局限制";
|
||||
$strInitialize ="初始化";
|
||||
$strInputAccount ="输入帐号";
|
||||
$strInputBox ="输入框";
|
||||
$strInputPasswordIsNotCoherent ="输入密码不一致";
|
||||
$strInvalidUserName ="无效的用户名";
|
||||
$strItem ="对象";
|
||||
$strKeyWord ="查询号码关键字";
|
||||
$strLandscape ="横向";
|
||||
$strLANModule ="LAN模块";
|
||||
$strLastSevenDay ="当前七天";
|
||||
$strLegend ="图例";
|
||||
$strLineBusy ="线路忙";
|
||||
$strList ="列表";
|
||||
$strLoadIn ="导入";
|
||||
$strLoadOut ="导出";
|
||||
$strLoadOutOrLoadIn ="需要导出或导入";
|
||||
$strLocal ="中央";
|
||||
$strLocalCall ="本局呼叫";
|
||||
$strLocalQuery ="本局查询";
|
||||
$strLocalTrunkGroup ="本局";
|
||||
$strLoginInfo ="登陆信息";
|
||||
$strLogon ="登 录";
|
||||
$strLogonAgain ="重新登录";
|
||||
$strLogonFails ="登录错误";
|
||||
$strLogType ="日志类型";
|
||||
$strMainMenu ="主菜单";
|
||||
$strMajorAlarm ="较严重告警";
|
||||
$strMapUpload ="地图上载";
|
||||
$strMasterClock ="主时钟";
|
||||
$strMemoryWaitStatus ="共享内存连续4秒处于准备执行状态";
|
||||
$strMenu ="菜单";
|
||||
$strMinorAlarm ="次级告警";
|
||||
$strMinute ="分";
|
||||
$strModificationFails ="修改失败";
|
||||
$strModificationSucceeds ="修改成功";
|
||||
$strModifyPassword ="修改密码";
|
||||
$strMonday ="周一";
|
||||
$strMonth ="月";
|
||||
$strMSISDN ="电话号码";
|
||||
$strMSStatus ="手机状态";
|
||||
$strMultipleBox ="多选框";
|
||||
$strName ="姓名";
|
||||
$strNewPassword ="新密码";
|
||||
$strNextPage ="下一页";
|
||||
$strNo ="否";
|
||||
$strNormal ="正常";
|
||||
$strNotFindRecord ="没有记录";
|
||||
$strNothing ="无";
|
||||
$strObjectID ="对象ID";
|
||||
$strOldPassword ="旧密码";
|
||||
$strOperateDatabaseFailure ="操作数据库失败";
|
||||
$strOperateDatabaseSuccess ="操作数据库成功";
|
||||
$strOperationAuthority ="操作权限";
|
||||
$strOperationLog ="操作日志";
|
||||
$strOperationSpecification ="操作说明";
|
||||
$strOperator ="操作员";
|
||||
$strOperatorAccount ="操作员帐号";
|
||||
$strOperatorList ="操作员列表";
|
||||
$strOption ="选项";
|
||||
$strOrderObject ="命令对象";
|
||||
$strOrderType ="命令类型";
|
||||
$strOutgoing ="出局";
|
||||
$strOutgoingLimit ="出局限制";
|
||||
$strPageNumberHasAMistake ="页码错误";
|
||||
$strParaEdit ="参数编辑";
|
||||
$strParaLength ="参数长度";
|
||||
$strParaMaintenance ="参数维护";
|
||||
$strParameterDescription ="参数说明";
|
||||
$strParameterSetup ="参数设置";
|
||||
$strParaNumber ="参数个数";
|
||||
$strParaStructure ="参数结构";
|
||||
$strParaType ="参数类型";
|
||||
$strPassword ="密码";
|
||||
$strPassword ="密码";
|
||||
$strPasswordCannotBeEmpty ="密码不能为空";
|
||||
$strPasswordDigitHasAMistake ="密码位数有误";
|
||||
$strPasswordModificationSucceeds="密码修改成功";
|
||||
$strPause ="暂停";
|
||||
$strPels ="象素";
|
||||
$strPercent ="百分比";
|
||||
$strPhysicalAddress ="物理地址";
|
||||
$strPhysicalLayer ="物理层";
|
||||
$strPhysicsMemory ="物理内存";
|
||||
$strPleaseConfirmYourPassword ="请确认你的密码";
|
||||
$strPleaseInputRealName ="请输入真实姓名";
|
||||
$strPleaseLogonSystem ="请登录系统";
|
||||
$strPortrait ="纵向";
|
||||
$strPrefixNumber ="出局字头";
|
||||
$strPreview ="预 览";
|
||||
$strPreviousPage ="前一页";
|
||||
$strPrimaryLanguage ="默认语言";
|
||||
$strProcessStatus ="处理状态";
|
||||
$strProduceTemplateCode ="生成模板代码";
|
||||
$strPullDownMenu ="下拉菜单";
|
||||
$strQuery ="查询";
|
||||
$strQueryNumberRange ="查询号码范围:";
|
||||
$strRateAdmin ="费率维护";
|
||||
$strRealName ="真实姓名";
|
||||
$strRefreshTime ="刷新时间";
|
||||
$strRefresh ="刷新";
|
||||
$strRemainAll ="剩余/全部";
|
||||
$strRemark ="说明";
|
||||
$strRemarks ="说明";
|
||||
$strRemote ="远端";
|
||||
$strRepairResult ="修复结果";
|
||||
$strRepeatInput ="重复输入";
|
||||
$strRepeatInputtingPassword ="重复输入密码";
|
||||
$strReset ="重 置";
|
||||
$strRestart ="重启";
|
||||
$strResult ="结果";
|
||||
$strReturn ="返 回";
|
||||
$strRoute ="路由";
|
||||
$strSaturday ="周六";
|
||||
$strSave ="保 存";
|
||||
$strSaveFailure ="保存失败";
|
||||
$strSaveSuccess ="保存成功";
|
||||
$strSearch ="查 看";
|
||||
$strSecond ="秒";
|
||||
$strSecondLanguage ="第二种语言";
|
||||
$strSelect ="选择";
|
||||
$strSender ="发送人";
|
||||
$strSignalingFault ="信令失误";
|
||||
$strSIMNumber ="SIM卡号";
|
||||
$strSixHours ="6小时";
|
||||
$strSize ="大小";
|
||||
$strSoftwareDownload ="软件下载";
|
||||
$strSoftwareUpdate ="软件更新";
|
||||
$strSoftwareUpload ="软件上载";
|
||||
$strSorryYouHaveNotTheAuthority ="对不起,您权限不够!";
|
||||
$strSpecification ="说明";
|
||||
$strSpecifyTime ="指定时间段";
|
||||
$strStatisticsLengend ="统计图表";
|
||||
$strStatus ="状态";
|
||||
$strStatusInformation ="状态信息";
|
||||
$strStatusMonitor ="状态监视";
|
||||
$strStop ="停止";
|
||||
$strSubmit ="提 交";
|
||||
$strSubsystem ="子系统";
|
||||
$strSubsystemID ="子系统编号";
|
||||
$strSubsystemPara ="子系统参数";
|
||||
$strSubsystemStatus ="子系统状态";
|
||||
$strSubsystemType ="子系统类型";
|
||||
$strSuccess ="成功";
|
||||
$strSunday ="周日"; ;
|
||||
$strSwitchAdmin ="交换机维护";
|
||||
$strSwitchPara ="交换机参数";
|
||||
$strSystem ="系统";
|
||||
$strSystemAdmin ="系统管理";
|
||||
$strSystemID ="系统ID";
|
||||
$strSystemLoginPassword ="登录密码";
|
||||
$strSystemPara ="系统参数";
|
||||
$strSystemStatus ="系统状态";
|
||||
$strSystemType ="系统类型";
|
||||
$strTable ="表";
|
||||
$strTemplateSetup ="模板设置";
|
||||
$strTheInputPasswordIsIncorrect ="输入的密码不正确";
|
||||
$strTheNumber ="序号";
|
||||
$strTheRecordExits ="该记录已存在";
|
||||
$strThisMonth ="本月";
|
||||
$strThisWeek ="本周";
|
||||
$strThreeHours ="3小时";
|
||||
$strThursday ="周四";
|
||||
$strTime ="时间";
|
||||
$strTimeFormat ="时间格式";
|
||||
$strTimes ="次数";
|
||||
$strTo ="至";
|
||||
$strToday ="今天";
|
||||
$strToPage ="转到";
|
||||
$strTotal ="总计";
|
||||
$strTotalPages ="总页数";
|
||||
$strTotalRecords ="总计";
|
||||
$strTransportLayer ="传输层";
|
||||
$strTrunkGroup ="局向";
|
||||
$strTuesday ="周二";
|
||||
$strTwelveHours ="12小时";
|
||||
$strTwentyFourHours ="24小时";
|
||||
$strTwoHours ="2小时";
|
||||
$strType ="类型";
|
||||
$strUndefinedAlarm ="未确定";
|
||||
$strUninstall ="卸载";
|
||||
$strUninstalled ="未安装";
|
||||
$strUpdatedTime ="更新时间";
|
||||
$strUpload ="上载";
|
||||
$strUploadFailure ="上载失败";
|
||||
$strUploadSuccess ="上载成功";
|
||||
$strUserManual ="用户手册";
|
||||
$strUserName ="用户名";
|
||||
$strUserNameCannotBeEmpty ="用户名不能为空";
|
||||
$strValue ="值";
|
||||
$strVersion ="版本";
|
||||
$strViewThisPageNeedJavaPlugin ="浏览该页面需安装java plugin";
|
||||
$strVirtualMemory ="虚拟内存";
|
||||
$strWarningAlarm ="警告告警";
|
||||
$strWednesday ="周三";
|
||||
$strWhereCode ="查询条件";
|
||||
$strWidth ="宽度";
|
||||
$strWithinFiveHours ="5小时内";
|
||||
$strWithinOneHour ="1小时内";
|
||||
$strWorkStatus ="工作状态";
|
||||
$strYear ="年";
|
||||
$strYes ="是";
|
||||
$strYesterday ="昨天";
|
||||
$strInUseAll ="使用/全部";
|
||||
$strPortStatus ="端口状态";
|
||||
$strAttempt ="试呼";
|
||||
$strStartTime ="启动时间";
|
||||
$strOprationRestriction ="操作有权";
|
||||
$strConfigurationRestriction ="配置有权";
|
||||
$strManagementRestriction ="管理有权";
|
||||
$strDesignRestriction ="设计有权";
|
||||
|
||||
//add by lilong
|
||||
$strSuccessful ="成功";
|
||||
$strFail ="失败";
|
||||
$strSysType ="系统类型:";
|
||||
$strAlamState ="告警状态:";
|
||||
$strAll ="全部";
|
||||
$strNotCleared ="未清除";
|
||||
$strCleared ="已清除";
|
||||
$strSearch ="搜索";
|
||||
$strClear ="清除";
|
||||
$strCallerNumber ="主叫号码";
|
||||
$strStatusInfo ="状态信息";
|
||||
$strVersion ="版本";
|
||||
$strCentralOffice ="局端设备";
|
||||
$strRemoteDevice ="远端设备";
|
||||
$strSysStatus ="系统状态";
|
||||
$strMap ="总图";
|
||||
$strPane0Status ="平面0 E1/T1状态";
|
||||
$strPane1Status ="平面1 E1/T1状态";
|
||||
$strServer ="服务器";
|
||||
$strServerSummaryInfo ="服务器状态";
|
||||
$strPeripheral ="外挂设备状态";
|
||||
$strNotFoundAnyBTS ="没找到BTS";
|
||||
$strNotFoundAnyBSC ="没找到BSC";
|
||||
$strReload ="重载";
|
||||
$strImport ="导入";
|
||||
$strPrevious ="上一页";
|
||||
$strNext ="下一页";
|
||||
|
||||
//add by lilong
|
||||
$strTitleAdvanced ="高级管理";
|
||||
$strTitleSpace =" > ";
|
||||
$strCurrentTariff ="当前费率";
|
||||
$strRent ="租金";
|
||||
$strTariffRentID ="对象";
|
||||
$strTariffRentChargeDate ="充值时间";
|
||||
$strTariffRentChargeAmount ="充值金额";
|
||||
$strTariffRentCapFlag ="Cap Flag";
|
||||
$strGet ="Get";
|
||||
$strSet ="Set";
|
||||
$strCompare ="比较";
|
||||
$strLoad ="Load";
|
||||
$strSave ="保存";
|
||||
$strLock ="锁定";
|
||||
$strUnlock ="解锁";
|
||||
$strDailingPrefix ="字头";
|
||||
$strTrunkGroup ="局向";
|
||||
$strCell ="小区";
|
||||
$strClockReference ="时钟模块";
|
||||
$strParameter ="参数";
|
||||
$strBHCA ="话务统计";
|
||||
$strData ="数据";
|
||||
$strFlow ="流量统计";
|
||||
$strAnalysis ="分析";
|
||||
$strTitlePerformance ="话务统计";
|
||||
$strTariffPlan ="费率计划";
|
||||
$strBasicTariff ="基本费率";
|
||||
$strHoliday ="节假日";
|
||||
$strMultiServices ="其它业务";
|
||||
$strPlanManage ="计划管理";
|
||||
$strMessageLength ="拆分包长";
|
||||
$strConfiguration ="系统配置";
|
||||
|
||||
//added by xiehua
|
||||
$strTitleConfiguration ="系统配置";
|
||||
$strTitleAccount ="账户信息";
|
||||
$strTitlePerformance ="话务统计";
|
||||
$strSubscriberManage ="客户管理";
|
||||
$strRefreshCard ="充值卡";
|
||||
$strSubscriber ="用户";
|
||||
$strLog ="日志";
|
||||
$strMaintenance ="系统维护";
|
||||
$strLink ="链路";
|
||||
$strNetwork ="网络";
|
||||
$strBackupRestore ="数据备份和恢复";
|
||||
$strDualServerMode ="双机模式";
|
||||
$strCharge ="金额";
|
||||
$strAdvanced ="高级";
|
||||
$strPerformance ="性能";
|
||||
$strGetAll ="Get All";
|
||||
|
||||
//added by Cui Ticun
|
||||
$strDiscountID ="折扣号";
|
||||
$strFreeChargeUnit ="免费计时单位";
|
||||
$strFav_call ="亲情呼叫";
|
||||
$strFav_listedtion ="亲情表编辑";
|
||||
$strUndo ="取消";
|
||||
$strLinkset ="链路组";
|
||||
$strLink ="链路";
|
||||
$strLocalNode ="本地服务地址";
|
||||
$strNetworkCode ="网络基本设定";
|
||||
$strMtTariff ="被叫费率";
|
||||
$strSMContent ="短信内容";
|
||||
$strPriority ="优先级";
|
||||
$strTimeToLive ="有效时间";
|
||||
$strSent ="发送成功";
|
||||
$strDiscarded ="丢弃";
|
||||
$strPending ="待发";
|
||||
$strCaller ="主叫号码";
|
||||
$strCalled ="被叫号码";
|
||||
$strUpdate ="刷新时间";
|
||||
$strLastAttempt ="最后试发";
|
||||
|
||||
$strGttObjects ="GTT Objects";
|
||||
|
||||
//add by Jianhui Zheng
|
||||
$strE164Number="E164 号码";
|
||||
$strUndo="撤消";
|
||||
$strModule="模块";
|
||||
$strVMSOrVSS="VSS";
|
||||
$strSMSEG="SMEG";
|
||||
|
||||
/***********************错误和提示定义***************************/
|
||||
$STR_CONF_COMMAND_ERR_0000 ="命令操作成功";
|
||||
|
||||
//ERR_001*:should prompt the operator "Check the device's status"
|
||||
$STR_CONF_PROMPT_001 ="请检查设备状态";
|
||||
$STR_CONF_COMMAND_ERR_0011 ="OMC找不到设备IP";
|
||||
$STR_CONF_COMMAND_ERR_0012 ="设备IP错误";
|
||||
|
||||
//ERR_002*:should prompt the operator "Check the software version of OMC and device"
|
||||
$STR_CONF_PROMPT_002 ="检查OMC和设备的软件版本是否相符";
|
||||
$STR_CONF_COMMAND_ERR_0021 ="OMC找不到相应的目标的值";
|
||||
$STR_CONF_COMMAND_ERR_0022 ="OMC找不到相应的序列好的值";
|
||||
|
||||
//ERR_003*:should prompt the operator "Check the OMC's status or send command again"
|
||||
$STR_CONF_PROMPT_003 ="检查OMC状态或重发命令";
|
||||
$STR_CONF_COMMAND_ERR_0031 ="OMC发送SNMP消息错误";
|
||||
$STR_CONF_COMMAND_ERR_0032 ="OMC命令缓存已满";
|
||||
$STR_CONF_COMMAND_ERR_0033 ="OMC发送命令太慢,或者没有发送命令";
|
||||
|
||||
//ERR_004*:should prompt the operator "Check the device's status or send command again"
|
||||
$STR_CONF_PROMPT_004 ="检查设备的状态或重发命令.发送命令前,确保OMC和对端服务器在线";
|
||||
$STR_CONF_COMMAND_ERR_0041 ="回应消息无效";
|
||||
$STR_CONF_COMMAND_ERR_0042 ="回应消息错误";
|
||||
$STR_CONF_COMMAND_ERR_0043 ="回应超时";
|
||||
|
||||
$STR_CONF_COMMAND_ERR_9999 ="未定义错误";
|
||||
$strPleaseInputIndexNo ="请输入Index";
|
||||
$indexNoDefinedBy ="Index is defined by";
|
||||
|
||||
?>
|
||||
+334
@@ -0,0 +1,334 @@
|
||||
<?php
|
||||
/*************************************************************************
|
||||
* 文件说明:
|
||||
* 功能说明:配置文件
|
||||
* 1、多语言版本设置
|
||||
* 2、系统配置参数设定
|
||||
* 3、访问控制
|
||||
*
|
||||
* 调用关系:调用:各语种的包含文件
|
||||
* 被调用:lib.inc
|
||||
*
|
||||
*
|
||||
* 作者:
|
||||
*
|
||||
*修改注释:
|
||||
*NO.1
|
||||
*姓名:
|
||||
*时间:
|
||||
*修改说明: 删除一些不必要的设置/按新的要求配置
|
||||
*************************************************************************/
|
||||
//==============================各OMC的类型定义============================
|
||||
$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说明变量==============================================================
|
||||
$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.";
|
||||
|
||||
|
||||
//==============================各OMC的URL=================================================================
|
||||
$host_ip = getenv("HTTP_HOST");
|
||||
//echo "<br>host_ip=$host_ip";
|
||||
|
||||
|
||||
//用户选择的语言类型
|
||||
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;
|
||||
}
|
||||
|
||||
//=============================数据下载设置==============================================================
|
||||
$load_sys_type=0;//与HLR有关的CSV数据模版类型(msc-->0/hlr-->1/pps-->2);
|
||||
|
||||
//=============================数据库设置=================================================================
|
||||
//---------------服务器设置-----------------
|
||||
//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,如果该主机名无法被解释,将出现无法打开页面的情况!!
|
||||
$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';
|
||||
|
||||
//数据库连接
|
||||
$link[0] = mysql_pconnect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password']);
|
||||
if(!$link[0]){//可惜在该主机名无法被解释的条件下,这段程序无法执行
|
||||
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']);
|
||||
|
||||
//-----------数据库数据表设置-------------------
|
||||
//数据库列表
|
||||
$omc_db = 'OMC_PUB'; //omc公用数据库
|
||||
$cdr_db = 'CDR_DB'; //存放各种话单资料
|
||||
$csta_db = 'CSTA_DB'; //存放话务统计数据
|
||||
$auc_para = 'AUC_Para'; //存放AUC数据
|
||||
$eir_para = 'EIR_Para'; //存放EIR数据
|
||||
$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'; //设备定义表,是设备信息的基础
|
||||
$paramConf_table = 'paramConf'; //参数定义表
|
||||
$alarmconf_table = 'sysAlarmConf'; //告警定义
|
||||
$sysStat_table = 'sysStat'; //状态信息表
|
||||
$sysoperlog_table = 'sysOperLog'; //日志表
|
||||
$sysoperconf_table = 'sysOperConf'; //日志类型定义表
|
||||
$syscsvconf_table = 'sysCsvConf'; //CSV模板定义
|
||||
$cstadefine_table = 'cstaDefine'; //csta配置
|
||||
$cdrdefine_table = 'cdrSource'; //cdr配置
|
||||
|
||||
//==============================平台类型定义================================================
|
||||
$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'),
|
||||
);
|
||||
|
||||
//==============================告警等级设定================================================
|
||||
$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'),
|
||||
|
||||
);
|
||||
|
||||
//=============================系统配置参数==================================
|
||||
|
||||
$separator =','; //csv数据的字段分割符
|
||||
$heatbeat_overtime = 48; //heartbeat的超时设置。单位为秒。
|
||||
|
||||
/*被注释掉的变量定义将删除
|
||||
|
||||
$def_sys_param_sign = 99; //系统参数在参数表中用一个特殊的子系统编号,该编号不等于其他的子系统编号。
|
||||
|
||||
$total_subsys_num = 8; //每个系统中子系统数,每个系统的子系统数相等
|
||||
|
||||
$len_of_sys_num = 2; //sys_id编号方式中系统编号的长度
|
||||
|
||||
$len_of_subsys_num = 2; //sys_id编号方式中子系统编号的长度
|
||||
|
||||
$def_len_of_record = 32; // 参数表中每条记录默认所含的Byte个数
|
||||
*/
|
||||
|
||||
|
||||
//服务器工作状态定义,这个需要放在子模块中
|
||||
$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')
|
||||
);
|
||||
|
||||
//================================操作权限设定======================================
|
||||
//---------------------操作种类权限定义------------------------------
|
||||
/*
|
||||
$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)
|
||||
);
|
||||
|
||||
//-------------------------按操作种类划分页面-----------------------
|
||||
//每个dir[$n][0]都是该类操作的操作权限等级值
|
||||
//具体的值对照oper_type的定义
|
||||
|
||||
$omcDir = '/'.$omcTypeArr[$thisOmcType][path];
|
||||
//$omcDir = '/omcWeb_v5';
|
||||
//echo "<br> omcDir=$omcDir";
|
||||
//---------------every one (包括未登录用户)可访问的目录-----------------
|
||||
$dirAccessDefArr[0][0] = $omcDir.'/security/login/';
|
||||
$dirAccessDefArr[0][1] = $omcDir.'/security/logout/';
|
||||
|
||||
|
||||
//---------------class one:operator 可访问的目录-----------------
|
||||
$dirAccessDefArr[1][0] = $omcDir.'/security/';
|
||||
$dirAccessDefArr[1][1] = $omcDir.'/frame/';
|
||||
$dirAccessDefArr[1][2] = $omcDir.'/fault/';
|
||||
|
||||
//---------------class two:engineer 可访问的目录-----------------
|
||||
$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 可访问的目录-----------------
|
||||
$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 可访问的目录-----------------
|
||||
$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 可访问的目录-----------------
|
||||
$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;
|
||||
}
|
||||
?>
|
||||
+506
@@ -0,0 +1,506 @@
|
||||
<?php
|
||||
//¹«Óôʿâ
|
||||
$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";
|
||||
?>
|
||||
+134
@@ -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;
|
||||
//-->
|
||||
+1127
File diff suppressed because it is too large.
Load diff
+380
@@ -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>";
|
||||
}
|
||||
|
||||
?>
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/*************************************************************************
|
||||
* 文件说明:
|
||||
* 功能说明:多语言版本设置配置文件
|
||||
*
|
||||
* 调用关系:调用:各语种的包含文件
|
||||
* 被调用:config.inc
|
||||
*
|
||||
*
|
||||
* 作者:
|
||||
*修改注释:
|
||||
*NO.1
|
||||
*姓名:
|
||||
*时间:
|
||||
*修改说明:
|
||||
*************************************************************************/
|
||||
//=============================多语言版本设置==============================================================
|
||||
//默认为英文时值为'eng',默认为中文时值为'chn'
|
||||
$selectedLanguage=(isset($selectedLanguage))?$selectedLanguage:'eng';
|
||||
|
||||
?>
|
||||
Executable
+2309
File diff suppressed because it is too large.
Load diff
+3
@@ -0,0 +1,3 @@
|
||||
nccyvpngvba
|
||||
abvgnpvycCN#68*
|
||||
|
||||
Executable
+150
@@ -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();
|
||||
|
||||
+280
@@ -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 " ";
|
||||
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();
|
||||
?>
|
||||
BIN
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
+500
@@ -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 " ";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
|
||||
|
||||
echo " </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\"> </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();
|
||||
|
||||
?>
|
||||
|
||||
+1016
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Loaded 100 of 4263 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user