From 4bf9c7e5be550c8adade6db016ea50554c5e7965 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 4 Sep 2019 13:42:10 +0000 Subject: - Statistik / Task #684 git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7555 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_kundenverwaltung/edit.phtml | 1 - .../mods/mod_statistics/produkt_edit_sidebar.phtml | 17 +--- views/mods/mod_statistics/simplefilter.phtml | 73 +++++++++++------- views/mods/mod_statistics/statistics.phtml | 90 +++++++++++----------- 4 files changed, 92 insertions(+), 89 deletions(-) (limited to 'views/mods') diff --git a/views/mods/mod_kundenverwaltung/edit.phtml b/views/mods/mod_kundenverwaltung/edit.phtml index 255e64c..915a9fe 100644 --- a/views/mods/mod_kundenverwaltung/edit.phtml +++ b/views/mods/mod_kundenverwaltung/edit.phtml @@ -30,7 +30,6 @@

-
diff --git a/views/mods/mod_statistics/produkt_edit_sidebar.phtml b/views/mods/mod_statistics/produkt_edit_sidebar.phtml index ecb4430..639756f 100644 --- a/views/mods/mod_statistics/produkt_edit_sidebar.phtml +++ b/views/mods/mod_statistics/produkt_edit_sidebar.phtml @@ -111,22 +111,7 @@ location.href = 'getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_statistics', 'export', array( 'edit_id' => $_REQUEST['edit_id'] )); ?>&von=' + jQuery('#st_von').val() + '&bis=' + jQuery('#st_bis').val(); - - /* - jQuery.ajax( { - url: 'getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_statistics', 'export'); ?>', - data: { - 'edit_id': , - 'von': jQuery('#st_von').val(), - 'bis': jQuery('#st_bis').val(), - }, - success: function(data) { - //jQuery('#wpsg_statistic_div').replaceWith(data); - - } - }); - */ - + }); diff --git a/views/mods/mod_statistics/simplefilter.phtml b/views/mods/mod_statistics/simplefilter.phtml index 9c8eb5b..50319a5 100644 --- a/views/mods/mod_statistics/simplefilter.phtml +++ b/views/mods/mod_statistics/simplefilter.phtml @@ -31,37 +31,51 @@ -view['charts'][$_REQUEST['id']]['type'] as $type => $data) { ?> +view['charts'][$_REQUEST['id']]['type'] as $type => $data) { ?> - +
- - - -
- -
- - -
- -
-
- -
- - - view['charts'] as $index => $chart) { ?> + +

+
- +
- -
- -
+
-
-
- -
+
+ + + view['charts'] as $index => $chart) { ?> - view['chart']['data']['template'])) - { - $templateFile = $this->view['chart']['data']['template'].'.phtml'; - } - else - { - $templateFile = str_replace('get', '', strtolower($this->view['standardFilter'][$this->view['filter']['standard']]['func']).'.phtml'); - } + - $templatePath = WPSG_PATH_VIEW.'/mods/mod_statistics/'.strtolower($this->view['charts'][$_REQUEST['id']]['func']).'/'.$templateFile; - - if (is_file($templatePath)) - { - $this->render($templatePath); - } - else - { + +
+ +
+ +
+ + view['chart']['data']['template'])) + { + $templateFile = $this->view['chart']['data']['template'].'.phtml'; + } + else + { + $templateFile = str_replace('get', '', strtolower($this->view['standardFilter'][$this->view['filter']['standard']]['func']).'.phtml'); + } + + $templatePath = WPSG_PATH_VIEW.'/mods/mod_statistics/'.strtolower($this->view['charts'][$_REQUEST['id']]['func']).'/'.$templateFile; + + if (is_file($templatePath)) + { + $this->render($templatePath); + } + else + { + + wpsg_debug($templatePath); + echo ''.__('Ungültige Anfrage', 'wpsg').''; + + } + ?> - wpsg_debug($templatePath); - echo ''.__('Ungültige Anfrage', 'wpsg').''; - - } - ?> +
+ +
-
- -
\ No newline at end of file + \ No newline at end of file -- cgit v1.2.3