Example #1
0
    </thead>
    <tbody>
        <?php 
reset($top_size);
$count = $statistics->getCount();
for ($i = 0; $i < sizeof($top_size) - 1; $i++) {
    $group = key($top_size);
    ?>
            <tr>
                <td>
                    <?php 
    echo "<a href='" . str_replace(" ", "%20", $group) . "_group_popup.php'rel='#volume'>" . $group . "</a>";
    ?>
                </td>
                <td><?php 
    echo formatSizeNumber($top_size[$group]);
    ?>
</td>
                <td><?php 
    echo formatNumber($count[$group]);
    ?>
</td>
            </tr>
            <?php 
    next($top_size);
}
?>
    </tbody>
</table>

<!-- POPUP -->
Example #2
0
echo "<hr/>";
global $sz_range_fields;
global $sz_range_name;
// summary table
$tab = array(array());
$i = 0;
foreach ($user_info as $g => $vals) {
    if ($vals[COUNT] > 0) {
        $avg = round($vals[SIZE] / $vals[COUNT], 0);
    } else {
        $avg = 0;
    }
    $tab[$i][] = "{$user}/{$g}";
    $tab[$i][] = formatSizeNumber($vals[SIZE]);
    $tab[$i][] = formatNumber($vals[COUNT]);
    $tab[$i][] = formatSizeNumber($avg);
    $i++;
}
$header = "<thead> <tr>";
$header = $header . "<th>User/Group</th>";
$header = $header . "<th>Volume</th>";
$header = $header . "<th>File count</th>";
$header = $header . "<th>Avg Size</th>";
$header = $header . "</tr> </thead>";
generateMergedTable($tab, $header);
// profile table
$sz_ranges = array();
$tab = array(array());
$header = "<thead> <tr>";
foreach ($sz_range_name as $range) {
    $header = $header . '<th>' . $range . '</th>';
Example #3
0
            <th>Count</th>
        </tr>
    </thead>
    <tbody>
        <?php 
reset($count);
$whole_size = $statistics->getSize();
for ($i = 0; $i < sizeof($count) - 1; $i++) {
    $key = key($count);
    ?>
            <tr>
                <td><?php 
    echo $key;
    ?>
</td>
                <td><?php 
    echo formatSizeNumber($whole_size[$key]);
    ?>
</td>
                <td><?php 
    echo formatNumber($count[$key]);
    ?>
</td>
            </tr>
            <?php 
    next($count);
}
?>
    </tbody>
</table>
Example #4
0
    </thead>
    <tbody>
        <?php 
reset($top_count);
$blks = $statistics->getBlocks();
for ($i = 0; $i < sizeof($top_count) - 1; $i++) {
    $group = key($top_count);
    ?>
            <tr>
                <td>
                    <?php 
    echo "<a href='" . str_replace(" ", "%20", $group) . "_group_popup.php'rel='#count'>" . $group . "</a>";
    ?>
                </td>
                <td><?php 
    echo formatSizeNumber($blks[$group] * DEV_BSIZE);
    ?>
</td>
                <td><?php 
    echo formatNumber($top_count[$group]);
    ?>
</td>
            </tr>
            <?php 
    next($top_count);
}
?>
    </tbody>
</table>

<!-- POPUP -->
Example #5
0
    </thead>
    <tbody>
        <?php 
reset($top_size);
$count = $statistics->getCount();
for ($i = 0; $i < sizeof($top_size) - 1; $i++) {
    $user = key($top_size);
    ?>
            <tr>
                <td>
                     <?php 
    echo "<a href='" . str_replace(" ", "%20", $user) . "_user_popup.php'rel='#volume'>" . $user . "</a>";
    ?>
                </td>
                <td><?php 
    echo formatSizeNumber($top_size[$user]);
    ?>
</td>
                <td><?php 
    echo formatNumber($count[$user]);
    ?>
</td>
            </tr>
            <?php 
    next($top_size);
}
?>
    </tbody>
</table>

<!-- POPUP -->
Example #6
0
            <th>Count</th>
        </tr>
    </thead>
    <tbody>
        <?php 
reset($size);
$whole_count = $statistics->getCount();
for ($i = 0; $i < sizeof($size) - 1; $i++) {
    $key = key($size);
    ?>
            <tr>
                <td><?php 
    echo $key;
    ?>
</td>
                <td><?php 
    echo formatSizeNumber($size[$key]);
    ?>
</td>
                <td><?php 
    echo formatNumber($whole_count[$key]);
    ?>
</td>
            </tr>
            <?php 
    next($size);
}
?>
    </tbody>
</table>
Example #7
0
    $nbz = $users[$u][$sz_range_fields[0]];
    $nb1K = $nbz + $users[$u][$sz_range_fields[1]] + $users[$u][$sz_range_fields[2]];
    $nb1M = $nb1K + $users[$u][$sz_range_fields[3]] + $users[$u][$sz_range_fields[4]];
    $nb1G = $nb1M + $users[$u][$sz_range_fields[5]] + $users[$u][$sz_range_fields[6]];
    if ($users[$u][COUNT] == 0) {
        $rz = $r1K = $r1M = $r1G = 0.0;
    } else {
        $rz = 1.0 * $nbz / $users[$u][COUNT];
        $r1K = 1.0 * $nb1K / $users[$u][COUNT];
        $r1M = 1.0 * $nb1M / $users[$u][COUNT];
        $r1G = 1.0 * $nb1G / $users[$u][COUNT];
    }
    echo "<tr><td><a href='" . str_replace(" ", "%20", $u) . "_size_popup.php' rel='#count'>" . $u . "</a></td>";
    echo "<td>" . formatSizeNumber($users[$u][SIZE]) . "</td>";
    echo "<td>" . formatNumber($users[$u][COUNT]) . "</td>";
    echo "<td>" . formatSizeNumber(round($users[$u][SIZE] / $users[$u][COUNT], 0)) . "</td>";
    echo "<td>" . sprintf("%.2f%%", 100.0 * $rz) . "</td>";
    echo "<td>" . sprintf("%.2f%%", 100.0 * $r1K) . "</td>";
    echo "<td>" . sprintf("%.2f%%", 100.0 * $r1M) . "</td>";
    echo "<td>" . sprintf("%.2f%%", 100.0 * $r1G) . "</td></tr>\n";
    if ($i > LIMIT) {
        break;
    }
}
?>
    </tbody>
</table>



<!-- POPUP -->
Example #8
0
    </thead>
    <tbody>
        <?php 
reset($top_count);
$blks = $statistics->getBlocks();
for ($i = 0; $i < sizeof($top_count) - 1; $i++) {
    $status = key($top_count);
    ?>
            <tr>
                <td>
                    <?php 
    echo "<a href='" . str_replace(" ", "%20", $status) . "_status_popup.php'rel='#count'>" . $status . "</a>";
    ?>
                </td>
                <td><?php 
    echo formatSizeNumber($blks[$status] * DEV_BSIZE);
    ?>
</td>
                <td><?php 
    echo formatNumber($top_count[$status]);
    ?>
</td>
            </tr>
            <?php 
    next($top_count);
}
?>
    </tbody>
</table>

Example #9
0
    </thead>
    <tbody>
        <?php 
reset($top_size);
$count = $statistics->getCount();
for ($i = 0; $i < sizeof($top_size) - 1; $i++) {
    $status = key($top_size);
    ?>
            <tr>
                <td>
                     <?php 
    echo "<a href='" . str_replace(" ", "%20", $status) . "_status_popup.php'rel='#volume'>" . $status . "</a>";
    ?>
                </td>
                <td><?php 
    echo formatSizeNumber($top_size[$status]);
    ?>
</td>
                <td><?php 
    echo formatNumber($count[$status]);
    ?>
</td>
            </tr>
            <?php 
    next($top_size);
}
?>
    </tbody>
</table>

<!-- POPUP -->
Example #10
0
    </thead>
    <tbody>
        <?php 
reset($top_count);
$blks = $statistics->getBlocks();
for ($i = 0; $i < sizeof($top_count) - 1; $i++) {
    $user = key($top_count);
    ?>
            <tr>
                <td>
                    <?php 
    echo "<a href='" . str_replace(" ", "%20", $user) . "_user_popup.php'rel='#count'>" . $user . "</a>";
    ?>
                </td>
                <td><?php 
    echo formatSizeNumber($blks[$user] * DEV_BSIZE);
    ?>
</td>
                <td><?php 
    echo formatNumber($top_count[$user]);
    ?>
</td>
            </tr>
            <?php 
    next($top_count);
}
?>
    </tbody>
</table>