blob: 0e1920fc5d861010f0b44049e6248f9722510dca (
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
|
const
IntTmpl:PAnsiChar=
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'#13#10+
'<HTML>'#13#10+
'<HEAD>'#13#10+
'<TITLE>Report on %currenttime%</TITLE>'#13#10+
'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'#13#10+
'<style>'#13#10+
'table {background:#E0E0E0;padding:4}'#13#10+
'* {padding:2; margin:0;font-family: arial}'#13#10+
'td, div {font-size:10pt;border:1 solid black}'#13#10+
'h2 {padding: 26 0 10}'#13#10+
'.label, .num, .time {background:#C0C0C0;padding-left:4}'#13#10+
'.tdbar {width:50%;padding:0 4 0 0;border-width:0}'#13#10+
'.bar {background:#9BA298;padding-left:4;margin:0 4 0 0}'#13#10+
'.num {padding:0 10; width:20px}'#13#10+
'.time {text-align:center;width:20%}'#13#10+
'</style>'#13#10+
'</HEAD>'#13#10+
'<BODY>'#13#10+
'<center><h1>Report</h1><br/><h3>created %currenttime%</h3>'#13#10+
'%block_freqartist%'#13#10+
'<h2>Most popular artists:</h2><table style="width:90%">'#13#10+
'%start%'#13#10+
'<tr><td class="num">%num%.</td>'#13#10+
'<td class="label">%artist%</td>'#13#10+
'<td class="tdbar"><div class="bar" style="width:%percent%%;">%count%</div></td>'#13#10+
'</tr>'#13#10+
'%end%'#13#10+
'</table>'#13#10+
'%block_end%'#13#10+
'%block_freqsongs%'#13#10+
'<h2>Most frequently played songs:</h2><table style="width:90%">'#13#10+
'%start%'#13#10+
'<tr><td class="num">%num%.</td>'#13#10+
'<td class="label">%artist% - %title% (%album%)</td>'#13#10+
'<td class="tdbar"><div class="bar" style="width:%percent%%;">%count%</div></td>'#13#10+
'</tr>'#13#10+
'%end%'#13#10+
'</table>'#13#10+
'%block_end%'#13#10+
'%block_freqalbum%'#13#10+
'<h2>Most frequently played albums:</h2><table style="width:90%">'#13#10+
'%start%'#13#10+
'<tr><td class="num">%num%.</td>'#13#10+
'<td class="label">%album%</td>'#13#10+
'<td class="tdbar"><div class="bar" style="width:%percent%%;">%count%</div></td>'#13#10+
'</tr>'#13#10+
'%end%'#13#10+
'</table>'#13#10+
'%block_end%'#13#10+
'%block_lastsongs%'#13#10+
'<h2>Last played songs:</h2><table style="width:90%">'#13#10+
'%start%'#13#10+
'<tr><td class="num">%num%.</td>'#13#10+
'<td class="time">[%date%]</td>'#13#10+
'<td class="label">%artist% - %title%</td>'#13#10+
'</tr>'#13#10+
'%end%'#13#10+
'</table>'#13#10+
'%block_end%'#13#10+
'%block_songtime%'#13#10+
'<h2>Longest songs:</h2><table style="width:90%">'#13#10+
'%start%'#13#10+
'<tr><td class="num">%num%.</td>'#13#10+
'<td class="label">%artist% - %title%</td>'#13#10+
'<td class="tdbar"><div class="bar" style="width:%percent%%;">%length%</div></td>'#13#10+
'</tr>'#13#10+
'%end%'#13#10+
'</table>'#13#10+
'%block_end%'#13#10+
'%block_freqpath%'#13#10+
'<h2>Most frequently used paths:</h2><table style="width:90%">'#13#10+
'%start%'#13#10+
'<tr><td class="num">%num%.</td>'#13#10+
'<td class="label">%path%</td>'#13#10+
'<td class="tdbar"><div class="bar" style="width:%percent%%;">%count%</div></td>'#13#10+
'</tr>'#13#10+
'%end%'#13#10+
'</table>'#13#10+
'%block_end%'#13#10+
'<h2>Total played time is:</h2><table style="width:90%">'#13#10+
'<tr><td class="label">Total logged music time - %totaltime%</td>'#13#10+
'<td class="label">Total logged music files - %totalfiles%</td>'#13#10+
'</tr></table>'#13#10+
''#13#10+
'</center>'#13#10+
'</BODY>'#13#10+
'</HTML>'#13#10;
|