Subversion Repositories wpShopGermany4

Rev

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

Rev 5382 Rev 7286
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
	/**
3
	/**
4
	 * Template für das Modul "Rechtstexte"
4
	 * Template für das Modul "Rechtstexte"
5
	 */
5
	 */
6
 
6
		
7
?>
7
?>
8
 
8
 
9
<?php echo wpsg_drawForm_Select('wpsg_mod_legaltexts_provider', __('Anbieter', 'wpsg'), array(
9
<div class="wpsg_mod_legaltext_select">
-
 
10
	
10
	wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS => __('Protected Shops', 'wpsg'),
11
	<label class="bg-info mark <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'open':''); ?>" title="<?php echo __('Premiumpartner', 'itrecht'); ?>">
-
 
12
		
11
	wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND => __('Händlerbund', 'wpsg'),
13
		<input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_ITRECHT; ?>" />
12
	wpsg_mod_legaltexts::PROVIDER_ITRECHT => __('IT-Recht Kanzlei München', 'wpsg')
14
		<span class="name"><?php echo __('IT-Recht Kanzlei München') ?></span>
-
 
15
		<span class="grow"></span>
-
 
16
		<span class="text-info glyphicon glyphicon-star-empty" aria-hidden="true"></span>
-
 
17
				
-
 
18
	</label>
-
 
19
	
-
 
20
	<div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_ITRECHT; ?>"></div>
-
 
21
 
-
 
22
	<label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'open':''); ?>">
-
 
23
 
13
), $this->get_option('wpsg_mod_legaltexts_provider'), array('help' => 'wpsg_mod_legaltexts_provider')); ?>
24
		<input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS; ?>" />
-
 
25
		<span class="name"><?php echo __('Protected Shops') ?></span>
14
 
26
 
15
<br />
27
	</label>
16
 
28
 
17
<div id="wpsg_provider_target"></div>
29
	<div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS; ?>"></div>
18
 
30
 
-
 
31
	<label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'open':''); ?>">
-
 
32
 
-
 
33
		<input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND; ?>" />
-
 
34
		<span class="name"><?php echo __('Händlerbund') ?></span>
-
 
35
 
-
 
36
	</label>
-
 
37
 
-
 
38
	<div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND; ?>"></div>
-
 
39
	
-
 
40
</div> 
-
 
41
 
19
<script type="text/javascript">/* <![CDATA[ */
42
<script type="text/javascript">/* <![CDATA[ */
20
 
43
 
21
	jQuery(document).ready(function() {
44
	jQuery(document).ready(function() {
22
 
45
 
23
		jQuery('#wpsg_mod_legaltexts_provider').bind('change', function() {
46
		jQuery('.wpsg_mod_legaltexts_provider').bind('change', function() {
24
 
47
 
-
 
48
			if (parseInt(jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val()) > 0) {
-
 
49
 
-
 
50
				jQuery('.wpsg_mod_legaltext_select > label').removeClass('open');
-
 
51
				jQuery('.wpsg_provider_target').slideUp(125);
-
 
52
				
-
 
53
				var target = '.wpsg_provider_target_' + jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val();
-
 
54
				
25
			jQuery('#wpsg_provider_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
55
				jQuery(target).html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
26
			
56
				
27
			jQuery.ajax( {
57
				jQuery.ajax( {
28
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_legaltexts&noheader=1&do=add',
58
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_legaltexts&noheader=1&do=add',
29
				data: {
59
					data: {
30
					'provider': jQuery('#wpsg_mod_legaltexts_provider').val()
60
						'provider': jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val()
31
				},
61
					},
32
				success: function(data) {
62
					success: function(data) {
33
 
63
	
-
 
64
						jQuery(target).prev().addClass('open');
34
					jQuery('#wpsg_provider_target').html(data);
65
						jQuery(target).html(data);
-
 
66
						jQuery(target).slideDown(125);
35
					
67
						
36
				}
68
					}
37
			} );
69
				} );
-
 
70
				
-
 
71
			}
38
			
72
			
39
		} ).change();
73
		} ).change();
40
		
74
		
41
	} );
75
	} );
42
 
76