3915 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Einstellungen für das Paketverfolgungsmodul
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
|
|
|
9 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
10 |
|
|
|
11 |
/**
|
|
|
12 |
* Wird beim anlegen eines neuen Anbieters aufgerufen
|
|
|
13 |
*/
|
|
|
14 |
function wpsg_mod_packagetracking_add()
|
|
|
15 |
{
|
|
|
16 |
|
|
|
17 |
jQuery('#wpsg_trackingprovider_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
18 |
|
|
|
19 |
jQuery.ajax( {
|
|
|
20 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_packagetracking&noheader=1&do=add',
|
|
|
21 |
success: function(data) {
|
|
|
22 |
jQuery('#wpsg_trackingprovider_list').html(data);
|
|
|
23 |
}
|
|
|
24 |
} );
|
|
|
25 |
|
|
|
26 |
return false;
|
|
|
27 |
|
|
|
28 |
} // function wpsg_mod_packagetracking_add()
|
|
|
29 |
|
|
|
30 |
/**
|
|
|
31 |
* Wird aufgerufen wenn ein Anbieter gelöscht werden soll
|
|
|
32 |
*/
|
|
|
33 |
function wpsg_mod_packagetracking_delete(trackingprovider_id)
|
|
|
34 |
{
|
|
|
35 |
|
|
|
36 |
if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
|
|
|
37 |
|
|
|
38 |
jQuery('#wpsg_trackingprovider_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
39 |
|
|
|
40 |
jQuery.ajax( {
|
|
|
41 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_packagetracking&noheader=1&do=delete',
|
|
|
42 |
data: {
|
|
|
43 |
trackingprovider_id: trackingprovider_id
|
|
|
44 |
},
|
|
|
45 |
success: function(data) {
|
|
|
46 |
jQuery('#wpsg_trackingprovider_list').html(data);
|
|
|
47 |
}
|
|
|
48 |
} );
|
|
|
49 |
|
|
|
50 |
return false;
|
|
|
51 |
|
|
|
52 |
} // function wpsg_mod_packagetracking_delete(trackingprovider_id)
|
|
|
53 |
|
|
|
54 |
/* ]]> */</script>
|
|
|
55 |
|
|
|
56 |
<div class="wpsg_admin_box wpsg_mod_packagetracking_settings_edit_list">
|
|
|
57 |
|
|
|
58 |
<div class="head">
|
|
|
59 |
<div class="title">
|
|
|
60 |
<div class="fulltab">
|
|
|
61 |
<?php echo __('Anbieter für Paketverfolgung', 'wpsg'); ?>
|
5945 |
hartmut |
62 |
<a title="<?php echo __('Neuen Anbieter anlegen', 'wpsg'); ?>" href="" class="wpsg_glyphicon_right glyphicon glyphicon-plus-sign" onclick="return wpsg_mod_packagetracking_add();"></a>
|
3915 |
daniel |
63 |
</div>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
<div class="content" id="wpsg_trackingprovider_list">
|
|
|
67 |
<?php echo $this->callMod('wpsg_mod_packagetracking', 'renderTrackingList'); ?>
|
|
|
68 |
</div>
|
|
|
69 |
|
|
|
70 |
</div>
|