Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1800 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des Newsletter Moduls
5
	 */
6
 
7
?>
8
<?php if ($this->view['plugin_active'] !== true) { ?>
9
<div class="wpsg_error"><br /><?php echo __('Das Modul ist nur mit aktiviertem wpNewsletterGermany Plugin funktionsfähig.', 'wpsg'); ?><br /></div>
10
<?php } else { ?>
11
 
4933 thomas 12
	<?php echo wpsg_drawForm_Select('wpsg_mod_newsletter_groups[]', __('Gruppenzuordnung nach Registrierung', 'wpsg'), $this->view['arGroup'], (array)explode(',', $this->get_option('wpsg_mod_newsletter_groups')), array('help' => 'wpsg_mod_newsletter_groups','multiple' => ((sizeof($this->view['arGroup']) > 5)?5:sizeof($this->view['arGroup'])))); ?>
4932 thomas 13
	<?php echo wpsg_drawForm_Select('wpsg_mod_newsletter_action', __('Aktion', 'wpsg'), array('0' => __('Opt-In Mail versenden', 'wpsg'), '1' => __('Direkt anmelden', 'wpsg')), $this->get_option('wpsg_mod_newsletter_action'), array('help' => 'wpsg_mod_newsletter_action')); ?>
1800 daniel 14
 
1857 daniel 15
	<div class="wpsg_form_field">
16
		<div class="wpsg_form_left">
1863 daniel 17
			<label for="wpsg_mod_newsletter_imoprtgroups"><?php echo __('Gruppenimport aus wpShopGermany Kunden', 'wpsg'); ?>:</label>
1857 daniel 18
		</div>
19
		<div class="wpsg_form_right">
20
			<select class="select " size="<?php echo ((sizeof($this->view['arGroup']) > 5)?5:sizeof($this->view['arGroup'])); ?>" multiple="multiple" name="wpsg_mod_newsletter_imoprtgroups[]" id="wpsg_mod_newsletter_imoprtgroups">
8006 karl 21
				<?php foreach ($this->view['arGroup'] as $group_id => $group) {?>
1857 daniel 22
				<option value="<?php echo $group_id; ?>"><?php echo $group; ?></option>
23
				<?php } ?>
24
			</select>
5382 daniel 25
			<a style="float:right; position:relative;" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_newsletter_imoprtgroups" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_newsletter_imoprtgroups"></a>
1857 daniel 26
			<input type="button" onclick="return wpsg_doImport();" value="<?php echo __('Kunden importieren', 'wpsg'); ?>" class="button" style="width:auto;" />
27
		</div>
28
		<div class="wpsg_clear"></div>
29
	</div>
30
 
5382 daniel 31
	<script type="text/javascript">/* <![CDATA[ */
1857 daniel 32
 
33
	   	/**
34
	   	 * Startet den Import
35
	   	 */
36
		function wpsg_doImport()
37
		{
38
 
39
			nGroups = jQuery('#wpsg_mod_newsletter_imoprtgroups option:selected').length;
40
 
41
			if (nGroups <= 0)
42
			{
43
 
1905 daniel 44
				alert('<?php echo __('Bitte mindestens eine Gruppe wählen.', 'wpsg'); ?>');
1857 daniel 45
				return;
46
 
47
			}
48
 
49
			if (!confirm('<?php echo __('Die Shop Kunden werden in die ausgewählten Gruppen importiert. Bestehende E-Mail Adressen werden überschrieben.', 'wpsg'); ?>')) return;
50
 
51
			var strGroups = '';
52
			jQuery('#wpsg_mod_newsletter_imoprtgroups option:selected').each(function() {
53
				strGroups += jQuery(this).attr('value') + ',';
54
			} );
55
 
56
			strGroups = strGroups.substring(0, strGroups.length - 1);
57
 
58
			location.href = '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_newsletter&do=import&noheader=1&groups=' + strGroups;
59
 
60
		} // function wpsg_doImport()
5382 daniel 61
 
1857 daniel 62
	/* ]]> */</script>
63
 
1800 daniel 64
<?php } ?>