1 |
<?xml version="1.0"?> |
2 |
<waf:logic xmlns:waf="http://www.saurik.com/menes/waf/0.9"> |
3 |
|
4 |
<waf:set-pch file="DecentralizedMedia.hh"/> |
5 |
|
6 |
<waf:set-status code="200"/> |
7 |
<waf:add-header name="Content-Type" value="text/html; charset=utf-8"/> |
8 |
|
9 |
DecentralizedMedia& media(*static_cast< DecentralizedMedia* >(& server)); |
10 |
|
11 |
<html> |
12 |
<head> |
13 |
<title>Decentralized Media</title> |
14 |
<link rel="stylesheet" href="style.css" type="text/css" /> |
15 |
</head> |
16 |
<body> |
17 |
<h1>Decentralized Media</h1> |
18 |
<table> |
19 |
<tr> |
20 |
<th/> |
21 |
<th>Artist</th> |
22 |
<th>Song Title</th> |
23 |
<th>Album</th> |
24 |
<th>Genre</th> |
25 |
<th>File</th> |
26 |
</tr> |
27 |
<waf:logic> |
28 |
int position(media.player.GetPosition()); |
29 |
|
30 |
_foreach (const _L< MediaFile >, file, media.player.GetPlaylist()) if (_index == position) |
31 |
{ |
32 |
<tr> |
33 |
<td class="position">{_index + 1}</td> |
34 |
<td class="position">{file->artist}</td> |
35 |
<td class="position">{file->title}</td> |
36 |
<td class="position">{file->album}</td> |
37 |
<td class="position">{file->genre}</td> |
38 |
<td class="position">{file->path.GetName()}</td> |
39 |
</tr> |
40 |
} |
41 |
else |
42 |
{ |
43 |
<tr> |
44 |
<td>{_index + 1}</td> |
45 |
<td>{file->artist}</td> |
46 |
<td>{file->title}</td> |
47 |
<td>{file->album}</td> |
48 |
<td>{file->genre}</td> |
49 |
<td>{file->path.GetName()}</td> |
50 |
</tr> |
51 |
} |
52 |
</waf:logic> |
53 |
</table> |
54 |
<p>$Id$</p> |
55 |
</body> |
56 |
</html> |
57 |
|
58 |
</waf:logic> |