user.php follow up on issue #296 

HI Anton,

I modified the user 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 p_status and saved the result in an arrayand 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