</td> <?php if ($groupby != "cid" && !$uid) { ?> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}", $sort, "ucount", "Число пользователей"); ?> </td><?php } ?> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}", $sort, "count", "Число пакетов"); ?> </td> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}", $sort, "length", "Трафик"); ?> </td> <?php if ($groupby != "cid") { ?> <td class=tbl1>Category</td><?php } ?> </tr> <?php $total_count = 0; $total_length = 0; $total_ucount = 0; $cats = $BILL->GetUrlCategories();
</td> <?php if ($groupby != "cid" && !$uid) { ?> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}&hideother={$hideother}&gid={$gid}&groupby={$groupby}", $sort, "ucount", "Число пользователей"); ?> </td><?php } ?> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}&hideother={$hideother}&gid={$gid}&groupby={$groupby}", $sort, "count", "Число пакетов"); ?> </td> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}&hideother={$hideother}&gid={$gid}&groupby={$groupby}", $sort, "length", "Трафик"); ?> </td> </tr> <?php $i = 0; if (count($urls)) { foreach ($urls as $url) { $total_count += (int) $url['count']; $total_length += (int) $url['length']; $total_ucount = $url['ucount'] > $total_ucount ? $url['ucount'] : $total_ucount; ?> <tr> <td class=tbl1><?php echo ++$i;
</td><?php } ?> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}&hideother={$hideother}&gid={$gid}&groupby={$groupby}", $sort, "count", "Число пакетов"); ?> </td> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}&hideother={$hideother}&gid={$gid}&groupby={$groupby}", $sort, "length", "Трафик"); ?> </td> <?php if ($groupby != "cid") { ?> <td class=tbl1><?php echo template_header_sort("limit={$limit}&graf={$graf}&uid={$uid}&showdenied={$showdenied}&hideother={$hideother}&gid={$gid}&groupby={$groupby}", $sort, "cid", "Категория"); ?> </td><?php } ?> </tr> <?php $i = 0; if (count($urls)) { foreach ($urls as $url) { $sel_cat = utils::utf2cp($url['cattitle']); $total_count += (int) $url['count']; $total_length += (int) $url['length']; $total_ucount = $url['ucount'] > $total_ucount ? $url['ucount'] : $total_ucount; ?>