summaryrefslogtreecommitdiff
path: root/views/mods/mod_export/settings_edit.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
commitad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch)
treeb41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_export/settings_edit.phtml
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_export/settings_edit.phtml')
-rw-r--r--views/mods/mod_export/settings_edit.phtml107
1 files changed, 107 insertions, 0 deletions
diff --git a/views/mods/mod_export/settings_edit.phtml b/views/mods/mod_export/settings_edit.phtml
new file mode 100644
index 0000000..39aec29
--- /dev/null
+++ b/views/mods/mod_export/settings_edit.phtml
@@ -0,0 +1,107 @@
+<?php
+
+ /**
+ * Template für die Einstellungen des Export Moduls
+ */
+
+?>
+<script type="text/javascript">
+
+ function wpsg_mod_export_profilSwitch()
+ {
+
+ jQuery('#profil_content').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_export&do=wpsg_mod_export_profilSwitch&noheader=1',
+ data: {
+ profil: jQuery('#wpsg_mod_export_profil').val()
+ },
+ success: function(data) {
+ jQuery("#profil_content").html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_export_profilSwitch()
+
+ function wpsg_mod_export_removeField(profil_id, field_key)
+ {
+
+ if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
+
+ jQuery.ajax( {
+ 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',
+ data: {
+ profil: profil_id,
+ field_key: field_key
+ },
+ success: function(data) {
+ if (data == '1')
+ {
+ jQuery('tr.wpsg_mod_export_fieldrow_' + field_key).remove();
+ }
+ else
+ {
+ alert(data);
+ }
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_export_removeField(profil_id, field_key)
+
+ function wpsg_mod_export_removeProfil(profil_id)
+ {
+
+ if (!confirm('<?php echo __('Sind sie sich sicher?', 'wpsg'); ?>')) return false;
+
+ jQuery('#profil_content').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_export&do=wpsg_mod_export_removeProfil&noheader=1',
+ data: {
+ profil: profil_id
+ },
+ success: function(data) {
+ jQuery("#wpsg_profil_list").html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_mod_export_removeProfil(profil_id)
+
+ function wpsg_mod_export_addProfil()
+ {
+
+ jQuery('#wpsg_profil_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_export&do=wpsg_mod_export_addProfil&noheader=1',
+ success: function(data) {
+ jQuery("#wpsg_profil_list").html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_addExportProfil()
+
+</script>
+
+<div class="wpsg_admin_box">
+ <div class="head">
+ <div class="title">
+ <div class="fulltab">
+ <?php echo __('Exportprofile', 'wpsg'); ?>
+ <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>
+ </div>
+ </div>
+ <div id="wpsg_profil_list" class="content">
+ <?php echo $this->callMod('wpsg_mod_export', 'profilList'); ?>
+ </div>
+ </div>
+</div> \ No newline at end of file