ussd perform
This commit is contained in:
@@ -158,10 +158,16 @@ if(!$array){
|
||||
<td width="50%" align="center">
|
||||
|
||||
</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"><?php echo " $strDailyBtnPrint";?>
|
||||
</div>
|
||||
|
||||
<td width="5%" align="right">
|
||||
<a href="./downCSTA.php?sysTypeNo=360&selectedDate=<?php echo "$selectedDate";?> ">
|
||||
<img align=absBottom border=0 src="../../images/list.gif" width="16" height="16"><?php echo " Export";?>
|
||||
</a>
|
||||
</td>
|
||||
<td width="5%" align="right">
|
||||
<a href="window.print();">
|
||||
<img align=absBottom border=0 src="../../images/printer.gif" width="16" height="16"><?php echo " $strDailyBtnPrint";?>
|
||||
</a>
|
||||
</td>
|
||||
</TR>
|
||||
</TABLE>
|
||||
@@ -461,27 +467,33 @@ echo "</center>";
|
||||
<TABLE border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
|
||||
<TR bgcolor=#E6E6E6>
|
||||
<?php
|
||||
echo "<td width=\"11%\"> </td>";
|
||||
echo "<td width=\"11%\">Index</td>";
|
||||
echo "<td width=\"13%\">USSD Code</td> ";
|
||||
echo "<td width=\"13%\" align=\"right\">Session Num</td> ";
|
||||
echo "<td width=\"13%\" align=\"right\">Session Duration</td> ";
|
||||
echo "<td width=\"13%\" align=\"right\">Error Timeout</td> ";
|
||||
echo "<td width=\"13%\" align=\"right\">Error System</td> ";
|
||||
echo "<td width=\"13%\" align=\"right\">Error Message</td> ";
|
||||
echo "<td width=\"10%\"> </td>";
|
||||
echo "<td width=\"10%\">Index</td>";
|
||||
echo "<td width=\"10%\">USSD Code</td> ";
|
||||
echo "<td width=\"10%\" align=\"right\">Session Num</td> ";
|
||||
echo "<td width=\"10%\" align=\"right\">Session Duration</td> ";
|
||||
echo "<td width=\"10%\" align=\"right\">Error Timeout</td> ";
|
||||
echo "<td width=\"10%\" align=\"right\">Error System</td> ";
|
||||
echo "<td width=\"10%\" align=\"right\">Error Message</td> ";
|
||||
echo "<td width=\"10%\" align=\"right\">Average Duration</td> ";
|
||||
echo "<td width=\"10%\" align=\"right\">TPS</td> ";
|
||||
|
||||
?>
|
||||
</TR>
|
||||
<TR >
|
||||
<td rowspan="11"><?php echo "USSD Code Report"; ?></td>
|
||||
<?php
|
||||
echo "<td>1</td>";
|
||||
|
||||
$average1=$array['session_num_1']?$array['session_duration_1']/($array['session_num_1']):0;
|
||||
$tps1=$array['session_num_1']/(3600*24);
|
||||
echo "<td align=\"right\">$array[ussd_code_1]</td>";
|
||||
echo "<td align=\"right\">$array[session_num_1]</td>";
|
||||
echo "<td align=\"right\">$array[session_duration_1]</td>";
|
||||
echo "<td align=\"right\">$array[error_timeout_1]</td>";
|
||||
echo "<td align=\"right\">$array[error_system_1]</td>";
|
||||
echo "<td align=\"right\">$array[error_message_1]</td>";
|
||||
echo "<td align=\"right\">$average1</td>";
|
||||
echo "<td align=\"right\">$tps1</td>";
|
||||
|
||||
|
||||
// echo "<td align=\"right\">$incoming_call_nums</td>";
|
||||
@@ -491,6 +503,8 @@ echo "</center>";
|
||||
</TR>
|
||||
<?php
|
||||
for ($i = 2; $i <= 8; $i++) {
|
||||
$average=$array['session_num_' . $i]?$array['session_duration_' . $i]/$array['session_num_' . $i]:0;
|
||||
$tps=$array['session_num_' . $i]/(3600*24);
|
||||
echo "<tr>";
|
||||
echo "<td>$i</td>";
|
||||
echo "<td align=\"right\">{$array['ussd_code_' . $i]}</td>";
|
||||
@@ -499,6 +513,8 @@ echo "</center>";
|
||||
echo "<td align=\"right\">{$array['error_timeout_' . $i]}</td>";
|
||||
echo "<td align=\"right\">{$array['error_system_' . $i]}</td>";
|
||||
echo "<td align=\"right\">{$array['error_message_' . $i]}</td>";
|
||||
echo "<td align=\"right\">{$average}</td>";
|
||||
echo "<td align=\"right\">{$tps}</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user