📄 call-log.php
字号:
$nb_record_max=(intval($nb_record/$FG_LIMITE_DISPLAY)+1); } }if ($FG_DEBUG == 3) echo "<br>Nb_record : $nb_record";if ($FG_DEBUG == 3) echo "<br>Nb_record_max : $nb_record_max";?><script language="JavaScript" type="text/JavaScript"><!--function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);}//--></script><!-- ** ** ** ** ** Part for the research ** ** ** ** ** --> <center> <FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']?>?s=<?php echo $s?>&t=<?php echo $t?>&order=<?php echo $order?>&sens=<?php echo $sens?>¤t_page=<?php echo $current_page?>"> <INPUT TYPE="hidden" NAME="posted" value=1> <INPUT TYPE="hidden" NAME="current_page" value=0> <table class="bar-status" width="75%" border="0" cellspacing="1" cellpadding="2" align="center"> <tbody><tr> <td class="bar-search" align="left" bgcolor="#555577"> <input type="radio" name="Period" value="Month" <?php if (($Period=="Month") || !isset($Period)){ ?>checked="checked" <?php } ?>> <font face="verdana" size="1" color="#ffffff"><b>Selection of the month</b></font> </td> <td class="bar-search" align="left" bgcolor="#cddeff"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#cddeff"><tr><td> <input type="checkbox" name="frommonth" value="true" <?php if ($frommonth){ ?>checked<?php }?>> From : <select name="fromstatsmonth"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { $monthname = array( "January", "February","March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if ($year_actual==$i){ $monthnumber = date("n")-1; // Month number without lead 0. }else{ $monthnumber=11; } for ($j=$monthnumber;$j>=0;$j--){ $month_formated = sprintf("%02d",$j+1); if ($fromstatsmonth=="$i-$month_formated"){$selected="selected";}else{$selected="";} echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>"; } } ?> </select> </td><td> <input type="checkbox" name="tomonth" value="true" <?php if ($tomonth){ ?>checked<?php }?>> To : <select name="tostatsmonth"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { $monthname = array( "January", "February","March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if ($year_actual==$i){ $monthnumber = date("n")-1; // Month number without lead 0. }else{ $monthnumber=11; } for ($j=$monthnumber;$j>=0;$j--){ $month_formated = sprintf("%02d",$j+1); if ($tostatsmonth=="$i-$month_formated"){$selected="selected";}else{$selected="";} echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>"; } } ?> </select> </td></tr></table> </td> </tr> <tr> <td align="left" bgcolor="#000033"> <input type="radio" name="Period" value="Day" <?php if ($Period=="Day"){ ?>checked="checked" <?php } ?>> <font face="verdana" size="1" color="#ffffff"><b>Selection of the day</b></font> </td> <td align="left" bgcolor="#acbdee"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#acbdee"><tr><td> <input type="checkbox" name="fromday" value="true" <?php if ($fromday){ ?>checked<?php }?>> From : <select name="fromstatsday_sday"> <?php for ($i=1;$i<=31;$i++){ if ($fromstatsday_sday==sprintf("%02d",$i)){$selected="selected";}else{$selected="";} echo '<option value="'.sprintf("%02d",$i)."\"$selected>".sprintf("%02d",$i).'</option>'; } ?> </select> <select name="fromstatsmonth_sday"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { $monthname = array( "January", "February","March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if ($year_actual==$i){ $monthnumber = date("n")-1; // Month number without lead 0. }else{ $monthnumber=11; } for ($j=$monthnumber;$j>=0;$j--){ $month_formated = sprintf("%02d",$j+1); if ($fromstatsmonth_sday=="$i-$month_formated"){$selected="selected";}else{$selected="";} echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>"; } } ?> </select> </td><td> <input type="checkbox" name="today" value="true" <?php if ($today){ ?>checked<?php }?>> To : <select name="tostatsday_sday"> <?php for ($i=1;$i<=31;$i++){ if ($tostatsday_sday==sprintf("%02d",$i)){$selected="selected";}else{$selected="";} echo '<option value="'.sprintf("%02d",$i)."\"$selected>".sprintf("%02d",$i).'</option>'; } ?> </select> <select name="tostatsmonth_sday"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { $monthname = array( "January", "February","March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if ($year_actual==$i){ $monthnumber = date("n")-1; // Month number without lead 0. }else{ $monthnumber=11; } for ($j=$monthnumber;$j>=0;$j--){ $month_formated = sprintf("%02d",$j+1); if ($tostatsmonth_sday=="$i-$month_formated"){$selected="selected";}else{$selected="";} echo "<OPTION value=\"$i-$month_formated\" $selected> $monthname[$j]-$i </option>"; } } ?> </select> </td></tr></table> </td> </tr> <tr> <td class="bar-search" align="left" bgcolor="#555577"> <font face="verdana" size="1" color="#ffffff"><b> DESTINATION</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="dst" value="<?php echo $dst?>"></td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="dsttype" value="1" <?php if((!isset($dsttype))||($dsttype==1)){?>checked<?php }?>>Exact</td> <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"> <font face="verdana" size="1" color="#ffffff"><b> DURATION</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="duration1" size="4" value="<?php echo $duration1?>"></td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration1type" value="4" <?php if($duration1type==4){?>checked<?php }?>>></td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration1type" value="5" <?php if($duration1type==5){?>checked<?php }?>>> egal</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration1type" value="1" <?php if((!isset($duration1type))||($duration1type==1)){?>checked<?php }?>>Egal</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration1type" value="2" <?php if($duration1type==2){?>checked<?php }?>>< egal</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration1type" value="3" <?php if($duration1type==3){?>checked<?php }?>><</td> <td width="5%" class="bar-search" align="center" bgcolor="#cddeff"></td> <td> <INPUT TYPE="text" NAME="duration2" size="4" value="<?php echo $duration2?>"></td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration2type" value="4" <?php if($duration2type==4){?>checked<?php }?>>></td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration2type" value="5" <?php if($duration2type==5){?>checked<?php }?>>> egal</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration2type" value="2" <?php if($duration2type==1){?>checked<?php }?>>< egal</td> <td class="bar-search" align="center" bgcolor="#cddeff"><input type="radio" NAME="duration2type" value="3" <?php if($duration2type==3){?>checked<?php }?>><</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" /> Result : Minutes<input type="radio" NAME="resulttype" value="min" <?php if((!isset($resulttype))||($resulttype=="min")){?>checked<?php }?>> - Seconds <input type="radio" NAME="resulttype" value="sec" <?php if($resulttype=="sec"){?>checked<?php }?>> </td> </tr> </tbody></table> </FORM></center><br><br><!-- ** ** ** ** ** Part to display the CDR ** ** ** ** ** --> <center>Number of calls : <?php if (is_array($list) && count($list)>0){ echo $nb_record; }else{echo "0";}?></center> <table width="<?php echo $FG_HTML_TABLE_WIDTH?>" border="0" align="center" cellpadding="0" cellspacing="0"><TR bgcolor="#ffffff"> <TD bgColor=#7f99cc height=16 style="PADDING-LEFT: 5px; PADDING-RIGHT: 3px"> <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> <TBODY> <TR> <TD><SPAN style="COLOR: #ffffff; FONT-SIZE: 11px"><B><?php echo $FG_HTML_TABLE_TITLE?></B></SPAN></TD> <TD align=right> <IMG alt="Back to Top" border=0 height=12 src="images/btn_top_12x12.gif" width=12> </TD> </TR> </TBODY> </TABLE></TD> </TR> <TR> <TD> <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><TBODY> <TR bgColor=#F0F0F0> <TD width="<?php echo $FG_ACTION_SIZE_COLUMN?>" align=center class="tableBodyRight" style="PADDING-BOTTOM: 2px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; PADDING-TOP: 2px"></TD> <?php if (is_array($list) && count($list)>0){ for($i=0;$i<$FG_NB_TABLE_COL;$i++){ //$FG_TABLE_COL[$i][1]; //$FG_TABLE_COL[]=array ("Name", "name", "20%"); ?> <TD width="<?php echo $FG_TABLE_COL[$i][2]?>" align=middle class="tableBody" style="PADDING-BOTTOM: 2px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; PADDING-TOP: 2px"> <center><strong> <?php if (strtoupper($FG_TABLE_COL[$i][4])=="SORT"){?> <a href="<?php echo $_SERVER['PHP_SELF']."?s=1&t=$t&stitle=$stitle&atmenu=$atmenu¤t_page=$current_page&order=".$FG_TABLE_COL[$i][1]."&sens="; if ($sens=="ASC"){echo"DESC";}else{echo"ASC";} echo "&posted=$posted&Period=$Period&frommonth=$frommonth&fromstatsmonth=$fromstatsmonth&tomonth=$tomonth&tostatsmonth=$tostatsmonth&fromday=$fromday&fromstatsday_sday=$fromstatsday_sday&fromstatsmonth_sday=$fromstatsmonth_sday&today=$today&tostatsday_sday=$tostatsday_sday&tostatsmonth_sday=$tostatsmonth_sday&dsttype=$dsttype&sourcetype=$sourcetype&clidtype=$clidtype&channel=$channel&resulttype=$resulttype&dst=$dst&src=$src&clid=$clid";?>"> <span class="liens"><?php } ?> <?php echo $FG_TABLE_COL[$i][0]?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -