diff options
| author | thomas <noreply@maennchen1.de> | 2018-11-15 09:46:02 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2018-11-15 09:46:02 +0000 |
| commit | dd9cbbaf329efab4984bc6a0daf13f49eead78e2 (patch) | |
| tree | dd2ae2bc7d5ba23cc7328f6f2fac0fb017c16f69 /views/mods/mod_customergroup/admin_setcapabilities.phtml | |
| parent | a9c9fbbb383f5850473a94d04efd1729f2b77000 (diff) | |
- Berechtigungsoptionen integriert
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7209 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_customergroup/admin_setcapabilities.phtml')
| -rw-r--r-- | views/mods/mod_customergroup/admin_setcapabilities.phtml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/views/mods/mod_customergroup/admin_setcapabilities.phtml b/views/mods/mod_customergroup/admin_setcapabilities.phtml new file mode 100644 index 0000000..13e2444 --- /dev/null +++ b/views/mods/mod_customergroup/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 __('Kundengruppen', '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_customergroup]" value="0" />
+ <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_customergroup']) && $r['capabilities']['wpsg_customergroup'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_customergroup]" value="1" />
+ </td>
+ <?php } ?>
+ <td></td>
+</tr>
\ No newline at end of file |
