From c3624d0943a36118c673e30cf68dd02fe31f6ea3 Mon Sep 17 00:00:00 2001 From: hartmut Date: Fri, 3 Nov 2017 12:55:11 +0000 Subject: Gutscheinverwaltung im Backend mit Filter wie Bestellverwaltung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6680 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/css/admin.css | 1 + views/mods/mod_gutschein/index.phtml | 72 +++++++++++++++++++++------- views/mods/mod_gutschein/settings_edit.phtml | 3 +- 3 files changed, 56 insertions(+), 20 deletions(-) diff --git a/views/css/admin.css b/views/css/admin.css index 5de8ea7..e3279db 100644 --- a/views/css/admin.css +++ b/views/css/admin.css @@ -304,6 +304,7 @@ table.wpsgitrecht_table { width:100%; } .wpsg_mod_voucher_fieldtable .col_y { width:60px; } .wpsg_mod_voucher_fieldtable .col_color { width:80px; } .wpsg_mod_voucher_fieldtable .col_groesse { width:60px; } +.wpsg_voucher .wpsg_status_link_wrap { min-height:50px; float:left; display:inline-block; } /* Modul Lieferschein/Rechnung */ diff --git a/views/mods/mod_gutschein/index.phtml b/views/mods/mod_gutschein/index.phtml index 8832946..2da20ed 100644 --- a/views/mods/mod_gutschein/index.phtml +++ b/views/mods/mod_gutschein/index.phtml @@ -5,7 +5,6 @@ */ ?> -
-
+
@@ -50,6 +40,7 @@ view['arFilter']['s'])); ?>
+
@@ -58,7 +49,17 @@ -
+

+ + render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?> @@ -80,7 +81,6 @@ view['arData'] as $oVoucher) { ?> - get_option('wpsg_mod_gutschein_active') == '1') && ($oVoucher->getStatus() > 0)) continue; ?> @@ -123,10 +123,10 @@
+ + -
- - render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?> + render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?> @@ -146,6 +146,18 @@ jQuery('th[data-order="view['arFilter']['order']; ?>"]').addClass('wpsg_order_view['arFilter']['ascdesc']); ?>'); + function wpsg_setFilterStatus(state) + { + + jQuery('#filterstatus').val(state); + + jQuery('#seite').val(1); + jQuery('#filter_form').submit(); + + return false; + + } + function goPage(page) { @@ -158,5 +170,29 @@ } // function goPage(page) + jQuery(document).ready(function() { + + jQuery('.wpsg-order-tab-mods').bind('click', function() { + + if (jQuery(this).hasClass('active')) + { + + jQuery(this).removeClass('active'); + jQuery('.' + jQuery(this).attr("id")).slideUp(250); + + } + else + { + + jQuery(this).addClass('active'); + jQuery('.' + jQuery(this).attr("id")).slideDown(250); + + } + + return false; + + } ); + + } ); /* ]]> */ \ No newline at end of file diff --git a/views/mods/mod_gutschein/settings_edit.phtml b/views/mods/mod_gutschein/settings_edit.phtml index 9688428..9ffdbd2 100644 --- a/views/mods/mod_gutschein/settings_edit.phtml +++ b/views/mods/mod_gutschein/settings_edit.phtml @@ -6,5 +6,4 @@ ?> get_option('wpsg_mod_gutschein_size'), array ('help' => 'wpsg_mod_gutschein_size')); ?> -get_option('wpsg_mod_gutschein_perPage'), array ('help' => 'wpsg_mod_gutschein_perPage')); ?> -get_option('wpsg_mod_gutschein_active'), array ('help' => 'wpsg_mod_gutschein_active')); ?> \ No newline at end of file +get_option('wpsg_mod_gutschein_perPage'), array ('help' => 'wpsg_mod_gutschein_perPage')); ?> \ No newline at end of file -- cgit v1.2.3