1195 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Einstellungen des Export Moduls
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
1197 |
daniel |
8 |
<script type="text/javascript">
|
1195 |
daniel |
9 |
|
1197 |
daniel |
10 |
function wpsg_mod_export_profilSwitch()
|
|
|
11 |
{
|
|
|
12 |
|
|
|
13 |
jQuery('#profil_content').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
14 |
|
|
|
15 |
jQuery.ajax( {
|
|
|
16 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_profilSwitch&noheader=1',
|
|
|
17 |
data: {
|
|
|
18 |
profil: jQuery('#wpsg_mod_export_profil').val()
|
|
|
19 |
},
|
|
|
20 |
success: function(data) {
|
|
|
21 |
jQuery("#profil_content").html(data);
|
|
|
22 |
}
|
|
|
23 |
} );
|
|
|
24 |
|
|
|
25 |
return false;
|
|
|
26 |
|
|
|
27 |
} // function wpsg_mod_export_profilSwitch()
|
|
|
28 |
|
1198 |
daniel |
29 |
function wpsg_mod_export_removeField(profil_id, field_key)
|
|
|
30 |
{
|
|
|
31 |
|
|
|
32 |
if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
|
|
|
33 |
|
|
|
34 |
jQuery.ajax( {
|
|
|
35 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_removeField&noheader=1',
|
|
|
36 |
data: {
|
|
|
37 |
profil: profil_id,
|
|
|
38 |
field_key: field_key
|
|
|
39 |
},
|
|
|
40 |
success: function(data) {
|
|
|
41 |
if (data == '1')
|
|
|
42 |
{
|
|
|
43 |
jQuery('tr.wpsg_mod_export_fieldrow_' + field_key).remove();
|
|
|
44 |
}
|
|
|
45 |
else
|
|
|
46 |
{
|
|
|
47 |
alert(data);
|
|
|
48 |
}
|
|
|
49 |
}
|
|
|
50 |
} );
|
|
|
51 |
|
|
|
52 |
return false;
|
|
|
53 |
|
|
|
54 |
} // function wpsg_mod_export_removeField(profil_id, field_key)
|
|
|
55 |
|
1197 |
daniel |
56 |
function wpsg_mod_export_removeProfil(profil_id)
|
|
|
57 |
{
|
|
|
58 |
|
|
|
59 |
if (!confirm('<?php echo __('Sind sie sich sicher?', 'wpsg'); ?>')) return false;
|
|
|
60 |
|
|
|
61 |
jQuery('#profil_content').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
62 |
|
|
|
63 |
jQuery.ajax( {
|
|
|
64 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_removeProfil&noheader=1',
|
|
|
65 |
data: {
|
|
|
66 |
profil: profil_id
|
|
|
67 |
},
|
|
|
68 |
success: function(data) {
|
|
|
69 |
jQuery("#wpsg_profil_list").html(data);
|
|
|
70 |
}
|
|
|
71 |
} );
|
|
|
72 |
|
|
|
73 |
return false;
|
|
|
74 |
|
|
|
75 |
} // function wpsg_mod_export_removeProfil(profil_id)
|
1195 |
daniel |
76 |
|
1197 |
daniel |
77 |
function wpsg_mod_export_addProfil()
|
|
|
78 |
{
|
|
|
79 |
|
|
|
80 |
jQuery('#wpsg_profil_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
|
|
81 |
|
|
|
82 |
jQuery.ajax( {
|
|
|
83 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_addProfil&noheader=1',
|
|
|
84 |
success: function(data) {
|
|
|
85 |
jQuery("#wpsg_profil_list").html(data);
|
|
|
86 |
}
|
|
|
87 |
} );
|
1195 |
daniel |
88 |
|
1197 |
daniel |
89 |
return false;
|
|
|
90 |
|
|
|
91 |
} // function wpsg_addExportProfil()
|
|
|
92 |
|
|
|
93 |
</script>
|
|
|
94 |
|
|
|
95 |
<div class="wpsg_admin_box">
|
|
|
96 |
<div class="head">
|
|
|
97 |
<div class="title">
|
|
|
98 |
<div class="fulltab">
|
|
|
99 |
<?php echo __('Exportprofile', 'wpsg'); ?>
|
|
|
100 |
<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="" class="wpsg_icon wpsg_icon_right wpsg_icon_add" onclick="return wpsg_mod_export_addProfil();"></a>
|
|
|
101 |
</div>
|
|
|
102 |
</div>
|
|
|
103 |
<div id="wpsg_profil_list" class="content">
|
|
|
104 |
<?php echo $this->callMod('wpsg_mod_export', 'profilList'); ?>
|
|
|
105 |
</div>
|
|
|
106 |
</div>
|
|
|
107 |
</div>
|