init web ems all
This commit is contained in:
630
wxc2_omc/performance/vlrCsta/dataAnalysisDown.php
Executable file
630
wxc2_omc/performance/vlrCsta/dataAnalysisDown.php
Executable file
@@ -0,0 +1,630 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
||||
|
||||
<?php
|
||||
adjust_head_frame("down");
|
||||
adjust_title_head_frame("down");
|
||||
adjust_title_tail_frame("down");
|
||||
|
||||
adjust_content_head_frame("down");
|
||||
echo "<br>";
|
||||
|
||||
$db=$csta_db;
|
||||
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$showDate = omc_keep_length($showDate,0,2);
|
||||
$time_column = "csta_datetime";
|
||||
$table_name='vlrDetail'."_".$showDate;
|
||||
$title_time=date("Y-m-d", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));//<2F><>ͷ<EFBFBD><CDB7>ʾʱ<CABE><CAB1>
|
||||
|
||||
$sel_field_list= @mysql_list_fields($db,$table_name);
|
||||
if(!$sel_field_list)
|
||||
{
|
||||
echo "<br>$strNotFindRecord.";
|
||||
exit();
|
||||
}
|
||||
|
||||
if($language == 'eng')
|
||||
{
|
||||
$strAmma="MS memory available notifications";
|
||||
$strAirp="Identification requests to PVLRs";
|
||||
$strApr="Page requests";
|
||||
$strAprpla="Page requests per Location Area";
|
||||
$strArassv="Authentication sets sent to HLR by VLRs";
|
||||
$strAapv="Authentication procedures in VLR";
|
||||
$strAavlu="Intra-VLR Location Updates";
|
||||
$strArvlu="Inter-VLR Location Updates";
|
||||
$strAvop="Arrivals of Visitors from other PLMNs";
|
||||
$strSoprv="Subscribers from other PLMNs registered in the VLR";
|
||||
$strNrv="Number of roamers in the VLR";
|
||||
$strVlrStatistic="VLR Statistic";
|
||||
}
|
||||
else
|
||||
{
|
||||
$strAmma="MS memory available notifications";
|
||||
$strAirp="Identification requests to PVLRs";
|
||||
$strApr="Page requests";
|
||||
$strAprpla="Page requests per Location Area";
|
||||
$strArassv="Authentication sets sent to HLR by VLRs";
|
||||
$strAapv="Authentication procedures in VLR";
|
||||
$strAavlu="Intra-VLR Location Updates";
|
||||
$strArvlu="Inter-VLR Location Updates";
|
||||
$strAvop="Arrivals of Visitors from other PLMNs";
|
||||
$strSoprv="Subscribers from other PLMNs registered in the VLR";
|
||||
$strNrv="Number of roamers in the VLR";
|
||||
$strVlrStatistic="VLR Statistic";
|
||||
}
|
||||
|
||||
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
|
||||
if($sel_date<0)
|
||||
{
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime());
|
||||
}
|
||||
elseif($sel_date>0)
|
||||
{
|
||||
if($sel_time)
|
||||
{
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
|
||||
}
|
||||
else
|
||||
{
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if($sel_time)
|
||||
{
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
|
||||
}
|
||||
else
|
||||
{
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime());
|
||||
}
|
||||
}
|
||||
|
||||
/* where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>Ϊ$w1,ϵͳid<69><64><EFBFBD><EFBFBD>Ϊ$w2 */
|
||||
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//<2F>ϳ<EFBFBD>where<72><65><EFBFBD><EFBFBD>
|
||||
$where=" WHERE ".$w1;
|
||||
$str_sql_all=" SELECT count(*) as number_of_records FROM $table_name ".$where;
|
||||
$csta_result= mysqli_query($pubConn,$str_sql_all);
|
||||
$record = mysql_fetch_object($csta_result);
|
||||
$number_of_records = $record->number_of_records;
|
||||
if(!$number_of_records)
|
||||
{
|
||||
echo "$strNotFindRecord";
|
||||
exit();
|
||||
}
|
||||
$sum_sql=" SELECT SUM(amma) AS amma,SUM(smma) AS smma,SUM(airp) AS airp,SUM(sirp) AS sirp,SUM(apr) AS apr, SUM(spr) AS spr,SUM(aprpla) AS aprpla,SUM(sprpla) AS sprpla,SUM(arassv) AS arassv,SUM(srashv) AS srashv,SUM(errash) AS errash,SUM(aapv) AS aapv,SUM(sapv) AS sapv,SUM(aavlu) AS aavlu,SUM(savlu) AS savlu,SUM(arvlu) AS arvlu,SUM(srvlu) AS srvlu,SUM(avop) AS avop,SUM(soprv) AS soprv,SUM(nrv) AS nrv FROM $table_name ".$where;
|
||||
//echo "<br>sum_sql=$sum_sql";
|
||||
$sum_res = mysqli_query($pubConn,$sum_sql);
|
||||
$sum_row = @mysqli_fetch_array($sum_res);
|
||||
echo mysqli_error($pubConn);
|
||||
|
||||
$amma=$sum_row[amma];
|
||||
$smma=$sum_row[smma];
|
||||
$fmma=$amma-$smma;
|
||||
if($amma>0)
|
||||
{
|
||||
$ammaScale="100%";
|
||||
$smmaPoint=$smma/$amma;
|
||||
$smmaScale=change_percent($smma/$amma);
|
||||
$fmmaPoint=$fmma/$amma;
|
||||
$fmmaScale=change_percent($fmma/$amma);
|
||||
}
|
||||
else
|
||||
{
|
||||
$ammaScale="0%";
|
||||
$smmaPoint="0%";
|
||||
$smmaScale="0%";
|
||||
$fmmaPoint="0%";
|
||||
$fmmaScale="0%";
|
||||
}
|
||||
|
||||
$airp=$sum_row[airp];
|
||||
$sirp=$sum_row[sirp];
|
||||
$firp=$airp-$sirp;
|
||||
if($airp>0)
|
||||
{
|
||||
$airpScale="100%";
|
||||
$sirpPoint=$sirp/$airp;
|
||||
$sirpScale=change_percent($sirp/$airp);
|
||||
$firpPoint=$firp/$airp;
|
||||
$firpScale=change_percent($firp/$airp);
|
||||
}
|
||||
else
|
||||
{
|
||||
$airpScale="0%";
|
||||
$sirpPoint="0%";
|
||||
$sirpScale="0%";
|
||||
$firpPoint="0%";
|
||||
$firpScale="0%";
|
||||
}
|
||||
|
||||
$apr=$sum_row[apr];
|
||||
$spr=$sum_row[spr];
|
||||
$fpr=$apr-$spr;
|
||||
if($apr>0)
|
||||
{
|
||||
$aprScale="100%";
|
||||
$sprPoint=$spr/$apr;
|
||||
$sprScale=change_percent($spr/$apr);
|
||||
$fprPoint=$fpr/$apr;
|
||||
$fprScale=change_percent($fpr/$apr);
|
||||
}
|
||||
else
|
||||
{
|
||||
$aprScale="0%";
|
||||
$sprPoint="0%";
|
||||
$sprScale="0%";
|
||||
$fprPoint="0%";
|
||||
$fprScale="0%";
|
||||
}
|
||||
|
||||
$aprpla=$sum_row[aprpla];
|
||||
$sprpla=$sum_row[sprpla];
|
||||
$fprpla=$aprpla-$sprpla;
|
||||
if($aprpla>0)
|
||||
{
|
||||
$aprplaScale="100%";
|
||||
$sprplaPoint=$sprpla/$aprpla;
|
||||
$sprplaScale=change_percent($sprpla/$aprpla);
|
||||
$fprplaPoint=$fprpla/$aprpla;
|
||||
$fprplaScale=change_percent($fprpla/$aprpla);
|
||||
}
|
||||
else
|
||||
{
|
||||
$aprplaScale="0%";
|
||||
$sprplaPoint="0%";
|
||||
$sprplaScale="0%";
|
||||
$fprplaPoint="0%";
|
||||
$fprplaScale="0%";
|
||||
}
|
||||
|
||||
$arassv=$sum_row[arassv];
|
||||
$srashv=$sum_row[srashv];
|
||||
$frrash=$arassv-$srashv;
|
||||
if($arassv>0)
|
||||
{
|
||||
$arassvScale="100%";
|
||||
$srashvPoint=$srashv/$arassv;
|
||||
$srashvScale=change_percent($srashv/$arassv);
|
||||
$frrashPoint=$frrash/$arassv;
|
||||
$frrashScale=change_percent($frrash/$arassv);
|
||||
}
|
||||
else
|
||||
{
|
||||
$arassvScale="0%";
|
||||
$srashvPoint="0%";
|
||||
$srashvScale="0%";
|
||||
$frrashPoint="0%";
|
||||
$frrashScale="0%";
|
||||
}
|
||||
|
||||
$aapv=$sum_row[aapv];
|
||||
$sapv=$sum_row[sapv];
|
||||
$fapv=$aapv-$sapv;
|
||||
if($aapv>0)
|
||||
{
|
||||
$aapvScale="100%";
|
||||
$sapvPoint=$sapv/$aapv;
|
||||
$sapvScale=change_percent($sapv/$aapv);
|
||||
$fapvPoint=$fapv/$aapv;
|
||||
$fapvScale=change_percent($fapv/$aapv);
|
||||
}
|
||||
else
|
||||
{
|
||||
$aapvScale="0%";
|
||||
$sapvPoint="0%";
|
||||
$sapvScale="0%";
|
||||
$fapvPoint="0%";
|
||||
$fapvScale="0%";
|
||||
}
|
||||
|
||||
$aavlu=$sum_row[aavlu];
|
||||
$savlu=$sum_row[savlu];
|
||||
$favlu=$aavlu-$savlu;
|
||||
if($aavlu>0)
|
||||
{
|
||||
$aavluScale="100%";
|
||||
$savluPoint=$savlu/$aavlu;
|
||||
$savluScale=change_percent($savlu/$aavlu);
|
||||
$favluPoint=$favlu/$aavlu;
|
||||
$favluScale=change_percent($favlu/$aavlu);
|
||||
}
|
||||
else
|
||||
{
|
||||
$aavluScale="0%";
|
||||
$savluPoint="0%";
|
||||
$savluScale="0%";
|
||||
$favluPoint="0%";
|
||||
$favluScale="0%";
|
||||
}
|
||||
|
||||
$arvlu=$sum_row[arvlu];
|
||||
$srvlu=$sum_row[srvlu];
|
||||
$frvlu=$arvlu-$srvlu;
|
||||
if($arvlu>0)
|
||||
{
|
||||
$arvluScale="100%";
|
||||
$srvluPoint=$srvlu/$arvlu;
|
||||
$srvluScale=change_percent($srvlu/$arvlu);
|
||||
$frvluPoint=$frvlu/$arvlu;
|
||||
$frvluScale=change_percent($frvlu/$arvlu);
|
||||
}
|
||||
else
|
||||
{
|
||||
$arvluScale="0%";
|
||||
$srvluPoint="0%";
|
||||
$srvluScale="0%";
|
||||
$frvluPoint="0%";
|
||||
$frvluScale="0%";
|
||||
}
|
||||
|
||||
$avop=$sum_row[avop];
|
||||
if($avop>0)
|
||||
{
|
||||
$avopScale="100%";
|
||||
}
|
||||
else
|
||||
{
|
||||
$avopScale="0%";
|
||||
}
|
||||
|
||||
$soprv=$sum_row[soprv];
|
||||
if($soprv>0)
|
||||
{
|
||||
$soprvScale="100%";
|
||||
}
|
||||
else
|
||||
{
|
||||
$soprvScale="0%";
|
||||
}
|
||||
|
||||
$nrv=$sum_row[nrv];
|
||||
if($nrv>0)
|
||||
{
|
||||
$nrvScale="100%";
|
||||
}
|
||||
else
|
||||
{
|
||||
$nrvScale="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 "$strVlrStatistic"; ?></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 "$strAmma";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$smma";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$smmaScale";?></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 "$fmma";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$fmmaScale";?></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td width="143" rowspan="2" align="center" height="40"><?php echo "$strAirp";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$sirp";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$sirpScale";?></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 "$firp";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$firpScale";?></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td width="143" rowspan="2" height="40">
|
||||
<p align="center"><?php echo "$strApr";?></td>
|
||||
<td width="151" align="center" height="19"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$spr";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$sprScale";?></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 "$fpr";?></td>
|
||||
<td width="151" height="16">
|
||||
<p align="center"> <?php echo "$fprScale";?></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td width="143" rowspan="2" height="40">
|
||||
<p align="center"><?php echo "$strAprpla";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$sprpla";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$sprplaScale";?></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 "$fprpla";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$fprplaScale";?></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td width="143" rowspan="2" align="center" height="40">
|
||||
<p align="center"><?php echo "$strArassv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$srashv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$srashvScale";?></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 "$frrash";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$frrashScale";?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="143" rowspan="2" height="40">
|
||||
<p align="center"><?php echo "$strAapv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$sapv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$sapvScale";?></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 "$fapv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$fapvScale";?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="143" rowspan="2" height="40">
|
||||
<p align="center"><?php echo "$strAavlu";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$savlu";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$savluScale";?></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 "$favlu";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$favluScale";?></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td width="143" rowspan="2" height="40">
|
||||
<p align="center"><?php echo "$strArvlu";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strSuccess";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$srvlu";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$srvluScale";?></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 "$frvlu";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$frvluScale";?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="143" rowspan="1" align="center" height="40">
|
||||
<p align="center"><?php echo "$strAvop";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strAttempt";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$avop";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$avopScale";?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="143" rowspan="1" align="center" height="40">
|
||||
<p align="center"><?php echo "$strSoprv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strAttempt";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$soprv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$soprvScale";?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="143" rowspan="1" align="center" height="40">
|
||||
<p align="center"><?php echo "$strNrv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"><?php echo "$strAttempt";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$nrv";?></td>
|
||||
<td width="151" height="19">
|
||||
<p align="center"> <?php echo "$nrvScale";?></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*$smmaPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$fmmaPoint; ?>"></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*$sirpPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$firpPoint; ?>"></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*$sprPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$fprPoint; ?>"></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*$sprplaPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$fprplaPoint; ?>"></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*$srashvPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$frrashPoint; ?>"></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*$sapvPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$fapvPoint; ?>"></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*$savluPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$favluPoint; ?>"></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*$srvluPoint; ?>"></td>
|
||||
<td valign="bottom" height="200" width="40" rowspan="5"><img border="0" src="../../images/red.gif" width="40" height="<?php echo 200*$frvluPoint; ?>"></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=580>
|
||||
<tr align="center">
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strAmma";?></td>
|
||||
<!--
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strAirp";?></td>
|
||||
-->
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strApr";?></td>
|
||||
<!--
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strAprpla";?></td>
|
||||
-->
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strArassv";?></td>
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strAapv";?></td>
|
||||
<td width=40> </td>
|
||||
<td width=80><?php echo "$strAavlu";?></td>
|
||||
<!--
|
||||
<td width=20> </td>
|
||||
<td width=80><?php echo "$strArvlu";?></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
wxc2_omc/performance/vlrCsta/dataAnalysisIndex.php
Executable file
17
wxc2_omc/performance/vlrCsta/dataAnalysisIndex.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="dataAnalysisUp.php">
|
||||
<frame name="main" src="dataAnalysisDown.php" scrolling="auto">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
84
wxc2_omc/performance/vlrCsta/dataAnalysisUp.php
Executable file
84
wxc2_omc/performance/vlrCsta/dataAnalysisUp.php
Executable file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "6.8.3.1";
|
||||
|
||||
$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%\">";
|
||||
echo "$strAdvanced > $strPerformance > VLR > Statistics";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\">";
|
||||
// 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>
|
||||
|
||||
344
wxc2_omc/performance/vlrCsta/dataQueryDown.php
Executable file
344
wxc2_omc/performance/vlrCsta/dataQueryDown.php
Executable file
@@ -0,0 +1,344 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD>ѯ
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('down');" onresize="javascript:adjust_frame('down');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
||||
<?php
|
||||
adjust_head_frame("down");
|
||||
adjust_title_head_frame("down");
|
||||
adjust_title_tail_frame("down");
|
||||
|
||||
adjust_content_head_frame("down");
|
||||
echo "<br>";
|
||||
|
||||
$showDate = date("d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$timeItem = date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$showDate = omc_keep_length($showDate,0,2);
|
||||
$db=$csta_db;
|
||||
$sort_field = 'csta_datetime'; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>
|
||||
$sort_direction = 'DESC'; //<2F><><EFBFBD><EFBFBD>˳<EFBFBD><CBB3>
|
||||
$number_records_to_display = 200; //ÿҳ<C3BF><D2B3>¼<EFBFBD><C2BC>
|
||||
$time_column = "csta_datetime";
|
||||
$table_name='vlrDetail'."_".$showDate;
|
||||
|
||||
$sel_field_list= @mysql_list_fields($db,$table_name);
|
||||
if(!$sel_field_list)
|
||||
{
|
||||
echo "<br>$strNotFindRecord.";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
if($language == 'eng')
|
||||
{
|
||||
$strAmma="Attempted MS memory available notifications";
|
||||
$strSmma="Successful MS memory available notifications";
|
||||
$strAirp="Attempted Identification requests to PVLRs";
|
||||
$strSirp="Successful Identification requests to PVLRs";
|
||||
$strApr="Attempted page requests";
|
||||
$strSpr="Successful page requests";
|
||||
$strAprpla="Attempted page requests per Location Area";
|
||||
$strSprpla="Successful page requests per Location Area";
|
||||
$strArassv="Attempted requests for Authentication sets sent to HLR by VLRs";
|
||||
$strSrashv="Successful received Authentication sets from HLR to VLRs";
|
||||
$strErrash="Empty responses to request for Authentication sets from HLR to VLRs";
|
||||
$strAapv="Attempted authentication procedures in VLR";
|
||||
$strSapv="Successful authentication procedures in the VLR";
|
||||
$strAavlu="Attempted intra-VLR Location Updates";
|
||||
$strSavlu="Successful intra-VLR Location Updates";
|
||||
$strArvlu="Attempted inter-VLR Location Updates";
|
||||
$strSrvlu="Successful inter-VLR Location Updates";
|
||||
$strAvop="Arrivals of Visitors from other PLMNs";
|
||||
$strSoprv="Subscribers from other PLMNs registered in the VLR";
|
||||
$strNrv="Number of roamers in the VLR";
|
||||
}
|
||||
else
|
||||
{
|
||||
$strAmma="Attempted MS memory available notifications";
|
||||
$strSmma="Successful MS memory available notifications";
|
||||
$strAirp="Attempted Identification requests to PVLRs";
|
||||
$strSirp="Successful Identification requests to PVLRs";
|
||||
$strApr="Attempted page requests";
|
||||
$strSpr="Successful page requests";
|
||||
$strAprpla="Attempted page requests per Location Area";
|
||||
$strSprpla="Successful page requests per Location Area";
|
||||
$strArassv="Attempted requests for Authentication sets sent to HLR by VLRs";
|
||||
$strSrashv="Successful received Authentication sets from HLR to VLRs";
|
||||
$strErrash="Empty responses to request for Authentication sets from HLR to VLRs";
|
||||
$strAapv="Attempted authentication procedures in VLR";
|
||||
$strSapv="Successful authentication procedures in the VLR";
|
||||
$strAavlu="Attempted intra-VLR Location Updates";
|
||||
$strSavlu="Successful intra-VLR Location Updates";
|
||||
$strArvlu="Attempted inter-VLR Location Updates";
|
||||
$strSrvlu="Successful inter-VLR Location Updates";
|
||||
$strAvop="Arrivals of Visitors from other PLMNs";
|
||||
$strSoprv="Subscribers from other PLMNs registered in the VLR";
|
||||
$strNrv="Number of roamers in the VLR";
|
||||
}
|
||||
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
|
||||
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
|
||||
//ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if($delete){
|
||||
$sql_query="DELETE FROM $table_name ".$where;
|
||||
$sql_query=urlencode($sql_query); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>룬<EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
|
||||
echo " <meta http-equiv=\"refresh\" content=\"0; url=./csta_del.php?del_sql=$sql_query\"> ";
|
||||
}//end of delete
|
||||
?>
|
||||
|
||||
<script LANGUAGE="JavaScript">
|
||||
function goto(){
|
||||
var url_1,url_2,url_3,url_4,url_5,initial_record,gotopage,number_records_to_display,where,number_of_records,sort_field,sel_date;
|
||||
gotopage=document.selectform.gotopage.value;
|
||||
number_records_to_display=<?php echo $number_records_to_display; ?>;
|
||||
where=document.selectform.where.value;
|
||||
initial_record=number_records_to_display*(gotopage-1);
|
||||
number_of_records=document.selectform.number_of_records.value;
|
||||
sort_field=document.selectform.sort_field.value;
|
||||
sel_date=document.selectform.sel_date.value;
|
||||
url_1='<?php echo $PHP_SELF;?>?initial_record='+initial_record;
|
||||
url_2="&where="+where;
|
||||
url_3="&number_of_records="+number_of_records;
|
||||
url_4="&sort_field="+sort_field;
|
||||
url_5="&sel_date="+sel_date;
|
||||
window.location.href=url_1+url_2+url_3+url_4+url_5;
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
// <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if (!$number_of_records){//<2F><>תҳ<D7AA>治<EFBFBD><E6B2BB><EFBFBD>г<EFBFBD>ʼ<EFBFBD><CABC>
|
||||
//-------ȷ<><C8B7><EFBFBD><EFBFBD><EFBFBD>ڷ<EFBFBD>Χ-----
|
||||
if($sel_date<0){
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-6,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime());
|
||||
}elseif($sel_date>0){
|
||||
if($sel_time){
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
|
||||
}else{
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-$sel_date+1,date("Y")));
|
||||
}
|
||||
}else{
|
||||
if($sel_time){
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime($hou_1,$mid_1,$sec_1,date("m"),date("d")-$sel_date,date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime($hou_2,$mid_2,$sec_2,date("m"),date("d")-$sel_date,date("Y")));
|
||||
}else{
|
||||
$bgn_date=date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
$end_date=date("Y-m-d H:i:s", mktime());
|
||||
}
|
||||
}
|
||||
|
||||
/* where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>Ϊ$w1,ϵͳid<69><64><EFBFBD><EFBFBD>Ϊ$w2 */
|
||||
$w1=" $time_column >='$bgn_date' AND $time_column <= '$end_date'";
|
||||
|
||||
//<2F>ϳ<EFBFBD>where<72><65><EFBFBD><EFBFBD>
|
||||
$where=" WHERE".$w1;
|
||||
|
||||
$initial_record = 0;//<2F><>ʼ<EFBFBD><CABC>¼<EFBFBD><C2BC>
|
||||
|
||||
$str_sql_all="SELECT count(*) as number_of_records FROM $table_name ".$where;
|
||||
//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 "<br>$strNotFindRecord";
|
||||
exit();
|
||||
}
|
||||
|
||||
}//endif
|
||||
|
||||
$page_num= ($initial_record / $number_records_to_display) +1; //<2F><>ҳҳ<D2B3><D2B3>
|
||||
$all_page_num= ceil($number_of_records / $number_records_to_display); //<2F><>ҳ<EFBFBD><D2B3>
|
||||
if ($number_of_records >= 1){
|
||||
$next_index = $initial_record + $number_records_to_display; //<2F><>ҳ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD><EFBFBD>Ŀ
|
||||
if ($next_index > $number_of_records)
|
||||
{
|
||||
$next_index = $number_of_records;
|
||||
}
|
||||
$t1 = $initial_record + 1;
|
||||
$prev_index = $initial_record - $number_records_to_display;
|
||||
if ($prev_index < 0){
|
||||
$prev_index = 0;
|
||||
}
|
||||
}
|
||||
$show_initital_record=$initial_record+1;
|
||||
?>
|
||||
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR>
|
||||
<TD width="50%"><?php echo "$strDisplayRecords:<FONT color=#0000ff> $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>";
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF>Ʒ<EFBFBD>ҳ<EFBFBD><D2B3>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD>
|
||||
if ($initial_record != 0)
|
||||
{
|
||||
$t1 = "initial_record=$prev_index&number_of_records=$number_of_records&table_name=$table_name&sel_date=$sel_date";
|
||||
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>룬<EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
|
||||
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type\">";
|
||||
?>
|
||||
<IMG alt=ǰһҳ src="../../images/pre_page.gif" border="0"></a>
|
||||
<?php
|
||||
}
|
||||
// NEW: Display a link for the next set of records.
|
||||
if ($next_index != $number_of_records && $number_of_records >0 && $number_of_records > $number_records_to_display )
|
||||
{
|
||||
$t1 = "initial_record=$next_index&number_of_records=$number_of_records&table_name=$table_name&sel_date=$sel_date";
|
||||
$where=urlencode($where); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>룬<EFBFBD>ʺϴ<CABA><CFB4><EFBFBD>
|
||||
echo "<a href=\"$PHP_SELF?$t1&where=$where&now_date=$end_date&last_date=$bgn_date&call_type=$call_type\">";
|
||||
?>
|
||||
<IMG alt=<3D><>һҳ src="../../images/next_page.gif" border="0"></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</TD>
|
||||
<form name="selectform" method="post" action="<?php echo "$PHP_SELF?initial_record=$prev_index&number_of_records=$number_of_records&where=$where&table_name=$table_name&call_type=$call_type";?>"
|
||||
>
|
||||
<TD align="center">
|
||||
<?php echo "$strPage"; ?>
|
||||
<select size="1" name="gotopage" onChange="javascript:goto()">
|
||||
<?php
|
||||
for($i=1;$i<=$all_page_num;$i++){
|
||||
if($i== $page_num ){
|
||||
echo "<option selected value=\"$i\" >$i</option>";
|
||||
}else{
|
||||
echo "<option value=\"$i\">$i</option>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select></td>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<?php
|
||||
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
|
||||
$where = isset($where) ? urldecode($where) : ''; //<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url<72><6C>
|
||||
$where = isset($where) ? stripslashes($where) : ''; //<2F><><EFBFBD><EFBFBD>һЩ'/'
|
||||
|
||||
//<2F><>ѯ<EFBFBD><D1AF><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD>myrows<77><73><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>
|
||||
//<2F>ϳ<EFBFBD>sql<71><6C><EFBFBD><EFBFBD>
|
||||
$order=" ORDER BY $sort_field $sort_direction";
|
||||
$limit=" LIMIT $initial_record, $number_records_to_display";
|
||||
|
||||
$csta_sql="SELECT * FROM $table_name"."\n".$where.$order.$limit;
|
||||
//echo "$csta_sql<br>";
|
||||
$csta_result = mysqli_query($pubConn,$csta_sql);
|
||||
$csta_rows = @mysqli_fetch_array($csta_result);
|
||||
echo mysqli_error($pubConn);
|
||||
|
||||
echo "<table border=\"1\" width=\"100%\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
|
||||
|
||||
if($call_type==0)//call handling
|
||||
{
|
||||
echo "<tr bgcolor=\"#E6E6E6\" align=\"center\" valign=\"top\">";
|
||||
echo "<td>$strSystem</td>";
|
||||
echo "<td>$strAmma</td>";
|
||||
echo "<td>$strSmma</td>";
|
||||
/*
|
||||
echo "<td>$strAirp</td>";
|
||||
echo "<td>$strSirp</td>";
|
||||
*/
|
||||
echo "<td>$strApr</td>";
|
||||
echo "<td>$strSpr</td>";
|
||||
/*
|
||||
echo "<td>$strAprpla</td>";
|
||||
echo "<td>$strSprpla</td>";
|
||||
echo "<td>$strAvop</td>";
|
||||
*/
|
||||
//echo "<td>$strSoprv</td>";
|
||||
//echo "<td>$strNrv</td>";
|
||||
echo "<td>$strTime($timeItem)</td>";
|
||||
echo "</tr>";
|
||||
do
|
||||
{
|
||||
echo "<tr>";
|
||||
echo "<td align=\"center\">";
|
||||
echo "VLR"."_"."$csta_rows[key_sys_id]";
|
||||
echo "</td>";
|
||||
echo "<td align=\"center\">$csta_rows[amma]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[smma]</td>";
|
||||
/*
|
||||
echo "<td align=\"center\">$csta_rows[airp]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[sirp]</td>";
|
||||
*/
|
||||
echo "<td align=\"center\">$csta_rows[apr]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[spr]</td>";
|
||||
//echo "<td align=\"center\">$csta_rows[aprpla]</td>";
|
||||
//echo "<td align=\"center\">$csta_rows[sprpla]</td>";
|
||||
//echo "<td align=\"center\">$csta_rows[avop]</td>";
|
||||
//echo "<td align=\"center\">$csta_rows[soprv]</td>";
|
||||
//echo "<td align=\"center\">$csta_rows[nrv]</td>";
|
||||
$tmpArray = explode(" ",$csta_rows[csta_datetime]);
|
||||
echo "<td align=\"center\">$tmpArray[1]</td>";
|
||||
echo "</tr>";
|
||||
}while($csta_rows= mysqli_fetch_array($csta_result));
|
||||
}
|
||||
elseif($call_type==1)//location management
|
||||
{
|
||||
echo "<tr bgcolor=\"#E6E6E6\" align=\"center\" valign=\"top\">";
|
||||
echo "<td>$strSystem</td>";
|
||||
echo "<td>$strArassv</td>";
|
||||
echo "<td>$strSrashv</td>";
|
||||
//echo "<td>$strErrash</td>";
|
||||
echo "<td>$strAapv</td>";
|
||||
echo "<td>$strSapv</td>";
|
||||
echo "<td>$strAavlu</td>";
|
||||
echo "<td>$strSavlu</td>";
|
||||
/*
|
||||
echo "<td>$strArvlu</td>";
|
||||
echo "<td>$strSrvlu</td>";
|
||||
*/
|
||||
echo "<td>$strTime($timeItem)</td>";
|
||||
echo "</tr>";
|
||||
do
|
||||
{
|
||||
echo "<tr>";
|
||||
echo "<td align=\"center\">";
|
||||
echo "VLR"."_"."$csta_rows[key_sys_id]";
|
||||
echo "</td>";
|
||||
echo "<td align=\"center\">$csta_rows[arassv]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[srashv]</td>";
|
||||
//echo "<td align=\"center\">$csta_rows[errash]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[aapv]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[sapv]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[aavlu]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[savlu]</td>";
|
||||
/*
|
||||
echo "<td align=\"center\">$csta_rows[arvlu]</td>";
|
||||
echo "<td align=\"center\">$csta_rows[srvlu]</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>
|
||||
<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
wxc2_omc/performance/vlrCsta/dataQueryIndex.php
Executable file
17
wxc2_omc/performance/vlrCsta/dataQueryIndex.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="75,*" frameborder="0">
|
||||
<frame name="header" scrolling="no" noresize target="main" src="dataQueryUp.php">
|
||||
<frame name="main" src="dataQueryDown.php" scrolling="auto" target="_self">
|
||||
<noframes>
|
||||
<body>
|
||||
|
||||
<p><3E><><EFBFBD><EFBFBD>ҳʹ<D2B3><CAB9><EFBFBD>˿<EFBFBD><CBBF>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF>ܡ<EFBFBD></p>
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
92
wxc2_omc/performance/vlrCsta/dataQueryUp.php
Executable file
92
wxc2_omc/performance/vlrCsta/dataQueryUp.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>
|
||||
|
||||
<20><><EFBFBD>ߣ<EFBFBD>
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "6.8.3.2";
|
||||
?>
|
||||
|
||||
<base target="main">
|
||||
|
||||
<script language="javascript">
|
||||
function selPage(){
|
||||
var url,sel_date,call_type;
|
||||
sel_date=document.selectform.sel_date.value;
|
||||
call_type=document.selectform.call_type.value;
|
||||
url="./dataQueryDown.php?sel_date="+sel_date+"&call_type="+call_type;
|
||||
window.parent.main.location.href=url;
|
||||
}
|
||||
</script>
|
||||
<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");
|
||||
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "$strAdvanced > $strPerformance > VLR > Data";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\">";
|
||||
// showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\" align=\"left\">";
|
||||
|
||||
$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")));
|
||||
?>
|
||||
<select style="font-family: Verdana; font-size: 8pt" name="call_type" size=1 onChange="javascript:selPage()">
|
||||
<option value="0"><?php echo "Call handling"; ?></option>
|
||||
<option value="1"><?php echo "Location management"; ?></option>
|
||||
</select>
|
||||
<select style="font-family: Verdana; font-size: 8pt" name="sel_date" size=1 onChange="javascript:selPage()">
|
||||
<?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>
|
||||
<?php
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" 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>
|
||||
Reference in New Issue
Block a user