init web ems all
This commit is contained in:
137
wxc2_omc/performance/pubCsta/cstaImgDownload.php
Executable file
137
wxc2_omc/performance/pubCsta/cstaImgDownload.php
Executable file
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
//-----<2D><>ҪԤ<D2AA>ȶ<EFBFBD><C8B6><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$maxYNum=5000;
|
||||
$legendArr=array(
|
||||
//array('Name','ColorHex',$color),
|
||||
array('Request','0000FF',0),
|
||||
array('Success','00CC00',0)
|
||||
);
|
||||
$title="Download";
|
||||
$imgFileName="cstaDownload_$randval.png";
|
||||
@unlink($imgFileName);
|
||||
|
||||
//-----ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>꣬<EFBFBD><EAA3AC>ʾ<EFBFBD>Ȼ<EFBFBD><C8BB><EFBFBD>Ԫ<EFBFBD>أ<EFBFBD><D8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8>ⲿ<EFBFBD><E2B2BF>
|
||||
$DEBUG=0;
|
||||
$sizex=400;
|
||||
$sizey=180;
|
||||
$bgcolor=F8F8F8;
|
||||
$fgcolor=000000;
|
||||
//$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),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)));
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
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);
|
||||
|
||||
//<2F>߿<EFBFBD>
|
||||
$xBgn=75;
|
||||
$yBgn=15;
|
||||
$xEnd=383;
|
||||
$yEnd=115;
|
||||
$unitXPix=1;
|
||||
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);
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע
|
||||
for($i=0;$i<25;$i++){
|
||||
if($i % 2 == 0){
|
||||
ImageDashedLine($im, $xBgn + $i*12, $yBgn, $xBgn + $i*12, $yEnd, $text_color);
|
||||
Imagestring($im, 2, $xBgn + $i*12 - 4, $yEnd, "$i", $text_color);
|
||||
}
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע
|
||||
for($i=0;$i<4;$i++){
|
||||
ImageDashedLine($im, $xBgn, $yBgn + $i*25, $xEnd, $yBgn + $i*25, $text_color);
|
||||
$yRemark=$maxYNum / 4 * (4 - $i);
|
||||
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$yRemark", $text_color);
|
||||
}
|
||||
|
||||
for($i=0;$i<sizeof($legendArr);$i++){
|
||||
$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,82 + $i* 100,$yEnd + 22,80 + $i* 100 + 10,$yEnd + 30,$legendArr[$i][2]);
|
||||
Imagestring($im, 2, 95 + $i* 100,$yEnd + 20, "$tmpName", $text_color);
|
||||
}
|
||||
|
||||
//<2F>²<EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//$title="This is a image tamplate.";
|
||||
Imagestring($im, 2, 20,$yEnd + 40, $title, $text_color);
|
||||
|
||||
//<2F><><EFBFBD>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Imagestring($im, 2, $xEnd-90,$yEnd + 40, "Date:$date", $text_color);
|
||||
|
||||
//-----<2D><>ʼ<EFBFBD><CABC>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>ɫ<EFBFBD>飩<EFBFBD><E9A3A9><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD>
|
||||
//-----<2D><>ʼ<EFBFBD><CABC>ͼ
|
||||
$i=0;
|
||||
while($rows = mysqli_fetch_array($result)){
|
||||
$pointArr_1[$i]=$rows[timeNo];
|
||||
$pointArr_2[$i]=$rows[timeNo];
|
||||
$pointArr_1[$i+1]=$rows[dnRequ];
|
||||
$pointArr_2[$i+1]=$rows[dnSucc];
|
||||
$i += 2;
|
||||
}
|
||||
|
||||
$pointArr=getNewXY($pointArr_1);
|
||||
if($DEBUG){
|
||||
for($i=0;$i<sizeof($pointArr_1);$i++){
|
||||
echo "<br>pointArr[$i]={$pointArr[$i]}";
|
||||
}
|
||||
}
|
||||
$pointNum= sizeof($pointArr) / 2;
|
||||
|
||||
$tmpColor=$legendArr[0][2];
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
imagepolygon($im, $pointArr, $pointNum, $tmpColor);
|
||||
|
||||
$pointArr=getNewXY($pointArr_2);
|
||||
if($DEBUG){
|
||||
for($i=0;$i<sizeof($pointArr);$i++){
|
||||
echo "<br>pointArr[$i]={$pointArr[$i]}";
|
||||
}
|
||||
}
|
||||
$pointNum= sizeof($pointArr) / 2;
|
||||
|
||||
$tmpColor=$legendArr[1][2];
|
||||
//ɫ<><C9AB>
|
||||
imagefilledpolygon($im, $pointArr, $pointNum, $tmpColor);
|
||||
|
||||
//-----<2D><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//<2F>ٻ<EFBFBD>һ<EFBFBD>α߿<CEB1>
|
||||
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);
|
||||
//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD>
|
||||
ImagePng ($im,"$imgFileName");
|
||||
ImageDestroy($im);
|
||||
|
||||
/*
|
||||
//-----<2D><>ʾͼƬ
|
||||
echo "<body topmargin=\"0\" leftmargin=\"5\">";
|
||||
echo "<img src=\"$imgFileName\">";
|
||||
echo "<br><br>";
|
||||
echo "</body>";
|
||||
*/
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
138
wxc2_omc/performance/pubCsta/cstaImgUpload.php
Executable file
138
wxc2_omc/performance/pubCsta/cstaImgUpload.php
Executable file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
//-----<2D><>ҪԤ<D2AA>ȶ<EFBFBD><C8B6><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$maxYNum=2000;
|
||||
$legendArr=array(
|
||||
//array('Name','ColorHex',$color),
|
||||
array('Request','0000FF',0),
|
||||
array('Success','00CC00',0)
|
||||
);
|
||||
$title="Upload";
|
||||
$imgFileName="cstaUpload_$randval.png";
|
||||
@unlink($imgFileName);
|
||||
|
||||
//-----ͼƬ<CDBC><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>꣬<EFBFBD><EAA3AC>ʾ<EFBFBD>Ȼ<EFBFBD><C8BB><EFBFBD>Ԫ<EFBFBD>أ<EFBFBD><D8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8>ⲿ<EFBFBD><E2B2BF>
|
||||
$DEBUG=0;
|
||||
$sizex=400;
|
||||
$sizey=180;
|
||||
$bgcolor=F8F8F8;
|
||||
$fgcolor=000000;
|
||||
//$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),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)));
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
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);
|
||||
|
||||
//<2F>߿<EFBFBD>
|
||||
$xBgn=75;
|
||||
$yBgn=15;
|
||||
$xEnd=383;
|
||||
$yEnd=115;
|
||||
$unitXPix=1;
|
||||
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);
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע
|
||||
for($i=0;$i<25;$i++){
|
||||
if($i % 2 == 0){
|
||||
ImageDashedLine($im, $xBgn + $i*12, $yBgn, $xBgn + $i*12, $yEnd, $text_color);
|
||||
Imagestring($im, 2, $xBgn + $i*12 - 4, $yEnd, "$i", $text_color);
|
||||
}
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע
|
||||
for($i=0;$i<4;$i++){
|
||||
ImageDashedLine($im, $xBgn, $yBgn + $i*25, $xEnd, $yBgn + $i*25, $text_color);
|
||||
$yRemark=$maxYNum / 4 * (4 - $i);
|
||||
Imagestring($im, 2, $xBgn - 50, $yBgn + $i*25 - 5, "$yRemark", $text_color);
|
||||
}
|
||||
|
||||
for($i=0;$i<sizeof($legendArr);$i++){
|
||||
$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,82 + $i* 100,$yEnd + 22,80 + $i* 100 + 10,$yEnd + 30,$legendArr[$i][2]);
|
||||
Imagestring($im, 2, 95 + $i* 100,$yEnd + 20, "$tmpName", $text_color);
|
||||
}
|
||||
|
||||
//<2F>²<EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//$title="This is a image tamplate.";
|
||||
Imagestring($im, 2, 20,$yEnd + 40, $title, $text_color);
|
||||
|
||||
//<2F><><EFBFBD>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Imagestring($im, 2, $xEnd-90,$yEnd + 40, "Date:$date", $text_color);
|
||||
|
||||
//-----<2D><>ʼ<EFBFBD><CABC>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>ɫ<EFBFBD>飩<EFBFBD><E9A3A9><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD>
|
||||
//-----<2D><>ʼ<EFBFBD><CABC>ͼ
|
||||
$i=0;
|
||||
while($rows = mysqli_fetch_array($result)){
|
||||
$pointArr_1[$i]=$rows[timeNo];
|
||||
$pointArr_2[$i]=$rows[timeNo];
|
||||
$pointArr_1[$i+1]=$rows[upRequ];
|
||||
$pointArr_2[$i+1]=$rows[upSucc];
|
||||
$i += 2;
|
||||
}
|
||||
|
||||
$pointArr=getNewXY($pointArr_1);
|
||||
if($DEBUG){
|
||||
for($i=0;$i<sizeof($pointArr);$i++){
|
||||
echo "<br>pointArr[$i]={$pointArr[$i]}";
|
||||
}
|
||||
}
|
||||
$pointNum= sizeof($pointArr) / 2;
|
||||
|
||||
$tmpColor=$legendArr[0][2];
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
imagepolygon($im, $pointArr, $pointNum, $tmpColor);
|
||||
|
||||
$pointArr=getNewXY($pointArr_2);
|
||||
if($DEBUG){
|
||||
for($i=0;$i<sizeof($pointArr);$i++){
|
||||
echo "<br>pointArr[$i]={$pointArr[$i]}";
|
||||
}
|
||||
}
|
||||
$pointNum= sizeof($pointArr) / 2;
|
||||
|
||||
$tmpColor=$legendArr[1][2];
|
||||
//ɫ<><C9AB>
|
||||
imagefilledpolygon($im, $pointArr, $pointNum, $tmpColor);
|
||||
|
||||
//-----<2D><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if(!$DEBUG){
|
||||
//<2F>ٻ<EFBFBD>һ<EFBFBD>α߿<CEB1>
|
||||
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);
|
||||
//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ļ<EFBFBD>
|
||||
ImagePng ($im,"$imgFileName");
|
||||
ImageDestroy($im);
|
||||
}
|
||||
/*
|
||||
//-----<2D><>ʾͼƬ
|
||||
echo "<body topmargin=\"0\" leftmargin=\"5\">";
|
||||
echo "<img src=\"$imgFileName\">";
|
||||
echo "<br><br>";
|
||||
echo "</body>";
|
||||
*/
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
101
wxc2_omc/performance/pubCsta/cstaListDown.php
Executable file
101
wxc2_omc/performance/pubCsta/cstaListDown.php
Executable file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>CDR<44>б<EFBFBD><D0B1><EFBFBD>ʾ
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><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/include.inc");
|
||||
$DEBUG = 0;
|
||||
$MAX_NUM_PER_PAGE = 100;
|
||||
$db='95DB_CSTA';
|
||||
$displayedNum = 0;
|
||||
if(!isset($date)){
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
}
|
||||
if($DEBUG) echo "<br>date=$date";
|
||||
$dateArr = explode('-',$date);
|
||||
|
||||
$tableName="95dbCsta_{$dateArr[0]}_{$dateArr[1]}_{$dateArr[2]}";
|
||||
$sql = "SELECT * FROM $tableName";
|
||||
if($DEBUG) echo "<br>sql=$sql";
|
||||
$result = @mysqli_query($pubConn,$sql);
|
||||
if($DEBUG) echo '<br>'.mysqli_error($pubConn);
|
||||
|
||||
echo "\n <script language=\"JavaScript\">";
|
||||
echo "\n <!--";
|
||||
echo "\n function TableMouseOver(Obj){";
|
||||
echo "\n Obj.style.backgroundColor='#f2f2f2';";
|
||||
echo "\n }";
|
||||
echo "\n function TableMouseOut(Obj){";
|
||||
echo "\n Obj.style.backgroundColor='';";
|
||||
echo "\n }";
|
||||
echo "\n -->";
|
||||
echo "\n </script>";
|
||||
|
||||
?>
|
||||
<body topmargin="0" leftmargin="5">
|
||||
<br>
|
||||
<table border="1" width="100%" bordercolordark="#FFFFFF" bordercolor="#808080" cellspacing="0">
|
||||
<tr bgcolor="#E6E6E6" align="center">
|
||||
<td rowspan="2" width="6%">No.</td>
|
||||
<td rowspan="2" width="11%">HB Number</td>
|
||||
<td rowspan="2" width="12%">Active User</td>
|
||||
<td rowspan="2" width="12%">Page Visit</td>
|
||||
<td colspan="2" width="20%">Download</td>
|
||||
<td colspan="2" width="20%">Upload</td>
|
||||
<td rowspan="2" width="20%">Date</td>
|
||||
</tr>
|
||||
<tr bgcolor="#E6E6E6" align="center">
|
||||
<td>request</td>
|
||||
<td>success</td>
|
||||
<!-- <td>no_credit</td> -->
|
||||
<!-- <td>net_failure</td> -->
|
||||
<!-- <td>file_exist</td> -->
|
||||
<!-- <td>auth_failure</td> -->
|
||||
<!-- <td>other_failure</td> -->
|
||||
<td>request</td>
|
||||
<td>success</td>
|
||||
<!-- <td>data_error</td> -->
|
||||
<!-- <td>net_failure</td> -->
|
||||
<!-- <td>auth_failure</td> -->
|
||||
<!-- <td>other_failure</td> -->
|
||||
</tr>
|
||||
<?php
|
||||
$rowsNo = 0;
|
||||
while($rows = @mysqli_fetch_array($result)){
|
||||
$rowsNo++;//$rows[timeNo]
|
||||
echo "<tr align=\"right\" onmouseover=\"TableMouseOver(this)\" onmouseout=\"TableMouseOut(this)\">";
|
||||
echo "<td>$rowsNo </td>";
|
||||
echo "<td>$rows[hb_per_min] </td>";
|
||||
echo "<td>$rows[active] </td>";
|
||||
echo "<td>$rows[webVisit]</td>";
|
||||
echo "<td>$rows[dnRequ]</td>";
|
||||
echo "<td>$rows[dnSucc]</td>";
|
||||
// echo "<td>$rows[dnFailNoCredit]</td>";
|
||||
// echo "<td>$rows[dnFailNetfail]</td>";
|
||||
// echo "<td>$rows[dnFailFileExists]</td>";
|
||||
// echo "<td>$rows[dnFailAuthFail]</td>";
|
||||
// echo "<td>$rows[dnFailOther]</td>";
|
||||
echo "<td>$rows[upRequ]</td>";
|
||||
echo "<td>$rows[upSucc]</td>";
|
||||
// echo "<td>$rows[upFailDataError]</td>";
|
||||
// echo "<td>$rows[upFailNetFail]</td>";
|
||||
// echo "<td>$rows[upFailAuthFail]</td>";
|
||||
// echo "<td>$rows[upFailOther]</td>";
|
||||
echo "<td align=\"center\">$rows[recordTime] </td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
15
wxc2_omc/performance/pubCsta/cstaListIndex.php
Executable file
15
wxc2_omc/performance/pubCsta/cstaListIndex.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require("../inc/include.inc");
|
||||
|
||||
echo "<frameset rows=\"40,*\" framespacing=\"0\" border=\"0\" frameborder=\"0\">";
|
||||
echo "<frame name=\"header\" scrolling=\"auto\" noresize target=\"main\" src=\"cstaListUp.php\" marginwidth=\"0\" marginheight=\"0\">";
|
||||
echo "<frame name=\"main\" src=\"cstaListDown.php\" scrolling=\"auto\"target=\"_self\" marginwidth=\"0\" marginheight=\"0\">";
|
||||
|
||||
echo "<noframes>";
|
||||
echo "<body>";
|
||||
echo "<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>";
|
||||
echo "</body>";
|
||||
echo "</noframes>";
|
||||
echo "</frameset>";
|
||||
echo "</html>";
|
||||
?>
|
||||
66
wxc2_omc/performance/pubCsta/cstaListUp.php
Executable file
66
wxc2_omc/performance/pubCsta/cstaListUp.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3><EFBFBD><EFBFBD>ʾ<EFBFBD>ϲ<EFBFBD>ҳ<EFBFBD><D2B3>
|
||||
|
||||
<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><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$helpId = "3.5";
|
||||
?>
|
||||
<script language="javascript">
|
||||
function selectDate(){
|
||||
var url,tmpDate;
|
||||
tmpDate=document.selectForm.date.options[document.selectForm.date.selectedIndex].value;
|
||||
url="./cstaListDown.php?date="+tmpDate;
|
||||
window.parent.main.location.href=url;
|
||||
}
|
||||
function selectGraph(){
|
||||
var url,tmpDate;
|
||||
tmpDate=document.selectForm.date.options[document.selectForm.date.selectedIndex].value;
|
||||
url="./cstaShowGraph.php?date="+tmpDate;
|
||||
window.parent.main.location.href=url;
|
||||
}
|
||||
</script>
|
||||
<base target="main">
|
||||
<body topmargin="5" leftmargin="5">
|
||||
<form method="POST" action="./cstaListDown.php" name="selectForm">
|
||||
<table border="1" width="100%" bordercolordark="#FFFFFF" bordercolor="#808080" cellspacing="0">
|
||||
<tr bgcolor="#E6E6E6">
|
||||
<td width="90%">Date:
|
||||
<select size="1" name="date" onChange="javascript:selectDate()">
|
||||
<?php
|
||||
for($i=50;$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 " ";
|
||||
|
||||
// echo "<input type=\"submit\" name=\"sbmTable\" value=\"Records\">";
|
||||
// echo " ";
|
||||
// echo "<input type=\"button\" name=\"sbmGraph\" value=\"Graph\" onClick=\"javascript:selectGraph()\">";
|
||||
echo "</td></tr>";
|
||||
?>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
383
wxc2_omc/performance/pubCsta/dailyReport.php
Executable file
383
wxc2_omc/performance/pubCsta/dailyReport.php
Executable file
@@ -0,0 +1,383 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>ÿ<EFBFBD>ձ<EFBFBD><D5B1><EFBFBD><EFBFBD><EFBFBD>ʾ
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><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/include.inc");
|
||||
$DEBUG = 0;
|
||||
?>
|
||||
<script language="javascript">
|
||||
function selectDate(){
|
||||
var url,tmpDate;
|
||||
tmpDate=document.selectForm.date.options[document.selectForm.date.selectedIndex].value;
|
||||
url="./dailyReport.php?date="+tmpDate;
|
||||
window.location.href=url;
|
||||
}
|
||||
</script>
|
||||
<body topmargin="0">
|
||||
<br>
|
||||
<form method="POST" action="$PHP_SELF" name="selectForm">
|
||||
<table border="1" width="640" bordercolordark="#FFFFFF" bordercolor="#808080" cellspacing="0">
|
||||
<tr bgcolor="#E6E6E6">
|
||||
<td width="90%">Date:
|
||||
<select size="1" name="date" onChange="javascript:selectDate()">
|
||||
<?php
|
||||
for($i=365;$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> ";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td align="right">
|
||||
<nobr>
|
||||
<div onClick="window.print();" style="cursor:hand">
|
||||
<img border="0" src="../images/printer.gif" > Print
|
||||
</div>
|
||||
</nobr>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<?php
|
||||
//ɾ<><C9BE><EFBFBD><EFBFBD>Ŀ¼<C4BF><C2BC><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD><EFBFBD>ͼƬ
|
||||
$directory="./";
|
||||
$mydir=dir($directory);
|
||||
$delTimestamp=mktime()-600;//ʮ<><CAAE><EFBFBD><EFBFBD>ǰ
|
||||
while($file=$mydir->read()){
|
||||
//echo "<br> $file ";
|
||||
//echo filectime($file);
|
||||
if(strstr($file,'.png')
|
||||
&& filectime($file) < $delTimestamp){
|
||||
if($DEBUG) echo "<br>DELETE : $file";
|
||||
@unlink($file);
|
||||
}
|
||||
}
|
||||
$mydir->close();
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
mt_srand((double)microtime()*1000000);
|
||||
$randval = mt_rand();
|
||||
|
||||
if(!isset($date)){
|
||||
if($DEBUG) echo "<br>Default is Today";
|
||||
$date=date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));
|
||||
}
|
||||
if($DEBUG) echo "<br>date=$date";
|
||||
$dateArr = explode('-',$date);
|
||||
|
||||
//========================================================================
|
||||
// CDR Daily Report
|
||||
//========================================================================
|
||||
$db='95DB_CDR';
|
||||
$tableName = "95dbCdr_{$dateArr[0]}_{$dateArr[1]}_{$dateArr[2]}";
|
||||
$sumSql = "SELECT operation,count(charge) as conCharge,sum(charge) as sumCharge
|
||||
FROM $tableName GROUP BY operation ORDER BY operation";
|
||||
if($DEBUG) echo "<br>sumSql=$sumSql";
|
||||
$sumResult = @mysqli_query($pubConn,$sumSql);
|
||||
|
||||
$errorStr = mysqli_error($pubConn);
|
||||
if(strstr($errorStr,"doesn't exist")){
|
||||
echo "<br>This day's record doesn't exist";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$sumChargeArr=array(0,0,0);
|
||||
$conChargeArr=array(0,0,0);
|
||||
while($sumRows = @mysqli_fetch_array($sumResult)){
|
||||
$i=$sumRows[operation];
|
||||
$sumChargeArr[$i]=$sumRows[sumCharge];
|
||||
$conChargeArr[$i]=$sumRows[conCharge];
|
||||
}
|
||||
echo "<table border=\"1\" width=\"640\" bordercolordark=\"#FFFFFF\" bordercolor=\"#808080\" cellspacing=\"0\">";
|
||||
echo " <tr bgcolor=\"#E6E6E6\" align=\"left\">";
|
||||
echo " <td colspan=\"3\">Charge</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td width=\"40%\" align=\"center\">Operation Type</td>";
|
||||
echo " <td width=\"30%\" align=\"center\">Total Times</td>";
|
||||
echo " <td width=\"30%\" align=\"center\">Total Charge</td>";
|
||||
echo " </tr>";
|
||||
for($i=0;$i<sizeof($subsOperDefArr);$i++){
|
||||
echo " <tr>";
|
||||
echo " <td align=\"left\">$subsOperDefArr[$i] </td>";
|
||||
echo " <td align=\"right\">$conChargeArr[$i] </td>";
|
||||
echo " <td align=\"right\">$sumChargeArr[$i] </td>";
|
||||
echo " </tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
|
||||
|
||||
//========================================================================
|
||||
// CSTA Daily Report
|
||||
//========================================================================
|
||||
$db='95DB_CSTA';
|
||||
|
||||
$tableName = "95dbCsta_{$dateArr[0]}_{$dateArr[1]}_{$dateArr[2]}";
|
||||
$sumSql = "SELECT sum(active) as sumActive,sum(webVisit) as sumWebVisit,
|
||||
sum(dnRequ) as sumDnRequ,
|
||||
sum(dnSucc) as sumDnSucc,
|
||||
sum(dnFailNoCharge) as sumDnFailNoCharge,
|
||||
sum(dnFailNetFail) as sumDnFailNetFail,
|
||||
sum(dnFailFileExists) as sumDnFailFileExists,
|
||||
sum(dnFailAuthFail) as sumDnFailAuthFail,
|
||||
sum(dnFailOther) as sumDnFailOther,
|
||||
sum(upRequ) as sumUpRequ,
|
||||
sum(upSucc) as sumUpSucc,
|
||||
sum(upFailDataError) as sumUpFailDataError,
|
||||
sum(upFailNetFail) as sumUpFailNetFail,
|
||||
sum(upFailAuthFail) as sumUpFailAuthFail,
|
||||
sum(upFailOther) as sumUpFailOther
|
||||
FROM $tableName ";
|
||||
if($DEBUG) echo "<br>sumSql=$sumSql";
|
||||
$sumResult = @mysqli_query($pubConn,$sumSql);
|
||||
$sumRows = @mysqli_fetch_array($sumResult);
|
||||
$errorStr = mysqli_error($pubConn);
|
||||
if(strstr($errorStr,"doesn't exist")){
|
||||
echo "<br>This day's record doesn't exist";
|
||||
exit(0);
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵת<D6B5><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
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)) - 1;
|
||||
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]}";
|
||||
$pointArr[$i+2] = $pointArr[0] * $unitXPix;
|
||||
$pointArr[$i+3] = $yEnd;
|
||||
return($pointArr);
|
||||
}
|
||||
|
||||
echo "<br><br>";
|
||||
$sql = "SELECT * FROM $tableName ORDER BY timeNo";
|
||||
if($DEBUG) echo "<br>sql=$sql";
|
||||
|
||||
//=============================User=======================================
|
||||
$result = @mysqli_query($pubConn,$sql);
|
||||
require("./cstaImgUser.php");
|
||||
|
||||
echo "<table border=\"1\" width=\"640\" bordercolordark=\"#FFFFFF\" bordercolor=\"#808080\" cellspacing=\"0\">";
|
||||
echo " <tr bgcolor=\"#E6E6E6\" align=\"left\">";
|
||||
echo " <td colspan=\"4\">User</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td align=\"center\" rowspan=\"10\" width=\"40%\"><img src=\"$imgFileName\"></td>";
|
||||
echo " <td align=\"center\"> </td>";
|
||||
echo " <td align=\"center\">Total</td>";
|
||||
echo " <td align=\"center\">%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Web Visit</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumWebVisit]</td>";
|
||||
echo " <td align=\"right\"> 100%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "<br><br>";
|
||||
|
||||
//=============================Download=====================================
|
||||
$result = @mysqli_query($pubConn,$sql);
|
||||
require("./cstaImgDownload.php");
|
||||
|
||||
echo "<table border=\"1\" width=\"640\" bordercolordark=\"#FFFFFF\" bordercolor=\"#808080\" cellspacing=\"0\">";
|
||||
echo " <tr bgcolor=\"#E6E6E6\" align=\"left\">";
|
||||
echo " <td colspan=\"4\">Download</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td align=\"center\" rowspan=\"10\" width=\"40%\"><img src=\"$imgFileName\"></td>";
|
||||
echo " <td align=\"center\"> </td>";
|
||||
echo " <td align=\"center\">Total</td>";
|
||||
echo " <td align=\"center\">%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Request</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumDnRequ]</td>";
|
||||
echo " <td align=\"right\"> 100%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Success</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumDnSucc]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumDnRequ],$sumRows[sumDnSucc]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>No Charge</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumDnFailNoCharge]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumDnRequ],$sumRows[sumDnFailNoCharge]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Net Failure</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumDnFailNetFail]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumDnRequ],$sumRows[sumDnFailNetFail]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>File Exist</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumDnFailFileExists]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumDnRequ],$sumRows[sumDnFailFileExists]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Auth. Failure</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumDnFailAuthFail]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumDnRequ],$sumRows[sumDnFailAuthFail]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Other Failure</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumDnFailOther]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumDnRequ],$sumRows[sumDnFailOther]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
||||
echo "<br><br>";
|
||||
|
||||
//=============================Upload=======================================
|
||||
$result = @mysqli_query($pubConn,$sql);
|
||||
require("./cstaImgUpload.php");
|
||||
|
||||
echo "<table border=\"1\" width=\"640\" bordercolordark=\"#FFFFFF\" bordercolor=\"#808080\" cellspacing=\"0\">";
|
||||
echo " <tr bgcolor=\"#E6E6E6\" align=\"left\">";
|
||||
echo " <td colspan=\"4\">Upload</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td align=\"center\" rowspan=\"10\" width=\"40%\"><img src=\"$imgFileName\"></td>";
|
||||
echo " <td align=\"center\"> </td>";
|
||||
echo " <td align=\"center\">Total</td>";
|
||||
echo " <td align=\"center\">%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Request</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumUpRequ]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumUpRequ],$sumRows[sumUpRequ]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Success</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumUpSucc]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumUpRequ],$sumRows[sumUpSucc]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Data Error</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumUpFailDataError]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumUpRequ],$sumRows[sumUpFailDataError]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Net Failure</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumUpFailNetFail]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumUpRequ],$sumRows[sumUpFailNetFail]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Auth. Failure</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumUpFailAuthFail]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumUpRequ],$sumRows[sumUpFailAuthFail]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td>Other Failure</td>";
|
||||
echo " <td align=\"right\"> $sumRows[sumUpFailOther]</td>";
|
||||
$tmpPercent = getPercent($sumRows[sumUpRequ],$sumRows[sumUpFailOther]);
|
||||
echo " <td align=\"right\"> $tmpPercent%</td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " <td> </td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
//==========================================================================
|
||||
$dayStr=date("Y-m-d H:i:s",mktime());
|
||||
echo "<br> Print Time: $dayStr ";
|
||||
echo " Print User: $userInfo[ID] <br><br>";
|
||||
echo "</body>";
|
||||
?>
|
||||
Reference in New Issue
Block a user