Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Rev 5650 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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