/
rosterdb.pyra
executable file
·97 lines (85 loc) · 4.4 KB
/
rosterdb.pyra
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/>
<meta name="author" content="author"/>
<link rel="stylesheet" type="text/css" href="magwood.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="table.css" media="screen"/>
<title>SPADE Web Interface: Roster</title>
</head>
<!--(include)-->
header.pyra
<!--(end)-->
@!header(item="rosterdb",admin="True")!@
<div id="templatemo_background_section_mid">
<div class="templatemo_container">
<div id="templatemo_content_area">
<div id="templatemo_left_section">
<div class='main section' id='main'>
<!--(for server, value in roster.items())-->
<h1 class="templatemo_left_section_box_top">@!str(server)!@</h1>
<table class="servicesT" cellspacing="0">
<tr><td class="servHd">JID</td><td class="servHd">Roster</td>
</tr>
<!--(for jid, v in value.items())-->
<tr><td class="servHd">@!str(jid)!@</td>
<td class="servBodL">
<table class="servicesT", cellspacing="0">
<tr><td class="servHd">roster</td>
<td class="servBodL">
<!--(if len(v['roster']) > 0)-->
<table class="servicesT", cellspacing="0">
<!--(end)-->
<!--(for rk,rv in v['roster'].items())-->
<tr><td class="servHd">@!str(rk)!@</td>
<td class="servBodL">@!rv!@</td></tr>
<!--(end)-->
<!--(if len(v['roster']) > 0)-->
</table>
<!--(end)-->
</td></tr>
<tr><td class="servHd">groups</td>
<td class="servBodL">
<!--(if len(v['groups']) > 0)-->
<table class="servicesT", cellspacing="0">
<!--(end)-->
<!--(for rk,rv in v['groups'].items())-->
<tr><td class="servBodL">@!str(rk)!@</td>
<td class="servBodL">@!rv!@</td></tr>
<!--(end)-->
<!--(if len(v['groups']) > 0)-->
</table>
<!--(end)-->
</td></tr>
<tr><td class="servHd">storage</td>
<td class="servBodL">
<!--(if len(v['storage']) > 0)-->
<table class="servicesT", cellspacing="0">
<!--(end)-->
<!--(for rk,rv in v['storage'].items())-->
<tr><td class="servBodL">@!str(rk)!@</td>
<td class="servBodL">@!rv!@</td></tr>
<!--(end)-->
<!--(if len(v['storage']) > 0)-->
</table>
<!--(end)-->
</td></tr>
</table>
</td></tr>
<!--(end)-->
</table>
<!--(end)-->
</div>
</div>
<div id="templatemo_middle_section">
<div class="templatemo_middle_section_box section" id="templatemo_middle_section_box">
@!systemtab!@
</div>
</div>
<!--<div id="templatemo_right_section">
</div>-->
<div class="cleaner_with_height"></div>
</div>
@!footer!@