Subversion Repositories wpShopGermany4

Rev

Rev 6488 | Rev 7535 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1454 daniel 1
<?php
2
 
3
	/**
5650 thomas 4
	 * Template für die Verwaltung der Berechtigungen
1454 daniel 5
	 */
6
 
7
?>
8
<div class="wpsg_admin_submenu">
9
 
5439 daniel 10
	<div class="list-group">
11
		<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
12
		<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
13
		<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>
1454 daniel 14
		<?php } ?>
5439 daniel 15
	</div>
16
 
1454 daniel 17
</div>
18
 
5439 daniel 19
<div class="wpsg_admin_content form-horizontal">
1454 daniel 20
	<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'); ?>">
21
 
22
		<?php global $wpdb; $arRoles = get_option($wpdb->prefix."user_roles"); ?>
7226 daniel 23
 
5439 daniel 24
		<div class="panel panel-default">
25
  			<div class="panel-heading clearfix">
26
          		<h3 class="panel-title"><?php echo __('Berechtigungen', 'wpsg'); ?></h3>
27
        	</div>
28
  			<div class="panel-body">
29
 
30
				<table class="wpsg_access_table table" cellpadding="0" cellspacing="0">
31
					<thead>
32
						<tr>
33
							<th class="wpsg_col_capname"></th>
34
							<?php foreach ($arRoles as $role_key => $r) { ?>
35
							<th class="wpsg_col_cap"><?php echo $r['name']; ?></th>
36
							<?php } ?>
37
							<th></th>
38
						</tr>
39
					</thead>
40
					<tbody>
41
						<tr>
42
							<td class="wpsg_col_capname"><?php echo __('Menüpunkt sichtbar', 'wpsg'); ?></td>
43
							<?php foreach ($arRoles as $role_key => $r) { ?>
44
							<td class="wpsg_col_cap">
45
								<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_menu]" value="0" />
46
								<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" />
47
							</td>
48
							<?php } ?>
49
							<td></td>
50
						</tr>
51
						<tr>
52
							<td class="wpsg_col_capname"><?php echo __('Konfiguration', 'wpsg'); ?></td>
53
							<?php foreach ($arRoles as $role_key => $r) { ?>
54
							<td class="wpsg_col_cap">
55
								<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_conf]" value="0" />
56
								<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" />
57
							</td>
58
							<?php } ?>
59
							<td></td>
60
						</tr>
6488 daniel 61
						<?php $wpsg_update_data = wpsg_get_update_data(); if (wpsg_isSizedInt($wpsg_update_data['returnCode'])) { ?>
5439 daniel 62
						<tr>
63
							<td class="wpsg_col_capname"><?php echo __('Lizenzverwaltung', 'wpsg'); ?></td>
64
							<?php foreach ($arRoles as $role_key => $r) { ?>
65
							<td class="wpsg_col_cap">
66
								<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_lizence]" value="0" />
67
								<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" />
68
							</td>
69
							<?php } ?>
70
							<td></td>
71
						</tr>
72
						<?php } ?>
73
						<tr>
74
							<td class="wpsg_col_capname"><?php echo __('Bestellverwaltung', 'wpsg'); ?></td>
75
							<?php foreach ($arRoles as $role_key => $r) { ?>
76
							<td class="wpsg_col_cap">
77
								<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_order]" value="0" />
78
								<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" />
79
							</td>
80
							<?php } ?>
81
							<td></td>
82
						</tr>
83
						<tr>
84
							<td class="wpsg_col_capname"><?php echo __('Produktverwaltung', 'wpsg'); ?></td>
85
							<?php foreach ($arRoles as $role_key => $r) { ?>
86
							<td class="wpsg_col_cap">
87
								<input type="hidden" name="wpsg_cap[<?php echo $role_key; ?>][wpsg_produkt]" value="0" />
88
								<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" />
89
							</td>
90
							<?php } ?>
91
							<td></td>
92
						</tr>
93
						<?php $this->callMods('admin_setcapabilities'); ?>
94
					</tbody>
95
				</table>
96
 
97
			</div>
98
		</div>
1454 daniel 99
 
5439 daniel 100
		<p class="submit"><input type="submit" value="<?php echo __('Berechtigungen Speichern', 'wpsg'); ?>" name="submit" id="submit" class="button-primary" /></p>
1454 daniel 101
 
102
  	</form>
103
</div>