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

index.tpl « templates « DBStats « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c85eea7d908ee51405837b717d29a259e97f435 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{include file="CoreAdminHome/templates/header.tpl"}
{loadJavascriptTranslations plugins='CoreAdminHome CoreHome'}

{literal}
    <style>
        .dbstatsTable {
            display: inline-block;
        }

        .dbstatsTable>tbody>tr>td:first-child {
            width: 550px;
        }

        .dbstatsTable h2 {
            width: 500px;
        }

        .adminTable.dbstatsTable a {
            color: black;
            text-decoration: underline;
        }
    </style>
{/literal}

<a name="databaseUsageSummary"></a>
<h2>{'DBStats_DatabaseUsage'|translate}</h2>
<p>
    {'DBStats_MainDescription'|translate:$totalSpaceUsed}<br/>
    {'DBStats_LearnMore'|translate:"<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>Piwik Auto Archiving</a>"}
    <br/>
    <br/>
</p>
<table class="adminTable dbstatsTable">
    <tbody>
    <tr>
        <td>{$databaseUsageSummary}</td>
        <td>
            <h3 style="margin-top:0">{'General_GeneralInformation'|translate}</h3><br/>

            <p style="font-size:1.4em;padding-left:21px;line-height:1.8em">
                <strong><em>{$userCount}</strong></em>&nbsp;{if $userCount == 1}{'UsersManager_User'|translate}{else}{'UsersManager_MenuUsers'|translate}{/if}
                <br/>
                <strong><em>{$siteCount}</strong></em>&nbsp;{if $siteCount == 1}{'General_Website'|translate}{else}{'Referers_Websites'|translate}{/if}
            </p><br/>
            {capture assign=clickDeleteLogSettings}{'PrivacyManager_DeleteDataSettings'|translate}{/capture}
            <h3 style="margin-top:0">{'PrivacyManager_DeleteDataSettings'|translate}</h3><br/>

            <p>
                {'PrivacyManager_DeleteDataDescription'|translate}
                <br/>
                <a href='{url module="PrivacyManager" action="privacySettings"}#deleteLogsAnchor'>
                    {'PrivacyManager_ClickHereSettings'|translate:"'$clickDeleteLogSettings'"}
                </a>
            </p>
        </td>
    </tr>
    </tbody>
</table>

<br/>

<a name="trackerDataSummary"></a>
<table class="adminTable dbstatsTable">
    <tbody>
    <tr>
        <td>
            <h2>{'DBStats_TrackerTables'|translate}</h2>
            {$trackerDataSummary}
        </td>
        <td>&nbsp;</td>
    </tr>
    </tbody>
</table>

<a name="reportDataSummary"></a>
<table class="adminTable dbstatsTable">
    <tbody>
    <tr>
        <td>
            <h2>{'DBStats_ReportTables'|translate}</h2>
            {$reportDataSummary}
        </td>
        <td>
            <h2>{'General_Reports'|translate}</h2>

            <div class="ajaxLoad" action="getIndividualReportsSummary">
                <span class="loadingPiwik"><img src="themes/default/images/loading-blue.gif"/>{'General_LoadingData'|translate}</span>
            </div>
        </td>
    </tr>
    </tbody>
</table>

<a name="metricDataSummary"></a>
<table class="adminTable dbstatsTable">
    <tbody>
    <tr>
        <td>
            <h2>{'DBStats_MetricTables'|translate}</h2>
            {$metricDataSummary}
        </td>
        <td>
            <h2>{'General_Metrics'|translate}</h2>

            <div class="ajaxLoad" action="getIndividualMetricsSummary">
                <span class="loadingPiwik"><img src="themes/default/images/loading-blue.gif"/>{'General_LoadingData'|translate}</span>
            </div>
        </td>
    </tr>
    </tbody>
</table>

<a name="adminDataSummary"></a>
<table class="adminTable dbstatsTable">
    <tbody>
    <tr>
        <td>
            <h2>{'DBStats_OtherTables'|translate}</h2>
            {$adminDataSummary}
        </td>
        <td>&nbsp;</td>
    </tr>
    </tbody>
</table>

{literal}
    <script type="text/javascript">
        (function ($) {
            $(document).ready(function () {
                $('.ajaxLoad').each(function () {
                    var self = this;
                    var action = $(this).attr('action');

                    // build & execute AJAX request
                    var ajaxRequest = new ajaxHelper();
                    ajaxRequest.addParams({
                        module: 'DBStats',
                        action: action,
                        viewDataTable: 'table'
                    }, 'get');
                    ajaxRequest.setCallback(
                            function (data) {
                                $('.loadingPiwik', self).remove();
                                $(self).html(data);
                            }
                    );
                    ajaxRequest.setFormat('html');
                    ajaxRequest.send(false);
                });
            });
        })(jQuery);
    </script>
{/literal}

{include file="CoreAdminHome/templates/footer.tpl"}