{extends file="$tpl_admin_layout"}

{block name="content"}

    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>{$_L['Total Database Size']}: {$dbsize}  MB </h5>
            <div class="ibox-tools">
                <a href="{$_url}util/dbbackup/" class="btn btn-primary btn-xs"><i class="fa fa-download"></i> {$_L['Download Database Backup']}</a>
            </div>
        </div>
        <div class="ibox-content">

            <table class="table table-bordered table-hover sys_table">
                <thead>
                <tr>
                    <th width="50%">{$_L['Table Name']}</th>
                    <th>{$_L['Rows']}</th>
                    <th>{$_L['Size']}</th>

                </tr>
                </thead>
                <tbody>

                {foreach $tables as $tbl}
                    <tr>
                        <td>{$tbl['name']}</td>
                        <td>{$tbl['rows']}</td>
                        <td>{$tbl['size']} Kb</td>

                    </tr>
                {/foreach}

                </tbody>
            </table>

        </div>
    </div>


{/block}