]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - misc/channel-lookup-misc.php
3 function generate_chanbans_table($channel)
6 <form method
="post"><p
>
7 <button
class="btn btn-info btn-sm" type
="submit" name
="delete_sel_ban">Delete
</button
>
9 <table
class="table table-responsive table-hover">
10 <thead
class="table-info">
11 <th
><input type
="checkbox" label
='selectall' onClick
="toggle_checkbox(this)" /></th
>
19 foreach ($channel->bans
as $ban) {
21 echo "<td scope=\"row\"><input type=\"checkbox\" value='$ban->name' name=\"checkboxes[]\"></td>";
22 echo "<td><code>".htmlspecialchars($ban->name
)."</code></td>";
23 $set_by = htmlspecialchars($ban->set_by
);
24 echo "<td>$set_by</td>";
25 $set_at = $ban->set_at
;
26 echo "<td>$set_at</td>";
37 function generate_chaninvites_table($channel)
40 <form method
="post"><p
>
41 <button
class="btn btn-info btn-sm" type
="submit" name
="delete_sel_inv">Delete
</button
>
43 <table
class="table table-responsive table-hover">
44 <thead
class="table-info">
45 <th
><input type
="checkbox" label
='selectall' onClick
="toggle_checkbox(this)" /></th
>
53 foreach ($channel->invite_exceptions
as $inv) {
55 echo "<td scope=\"row\"><input type=\"checkbox\" value='$inv->name' name=\"checkboxes[]\"></td>";
56 echo "<td><code>".htmlspecialchars($inv->name
)."</code></td>";
57 $set_by = htmlspecialchars($inv->set_by
);
58 echo "<td>$set_by</td>";
59 $set_at = $inv->set_at
;
60 echo "<td>$set_at</td>";
73 function generate_chanexcepts_table($channel)
76 <form method
="post"><p
>
77 <button
class="btn btn-info btn-sm" type
="submit" name
="delete_sel_ex">Delete
</button
>
79 <table
class="table table-responsive table-hover">
80 <thead
class="table-info">
81 <th
><input type
="checkbox" label
='selectall' onClick
="toggle_checkbox(this)" /></th
>
89 foreach ($channel->ban_exemptions
as $ex) {
91 echo "<td scope=\"row\"><input type=\"checkbox\" value='$ex->name' name=\"checkboxes[]\"></td>";
92 echo "<td><code>".htmlspecialchars($ex->name
)."</code></td>";
93 $set_by = htmlspecialchars($ex->set_by
);
94 echo "<td>$set_by</td>";
95 $set_at = $ex->set_at
;
96 echo "<td>$set_at</td>";
109 function generate_chan_occupants_table($channel)
112 <form method
="post"><p
>
115 <table
class="table table-responsive table-hover">
116 <thead
class="table-info">
117 <th
><input type
="checkbox" label
='selectall' onClick
="toggle_checkbox(this)" /></th
>
125 foreach ($channel->members
as $member) {
127 echo "<td scope=\"row\"><input type=\"checkbox\" value='$member->id' name=\"checkboxes[]\"></td>";
128 echo "<td><a href=\"".BASE_URL
."users/details.php?nick=$member->id\">".htmlspecialchars($member->name
)."</a></td>";
129 echo "<td>Status</td>";
131 echo "<td>Deop</td>";