call-count-reporting.php
来自「asterisk用 的voip记费软件」· PHP 代码 · 共 712 行 · 第 1/3 页
PHP
712 行
?><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 name="myForm" ACTION="<?php echo $PHP_SELF?>?s=1&t=0&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="85%" border="0" cellspacing="1" cellpadding="2" align="center"> <tbody> <tr> <td width="17%" align="left" class="bgcolor_004"> <input type="radio" name="Period" value="Month" <?php if (($Period=="Month") || !isset($Period)){ ?>checked="checked" <?php } ?>> <font class="fontstyle_003"><?php echo gettext("SELECT MONTH");?></b></font> </td> <td width="83%" align="left" class="bgcolor_005"> <table width="100%" border="0" cellspacing="0" cellpadding="0" > <tr><td class="fontstyle_searchoptions"> <input type="checkbox" name="frommonth" value="true" <?php if ($frommonth){ ?>checked<?php }?>> <?php echo gettext("From");?> : <select name="fromstatsmonth" class="form_input_select"> <?php $monthname = array( gettext("January"), gettext("February"),gettext("March"), gettext("April"), gettext("May"), gettext("June"), gettext("July"), gettext("August"), gettext("September"), gettext("October"), gettext("November"), gettext("December")); $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { 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 class="fontstyle_searchoptions"> <input type="checkbox" name="tomonth" value="true" <?php if ($tomonth){ ?>checked<?php }?>> To : <select name="tostatsmonth" class="form_input_select"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { 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" class="bgcolor_002"> <input type="radio" name="Period" value="Day" <?php if ($Period=="Day"){ ?>checked="checked" <?php } ?>> <font class="fontstyle_003"><?php echo gettext("SELECT DAY");?></font> </td> <td align="left" class="bgcolor_003"> <table width="100%" border="0" cellspacing="0" cellpadding="0" > <tr><td class="fontstyle_searchoptions"> <input type="checkbox" name="fromday" value="true" <?php if ($fromday){ ?>checked<?php }?>> <?php echo gettext("From");?> : <select name="fromstatsday_sday" class="form_input_select"> <?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" class="form_input_select"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { 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 class="fontstyle_searchoptions"> <input type="checkbox" name="today" value="true" <?php if ($today){ ?>checked<?php }?>> <?php echo gettext("To");?> : <select name="tostatsday_sday" class="form_input_select"> <?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" class="form_input_select"> <?php $year_actual = date("Y"); for ($i=$year_actual;$i >= $year_actual-1;$i--) { 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="bgcolor_004" align="left"> <font class="fontstyle_003"> <?php echo gettext("TOP");?></font> </TD> <td class="bgcolor_005" align="left" > <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <TD align="center" class="fontstyle_searchoptions" > <input type="text" name="inputtopvar" value="<?php echo $inputtopvar;?>" class="form_input_text"> </td> <td align="center" class="fontstyle_searchoptions"> <input type="radio" name="topsearch" value="topuser"<?php if ($topsearch=="topuser"){ ?> checked="checked" <?php } ?>><?php echo gettext("Users making the more calls");?> </td> <td align="center" class="fontstyle_searchoptions"> <input type="radio" name="topsearch" value="topdestination"<?php if ($topsearch=="topdestination"){ ?> checked="checked" <?php } ?>><?php echo gettext("More calls destination");?> </td> </tr></table> </TD> </tr> <!-- Select Option : to show just the Answered Calls or all calls, Result type, currencies... --> <tr> <td class="bgcolor_002" align="left" ><font class="fontstyle_003"> <?php echo gettext("OPTIONS");?></font></td> <td class="bgcolor_003" align="center" > <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="35%" class="fontstyle_searchoptions" > <!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%" class="fontstyle_searchoptions"> <?php echo gettext("SHOW");?> : </td> <td width="80%" class="fontstyle_searchoptions"> <?php echo gettext("Answered Calls")?> <input name="terminatecause" type="radio" value="ANSWER" <?php if((!isset($terminatecause))||($terminatecause=="ANSWER")){?>checked<?php }?> /> <?php echo gettext("All Calls")?> <input name="terminatecause" type="radio" value="ALL" <?php if($terminatecause=="ALL"){?>checked<?php }?>/> </td> </tr> <tr class="bgcolor_005"> <td class="fontstyle_searchoptions"> <?php echo gettext("GROUP BY DAY");?> : </td> <td class="fontstyle_searchoptions"> <?php echo gettext("Yes")?> <input name="grouped" type="radio" value="1" <?php if($grouped){?>checked<?php }?> /> <?php echo gettext("NO")?> <input name="grouped" type="radio" value="0" <?php if((!isset($grouped))||(!$grouped)){?>checked<?php }?>/> </td> </tr> <tr> <td class="fontstyle_searchoptions"> <?php echo gettext("RESULT");?> : </td> <td class="fontstyle_searchoptions"> <?php echo gettext("Mins");?><input type="radio" NAME="resulttype" value="min" <?php if((!isset($resulttype))||($resulttype=="min")){?>checked<?php }?>> - <?php echo gettext("Secs")?> <input type="radio" NAME="resulttype" value="sec" <?php if($resulttype=="sec"){?>checked<?php }?>> </td> </tr> <tr class="bgcolor_005"> <td class="fontstyle_searchoptions"> <?php echo gettext("CURRENCY");?> : </td> <td class="fontstyle_searchoptions"> <select NAME="choose_currency" size="1" class="form_input_select"> <?php $currencies_list = get_currencies(); foreach($currencies_list as $key => $cur_value) { ?> <option value='<?php echo $key ?>' <?php if (($choose_currency==$key) || (!isset($choose_currency) && $key==strtoupper(BASE_CURRENCY))){?>selected<?php } ?>><?php echo $cur_value[1].' ('.$cur_value[2].')' ?> </option> <?php } ?> </select> </td> </tr> </table> <!-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--> </td> </tr> </table> </td> </tr> <!-- Select Option : to show just the Answered Calls or all calls, Result type, currencies... --> <tr>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?