1454 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Verwaltung der Berechtigunen
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<div class="wpsg_admin_submenu">
|
|
|
9 |
|
|
|
10 |
<div class="head">
|
|
|
11 |
<div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
|
|
|
12 |
<div style="clear:both;"></div>
|
|
|
13 |
</div>
|
|
|
14 |
|
|
|
15 |
<ul>
|
|
|
16 |
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
|
|
|
17 |
<li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
|
|
|
18 |
<?php } ?>
|
|
|
19 |
</ul>
|
|
|
20 |
|
|
|
21 |
</div>
|
|
|
22 |
|
|
|
23 |
<div class="wpsg_admin_content">
|
|
|
24 |
<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'); ?>">
|
|
|
25 |
|
|
|
26 |
<?php global $wpdb; $arRoles = get_option($wpdb->prefix."user_roles"); ?>
|
|
|
27 |
|
|
|
28 |
<table class="wpsg_access_table" cellpadding="0" cellspacing="0">
|
|
|
29 |
<tr>
|
|
|
30 |
<th class="wpsg_col_capname"></th>
|
|
|
31 |
<?php foreach ($arRoles as $role_key => $r) { ?>
|
|
|
32 |
<th class="wpsg_col_cap"><?php echo $r['name']; ?></th>
|
|
|
33 |
<?php } ?>
|
|
|
34 |
<th></th>
|
|
|
35 |
</tr>
|
|
|
36 |
<tr>
|
|
|
37 |
<td class="wpsg_col_capname"><?php echo __('Menüpunkt sichtbar', 'wpsg'); ?></td>
|
|
|
38 |
<?php foreach ($arRoles as $role_key => $r) { ?>
|
|
|
39 |
<td class="wpsg_col_cap">
|
|
|
40 |
<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_menu]" value="0" />
|
1559 |
daniel |
41 |
<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" />
|
1454 |
daniel |
42 |
</td>
|
|
|
43 |
<?php } ?>
|
|
|
44 |
<td></td>
|
|
|
45 |
</tr>
|
|
|
46 |
<tr>
|
|
|
47 |
<td class="wpsg_col_capname"><?php echo __('Konfiguration', 'wpsg'); ?></td>
|
|
|
48 |
<?php foreach ($arRoles as $role_key => $r) { ?>
|
|
|
49 |
<td class="wpsg_col_cap">
|
|
|
50 |
<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_conf]" value="0" />
|
1559 |
daniel |
51 |
<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" />
|
1454 |
daniel |
52 |
</td>
|
|
|
53 |
<?php } ?>
|
|
|
54 |
<td></td>
|
1923 |
daniel |
55 |
</tr>
|
4944 |
daniel |
56 |
<?php if ($this->hasMod('wpsg_mod_core')) { ?>
|
1923 |
daniel |
57 |
<tr>
|
|
|
58 |
<td class="wpsg_col_capname"><?php echo __('Lizenzverwaltung', 'wpsg'); ?></td>
|
|
|
59 |
<?php foreach ($arRoles as $role_key => $r) { ?>
|
|
|
60 |
<td class="wpsg_col_cap">
|
|
|
61 |
<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_lizence]" value="0" />
|
|
|
62 |
<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" />
|
|
|
63 |
</td>
|
|
|
64 |
<?php } ?>
|
|
|
65 |
<td></td>
|
1454 |
daniel |
66 |
</tr>
|
4944 |
daniel |
67 |
<?php } ?>
|
1454 |
daniel |
68 |
<tr>
|
|
|
69 |
<td class="wpsg_col_capname"><?php echo __('Bestellverwaltung', 'wpsg'); ?></td>
|
|
|
70 |
<?php foreach ($arRoles as $role_key => $r) { ?>
|
|
|
71 |
<td class="wpsg_col_cap">
|
|
|
72 |
<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_order]" value="0" />
|
1559 |
daniel |
73 |
<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" />
|
1454 |
daniel |
74 |
</td>
|
|
|
75 |
<?php } ?>
|
|
|
76 |
<td></td>
|
|
|
77 |
</tr>
|
|
|
78 |
<tr>
|
|
|
79 |
<td class="wpsg_col_capname"><?php echo __('Produktverwaltung', 'wpsg'); ?></td>
|
|
|
80 |
<?php foreach ($arRoles as $role_key => $r) { ?>
|
|
|
81 |
<td class="wpsg_col_cap">
|
|
|
82 |
<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_produkt]" value="0" />
|
1559 |
daniel |
83 |
<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" />
|
1454 |
daniel |
84 |
</td>
|
|
|
85 |
<?php } ?>
|
|
|
86 |
<td></td>
|
|
|
87 |
</tr>
|
|
|
88 |
<?php $this->callMods('admin_setcapabilities'); ?>
|
|
|
89 |
</table>
|
|
|
90 |
|
|
|
91 |
<br />
|
|
|
92 |
<input type="submit" value="<?php echo __('Berechtigungen Speichern', 'wpsg'); ?>" name="submit" id="submit" class="button-primary" />
|
|
|
93 |
|
|
|
94 |
</form>
|
|
|
95 |
</div>
|