summaryrefslogtreecommitdiff
path: root/views/mods/mod_abo/admin_setcapabilities.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_abo/admin_setcapabilities.phtml')
-rw-r--r--views/mods/mod_abo/admin_setcapabilities.phtml19
1 files changed, 19 insertions, 0 deletions
diff --git a/views/mods/mod_abo/admin_setcapabilities.phtml b/views/mods/mod_abo/admin_setcapabilities.phtml
new file mode 100644
index 0000000..90a5992
--- /dev/null
+++ b/views/mods/mod_abo/admin_setcapabilities.phtml
@@ -0,0 +1,19 @@
+<?php
+
+ /**
+ * Template für die Integration in die Verwaltung der Berechtigungen
+ */
+
+ global $wpdb; $arRoles = get_option($wpdb->prefix."user_roles");
+
+?>
+<tr>
+ <td class="wpsg_col_capname"><?php echo __('Aboverwaltung', 'wpsg'); ?></td>
+ <?php foreach ($arRoles as $role_key => $r) { ?>
+ <td class="wpsg_col_cap">
+ <input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_abo]" value="0" />
+ <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_abo']) && $r['capabilities']['wpsg_abo'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_abo]" value="1" />
+ </td>
+ <?php } ?>
+ <td></td>
+</tr> \ No newline at end of file