From a59b1cdd6fc3c3e6d84af40443f2d83d6055ec8d Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Thu, 16 Mar 2017 10:46:26 +0000 Subject: - Produktgruppen git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6134 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productgroups/add.phtml | 79 +++++++++++ .../mod_productgroups/admin_setcapabilities.phtml | 19 +++ views/mods/mod_productgroups/index.phtml | 151 +++++++++++++++++++++ views/mods/mod_productgroups/list.phtml | 45 ++++++ .../productgroups_addedit_sidebar.phtml | 14 ++ .../produkt_addedit_sidebar.phtml | 28 ++++ views/mods/mod_productgroups/settings_edit.phtml | 15 ++ views/mods/mod_productgroups/show.phtml | 48 +++++++ views/mods/mod_productvariants/settings_edit.phtml | 19 ++- 9 files changed, 416 insertions(+), 2 deletions(-) create mode 100644 views/mods/mod_productgroups/add.phtml create mode 100644 views/mods/mod_productgroups/admin_setcapabilities.phtml create mode 100644 views/mods/mod_productgroups/index.phtml create mode 100644 views/mods/mod_productgroups/list.phtml create mode 100644 views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml create mode 100644 views/mods/mod_productgroups/produkt_addedit_sidebar.phtml create mode 100644 views/mods/mod_productgroups/settings_edit.phtml create mode 100644 views/mods/mod_productgroups/show.phtml (limited to 'views/mods') diff --git a/views/mods/mod_productgroups/add.phtml b/views/mods/mod_productgroups/add.phtml new file mode 100644 index 0000000..a220619 --- /dev/null +++ b/views/mods/mod_productgroups/add.phtml @@ -0,0 +1,79 @@ + + +
+ + + +
+ + writeBackendMessage(); ?> + +
+
+ +
+
+ + + + view['data']['name']); ?> + + view['languages'])) { ?> + view['languages'] as $l) { if ($l['locale'] != $this->getDefaultLanguage()) { ?> + + getFlagURL().$l['flag'].'" alt="'.$l['Name'].'" />)', + $this->view['data']['lang'][$l['locale']]['name'] + ); ?> + + + + + view['templates'], $this->view['data']['template_file']); ?> + view['pages'], $this->view['data']['infopage']); ?> + + + +
+
+ + callMods('wpsg_mod_productgroups_addedit_sidebar', array(&$this->view['data'])); ?> + +
+
+ + + + +
+ + view['data']['id']) && $this->view['data']['id'] > 0) { ?> + + + +
+ +
\ No newline at end of file diff --git a/views/mods/mod_productgroups/admin_setcapabilities.phtml b/views/mods/mod_productgroups/admin_setcapabilities.phtml new file mode 100644 index 0000000..6c245d5 --- /dev/null +++ b/views/mods/mod_productgroups/admin_setcapabilities.phtml @@ -0,0 +1,19 @@ +prefix."user_roles"); + +?> + + + $r) { ?> + + + name="wpsg_cap[][wpsg_productgroup]" value="1" /> + + + + \ No newline at end of file diff --git a/views/mods/mod_productgroups/index.phtml b/views/mods/mod_productgroups/index.phtml new file mode 100644 index 0000000..c193caf --- /dev/null +++ b/views/mods/mod_productgroups/index.phtml @@ -0,0 +1,151 @@ + + +
+ + + + view['pages'] > 1) { ?> + + + +
+ + writeBackendMessage(); ?> + +
+ + view['arData']) && sizeof($this->view['arData']) > 0) { ?> + + + + + + + + + + + view['arData'] as $pg) { ?> + + + + + + + +
+ " href="wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=edit&edit_id=id; ?>" class="row-title">name; ?> + + + template_file == "0")?'Individuelle Produkttemplates':$pg->template_file); ?> + + countProducts(); ?> +
+ + view['pages'] > 1) { ?> + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/views/mods/mod_productgroups/list.phtml b/views/mods/mod_productgroups/list.phtml new file mode 100644 index 0000000..e52f3c1 --- /dev/null +++ b/views/mods/mod_productgroups/list.phtml @@ -0,0 +1,45 @@ +hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg")); + + // Dimension der Bilder + $picW = 150; + $picH = 100; + $picMode = 's'; + +?> +view['data']) ?> +view['data'] as $k => $g) { ?> + +
+
+ + + +
+
+ + + = 0 && is_int($image)) { ?> +
+ callMod('wpsg_mod_produktbilder', 'makeTn', array($g['produkte'][$i]['id'], $g['produkte'][$i]['bilder'][$image], $picW, $picH, $picMode)) ?> + + <?php echo $g['produkte'][$i]['name']; ?> + +
+ + +
+
+
+ + \ No newline at end of file diff --git a/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml b/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml new file mode 100644 index 0000000..474c1b1 --- /dev/null +++ b/views/mods/mod_productgroups/productgroups_addedit_sidebar.phtml @@ -0,0 +1,14 @@ + + + + + view['wpsg_mod_productgroups']['data']['stock_value']), array()); ?> + view['wpsg_mod_productgroups']['data']['stock_aktiv'], array()); ?> + + \ No newline at end of file diff --git a/views/mods/mod_productgroups/produkt_addedit_sidebar.phtml b/views/mods/mod_productgroups/produkt_addedit_sidebar.phtml new file mode 100644 index 0000000..3a790b8 --- /dev/null +++ b/views/mods/mod_productgroups/produkt_addedit_sidebar.phtml @@ -0,0 +1,28 @@ + +
+
+

+ +

+
+
+ + view['wpsg_mod_productgroups']['data'])) { ?> +

+ + view['wpsg_mod_productgroups']['data'], @$this->view['wpsg_mod_productgroups']['produkt_data']['pgruppe']); ?> + view['wpsg_mod_productgroups']['sticky_von']); ?> + view['wpsg_mod_productgroups']['sticky_bis']); ?> + + +
+ + +
+
\ No newline at end of file diff --git a/views/mods/mod_productgroups/settings_edit.phtml b/views/mods/mod_productgroups/settings_edit.phtml new file mode 100644 index 0000000..90aaba1 --- /dev/null +++ b/views/mods/mod_productgroups/settings_edit.phtml @@ -0,0 +1,15 @@ + +view['pages'], $this->get_option('wpsg_productgroups_page'), array('help' => 'wpsg_mod_productgroups_page')); ?> + __('Nach ID', 'wpsg'), + 'alphabetisch' => __('Alphabetisch', 'wpsg'), + 'buyed' => __('Anzahl Verkäufe', 'wpsg'), + 'erstellungsdatum' => __('Erstellungsdatum', 'wpsg'), + 'preis' => __('Preis', 'wpsg') +), $this->get_option('wpsg_productgroups_order'), array('help' => 'wpsg_mod_productgroups_order')); ?> \ No newline at end of file diff --git a/views/mods/mod_productgroups/show.phtml b/views/mods/mod_productgroups/show.phtml new file mode 100644 index 0000000..0591381 --- /dev/null +++ b/views/mods/mod_productgroups/show.phtml @@ -0,0 +1,48 @@ +hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg")); + + // Dimension der Bilder + $picW = 200; + $picH = 200; + $picMode = 'c'; + + //$p['produktattribute'][$index]['name']; Der Name des Attributs + //$p['produktattribute'][$index]['value']; Der Wert des Attributs + //$index ist die Nummer des Produktattributs + + //Ausgabemöglichkeit bei aktiviertem Debug Modus + //wpsg_debug($this->view['data']); + +?> +
+
+
+ view['data']['produkte'] as $p) { ?> + + 0) { ?> + +
+ callMod('wpsg_mod_produktbilder', 'makeTn', array($p['id'], $p['bilder'][$image], $picW, $picH, $picMode)) ?> + + <?php echo $p['name']; ?> + +
+ + +
+
+
+
view['data']['name']; ?>
+ view['data']['infopage'] > 0) { ?> + + +
\ No newline at end of file diff --git a/views/mods/mod_productvariants/settings_edit.phtml b/views/mods/mod_productvariants/settings_edit.phtml index 019f4f5..3896830 100644 --- a/views/mods/mod_productvariants/settings_edit.phtml +++ b/views/mods/mod_productvariants/settings_edit.phtml @@ -6,9 +6,24 @@ ?> -

+
+ +
+ +
+
+ view['wpsg_mod_productvariants']['html']; ?> +
+
+ + get_option('wpsg_mod_productvariants')); ?> + +
+
-view['wpsg_mod_productvariants']['html']; ?>