[Fixed grouped display of CDRs Tijmen de Mes **20121002074243 Ignore-this: 6ee292166db1785021a6f9fe67ae72c4 ] hunk ./library/cdr_opensips.php 156 - print "

From $begin_datetime to $end_datetime"; + print "From $begin_datetime to $end_datetime"; hunk ./library/cdr_opensips.php 189 - print "

+ print " hunk ./library/cdr_opensips.php 195 - +
+ hunk ./library/cdr_opensips.php 198 - - -
- - hunk ./library/cdr_opensips.php 209 + hunk ./library/cdr_opensips.php 221 - print "

+ print " hunk ./library/cdr_opensips.php 227 -

- -
- - +
+ + hunk ./library/cdr_opensips.php 244 + hunk ./library/cdr_opensips.php 1501 - if (!$this->export) print "
"; hunk ./library/cdr_opensips.php 1522 + print "
"; hunk ./library/cdr_opensips.php 1526 - } + } hunk ./library/cdr_opensips.php 1547 - + hunk ./library/cdr_opensips.php 1603 - + hunk ./library/cdr_opensips.php 1605 - hunk ./library/cdr_opensips.php 1666 - + hunk ./library/cdr_opensips.php 1740 -
- - - - - - "; - if ($perm->have_perm("showPrice")) { - $pricePrint=number_format($price,4,".",""); + + + + + + + "; + if ($perm->have_perm("showPrice")) { + $pricePrint=number_format($price,4,".",""); + } else { + $pricePrint='x.xxx'; + } + print " + + + + + + + + + + ",$url_calls,$traceField,$traceValue_enc,$traceField,$comp_type); + print " + + "; hunk ./library/cdr_opensips.php 1768 - $pricePrint='x.xxx'; + print "$found,"; + print "$calls,"; + print "$seconds,"; + print "$minutes,"; + print "$hours,"; + if ($perm->have_perm("showPrice")) { + $pricePrint=$price; + } else { + $pricePrint='x.xxx'; + } + print "$pricePrint,"; + print "$AcctInputOctets,"; + print "$AcctOutputOctets,"; + print "$success,"; + print "$nonzero,"; + print "$failure,"; + print "$zero,"; + print "$mygroup_print,"; + print "$description"; + print "\n"; hunk ./library/cdr_opensips.php 1789 + $i++; + } + + if (!$this->export) { hunk ./library/cdr_opensips.php 1794 - - - - - - - - - - ",$url_calls,$traceField,$traceValue_enc,$traceField,$comp_type); - print " - +
$found$calls$seconds_print$minutes_print$hours
$found$calls$seconds_print$minutes_print$hours$pricePrint$AcctInputOctets$AcctOutputOctets$success%($nonzero calls)$failure%($zero calls)$mygroup_print$description"; + printf("Display calls
$pricePrint$AcctInputOctets$AcctOutputOctets$success%($nonzero calls)$failure%($zero calls)$mygroup_print$description"; - printf("Display calls
hunk ./library/cdr_opensips.php 1796 - } else { - print "$found,"; - print "$calls,"; - print "$seconds,"; - print "$minutes,"; - print "$hours,"; - if ($perm->have_perm("showPrice")) { - $pricePrint=$price; - } else { - $pricePrint='x.xxx'; - } - print "$pricePrint,"; - print "$AcctInputOctets,"; - print "$AcctOutputOctets,"; - print "$success,"; - print "$nonzero,"; - print "$failure,"; - print "$zero,"; - print "$mygroup_print,"; - print "$description"; - print "\n"; - } - $i++; - } - - if (!$this->export) { - print " -
-
- "; - } - - } else { - if (!$this->export) { - printf ("For more information about each call click on its Id column. "); + } + + } else { + if (!$this->export) { + printf ("

For more information about each call click on its Id column.
"); hunk ./library/cdr_opensips.php 1802 - + hunk ./library/cdr_opensips.php 1853 - - -