Subversion Repositories wpShopGermany4

Rev

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

Rev 6306 Rev 7560
Line 35... Line 35...
35
 
35
 
36
<div class="wpsg_admin_content">
36
<div class="wpsg_admin_content">
37
 
37
 
38
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&noheader=1'); ?>">
38
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&noheader=1'); ?>">
39
 
39
 
-
 
40
		<?php echo wp_nonce_field('wpsg-admin-laender'); ?>
-
 
41
		
40
		<?php echo wpsg_drawForm_AdminboxStart(__('Länderverwaltung', 'wpsg')); ?>
42
		<?php echo wpsg_drawForm_AdminboxStart(__('Länderverwaltung', 'wpsg')); ?>
41
 
43
 
42
		<div id="wpsg_country_list">
44
		<div id="wpsg_country_list">
43
 
45
 
44
            <?php echo $this->render(WPSG_PATH_VIEW.'/admin/laender_list.phtml'); ?>
46
            <?php echo $this->render(WPSG_PATH_VIEW.'/admin/laender_list.phtml'); ?>
Line 61... Line 63...
61
 
63
 
62
	<script type="text/javascript">/* <![CDATA[ */
64
	<script type="text/javascript">/* <![CDATA[ */
63
 
65
 
64
	    function wpsg_country_check_all() { jQuery('td.col_check input').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } ); }
66
	    function wpsg_country_check_all() { jQuery('td.col_check input').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } ); }
65
 
67
 
66
		function wpsg_country_remove(land_id)
68
		function wpsg_country_remove(land_id) {
67
		{
-
 
68
 
69
 
69
			if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
70
			if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
70
 
71
 
71
			jQuery.ajax( {
72
			jQuery.ajax( {
-
 
73
				url: '<?php 
-
 
74
					
72
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=remove&noheader=1',
75
					echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=remove&noheader=1', 'wpsg-laender-delete'));
-
 
76
					
-
 
77
				?>',
73
				data: {
78
				data: {
74
					land_id: land_id
79
					land_id: land_id
75
				},
80
				},
76
				success: function(data) {
81
				success: function(data) {
77
											 
82
											 
Line 90... Line 95...
90
 
95
 
91
			jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
96
			jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
92
			jQuery('#Modal_wpsg_country_edit').modal('show');
97
			jQuery('#Modal_wpsg_country_edit').modal('show');
93
 
98
 
94
			jQuery.ajax( {
99
			jQuery.ajax( {
-
 
100
				url: '<?php 
-
 
101
					
95
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=add&noheader=1',				
102
					echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=add&noheader=1', 'wpsg-laender-add'));
-
 
103
					
-
 
104
				?>',				
96
				success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); }
105
				success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); }
97
			} );
106
			} );
98
			
107
			
99
			return false;
108
			return false;
100
 
109
 
101
		} // function wpsg_country_add()
110
		} // function wpsg_country_add()
102
 
111
 
103
        function wpsg_country_import()
112
        function wpsg_country_import() {
104
        {
-
 
105
 
113
 
106
            if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
114
            if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
107
 
115
 
108
            jQuery('#wpsg_country_list').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
116
            jQuery('#wpsg_country_list').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
109
 
117
 
110
            jQuery.ajax( {
118
            jQuery.ajax( {
-
 
119
                url: '<?php 
-
 
120
					
111
                url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=import&noheader=1',
121
					echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=import&noheader=1', 'wpsg-laender-import'));
-
 
122
					
-
 
123
				?>',
112
                success: function(data) {
124
                success: function(data) {
113
 
125
 
114
                    jQuery('#wpsg_country_list').html(data);
126
                    jQuery('#wpsg_country_list').html(data);
115
 
127
 
116
                }
128
                }
Line 126... Line 138...
126
            if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
138
            if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
127
 
139
 
128
            jQuery('#wpsg_country_list').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
140
            jQuery('#wpsg_country_list').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
129
 
141
 
130
            jQuery.ajax( {
142
            jQuery.ajax( {
-
 
143
                url: '<?php 
-
 
144
					
131
                url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=eu_import&noheader=1',
145
					echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=eu_import&noheader=1', 'wpsg-laender-eu_import'));
-
 
146
					
-
 
147
				?>',
132
                success: function(data) {
148
                success: function(data) {
133
 
149
 
134
                    jQuery('#wpsg_country_list').html(data);
150
                    jQuery('#wpsg_country_list').html(data);
135
 
151
 
136
                }
152
                }
Line 144... Line 160...
144
		{
160
		{
145
 
161
 
146
			jQuery('#wpsg_country_list').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
162
			jQuery('#wpsg_country_list').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
147
 
163
 
148
			jQuery.ajax( {
164
			jQuery.ajax( {
-
 
165
				url: '<?php
-
 
166
					 
149
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=save&noheader=1',
167
					echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=save&noheader=1', 'wpsg-laender-save'));
-
 
168
					
-
 
169
				?>',
150
				data: {
170
				data: {
151
					form_data: jQuery('#wpsg_land_edit_form_edit').serialize()
171
					form_data: jQuery('#wpsg_land_edit_form_edit').serialize()
152
				},
172
				},
153
				success: function(data) {
173
				success: function(data) {
154
 
174
 
Line 164... Line 184...
164
 
184
 
165
			jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
185
			jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
166
			jQuery('#Modal_wpsg_country_edit').modal('show');
186
			jQuery('#Modal_wpsg_country_edit').modal('show');
167
 
187
 
168
			jQuery.ajax( {
188
			jQuery.ajax( {
-
 
189
				url: '<?php 
-
 
190
					
169
				url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=edit&noheader=1&land_id=' + land_id,
191
					echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=edit&noheader=1', 'wpsg-laender-edit'));
-
 
192
					
-
 
193
				?>',
-
 
194
				data: {
-
 
195
					land_id: land_id
-
 
196
				},
170
				success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); }
197
				success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); }
171
			} );
198
			} );
172
 
199
 
173
			return false;
200
			return false;
174
 
201