1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-27 08:07:04 +00:00
mailinabox/management/templates/mailgraph.html

49 lines
1.8 KiB
HTML
Raw Normal View History

2019-03-02 18:16:39 +00:00
<h2>Mail statistics</h2>
<ul id="jump">
<li><a href="#G0">Day</a>&nbsp;</li>
<li><a href="#G1">Week</a>&nbsp;</li>
<li><a href="#G2">Month</a>&nbsp;</li>
<li><a href="#G3">Year</a>&nbsp;</li>
</ul>
2019-03-02 18:16:39 +00:00
<h3 id="G0">Last Day</h3>
2019-03-03 17:15:59 +00:00
<p><img src="" data-src="/mailgraph/image.cgi?0-n" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?0-e" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?0-g" alt="mailgraph"/></p>
2019-03-02 18:16:39 +00:00
<h3 id="G1">Last Week</h3>
2019-03-03 17:15:59 +00:00
<p><img src="" data-src="/mailgraph/image.cgi?1-n" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?1-e" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?1-g" alt="mailgraph"/></p>
2019-03-02 18:16:39 +00:00
<h3 id="G2">Last Month</h3>
2019-03-03 17:15:59 +00:00
<p><img src="" data-src="/mailgraph/image.cgi?2-n" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?2-e" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?2-g" alt="mailgraph"/></p>
2019-03-02 18:16:39 +00:00
<h3 id="G3">Last Year</h3>
2019-03-03 17:15:59 +00:00
<p><img src="" data-src="/mailgraph/image.cgi?3-n" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?3-e" alt="mailgraph"/></p>
<p><img src="" data-src="/mailgraph/image.cgi?3-g" alt="mailgraph"/></p>
<hr/>
<p><a href="http://mailgraph.schweikert.ch/">Mailgraph</a> 1.14 by <a href="http://david.schweikert.ch/">David Schweikert</a>
(built on Tobi Oetiker's <a href="http://oss.oetiker.ch/rrdtool/">RRDtool</a>)</p>
<script type="text/javascript">
function show_mailgraph() {
$('[data-src]').each(function() {
2019-03-03 19:15:16 +00:00
var that = this;
2019-03-03 17:15:59 +00:00
api(
2019-03-03 19:15:16 +00:00
$(that).attr('data-src'),
2019-03-03 17:15:59 +00:00
'GET',
'',
function(data) {
2019-03-03 19:21:34 +00:00
$(that).attr('src', 'data:image/gif;base64,' + data);
2019-03-03 17:15:59 +00:00
}
);
});
}
</script>