Subversion Repositories wpShopGermany4

Rev

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

Rev 5911 Rev 6425
Line 94... Line 94...
94
		
94
		
95
		return false;
95
		return false;
96
		
96
		
97
	} // function wpsg_mod_export_removeProfil(profil_id)
97
	} // function wpsg_mod_export_removeProfil(profil_id)
98
	
98
	
99
	function wpsg_mod_export_addProfil()
99
	function wpsg_mod_export_addProfil(type)
100
	{
100
	{
101
 
101
 
102
		jQuery('#wpsg_profil_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
102
		jQuery('#wpsg_profil_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
103
 
103
 
104
		jQuery.ajax( {			
104
		jQuery.ajax( {			
105
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_addProfil&noheader=1',			
105
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_addProfil&noheader=1',
-
 
106
			data: {
-
 
107
				type: type
-
 
108
			},
106
			success: function(data) {
109
			success: function(data) {
-
 
110
				
107
				jQuery("#wpsg_profil_list").html(data);
111
				jQuery("#wpsg_profil_list").html(data);
-
 
112
				
108
			}
113
			}
109
		} );
114
		} );
110
		
115
		
111
		return false;
116
		return false;
112
		
117
		
Line 124... Line 129...
124
				'name': 'field_xml_att_' + field_id,
129
				'name': 'field_xml_att_' + field_id,
125
				'value': value
130
				'value': value
126
			},			
131
			},			
127
			success: function(data) {
132
			success: function(data) {
128
				
133
				
129
				if (data != '1')
134
				if (data != '1' && data != '0')
130
				{
135
				{
131
					
136
					
132
					alert(data);
137
					alert(data);
133
					
138
					
134
				}
139
				}
Line 138... Line 143...
138
		
143
		
139
	}
144
	}
140
	
145
	
141
</script>
146
</script>
142
 
147
 
-
 
148
<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="#" class="" onclick="return wpsg_mod_export_addProfil(<?php echo wpsg_mod_export::TYPE_ORDER; ?>);"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Exportprofil für Bestellungen anlegen', 'wpsg'); ?></a><br />
143
<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="#" class="" onclick="return wpsg_mod_export_addProfil();"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Exportprofil anlegen', 'wpsg'); ?></a>
149
<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="#" class="" onclick="return wpsg_mod_export_addProfil(<?php echo wpsg_mod_export::TYPE_PRODUCT; ?>);"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Exportprofil für Produkte anlegen', 'wpsg'); ?></a>
-
 
150
 
144
<br /><br />
151
<br /><br />
145
 
152
 
146
<div id="wpsg_profil_list"><?php echo $this->callMod('wpsg_mod_export', 'profilList'); ?></div>
153
<div id="wpsg_profil_list"><?php echo $this->callMod('wpsg_mod_export', 'profilList'); ?></div>
147
154