From e4326891a13a1bf445635ffbe30fae4e7462b458 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Fri, 4 Nov 2016 14:34:21 +0000 Subject: - Arbeiten V4 git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5896 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_export/fields.phtml | 139 ++++++++++++ views/mods/mod_export/order_index_tab.phtml | 4 +- views/mods/mod_export/profil.phtml | 338 ++++++---------------------- views/mods/mod_export/settings_edit.phtml | 42 +++- 4 files changed, 236 insertions(+), 287 deletions(-) create mode 100644 views/mods/mod_export/fields.phtml (limited to 'views/mods') diff --git a/views/mods/mod_export/fields.phtml b/views/mods/mod_export/fields.phtml new file mode 100644 index 0000000..abb1034 --- /dev/null +++ b/views/mods/mod_export/fields.phtml @@ -0,0 +1,139 @@ +view['profil']['id']; + +?> + + + + + + + + + + + view['profil']['fields'] as $f_id => $f) { $i ++; ?> + + + + + + + + + + + + + + + + +
+ + + +
+
+
view['fields'] as $fieldgroup) + { + + foreach ($fieldgroup['fields'] as $field_key => $field) + { + + if ($field_key == $f['value_key']) + { + + echo $field; + + } + + } + + } + + ?>
+ +
view['arFieldFormats'][$f['format']]; ?>
+ +
+ + + +
+ + : + +
+ +
+ + + + + +
+ + diff --git a/views/mods/mod_export/order_index_tab.phtml b/views/mods/mod_export/order_index_tab.phtml index 870b23f..096f2e2 100644 --- a/views/mods/mod_export/order_index_tab.phtml +++ b/views/mods/mod_export/order_index_tab.phtml @@ -5,13 +5,13 @@ */ ?> -
+
view['wpsg_mod_export']['arProfile'] as $p) { ?> - $p['id'])); ?> + $p['id'], 'noHidden' => true)); ?>
diff --git a/views/mods/mod_export/profil.phtml b/views/mods/mod_export/profil.phtml index 32ecc0c..98329c8 100644 --- a/views/mods/mod_export/profil.phtml +++ b/views/mods/mod_export/profil.phtml @@ -4,294 +4,82 @@ * Template für die Einstellungen eines Profils */ + $inlineEdit_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=inlinedit&noheader=1&profil_id='.$this->view['profil']['id']; + $upload_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=musterupload&noheader=1&profil_id='.$this->view['profil']['id']; + ?> writeBackendMessage(); ?> -
-
- -
-
view['profil']['name']; ?>
- -
-
- -
-
- -
-
view['profil']['data']['filename']; ?>
-
-
- -
-
- -
-
view['profil']['data']['separator']; ?>
-
-
- -
-
- -
-
- view['profil']['data']['oneline'] == '1')?'checked="checked"':''); ?> value="1" onchange="" id="wpsg_mod_export_oneline" />
-
-
- -
-
- -
-
- view['profil']['data']['firstlinecolname'] == '1')?'checked="checked"':''); ?> value="1" onchange="" id="wpsg_mod_export_firstlinecolname" id="wpsg_mod_export_firstlinecolname" />
-
-
- -
-
- -
-
- -
-
+
+

- -
-
- -
-
- - - - - -
-
-
-
- - - - - - - - - - - view['profil']['data']['fields'] as $f_key => $f) { $i ++; ?> - - - - - - - - - - - - - - - - -
view['fields'] as $fieldgroup) - { - - foreach ($fieldgroup['fields'] as $field_key => $field) - { - - if ($field_key == $f['value']) - { - echo $field; - } - - } - - } - - ?>
view['arFormats'][$f['format']]; ?>
- -
- - -
- - \ No newline at end of file +/* ]]> */ \ No newline at end of file diff --git a/views/mods/mod_export/settings_edit.phtml b/views/mods/mod_export/settings_edit.phtml index 263dd47..9a80ba6 100644 --- a/views/mods/mod_export/settings_edit.phtml +++ b/views/mods/mod_export/settings_edit.phtml @@ -26,32 +26,54 @@ } // function wpsg_mod_export_profilSwitch() - function wpsg_mod_export_removeField(profil_id, field_key) + function wpsg_mod_export_addField(profil_id) + { + + jQuery('#wpsg_mod_export_fields').html('<?php echo __('Bitte warten ...', 'wpsg'); ?>'); + + jQuery.ajax( { + url: 'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_addField&noheader=1', + data: { + profil_id: profil_id + }, + success: function(data) { + + jQuery('#wpsg_mod_export_fields').html(data); + + } + } ); + + return false; + + } + + function wpsg_mod_export_removeField(field_id) { - if (!confirm('')) return false; + if (!confirm('')) return false; + + jQuery('tr.wpsg_mod_export_fieldrow_' + field_id).parent().remove(); jQuery.ajax( { url: '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 + field_id: field_id }, success: function(data) { - if (data == '1') - { - jQuery('tr.wpsg_mod_export_fieldrow_' + field_key).remove(); - } - else + + if (data != '1') { + alert(data); + } + } } ); return false; - } // function wpsg_mod_export_removeField(profil_id, field_key) + } // function wpsg_mod_export_removeField(field_id) function wpsg_mod_export_removeProfil(profil_id) { -- cgit v1.2.3