summaryrefslogtreecommitdiff
path: root/views/admin/access.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-03-22 13:59:16 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-03-22 13:59:16 +0000
commit0fc69ce3ad89844dd5fb2f87532e7b6fca55923d (patch)
treeb89a251b26e0726a80c4c24eb0b726f1bbaeea62 /views/admin/access.phtml
parentc14a7c20ec8c489a37412cebb524e367679f5a60 (diff)
- sync
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5439 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/access.phtml')
-rw-r--r--views/admin/access.phtml158
1 files changed, 83 insertions, 75 deletions
diff --git a/views/admin/access.phtml b/views/admin/access.phtml
index 89af85d..4d3f970 100644
--- a/views/admin/access.phtml
+++ b/views/admin/access.phtml
@@ -7,89 +7,97 @@
?>
<div class="wpsg_admin_submenu">
- <div class="head">
- <div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
- <div style="clear:both;"></div>
- </div>
-
- <ul>
- <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
- <li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
+ <div class="list-group">
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
+ <a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
- </ul>
-
+ </div>
+
</div>
-<div class="wpsg_admin_content">
+<div class="wpsg_admin_content form-horizontal">
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction='.$_REQUEST['subaction'].'&noheader=1'); ?>">
<?php global $wpdb; $arRoles = get_option($wpdb->prefix."user_roles"); ?>
- <table class="wpsg_access_table" cellpadding="0" cellspacing="0">
- <tr>
- <th class="wpsg_col_capname"></th>
- <?php foreach ($arRoles as $role_key => $r) { ?>
- <th class="wpsg_col_cap"><?php echo $r['name']; ?></th>
- <?php } ?>
- <th></th>
- </tr>
- <tr>
- <td class="wpsg_col_capname"><?php echo __('Menüpunkt sichtbar', '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_menu]" value="0" />
- <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_menu']) && $r['capabilities']['wpsg_menu'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_menu]" value="1" />
- </td>
- <?php } ?>
- <td></td>
- </tr>
- <tr>
- <td class="wpsg_col_capname"><?php echo __('Konfiguration', '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_conf]" value="0" />
- <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_conf']) && $r['capabilities']['wpsg_conf'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_conf]" value="1" />
- </td>
- <?php } ?>
- <td></td>
- </tr>
- <?php if ($this->hasMod('wpsg_mod_core')) { ?>
- <tr>
- <td class="wpsg_col_capname"><?php echo __('Lizenzverwaltung', '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_lizence]" value="0" />
- <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_lizence']) && $r['capabilities']['wpsg_lizence'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_lizence]" value="1" />
- </td>
- <?php } ?>
- <td></td>
- </tr>
- <?php } ?>
- <tr>
- <td class="wpsg_col_capname"><?php echo __('Bestellverwaltung', '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_order]" value="0" />
- <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_order']) && $r['capabilities']['wpsg_order'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_order]" value="1" />
- </td>
- <?php } ?>
- <td></td>
- </tr>
- <tr>
- <td class="wpsg_col_capname"><?php echo __('Produktverwaltung', '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_produkt]" value="0" />
- <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_produkt']) && $r['capabilities']['wpsg_produkt'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_produkt]" value="1" />
- </td>
- <?php } ?>
- <td></td>
- </tr>
- <?php $this->callMods('admin_setcapabilities'); ?>
- </table>
+ <div class="panel panel-default">
+ <div class="panel-heading clearfix">
+ <h3 class="panel-title"><?php echo __('Berechtigungen', 'wpsg'); ?></h3>
+ </div>
+ <div class="panel-body">
+
+ <table class="wpsg_access_table table" cellpadding="0" cellspacing="0">
+ <thead>
+ <tr>
+ <th class="wpsg_col_capname"></th>
+ <?php foreach ($arRoles as $role_key => $r) { ?>
+ <th class="wpsg_col_cap"><?php echo $r['name']; ?></th>
+ <?php } ?>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td class="wpsg_col_capname"><?php echo __('Menüpunkt sichtbar', '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_menu]" value="0" />
+ <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_menu']) && $r['capabilities']['wpsg_menu'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_menu]" value="1" />
+ </td>
+ <?php } ?>
+ <td></td>
+ </tr>
+ <tr>
+ <td class="wpsg_col_capname"><?php echo __('Konfiguration', '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_conf]" value="0" />
+ <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_conf']) && $r['capabilities']['wpsg_conf'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_conf]" value="1" />
+ </td>
+ <?php } ?>
+ <td></td>
+ </tr>
+ <?php if ($this->hasMod('wpsg_mod_core')) { ?>
+ <tr>
+ <td class="wpsg_col_capname"><?php echo __('Lizenzverwaltung', '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_lizence]" value="0" />
+ <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_lizence']) && $r['capabilities']['wpsg_lizence'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_lizence]" value="1" />
+ </td>
+ <?php } ?>
+ <td></td>
+ </tr>
+ <?php } ?>
+ <tr>
+ <td class="wpsg_col_capname"><?php echo __('Bestellverwaltung', '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_order]" value="0" />
+ <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_order']) && $r['capabilities']['wpsg_order'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_order]" value="1" />
+ </td>
+ <?php } ?>
+ <td></td>
+ </tr>
+ <tr>
+ <td class="wpsg_col_capname"><?php echo __('Produktverwaltung', '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_produkt]" value="0" />
+ <input type="checkbox" <?php echo ((isset($r['capabilities']['wpsg_produkt']) && $r['capabilities']['wpsg_produkt'] == "1")?'checked="checked"':''); ?> name="wpsg_cap[<?php echo $role_key; ?>][wpsg_produkt]" value="1" />
+ </td>
+ <?php } ?>
+ <td></td>
+ </tr>
+ <?php $this->callMods('admin_setcapabilities'); ?>
+ </tbody>
+ </table>
+
+ </div>
+ </div>
- <br />
- <input type="submit" value="<?php echo __('Berechtigungen Speichern', 'wpsg'); ?>" name="submit" id="submit" class="button-primary" />
+ <p class="submit"><input type="submit" value="<?php echo __('Berechtigungen Speichern', 'wpsg'); ?>" name="submit" id="submit" class="button-primary" /></p>
</form>
</div> \ No newline at end of file