]>
Commit | Line | Data |
---|---|---|
90dc8f2b | 1 | <?php |
a44ced16 BM |
2 | require_once "../common.php"; |
3 | require_once UPATH . "/header.php"; | |
90dc8f2b VP |
4 | |
5 | if (!empty($_POST)) | |
6 | { | |
7 | do_log($_POST); | |
8 | ||
9 | /* Nothing being posted yet */ | |
10 | ||
11 | } | |
12 | ||
13 | $channels = $rpc->channel()->getAll(); | |
14 | ||
15 | ?> | |
0d846731 | 16 | <h4>Channels Overview</h4><br> |
d1d9caa9 VP |
17 | <table class="table table-responsive caption-top table-striped"> |
18 | <thead class="table-primary"> | |
90dc8f2b | 19 | <th>Name</th> |
f2a87326 | 20 | <th>Users</th> |
90dc8f2b | 21 | <th>Modes</th> |
f2a87326 BM |
22 | <th>Topic</th> |
23 | <th>Created</th> | |
def32bb1 BM |
24 | </thead> |
25 | <tbody> | |
90dc8f2b VP |
26 | <?php |
27 | foreach($channels as $channel) | |
28 | { | |
29 | echo "<tr>"; | |
30 | echo "<td>".$channel->name."</td>"; | |
90dc8f2b | 31 | echo "<td>".$channel->num_users."</td>"; |
90dc8f2b VP |
32 | $modes = (isset($channel->modes)) ? "+" . $channel->modes : "<none>"; |
33 | echo "<td>".$modes."</td>"; | |
f2a87326 BM |
34 | $topic = (isset($channel->topic)) ? $channel->topic : ""; |
35 | echo "<td>".$topic."</td>"; | |
36 | echo "<td>".$channel->creation_time."</td>"; | |
90dc8f2b | 37 | } |
def32bb1 BM |
38 | ?> |
39 | </tbody> | |
40 | </table> |