Line 26... |
Line 26... |
26 |
<textarea><?php echo wpsg_hspc($vz['param']); ?></textarea>
|
26 |
<textarea><?php echo wpsg_hspc($vz['param']); ?></textarea>
|
27 |
<input type="submit" class="button" name="wpsg_mod_vz_submitsave" value="<?php echo __('Speichern', 'wpsg'); ?>" onclick="return wpsg_savePLZ(<?php echo $vz['id']; ?>);" />
|
27 |
<input type="submit" class="button" name="wpsg_mod_vz_submitsave" value="<?php echo __('Speichern', 'wpsg'); ?>" onclick="return wpsg_savePLZ(<?php echo $vz['id']; ?>);" />
|
28 |
</div>
|
28 |
</div>
|
29 |
</td>
|
29 |
</td>
|
30 |
<td class="col_innereu">
|
30 |
<td class="col_innereu">
|
- |
|
31 |
<input class="wpsg_innereu"
|
- |
|
32 |
data-url="<?php echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', 'wpsg-admin-versandzonen-inline_edit-'.$vz['id'])); ?>"
|
31 |
<input class="wpsg_innereu" <?php echo (($vz['innereu'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="innereu_<?php echo $vz['id']; ?>" id="innereu_<?php echo $vz['id']; ?>" />
|
33 |
<?php echo (($vz['innereu'] == '1')?'checked="checked"':''); ?> type="checkbox" value="1" name="innereu_<?php echo $vz['id']; ?>" id="innereu_<?php echo $vz['id']; ?>" />
|
32 |
</td>
|
34 |
</td>
|
33 |
<td class="col_aktion">
|
35 |
<td class="col_aktion">
|
34 |
|
36 |
|
35 |
<a class="wpsg_icon_plzedit" href="#" title="<?php echo __('Versandzonen PLZ bearbeiten', 'wpsg'); ?>" onclick="return wpsg_editPLZ(<?php echo $vz['id']; ?>);">[ PLZ ]</a>
|
37 |
<a class="wpsg_icon_plzedit" href="#" title="<?php echo __('Versandzonen PLZ bearbeiten', 'wpsg'); ?>" onclick="return wpsg_editPLZ(<?php echo $vz['id']; ?>);">[ PLZ ]</a>
|
36 |
<a class="glyphicon glyphicon-trash" href="#" title="<?php echo __('Versandzone löschen', 'wpsg'); ?>" onclick="return wpsg_removeVZ(<?php echo $vz['id']; ?>);"></a>
|
38 |
<a class="glyphicon glyphicon-trash" href="#" title="<?php echo __('Versandzone löschen', 'wpsg'); ?>" onclick="return wpsg_removeVZ(<?php echo $vz['id']; ?>);"></a>
|
Line 65... |
Line 67... |
65 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
67 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
66 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
68 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
67 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
69 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
68 |
});
|
70 |
});
|
69 |
|
71 |
|
70 |
</script>
|
72 |
</script>
|
71 |
</td>
|
73 |
</td>
|
72 |
</tr>
|
74 |
</tr>
|
73 |
<?php } ?>
|
75 |
<?php } ?>
|
74 |
</tbody>
|
76 |
</tbody>
|
75 |
</table>
|
77 |
</table>
|
Line 81... |
Line 83... |
81 |
jQuery('.wpsg_innereu').bind('click', function() {
|
83 |
jQuery('.wpsg_innereu').bind('click', function() {
|
82 |
|
84 |
|
83 |
var checked = "0"; if (jQuery(this).prop("checked")) checked = "1";
|
85 |
var checked = "0"; if (jQuery(this).prop("checked")) checked = "1";
|
84 |
|
86 |
|
85 |
jQuery.ajax( {
|
87 |
jQuery.ajax( {
|
86 |
url: '<?php
|
88 |
url: jQuery(this).data('url'),
|
87 |
|
- |
|
88 |
echo html_entity_decode(wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=inlinedit&noheader=1', 'wpsg-admin-versandzonen-inline_edit-'.$vz['id']));
|
- |
|
89 |
|
- |
|
90 |
?>',
|
- |
|
91 |
data: {
|
89 |
data: {
|
92 |
field: 'innereu',
|
90 |
field: 'innereu',
|
93 |
vz_id: jQuery(this).attr("id").substr(8),
|
91 |
vz_id: jQuery(this).attr("id").substr(8),
|
94 |
value: checked
|
92 |
value: checked
|
95 |
}
|
93 |
}
|