Subversion Repositories wpShopGermany4

Rev

Rev 7527 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7527 Rev 7558
Line 37... Line 37...
37
 
37
 
38
<div class="wpsg_admin_content form-horizontal wpsg_customerfield">
38
<div class="wpsg_admin_content form-horizontal wpsg_customerfield">
39
 
39
 
40
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $_REQUEST['subaction']; ?>&noheader=1">
40
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $_REQUEST['subaction']; ?>&noheader=1">
41
	
41
	
-
 
42
		<?php echo wp_nonce_field('wpsg-admin-kundendaten'); ?>
-
 
43
		
42
		<div class="panel panel-default">
44
		<div class="panel panel-default">
43
			<div class="panel-heading clearfix">
45
			<div class="panel-heading clearfix">
44
	       		<h3 class="panel-title"><?php echo __('Kundendaten', 'wpsg'); ?></h3>
46
	       		<h3 class="panel-title"><?php echo __('Kundendaten', 'wpsg'); ?></h3>
45
	       	</div>
47
	       	</div>
46
			<div class="panel-body">
48
			<div class="panel-body">
Line 75... Line 77...
75
		
77
		
76
		<p class="submit"><input name="submit" type="submit" value="<?php echo __('Einstellungen Speichern', 'wpsg'); ?>" class="button-primary" /></p>
78
		<p class="submit"><input name="submit" type="submit" value="<?php echo __('Einstellungen Speichern', 'wpsg'); ?>" class="button-primary" /></p>
77
		
79
		
78
	</form>
80
	</form>
79
	
81
	
80
	<script type="text/javascript">/* <![CDATA[ */
82
	<script>
81
 
83
 
82
		/**
84
		/**
83
		 * Fügt ein neues Feld in die Liste der Kundenvariablen ein und lädt die Liste neu
85
		 * Fügt ein neues Feld in die Liste der Kundenvariablen ein und lädt die Liste neu
84
		 */	                                            	
86
		 */	                                            	
85
		function wpsg_addCustomField()
87
		function wpsg_addCustomField()
86
		{
88
		{
87
	
89
	
88
			jQuery('#wpsg_kv_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
90
			jQuery('#wpsg_kv_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
89
			
91
			
90
			jQuery.ajax( {
92
			jQuery.ajax( {
91
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten&do=add&noheader=1',
93
				url: '<?php echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten&do=add&noheader=1', 'wpsg-admin-kundendaten-add')); ?>',
92
				success: function(data) {
94
				success: function(data) {
93
					jQuery('#wpsg_kv_list').html(data);
95
					jQuery('#wpsg_kv_list').html(data);
94
				}
96
				}
95
			} );
97
			} );
96
	
98
	
Line 107... Line 109...
107
			if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
109
			if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
108
			
110
			
109
			jQuery('.wpsg_customervar_row_' + kv_index).hide(250, function() { jQuery(this).remove(); } );
111
			jQuery('.wpsg_customervar_row_' + kv_index).hide(250, function() { jQuery(this).remove(); } );
110
 
112
 
111
			jQuery.ajax( {
113
			jQuery.ajax( {
112
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten&do=remove&noheader=1',
114
				url: '<?php echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten&do=remove&noheader=1', 'wpsg-admin-kundendaten-delete')); ?>',
113
				data: {
115
				data: {
114
					'kv_index': kv_index
116
					'kv_index': kv_index
115
				},
117
				},
116
				success: function(data) { 
118
				success: function(data) { 
117
 
119
 
Line 130... Line 132...
130
		function wpsg_genKVCode(kv_index)
132
		function wpsg_genKVCode(kv_index)
131
		{
133
		{
132
 
134
 
133
			jQuery('#wpsg_code_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
135
			jQuery('#wpsg_code_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
134
			
136
			
135
			jQuery('#wpsg_code_dialog').modal( { } )
137
			jQuery('#wpsg_code_dialog').modal( { } );
136
			
138
			
137
			jQuery.ajax( {
139
			jQuery.ajax( {
138
    			url: 'admin.php?page=wpsg-Admin&subaction=kundendaten&noheader=1&show=code',
140
    			url: '<?php echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten&noheader=1&show=code', 'wpsg-admin-kundendaten-code')); ?>',
139
    			data: { 'kv_id': kv_index },
141
    			data: { 'kv_id': kv_index },
140
    			success: function(data) { jQuery('#wpsg_code_dialog .modal-body').html(data); }
142
    			success: function(data) { jQuery('#wpsg_code_dialog .modal-body').html(data); }
141
        	} );
143
        	} );
142
			 
144
			 
143
			return false;
145
			return false;
Line 151... Line 153...
151
			var lastTab = localStorage.getItem('wpsg_admin_customer_lastTab');
153
			var lastTab = localStorage.getItem('wpsg_admin_customer_lastTab');
152
			if (lastTab) jQuery('[href="' + lastTab + '"]').tab('show');
154
			if (lastTab) jQuery('[href="' + lastTab + '"]').tab('show');
153
			
155
			
154
		} );
156
		} );
155
	    
157
	    
156
	/* ]]> */</script>
158
	</script>
157
 
159
 
158
</div>
160
</div>
159
161