Line 14... |
Line 14... |
14 |
<?php } ?>
|
14 |
<?php } ?>
|
15 |
</div>
|
15 |
</div>
|
16 |
|
16 |
|
17 |
</div>
|
17 |
</div>
|
18 |
|
18 |
|
- |
|
19 |
<div class="modal fade" id="Modal_wpsg_country_edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
- |
|
20 |
<div class="modal-dialog" role="document">
|
- |
|
21 |
<div class="modal-content">
|
- |
|
22 |
<div class="modal-header">
|
- |
|
23 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
- |
|
24 |
<h4 class="modal-title" id="myModalLabel"><?php echo __('Land anlegen/bearbeiten', 'wpsg'); ?></h4>
|
- |
|
25 |
</div>
|
- |
|
26 |
<div class="modal-body">
|
- |
|
27 |
|
- |
|
28 |
</div>
|
- |
|
29 |
<div class="modal-footer">
|
- |
|
30 |
<button type="button" class="btn btn-default" onclick="return wpsg_country_save();" data-dismiss="modal"><?php echo __('Speichern und schließen', 'wpsg'); ?></button>
|
- |
|
31 |
</div>
|
- |
|
32 |
</div>
|
- |
|
33 |
</div>
|
- |
|
34 |
</div>
|
- |
|
35 |
|
19 |
<div class="wpsg_admin_content">
|
36 |
<div class="wpsg_admin_content">
|
20 |
|
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'); ?>">
|
- |
|
39 |
|
21 |
<?php echo wpsg_drawForm_AdminboxStart(__('Länderverwaltung', 'wpsg')); ?>
|
40 |
<?php echo wpsg_drawForm_AdminboxStart(__('Länderverwaltung', 'wpsg')); ?>
|
- |
|
41 |
|
- |
|
42 |
<div id="wpsg_country_list">
|
22 |
|
43 |
|
23 |
<?php if (wpsg_isSizedArray($this->view['data'])) { ?>
|
44 |
<?php if (wpsg_isSizedArray($this->view['data'])) { ?>
|
24 |
<table class="table wpsg_table_country">
|
45 |
<table class="table wpsg_table_country">
|
25 |
|
46 |
|
26 |
<tr>
|
47 |
<tr>
|
- |
|
48 |
<th class="col_check"><input type="checkbox" onclick="return wpsg_country_check_all();" style="margin-top:-2px;" /></th>
|
27 |
<th class="col_name"><?php echo __('Ländername', 'wpsg'); ?></th>
|
49 |
<th class="col_name"><?php echo __('Ländername', 'wpsg'); ?></th>
|
28 |
<th class="col_vz"><?php echo __('Versandzone', 'wpsg'); ?></th>
|
50 |
<th class="col_vz"><?php echo __('Versandzone', 'wpsg'); ?></th>
|
29 |
<th class="col_mwstsetting"><?php echo __('MwSt.', 'wpsg'); ?></th>
|
51 |
<th class="col_mwstsetting"><?php echo __('MwSt.', 'wpsg'); ?></th>
|
30 |
<th class="col_mwst"><?php echo __('MwSt. A', 'wpsg'); ?></th>
|
52 |
<th class="col_mwst"><?php echo __('MwSt. A', 'wpsg'); ?></th>
|
31 |
<th class="col_mwst"><?php echo __('MwSt. B', 'wpsg'); ?></th>
|
53 |
<th class="col_mwst"><?php echo __('MwSt. B', 'wpsg'); ?></th>
|
32 |
<th class="col_mwst"><?php echo __('MwSt. C', 'wpsg'); ?></th>
|
54 |
<th class="col_mwst"><?php echo __('MwSt. C', 'wpsg'); ?></th>
|
33 |
<th class="col_mwst"><?php echo __('MwSt. D', 'wpsg'); ?></th>
|
55 |
<th class="col_mwst"><?php echo __('MwSt. D', 'wpsg'); ?></th>
|
34 |
<th class="col_action"></th>
|
56 |
<th class="col_action"></th>
|
35 |
</tr>
|
57 |
</tr>
|
36 |
|
58 |
|
37 |
<?php foreach ($this->view['data'] as $l) { ?>
|
59 |
<?php foreach ($this->view['data'] as $l) { ?>
|
38 |
<tr id="<?php echo $l['id']; ?>">
|
60 |
<tr id="<?php echo $l['id']; ?>">
|
- |
|
61 |
<td class="col_check"><input type="checkbox" value="1" name="arDelete[<?php echo $l['id']; ?>]" /></td>
|
39 |
<td class="col_name"><?php echo wpsg_hspc($l['name'].((wpsg_isSizedString($l['kuerzel']))?' ('.$l['kuerzel'].')':'')); ?></td>
|
62 |
<td class="col_name"><?php echo wpsg_hspc($l['name'].((wpsg_isSizedString($l['kuerzel']))?' ('.$l['kuerzel'].')':'')); ?></td>
|
40 |
<td class="col_vz">
|
63 |
<td class="col_vz">
|
41 |
<?php if (wpsg_isSizedInt($l['vz']) && wpsg_isSizedString($this->view['vz'][$l['vz']])) { ?>
|
64 |
<?php if (wpsg_isSizedInt($l['vz']) && wpsg_isSizedString($this->view['vz'][$l['vz']])) { ?>
|
42 |
<?php echo wpsg_hspc($this->view['vz'][$l['vz']]); ?>
|
65 |
<?php echo wpsg_hspc($this->view['vz'][$l['vz']]); ?>
|
43 |
<?php } ?>
|
66 |
<?php } ?>
|
44 |
</td>
|
67 |
</td>
|
45 |
<td class="col_mwstsetting">
|
68 |
<td class="col_mwstsetting">
|
46 |
<?php if ($l['mwst'] == '2') { ?>
|
69 |
<?php if ($l['mwst'] == '2') { ?>
|
47 |
<?php echo __('keine MwSt. bei USt.IdNr.', 'wpsg'); ?>
|
70 |
<?php echo __('keine MwSt. bei USt.IdNr.', 'wpsg'); ?>
|
48 |
<?php } else if ($l['mwst'] == '1') { ?>
|
71 |
<?php } else if ($l['mwst'] == '1') { ?>
|
49 |
<?php echo __('keine MwSt.', 'wpsg'); ?>
|
72 |
<?php echo __('keine MwSt.', 'wpsg'); ?>
|
50 |
<?php } else { ?>
|
73 |
<?php } else { ?>
|
51 |
<?php echo __('mit MwSt.', 'wpsg'); ?>
|
74 |
<?php echo __('mit MwSt.', 'wpsg'); ?>
|
- |
|
75 |
<?php } ?>
|
- |
|
76 |
</td>
|
- |
|
77 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_a']) != NULL) { ?>
|
- |
|
78 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_a']), '%'); ?>
|
- |
|
79 |
<?php } ?></td>
|
- |
|
80 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_b']) != NULL) { ?>
|
- |
|
81 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_b']), '%'); ?>
|
- |
|
82 |
<?php } ?></td>
|
- |
|
83 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_c']) != NULL) { ?>
|
- |
|
84 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_c']), '%'); ?>
|
- |
|
85 |
<?php } ?></td>
|
- |
|
86 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_d']) != NULL) { ?>
|
- |
|
87 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_d']), '%'); ?>
|
- |
|
88 |
<?php } ?></td>
|
- |
|
89 |
<td class="col_action">
|
- |
|
90 |
|
- |
|
91 |
<a href="#" onclick="return wpsg_country_edit('<?php echo $l['id']; ?>');" class="glyphicon glyphicon-pencil"></a>
|
- |
|
92 |
<a href="#" class="glyphicon glyphicon-trash"></a>
|
- |
|
93 |
|
- |
|
94 |
</td>
|
- |
|
95 |
</tr>
|
52 |
<?php } ?>
|
96 |
<?php } ?>
|
- |
|
97 |
|
53 |
</td>
|
98 |
<tr>
|
- |
|
99 |
|
54 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_a']) != NULL) { ?>
|
100 |
<td class="col_check"><span class="glyphicon glyphicon-trash"></span></td>
|
55 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_a']), '%'); ?>
|
- |
|
56 |
<?php } ?></td>
|
101 |
<td colspan="8">
|
- |
|
102 |
|
57 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_b']) != NULL) { ?>
|
103 |
<input type="submit" name="submit" onclick="return confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>');" class="button btn-xs" value="<?php echo __('Markierte Länder löschen', 'wpsg'); ?>" />
|
58 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_b']), '%'); ?>
|
- |
|
59 |
<?php } ?></td>
|
- |
|
60 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_c']) != NULL) { ?>
|
- |
|
61 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_c']), '%'); ?>
|
- |
|
62 |
<?php } ?></td>
|
- |
|
63 |
<td class="col_mwst"><?php if (wpsg_tf($l['mwst_d']) != NULL) { ?>
|
- |
|
64 |
<?php echo wpsg_ff(wpsg_tf($l['mwst_d']), '%'); ?>
|
- |
|
- |
|
104 |
|
65 |
<?php } ?></td>
|
105 |
</td>
|
66 |
<td class="col_action"></td>
|
- |
|
- |
|
106 |
|
67 |
</tr>
|
107 |
</tr>
|
68 |
<?php } ?>
|
- |
|
69 |
|
108 |
|
70 |
</table>
|
109 |
</table>
|
71 |
<?php } else { ?>
|
110 |
<?php } else { ?>
|
72 |
<p><?php echo __('Noch keine Länder angelegt.', 'wpsg'); ?>
|
111 |
<p><?php echo __('Noch keine Länder angelegt.', 'wpsg'); ?></p>
|
73 |
<?php } ?>
|
112 |
<?php } ?>
|
- |
|
113 |
|
- |
|
114 |
</div>
|
74 |
|
115 |
|
75 |
<br /><br />
|
116 |
<br />
|
- |
|
117 |
|
- |
|
118 |
</form>
|
76 |
|
119 |
|
- |
|
120 |
<a href="#" onclick="return wpsg_country_add();"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Land anlegen.', 'wpsg'); ?></a><br /><br />
|
77 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Versandzonenverwaltung', 'wpsg'); ?></a>
|
121 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Versandzonenverwaltung', 'wpsg'); ?></a>
|
78 |
|
122 |
|
79 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
123 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
80 |
|
124 |
|
- |
|
125 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
126 |
|
- |
|
127 |
function wpsg_country_check_all() { jQuery('td.col_check input').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } ); }
|
- |
|
128 |
|
- |
|
129 |
function wpsg_country_add()
|
- |
|
130 |
{
|
- |
|
131 |
|
- |
|
132 |
jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
|
- |
|
133 |
jQuery('#Modal_wpsg_country_edit').modal('show');
|
- |
|
134 |
|
- |
|
135 |
jQuery.ajax( {
|
- |
|
136 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=add&noheader=1',
|
- |
|
137 |
success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); }
|
- |
|
138 |
} );
|
- |
|
139 |
|
- |
|
140 |
return false;
|
- |
|
141 |
|
- |
|
142 |
} // function wpsg_country_add()
|
- |
|
143 |
|
- |
|
144 |
function wpsg_country_save()
|
- |
|
145 |
{
|
- |
|
146 |
|
- |
|
147 |
jQuery('#wpsg_country_list').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
|
- |
|
148 |
|
- |
|
149 |
jQuery.ajax( {
|
- |
|
150 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=save&noheader=1',
|
- |
|
151 |
data: {
|
- |
|
152 |
form_data: jQuery('#wpsg_land_edit_form_edit').serialize()
|
- |
|
153 |
},
|
- |
|
154 |
success: function(data) {
|
- |
|
155 |
|
- |
|
156 |
jQuery('#wpsg_country_list').html(data);
|
- |
|
157 |
|
- |
|
158 |
}
|
- |
|
159 |
} );
|
- |
|
160 |
|
- |
|
161 |
} // function wpsg_country_save()
|
- |
|
162 |
|
- |
|
163 |
function wpsg_country_edit(land_id)
|
- |
|
164 |
{
|
- |
|
165 |
|
- |
|
166 |
jQuery('#Modal_wpsg_country_edit .modal-body').html('<img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" />');
|
- |
|
167 |
jQuery('#Modal_wpsg_country_edit').modal('show');
|
- |
|
168 |
|
- |
|
169 |
jQuery.ajax( {
|
- |
|
170 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=edit&noheader=1&land_id' + land_id,
|
- |
|
171 |
success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); }
|
- |
|
172 |
} );
|
- |
|
173 |
|
- |
|
174 |
return false;
|
- |
|
175 |
|
- |
|
176 |
} // function wpsg_country_edit(edit_id)
|
- |
|
177 |
|
- |
|
178 |
/* ]]> */</script>
|
- |
|
179 |
|
- |
|
180 |
|
- |
|
181 |
|
- |
|
182 |
|
- |
|
183 |
|
81 |
<div class="wpsg_admin_box">
|
184 |
<div class="wpsg_admin_box">
|
82 |
|
185 |
|
83 |
<h3>
|
186 |
<h3>
|
84 |
<?php echo __('Neues Land hinzufügen', 'wpsg'); ?>
|
187 |
<?php echo __('Neues Land hinzufügen', 'wpsg'); ?>
|
85 |
<a target="_blank" href="http://wpshopgermany.maennchen1.de/?p=839037" class="wpsg_form_help_notip"></a>
|
188 |
<a target="_blank" href="http://wpshopgermany.maennchen1.de/?p=839037" class="wpsg_form_help_notip"></a>
|