]>
Commit | Line | Data |
---|---|---|
90dc8f2b VP |
1 | <?php |
2 | require_once "common.php"; | |
3 | ||
4 | require_once "header.php"; | |
5 | ||
6 | if (!empty($_POST)) | |
7 | { | |
8 | do_log($_POST); | |
9 | ||
10 | /* Nothing being posted yet */ | |
11 | ||
12 | } | |
13 | ||
14 | $channels = $rpc->channel()->getAll(); | |
15 | ||
16 | ?> | |
17 | ||
def32bb1 BM |
18 | <table class="table table-striped"> |
19 | <thead> | |
90dc8f2b VP |
20 | <th>Name</th> |
21 | <th>Created</th> | |
22 | <th>User count</th> | |
23 | <th>Topic</th> | |
24 | <th>Topic Set</th> | |
25 | <th>Modes</th> | |
def32bb1 BM |
26 | </thead> |
27 | <tbody> | |
90dc8f2b VP |
28 | <?php |
29 | foreach($channels as $channel) | |
30 | { | |
31 | echo "<tr>"; | |
32 | echo "<td>".$channel->name."</td>"; | |
33 | echo "<td>".$channel->creation_time."</td>"; | |
34 | echo "<td>".$channel->num_users."</td>"; | |
35 | $topic = (isset($channel->topic)) ? $channel->topic : ""; | |
36 | echo "<td>".$topic."</td>"; | |
37 | $setby = (isset($channel->topic)) ? "By ".$channel->topic_set_by .", at ".$channel->topic_set_at : ""; | |
38 | echo "<td>".$setby."</td>"; | |
39 | $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>"; | |
40 | echo "<td>".$modes."</td>"; | |
41 | } | |
def32bb1 BM |
42 | ?> |
43 | </tbody> | |
44 | </table> |