📄 call-daily-load.php
字号:
<td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="dsttype" value="2" <?php if($dsttype==2){?>checked<?php }?>>Begins with</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="dsttype" value="3" <?php if($dsttype==3){?>checked<?php }?>>Contains</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="dsttype" value="4" <?php if($dsttype==4){?>checked<?php }?>>Ends with</td> </tr></table></td> </tr> <tr> <td align="left" bgcolor="#000033"> <font face="verdana" size="1" color="#ffffff"><b> SOURCE</b></font> </td> <td class="bar-search" align="left" bgcolor="#acbdee"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#acbdee"><tr><td> <INPUT TYPE="text" NAME="src" value="<?php echo "$src";?>"></td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="sourcetype" value="1" <?php if((!isset($sourcetype))||($sourcetype==1)){?>checked<?php }?>>Exact</td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="sourcetype" value="2" <?php if($sourcetype==2){?>checked<?php }?>>Begins with</td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="sourcetype" value="3" <?php if($sourcetype==3){?>checked<?php }?>>Contains</td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="sourcetype" value="4" <?php if($sourcetype==4){?>checked<?php }?>>Ends with</td> </tr></table></td> </tr><!-- AMP <tr> <td class="bar-search" align="left" bgcolor="#555577"> <font face="verdana" size="1" color="#ffffff"><b> CLI</b></font> </td> <td class="bar-search" align="left" bgcolor="#cddeff"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td> <INPUT TYPE="text" NAME="clid" value="<?php echo $clid?>"></td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="clidtype" value="1" <?php if((!isset($clidtype))||($clidtype==1)){?>checked<?php }?>>Exact</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="clidtype" value="2" <?php if($clidtype==2){?>checked<?php }?>>Begins with</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="clidtype" value="3" <?php if($clidtype==3){?>checked<?php }?>>Contains</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="clidtype" value="4" <?php if($clidtype==4){?>checked<?php }?>>Ends with</td> </tr></table></td> </tr> <tr> <td align="left" bgcolor="#000033"> <font face="verdana" size="1" color="#ffffff"><b> USERFIELD</b></font> </td> <td class="bar-search" align="left" bgcolor="#acbdee"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#acbdee"><tr><td> <INPUT TYPE="text" NAME="userfield" value="<?php echo "$userfield";?>"></td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="userfieldtype" value="1" <?php if((!isset($userfieldtype))||($userfieldtype==1)){?>checked<?php }?>>Exact</td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="userfieldtype" value="2" <?php if($userfieldtype==2){?>checked<?php }?>>Begins with</td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="userfieldtype" value="3" <?php if($userfieldtype==3){?>checked<?php }?>>Contains</td> <td class="bar-search" align="center" bgcolor="#acbdee"><input type="radio" NAME="userfieldtype" value="4" <?php if($userfieldtype==4){?>checked<?php }?>>Ends with</td> </tr></table></td> </tr> <tr> <td class="bar-search" align="left" bgcolor="#555577"> <font face="verdana" size="1" color="#ffffff"><b> ACCOUNTCODE</b></font> </td> <td class="bar-search" align="left" bgcolor="#cddeff"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td> <INPUT TYPE="text" NAME="accountcode" value="<?php echo $accountcode?>"></td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="accountcodetype" value="1" <?php if((!isset($accountcodetype))||($accountcodetype==1)){?>checked<?php }?>>Exact</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="accountcodetype" value="2" <?php if($accountcodetype==2){?>checked<?php }?>>Begins with</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="accountcodetype" value="3" <?php if($accountcodetype==3){?>checked<?php }?>>Contains</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="accountcodetype" value="4" <?php if($accountcodetype==4){?>checked<?php }?>>Ends with</td> </tr></table></td> </tr> --> <tr> <td align="left" bgcolor="#000033"> <font face="verdana" size="1" color="#ffffff"><b> CHANNEL</b></font> </td> <td class="bar-search" align="left" bgcolor="#acbdee"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td> <INPUT TYPE="text" NAME="channel" value="<?php echo $channel?>"></td> </tr></table></td> </tr> <tr> <td class="bar-search" align="left" bgcolor="#555577"> </td> <td class="bar-search" align="center" bgcolor="#cddeff"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#cddeff"> <tr> <td align="right"> <input type="image" name="image16" align="top" border="0" src="images/button-search.gif" /> </td></tr></table> </td> </tr> </tbody></table> </FORM></center><!-- ** ** ** ** ** Part to display the GRAPHIC ** ** ** ** ** --><br><br><?php if (is_array($list) && count($list)>0){$table_graph=array();$table_graph_hours=array();$numm=0;foreach ($list_total as $recordset){ $numm++; $mydate= substr($recordset[0],0,10); $mydate_hours= substr($recordset[0],0,13); //echo "$mydate<br>"; if (is_array($table_graph_hours[$mydate_hours])){ $table_graph_hours[$mydate_hours][0]++; $table_graph_hours[$mydate_hours][1]=$table_graph_hours[$mydate_hours][1]+$recordset[1]; }else{ $table_graph_hours[$mydate_hours][0]=1; $table_graph_hours[$mydate_hours][1]=$recordset[1]; } if (is_array($table_graph[$mydate])){ $table_graph[$mydate][0]++; $table_graph[$mydate][1]=$table_graph[$mydate][1]+$recordset[1]; }else{ $table_graph[$mydate][0]=1; $table_graph[$mydate][1]=$recordset[1]; } }$mmax=0;$totalcall==0;$totalminutes=0;foreach ($table_graph as $tkey => $data){ if ($mmax < $data[1]) $mmax=$data[1]; $totalcall+=$data[0]; $totalminutes+=$data[1];}?><!-- TITLE GLOBAL --><center> <table border="0" cellspacing="0" cellpadding="0" width="80%"><tbody><tr><td align="left" height="30"> <table cellspacing="0" cellpadding="1" bgcolor="#000000" width="50%"><tbody><tr><td> <table cellspacing="0" cellpadding="0" width="100%"><tbody> <tr><td bgcolor="#600101" align="left"><font face="verdana" size="1" color="white"><b>TOTAL</b></font></td></tr> </tbody></table> </td></tr></tbody></table> </td></tr></tbody></table> <!-- FIN TITLE GLOBAL MINUTES //--> <table border="0" cellspacing="0" cellpadding="0" width="80%"><tbody><tr><td bgcolor="#000000"> <table border="0" cellspacing="1" cellpadding="2" width="100%"><tbody> <tr> <td align="center" bgcolor="#600101"></td> <td bgcolor="#b72222" align="center" colspan="4"><font face="verdana" size="1" color="#ffffff"><b>ASTERISK MINUTES</b></font></td> </tr> <tr bgcolor="#600101"> <td align="right" bgcolor="#b72222"><font face="verdana" size="1" color="#ffffff"><b>DATE</b></font></td> <td align="center"><font face="verdana" size="1" color="#ffffff"><b>DURATION</b></font></td> <td align="center"><font face="verdana" size="1" color="#ffffff"><b>GRAPHIC</b></font></td> <td align="center"><font face="verdana" size="1" color="#ffffff"><b>CALLS</b></font></td> <td align="center"><font face="verdana" size="1" color="#ffffff"><b> <acronym title="Average Connection Time">ACT</acronym> </b></font></td> <!-- LOOP --> <?php $i=0; // #ffffff #cccccc foreach ($table_graph as $tkey => $data){ $i=($i+1)%2; $tmc = $data[1]/$data[0]; $tmc_60 = sprintf("%02d",intval($tmc/60)).":".sprintf("%02d",intval($tmc%60)); $minutes_60 = sprintf("%02d",intval($data[1]/60)).":".sprintf("%02d",intval($data[1]%60)); $widthbar= intval(($data[1]/$mmax)*200); //bgcolor="#336699" ?> </tr><tr> <td align="right" class="sidenav" nowrap="nowrap"><font face="verdana" size="1" color="#ffffff"><?php echo $tkey?></font></td> <td bgcolor="<?php echo $FG_TABLE_ALTERNATE_ROW_COLOR[$i]?>" align="right" nowrap="nowrap"><font face="verdana" color="#000000" size="1"><?php echo $minutes_60?> </font></td> <td bgcolor="<?php echo $FG_TABLE_ALTERNATE_ROW_COLOR[$i]?>" align="left" nowrap="nowrap" width="<?php echo $widthbar+60?>"> <table cellspacing="0" cellpadding="0"><tbody><tr> <td bgcolor="#e22424"><img src="images/spacer.gif" width="<?php echo $widthbar?>" height="6"></td> </tr></tbody></table></td> <td bgcolor="<?php echo $FG_TABLE_ALTERNATE_ROW_COLOR[$i]?>" align="right" nowrap="nowrap"><font face="verdana" color="#000000" size="1"><?php echo $data[0]?></font></td> <td bgcolor="<?php echo $FG_TABLE_ALTERNATE_ROW_COLOR[$i]?>" align="right" nowrap="nowrap"><font face="verdana" color="#000000" size="1"><?php echo $tmc_60?> </font></td> <?php } $total_tmc_60 = sprintf("%02d",intval(($totalminutes/$totalcall)/60)).":".sprintf("%02d",intval(($totalminutes/$totalcall)%60)); $total_minutes_60 = sprintf("%02d",intval($totalminutes/60)).":".sprintf("%02d",intval($totalminutes%60)); ?> </tr> <!-- FIN DETAIL --> <!-- FIN BOUCLE --> <!-- TOTAL --> <tr bgcolor="#600101"> <td align="right" nowrap="nowrap"><font face="verdana" size="1" color="#ffffff"><b>TOTAL</b></font></td> <td align="center" nowrap="nowrap" colspan="2"><font face="verdana" size="1" color="#ffffff"><b><?php echo $total_minutes_60?> </b></font></td> <td align="center" nowrap="nowrap"><font face="verdana" size="1" color="#ffffff"><b><?php echo $totalcall?></b></font></td> <td align="center" nowrap="nowrap"><font face="verdana" size="1" color="#ffffff"><b><?php echo $total_tmc_60?></b></font></td> </tr> <!-- FIN TOTAL --> </tbody></table> <!-- Fin Tableau Global //--></td></tr></tbody></table> <br> <IMG SRC="graph_statbar.php?min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&sourcetype=<?php echo $sourcetype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" ALT="Stat Graph"><!-- ** ** ** ** ** HOURLY LOAD ** ** ** ** ** --> <br/> <center>Select the hour interval to see the details <FORM METHOD=POST ACTION="graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&sourcetype=<?php echo $sourcetype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" target="superframe"> <!-- ** ** ** ** ** HOURLY LOAD ** ** ** ** ** --> <table class="bar-status" width="60%" border="0" cellspacing="1" cellpadding="2" align="center"> <tbody> <tr> <td align="left" bgcolor="#000033"> <font face="verdana" size="1" color="#ffffff"><b> HOUR INTERVAL :</b></font> </td> <td class="bar-search" align="center" bgcolor="#acbdee"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td> <select name="hourinterval"> <?php for ($i=0;$i<=23;$i++){ echo '<option value="'.sprintf("%02d",$i)."\"> Interval [".sprintf("%02d",$i).'h to '.sprintf("%02d",$i+1).'h] </option>'; } ?> </select> </td> </tr></table></td> </tr> <tr> <td align="left" bgcolor="#555577"> <font face="verdana" size="1" color="#ffffff"><b> TYPE GRAPH :</b></font> </td> <td class="bar-search" align="center" bgcolor="#cddeff"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td> <select name="typegraph"> <option value="fluctuation"> FLUCTUATION GRAPH</option> <option value="watch-call" selected> WATCH CALLS GRAPH</option> </select> </td> </tr></table></td> </tr> <tr> <td class="bar-search" align="left" bgcolor="#000033"> </td> <td class="bar-search" align="center" bgcolor="#acbdee"> <input type="image" name="image16" align="top" border="0" src="images/button-search.gif" /> </td> </tr> </tbody></table> </FORM></center><br><center> <iframe name="superframe" src="graph_hourdetail.php?posted=<?php echo $posted?>&min_call=<?php echo $min_call?>&fromstatsday_sday=<?php echo $fromstatsday_sday?>&days_compare=<?php echo $days_compare?>&fromstatsmonth_sday=<?php echo $fromstatsmonth_sday?>&dsttype=<?php echo $dsttype?>&sourcetype=<?php echo $sourcetype?>&clidtype=<?php echo $clidtype?>&channel=<?php echo $channel?>&resulttype=<?php echo $resulttype?>&dst=<?php echo $dst?>&src=<?php echo $src?>&clid=<?php echo $clid?>&userfieldtype=<?php echo $userfieldtype?>&userfield=<?php echo $userfield?>&accountcodetype=<?php echo $accountcodetype?>&accountcode=<?php echo $accountcode?>" BGCOLOR=white width=770 height=800 marginWidth=0 marginHeight=0 frameBorder=0 scrolling=yes> </iframe></center></center><?php }else{ ?> <center><h3>No calls in your selection.</h3></center><?php } ?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -