init web ems all
This commit is contained in:
1 parent
81c97acbe9
commit
5cc56f8078
4263 files changed
+798779
No files matched your search
+420
@@ -0,0 +1,420 @@
|
||||
<?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")));
|
||||
$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%";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<body leftmargin=0 topmargin=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>
|
||||
</body>
|
||||
</html>
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="60,*" 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>
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
<?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")));
|
||||
?>
|
||||
<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 topmargin="0" leftmargin="0">
|
||||
<?php
|
||||
echo "$strTitlePerformance > AUC > $strAnalysis";
|
||||
?>
|
||||
<form method="POST" action="./dataAnalysisDown.php" name="selectform">
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+246
@@ -0,0 +1,246 @@
|
||||
<?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")));
|
||||
$showDate = omc_keep_length($showDate,0,2);
|
||||
?>
|
||||
|
||||
<body leftmargin=0 topmargin=0>
|
||||
<?php
|
||||
$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; ?></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 echo "$csta_rows[csta_datetime] ";?></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>
|
||||
</body>
|
||||
</html>
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
|
||||
<frameset framespacing="0" border="0" rows="60,*" 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
+60
@@ -0,0 +1,60 @@
|
||||
<?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")));
|
||||
?>
|
||||
<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=0 topmargin=0>
|
||||
Performance > AUC > Query
|
||||
<form method="POST" action="./dataQueryDown.php" name="selectform">
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user