Daily Report
This commit is contained in:
@@ -39,6 +39,7 @@ $ppsDbConn = mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_s
|
||||
|
||||
$face_value_type = 6;
|
||||
$moneyPara = getMoneyPara_forPpsReport(); //<2F><>ʾ<EFBFBD>Ļ<EFBFBD><C4BB>ҵ<EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD>ҵ<EFBFBD>λ<EFBFBD>ı<EFBFBD><C4B1><EFBFBD>
|
||||
|
||||
$moneyPara=$moneyPara+0;
|
||||
|
||||
if(!isset($moneyPara)||$moneyPara==0||trim($moneyPara)=="")
|
||||
@@ -130,6 +131,8 @@ else {
|
||||
$strQuery="SELECT *
|
||||
FROM daily_report
|
||||
WHERE date='$selectedDate'";
|
||||
|
||||
//$strQuery="SELECT * FROM daily_report WHERE date='2025-01-20'";
|
||||
//echo "<br>strQuery=$strQuery";
|
||||
$query=mysqli_query($ppsDbConn,$strQuery);
|
||||
echo mysqli_error($ppsDbConn);
|
||||
@@ -138,6 +141,9 @@ if(!$array){
|
||||
echo "$strDailyNoRecord($query_year-$query_month-$query_day)!";
|
||||
exit();
|
||||
}
|
||||
// echo "<pre>";
|
||||
// echo print_r($array);
|
||||
// echo "</pre>";
|
||||
?>
|
||||
|
||||
|
||||
@@ -447,6 +453,58 @@ echo "</center>";
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
||||
<?php
|
||||
//----------------------------------USSD Code Report-----------------------------------------------------------
|
||||
?>
|
||||
<p></p>
|
||||
<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> ";
|
||||
?>
|
||||
</TR>
|
||||
<TR >
|
||||
<td rowspan="11"><?php echo "USSD Code Report"; ?></td>
|
||||
<?php
|
||||
echo "<td>1</td>";
|
||||
|
||||
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\">$incoming_call_nums</td>";
|
||||
// echo "<td align=\"right\">$incoming_call_duration</td>";
|
||||
// echo "<td align=\"right\">$incoming_call_charge</td>";
|
||||
?>
|
||||
</TR>
|
||||
<?php
|
||||
for ($i = 2; $i <= 8; $i++) {
|
||||
echo "<tr>";
|
||||
echo "<td>$i</td>";
|
||||
echo "<td align=\"right\">{$array['ussd_code_' . $i]}</td>";
|
||||
echo "<td align=\"right\">{$array['session_num_' . $i]}</td>";
|
||||
echo "<td align=\"right\">{$array['session_duration_' . $i]}</td>";
|
||||
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 "</tr>";
|
||||
}
|
||||
?>
|
||||
</TABLE>
|
||||
|
||||
|
||||
<p></p>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user