+}
+
+
+function generate_html_userchannels($user)
+{
+ ?>
+
+ <table class="table-sm table-responsive caption-top table-hover table-striped">
+ <thead class="table-info">
+ <th>
+ Channel
+ </th>
+ <th >
+ Status
+ </th>
+ </thead>
+ <tbody>
+ <?php
+ foreach($user->user->channels as $chan)
+ {
+ ?>
+ <tr>
+ <td><?php echo "<a href=\"".get_config("base_url")."channels/details.php?chan=".urlencode($chan->name)."\">$chan->name</a>"; ?></td>
+ <td>
+
+ <?php
+ for ($i = 0; isset($chan->level[$i]); $i++)
+ {
+ ?><div class="text-nowrap row mb-1"><?php
+ if ($chan->level[$i] == "v")
+ {
+ ?><span class="rounded-pill badge badge-info" value="Voice">Voice</span><?php
+ }
+ if ($chan->level[$i] == "h")
+ {
+ ?><span class="rounded-pill badge badge-info">Half-Op</span><?php
+ }
+ if ($chan->level[$i] == "o")
+ {
+ ?><h6><span class="rounded-pill badge badge-info">Operator</span></h6><?php
+ }
+ if ($chan->level[$i] == "a")
+ {
+ ?><span class="rounded-pill badge badge-info">Admin</span><?php
+ }
+ if ($chan->level[$i] == "q")
+ {
+ ?><span class="rounded-pill badge badge-info">Owner</span><?php
+ }
+ if ($chan->level[$i] == "Y")
+ {
+ ?><span class="rounded-pill badge badge-info">OJOIN</span><?php
+ }
+ ?></div><?php
+ }
+ ?>
+ </td>
+ </tr>
+ <?php
+ }
+ ?>
+ </tbody>
+ </table>
+
+ <?php
+}