1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
<?php
/**
* Template für die Verwaltung der Versandzonen
*/
?>
<script type="text/javascript">
/**
* Wird aufgerufen um einen neuen Satz hinzuzufügen und die Liste neu zu lasen.
*/
function wpsg_addVZ()
{
jQuery('#wpsg_vz_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=add&noheader=1',
success: function(data) {
jQuery('#wpsg_vz_list').html(data);
}
} );
return false;
} // function wpsg_addVZ()
/**
* Wird aufgerufen wenn eine Versandzone gelöscht werden soll
*/
function wpsg_removeVZ(vz_id)
{
if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie diese Versandzone löschen möchten?', 'wpsg'); ?>')) return false;
jQuery('#wpsg_vz_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=remove&noheader=1',
data: {
vz_id: vz_id
},
success: function(data) {
jQuery('#wpsg_vz_list').html(data);
}
} );
return false;
} // function wpsg_removeVZ(vz_id)
function wpsg_editPLZ(vz_id)
{
jQuery('#vz_' + vz_id + '_plz').attr('style', 'display:display');
return false;
}
function wpsg_savePLZ(vz_id)
{
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=save_plz&noheader=1',
data: {
vz_id: vz_id,
textarea: jQuery('#vz_' + vz_id + '_plz textarea').val()
},
success: function(data) {
jQuery('#vz_' + vz_id + '_plz').attr('style', 'display:none');
}
} );
return false;
}
function wpsg_loadStandard()
{
if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie die Standard Versandzonen und Länder laden möchten? Die alten Versandzonen und Länder gehen verloren.', 'wpsg'); ?>')) return false;
jQuery('#wpsg_vz_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz&do=loadStandard&noheader=1',
success: function(data) {
jQuery('#wpsg_vz_list').html(data);
}
} );
return false;
} // function wpsg_loadStandard()
</script>
<div class="wpsg_admin_submenu">
<div class="head">
<div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
<div style="clear:both;"></div>
</div>
<ul>
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
<li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
<?php } ?>
</ul>
</div>
<div class="wpsg_admin_content">
<div class="wpsg_admin_box">
<div class="head">
<div class="title">
<div class="fulltab">
<?php echo __('Versandzonen', 'wpsg'); ?>
<a title="<?php echo __('Neue Versandzone anlegen', 'wpsg'); ?>" href="" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_addVZ();"></a>
</div>
</div>
</div>
<div class="content">
<span id="wpsg_vz_list"><?php $this->view['adminController']->vz_listAction(); ?></span>
</div>
</div>
</div>
|