Welcome to mirror list, hosted at ThFree Co, Russian Federation.

table_footer.phtml « databases « server « templates - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0534f1d3a00365d3bc9733b5a94ac803281a1bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<tfoot>
    <tr>
        <?php if ($GLOBALS['is_superuser'] || $GLOBALS['cfg']['AllowUserDropDatabase']): ?>
            <th></th>
        <?php endif; ?>
        <th>
            <?= __('Total'); ?>: <span id="databases_count"><?= $databaseCount; ?></span>
        </th>
        <?php foreach ($column_order as $stat_name => $stat):
            if (! array_key_exists($stat_name, $first_database)) {
                continue;
            }
            if ($stat['format'] === 'byte') {
                list($value, $unit) = \PhpMyAdmin\Util::formatByteDown($stat['footer'], 3, 1);
            } elseif ($stat['format'] === 'number') {
                $value = \PhpMyAdmin\Util::formatNumber($stat['footer'], 0);
            } else {
                $value = htmlentities($stat['footer'], 0);
            } ?>

            <th class="value">
                <?php if (isset($stat['description_function'])): ?>
                    <dfn title="<?= $stat['description_function']($stat['footer']); ?>">
                        <?= $value; ?>
                    </dfn>
                <?php else: ?>
                    <?= $value; ?>
                <?php endif; ?>
            </th>
            <?php if ($stat['format'] === 'byte'): ?>
                <th class="unit"><?= $unit; ?></th>
            <?php endif; ?>
        <?php endforeach; ?>
        <?php if ($master_replication): ?>
            <th></th>
        <?php endif; ?>
        <?php if ($slave_replication): ?>
            <th></th>
        <?php endif; ?>
        <th></th>
    </tr>
</tfoot>