-
Notifications
You must be signed in to change notification settings - Fork 1
/
editspotterblacklist.inc.php
32 lines (29 loc) · 1.39 KB
/
editspotterblacklist.inc.php
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
<?php
# We zetten deze zo ver mogelijk bovenaan om een schone error afhandeling te kunnen hebben
$blacklist = $tplHelper->getSpotterList();
?>
<!-- We need our own editdialogdiv because this form can be embedded into another dialog as a whole -->
<div id='editblacklistdialogdiv'></div>
<table class="ui-widget ui-widget-content" summary="BlaclistedSpotters">
<thead>
<tr class="ui-widget-header">
<th><?php echo _('Spotter ID'); ?></th>
<th><?php echo _('Type'); ?></th>
<th><?php echo _('Origin'); ?></th>
<th><?php echo _('Remove spotterid'); ?></th>
</tr>
</thead>
<tbody id="blacklist">
<?php
foreach($blacklist as $bannedspotter) {
?>
<td> <?php echo $bannedspotter['spotterid']; ?> </td>
<td> <?php if ($bannedspotter['idtype'] == 1) { echo _("Blacklisted"); } else { echo _("Whitelisted"); } ?> </td>
<td> <?php echo $bannedspotter['origin']; ?> </td>
<td><a href="" onclick="return openDialog('editblacklistdialogdiv', '<?php if ($bannedspotter['idtype'] == 1) { echo _('Remove spotter from blacklist'); } else { echo _('Remove spotter from whitelist'); } ?>', '?page=render&tplname=editspotterblacklistdelete&data[spotterid]=<?php echo $bannedspotter['spotterid']; ?>', null, 'autoclose', function() { refreshTab('edituserpreferencetabs')}, null); "><span class="ui-icon ui-icon-circle-close"></span></a></td>
</tr>
<?php
}
?>
</tbody>
</table>