summaryrefslogtreecommitdiff
path: root/views/mods/mod_packagetracking/settings_edit.phtml
blob: 85cbe0b92796a84040614bb386cd218759070d24 (plain)
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
<?php

	/**
	 * Einstellungen für das Paketverfolgungsmodul
	 * @version 4.6.1
	 */

?>

<script type="text/javascript">/* <![CDATA[ */

	/**
	 * Wird beim anlegen eines neuen Anbieters aufgerufen
	 */
	function wpsg_mod_packagetracking_add()
	{

		jQuery('#wpsg_trackingprovider_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&action=module&modul=wpsg_mod_packagetracking&noheader=1&do=add',
			success: function(data) {
				jQuery('#wpsg_trackingprovider_list').html(data);
			}
		} ); 

		return false;

	} // function wpsg_mod_packagetracking_add()

	/**
	 * Wird aufgerufen wenn ein Anbieter gelöscht werden soll
	 */
	function wpsg_mod_packagetracking_delete(trackingprovider_id)
	{

		if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;

		jQuery('#wpsg_trackingprovider_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&action=module&modul=wpsg_mod_packagetracking&noheader=1&do=delete',
			data: {
				trackingprovider_id: trackingprovider_id
			},
			success: function(data) {
				jQuery('#wpsg_trackingprovider_list').html(data);
			}
		} ); 
		
		return false;
		
	} // function wpsg_mod_packagetracking_delete(trackingprovider_id)
	
/* ]]> */</script>

<div class="wpsg_admin_box wpsg_mod_packagetracking_settings_edit_list">		
		  		
	<div class="head">
		<div class="title">
			<div class="fulltab">
				<?php echo __('Anbieter für Paketverfolgung', 'wpsg'); ?>
				<br /><br />
			</div>
		</div>
	</div>
	<div class="content" id="wpsg_trackingprovider_list">
		<?php echo $this->callMod('wpsg_mod_packagetracking', 'renderTrackingList'); ?>
	</div>
			
</div>