admin.php follow up on issue #296

Hi Anton,

I modified the admin report to avoid using queue numbers while generating the report since each group has 1 queue number and that was leading to incorrect values in reports.

One thing I changed in the design, I executed one MySQL query grouping the uid, p_status and saved the result in an array and then updated the tpl values from the array instead of querying MySQL for every value (pending,sent,failed,delivered) thus executing several MySQL queries using the report_count function.

please let me know if this works or if it affects other areas in your code.

Thanks,
Tony