Subversion Repositories wpShopGermany4

Rev

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

Rev 5371 Rev 5382
Line 6... Line 6...
6
	 */
6
	 */
7
 
7
 
8
?>
8
?>
9
<div class="wpsg_admin_submenu">
9
<div class="wpsg_admin_submenu">
10
	
10
	
-
 
11
	<div class="wpsg_modul_search_wrap">
-
 
12
		<input id="wpsg_modul_search" type="text" class="wpsg_modul_search" value="<?php echo wpsg_getStr($_COOKIE['wpsg-modulfilter-search']); ?>" />	
-
 
13
		<label title="<?php echo __('Wenn aktiviert, werden nur aktive Module angezeigt'); ?>">
-
 
14
			<input type="checkbox" <?php echo ((wpsg_isSizedString($_COOKIE['wpsg-modulfilter-check'], 'true'))?'checked="checked"':''); ?> id="wpsg_modul_onlyactive" class="wpsg_modul_onlyactive" />
-
 
15
			<span class="glyphicon glyphicon-ok wpsg_modul_onlyactive_glyphicon" aria-hidden="true"></span>
-
 
16
		</label>
-
 
17
	</div>
-
 
18
	
11
	<?php foreach ($this->view['groups'] as $group_name => $g) { ?>
19
	<?php foreach ($this->view['groups'] as $group_name => $g) { ?>
12
	<div class="list-group">
20
	<div class="list-group list-modul-group">
13
		<span class="list-group-head list-group-item"><?php echo $group_name; ?></span>		
21
		<span class="list-group-item list-group-head"><?php echo $group_name; ?></span>		
14
		<?php foreach ($g as $mod_key => $m) { ?>
22
		<?php foreach ($g as $mod_key => $m) { ?>
15
		<a class="<?php echo (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':''); ?> list-group-item <?php echo (($mod_key == $_REQUEST['modul'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $mod_key; ?>">
23
		<a class="<?php echo (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':''); ?> list-group-modul list-group-item <?php echo (($mod_key == $_REQUEST['modul'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $mod_key; ?>">
16
			<?php echo $m->name; ?>
24
			<span class="wpsg_modul_name"><?php echo $m->name; ?></span>
17
			<?php if (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':'') { ?>
25
			<?php if (($this->get_option($mod_key, $this->view['global']) > 0)?'modul_akt':'') { ?>
18
			<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
26
			<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
19
			<?php } ?>
27
			<?php } ?>
20
		</a>
28
		</a>
21
		<?php } ?>
29
		<?php } ?>
Line 23... Line 31...
23
	<?php } ?>
31
	<?php } ?>
24
	 
32
	 
25
</div>
33
</div>
26
 
34
 
27
<?php if (isset($_REQUEST['modul'])) { ?>
35
<?php if (isset($_REQUEST['modul'])) { ?>
28
<div class="wpsg_admin_content">		
36
<div class="wpsg_admin_content form-horizontal">		
29
	<form name="form1" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $_REQUEST['modul']; ?>&amp;noheader=1" method="post" enctype="multipart/form-data">
37
	<form name="form1" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module&amp;modul=<?php echo $_REQUEST['modul']; ?>&amp;noheader=1" method="post" enctype="multipart/form-data">
30
		
38
		
31
		<h3>
39
		<h3>
32
			<?php echo $this->arAllModule[$_REQUEST['modul']]->name; ?>
40
			<?php echo $this->arAllModule[$_REQUEST['modul']]->name; ?>
33
			<?php if (isset($this->arAllModule[$_REQUEST['modul']]->hilfeURL) && $this->arAllModule[$_REQUEST['modul']]->hilfeURL != '') { ?>
41
			<?php if (isset($this->arAllModule[$_REQUEST['modul']]->hilfeURL) && $this->arAllModule[$_REQUEST['modul']]->hilfeURL != '') { ?>
Line 35... Line 43...
35
			<?php } ?>
43
			<?php } ?>
36
		</h3>
44
		</h3>
37
		
45
		
38
		<p><?php echo $this->arAllModule[$_REQUEST['modul']]->desc; ?></p>
46
		<p><?php echo $this->arAllModule[$_REQUEST['modul']]->desc; ?></p>
39
		
47
		
40
		<div class="wpsg_form_field">
-
 
41
			<div class="wpsg_form_left">
-
 
42
				<?php echo __("Modul aktiviert", "wpsg"); ?>:
-
 
43
			</div>
-
 
44
			<div class="wpsg_form_right">
-
 
45
				<select name="aktiv">
-
 
46
					<option value="0"><?php echo __('Nein', 'wpsg'); ?></option>
48
		<?php $modul_install = $this->get_option($_REQUEST['modul'], $this->view['global']); ?>
47
					<option value="1" <?php echo (($this->get_option($_REQUEST['modul'], $this->view['global']) > 0)?'selected="selected"':''); ?>><?php echo __('Ja', 'wpsg'); ?></option>					
49
		<?php echo wpsg_drawForm_Select('aktiv', __('Modul aktiviert', 'wpsg'), array('0' => __('Nein', 'wpsg'), '1' => __('Ja', 'wpsg')), ((wpsg_isSizedInt($modul_install))?'1':'0')); ?>
48
				</select>
-
 
49
			</div>
-
 
50
			<div class="wpsg_clear"></div>
-
 
51
		</div>
-
 
52
		 
50
		 		 
53
		<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
51
		<?php if (isset($this->arAllModule[$_REQUEST['modul']]->version)) { ?>
54
		<?php echo wpsg_drawForm_Input('', __('Version', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>		
52
		<?php echo wpsg_drawForm_Input('', __('Version', 'wpsg'), $this->arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?>		
55
		<div class="wpsg_form_field">
53
		<div class="wpsg_form_field">
56
			<div class="wpsg_form_left">
54
			<div class="wpsg_form_left">
57
				<?php echo __("Lizenz", "wpsg"); ?>:
55
				<?php echo __("Lizenz", "wpsg"); ?>:
Line 126... Line 124...
126
	
124
	
127
<?php } ?>
125
<?php } ?>
128
 
126
 
129
<script type="text/javascript">/* <![CDATA[ */
127
<script type="text/javascript">/* <![CDATA[ */
130
 
128
 
-
 
129
	function wpsg_ssh_module()
-
 
130
	{
-
 
131
 
-
 
132
		jQuery('.list-modul-group').show();
-
 
133
		jQuery('.wpsg_admin_submenu .list-group-item').show();
-
 
134
 
-
 
135
		var check = jQuery('#wpsg_modul_onlyactive').prop('checked');
-
 
136
		var search = jQuery('#wpsg_modul_search').val();
-
 
137
 
-
 
138
		jQuery.cookie('wpsg-modulfilter-check', check);
-
 
139
		jQuery.cookie('wpsg-modulfilter-search', search);
-
 
140
		
-
 
141
		jQuery('.wpsg_modul_name').each(function() {
-
 
142
 
-
 
143
			if (!jQuery(this).parent().hasClass('active'))
-
 
144
			{
-
 
145
			
-
 
146
				if (check && !jQuery(this).parent().hasClass('modul_akt')) jQuery(this).parent().hide();
-
 
147
				else if (search != '')
-
 
148
				{
-
 
149
	
-
 
150
					var re = new RegExp(search, 'i');
-
 
151
	
-
 
152
					if (!jQuery(this).html().match(re)) jQuery(this).parent().hide();
-
 
153
					else jQuery(this).parent().show();
-
 
154
						
-
 
155
				}
-
 
156
 
-
 
157
			}
-
 
158
				
-
 
159
		} ); 
-
 
160
 
-
 
161
		jQuery('.list-modul-group').each(function() {
-
 
162
 
-
 
163
			if (jQuery(this).find('.list-group-modul:visible').length <= 0) jQuery(this).hide();
-
 
164
			else jQuery(this).show();				
-
 
165
			
-
 
166
		} );
-
 
167
		
-
 
168
	}
-
 
169
 
131
	jQuery(document).ready(function() {
170
	jQuery(document).ready(function() {
132
 
171
 
-
 
172
		jQuery('#wpsg_modul_onlyactive').bind('change', function(event) {
-
 
173
 
-
 
174
			wpsg_ssh_module();			
-
 
175
			jQuery(this).blur();
-
 
176
			
-
 
177
		} );
-
 
178
 
-
 
179
		jQuery('#wpsg_modul_search').focus().bind('blur', wpsg_ssh_module);
-
 
180
		jQuery('#wpsg_modul_search').focus().bind('keyup', wpsg_ssh_module);
-
 
181
		
133
		jQuery('.wpsg_form_help').tipTip();
182
		jQuery('.wpsg_form_help').tipTip();
134
 
183
 
-
 
184
		wpsg_ssh_module();
-
 
185
		
135
	} );
186
	} );
136
 
187
 
137
/* ]]> */</script>
188
/* ]]> */</script>
138
189