diff options
Diffstat (limited to 'views/admin/konfiguration.phtml')
| -rw-r--r-- | views/admin/konfiguration.phtml | 191 |
1 files changed, 99 insertions, 92 deletions
diff --git a/views/admin/konfiguration.phtml b/views/admin/konfiguration.phtml index 145e1cd..38a3a8a 100644 --- a/views/admin/konfiguration.phtml +++ b/views/admin/konfiguration.phtml @@ -19,102 +19,109 @@ <div class="wpsg_admin_content form-horizontal">
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=konfiguration&noheader=1'); ?>">
- <?php if ($this->hasMod('wpsg_mod_core')) { ?>
-
- <?php if ($this->arLizenz['l'] == 0) { ?>
- <div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <?php echo __("Lizenzende", "wpsg"); ?>:
- </div>
- <div class="wpsg_form_right">
- <?php if ($this->getDemoDays() < 0) { ?>
- <p><?php echo wpsg_translate(__('Vor #1# Tage(n) abgelaufen.', 'wpsg'), abs($this->getDemoDays())); ?></p>
+ <div class="panel panel-default">
+ <div class="panel-heading clearfix">
+ <h3 class="panel-title"><?php echo __('Allgemeine Einstellungen', 'wpsg'); ?></h3>
+ </div>
+ <div class="panel-body">
+ <?php if ($this->hasMod('wpsg_mod_core')) { ?>
+
+ <?php if ($this->arLizenz['l'] == 0) { ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __("Lizenzende", "wpsg"); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <?php if ($this->getDemoDays() < 0) { ?>
+ <p><?php echo wpsg_translate(__('Vor #1# Tage(n) abgelaufen.', 'wpsg'), abs($this->getDemoDays())); ?></p>
+ <?php } else { ?>
+ <p><?php echo wpsg_translate(__('#1# Tage verbleibend.', 'wpsg'), $this->getDemoDays()); ?></p>
+ <?php } ?>
+ <a rel="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DemoMode" title="DemoMode" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DemoMode" class="wpsg_form_help"></a>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
<?php } else { ?>
- <p><?php echo wpsg_translate(__('#1# Tage verbleibend.', 'wpsg'), $this->getDemoDays()); ?></p>
- <?php } ?>
- <a rel="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DemoMode" title="DemoMode" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DemoMode" class="wpsg_form_help"></a>
- </div>
- <div class="wpsg_clear"></div>
- </div>
- <?php } else { ?>
-
- <?php
-
- $strText = '';
- switch ($this->arLizenz['l'])
- {
-
- case '1': $strText = __('Light Version', 'wpsg'); break;
- case '2': $strText = __('Pro Version', 'wpsg'); break;
- case '3': $strText = __('Enterprise Version', 'wpsg'); break;
- default: die();
+
+ <?php
+
+ $strText = '';
+ switch ($this->arLizenz['l'])
+ {
+
+ case '1': $strText = __('Light Version', 'wpsg'); break;
+ case '2': $strText = __('Pro Version', 'wpsg'); break;
+ case '3': $strText = __('Enterprise Version', 'wpsg'); break;
+ default: die();
+
+ }
- }
+ echo wpsg_drawForm_Text(__('Lizenzstatus', 'wpsg'), $strText);
+
+ ?>
+ <?php } ?>
+ <?php } else { ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left"> </div>
+ <div class="wpsg_form_right">
+ <?php echo wpsg_translate(
+ __('<span style="color:red; font-weight:bold;">Weitere Funktionen in der Vollversion.</span><br />[ <a target="_blank" href="#1#">Vollversion kaufen</a> ] [ <a target="_blank" href="#2#">Weitere Infos</a> ]', 'wpsg'),
+ 'http://shop.maennchen1.de/produkte/wpshopgermany-lizenzkey/',
+ 'http://wpshopgermany.de/'
+ ); ?>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ <?php } ?>
- echo wpsg_drawForm_Text(__('Lizenzstatus', 'wpsg'), $strText);
-
- ?>
- <?php } ?>
- <?php } else { ?>
- <div class="wpsg_form_field">
- <div class="wpsg_form_left"> </div>
- <div class="wpsg_form_right">
- <?php echo wpsg_translate(
- __('<span style="color:red; font-weight:bold;">Weitere Funktionen in der Vollversion.</span><br />[ <a target="_blank" href="#1#">Vollversion kaufen</a> ] [ <a target="_blank" href="#2#">Weitere Infos</a> ]', 'wpsg'),
- 'http://shop.maennchen1.de/produkte/wpshopgermany-lizenzkey/',
- 'http://wpshopgermany.de/'
- ); ?>
- </div>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
-
- <?php if ($this->get_option("wpsg_version_installed", true) != WPSG_VERSION) { ?>
- <div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <span style="color:red;"><?php echo __("Update", "wpsg"); ?>:</span>
- </div>
- <div class="wpsg_form_right">
- <p><?php echo __("Die Version der Datenbank stimmt nicht mit der installierten Version überein!<br />Bitte klicken Sie auf ", "wpsg").'<a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=allgemein&do=update&submit=1&noheader=1">'.__("Aktualisieren", "wpsg").'</a> ('.__("Produkte etc. werden dabei nicht gelöscht.", "wpsg"); ?>)</p>
+ <?php if ($this->get_option("wpsg_version_installed", true) != WPSG_VERSION) { ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <span style="color:red;"><?php echo __("Update", "wpsg"); ?>:</span>
+ </div>
+ <div class="wpsg_form_right">
+ <p><?php echo __("Die Version der Datenbank stimmt nicht mit der installierten Version überein!<br />Bitte klicken Sie auf ", "wpsg").'<a href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=allgemein&do=update&submit=1&noheader=1">'.__("Aktualisieren", "wpsg").'</a> ('.__("Produkte etc. werden dabei nicht gelöscht.", "wpsg"); ?>)</p>
+ <a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" class="wpsg_form_help"></a>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ <?php } else { ?>
+ <?php wpsg_drawForm_TextStart(); ?>
+ <?php echo WPSG_VERSION; ?> <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=allgemein&do=update&submit=1&noheader=1"><?php echo __("Aktualisieren", "wpsg"); ?></a>
<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" class="wpsg_form_help"></a>
+ <?php echo wpsg_drawForm_TextEnd(__('Installierte DB Version', 'wpsg')); ?>
+ <?php } ?>
+
+ <?php echo wpsg_drawForm_Input('wpsg_currency', __('Währung', 'wpsg'), $this->get_option('wpsg_currency'), array('help' => 'Einstellungen_Allgemein_Waehrung')); ?>
+
+ <?php if (wpsg_isSizedArray($this->view['arLanguages'])) { ?>
+ <?php echo wpsg_drawForm_Select('wpsg_backend_language', __('Standardsprache (Backend)', 'wpsg'), $this->view['arLanguages'], $this->get_option('wpsg_backend_language'), array('help' => 'Einstellungen_Allgemein_Standardsprachebackend')); ?>
+ <?php } ?>
+
+ <?php echo wpsg_drawForm_Input('wpsg_produkte_perpage', __('Produkte pro Seite', 'wpsg'), $this->get_option('wpsg_produkte_perpage'), array('help' => 'ProduktePerPage')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_order_perpage', __('Bestellungen pro Seite', 'wpsg'), $this->get_option('wpsg_order_perpage')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_showincompleteorder', __('Unvollständige Best. in Bestellverwaltung anzeigen', 'wpsg'), $this->get_option('wpsg_showincompleteorder')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_emptyorder_clear', wpsg_translate(__('Bestellungen für 0 #1# direkt abschließen', 'wpsg'), $this->get_option('wpsg_currency')), $this->get_option('wpsg_emptyorder_clear')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_afterinsert', __('Nach neuem Produkt im Warenkorb', 'wpsg'), array(
+ '0' => __('Auf Seite bleiben', 'wpsg'),
+ '1' => __('Zum Warenkorb leiten', 'wpsg'),
+ '2' => __('Warenkorb im Fenster anzeigen', 'wpsg'),
+ '3' => __('Lightbox Meldung', 'wpsg')
+ ), $this->get_option('wpsg_afterinsert')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_skip_checkout2', __('Auswahl der Zahlung/Versandart überspringen wenn möglich', 'wpsg'), $this->get_option('wpsg_skip_checkout2')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_afterorder', __('Kundendaten nach Bestellung', 'wpsg'), array(
+ '0' => __('In Session belassen', 'wpsg'),
+ '1' => __('Löschen', 'wpsg')
+ ), $this->get_option('wpsg_afterorder')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_format_knr', __('Formatierung Kundennummer', 'wpsg'), $this->get_option('wpsg_format_knr'), array('help' => 'Formatierung_Kundennummer')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_order_knr', __('Sortierung Kundennummer (Backend)', 'wpsg'), array('0' => __('Numerisch', 'wpsg'), '1' => __('Alphabetisch', 'wpsg')), $this->get_option('wpsg_order_knr')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_customer_start', __('Start für Kundennummer', 'wpsg'), $this->get_option('wpsg_customer_start')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_format_onr', __('Formatierung Bestellnummer', 'wpsg'), $this->get_option('wpsg_format_onr'), array('help' => 'Formatierung_Bestellnummer')); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_order_start', __('Start für Bestellnummer', 'wpsg'), $this->get_option('wpsg_order_start')); ?>
</div>
- <div class="wpsg_clear"></div>
- </div>
- <?php } else { ?>
- <?php wpsg_drawForm_TextStart(); ?>
- <?php echo WPSG_VERSION; ?> <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=allgemein&do=update&submit=1&noheader=1"><?php echo __("Aktualisieren", "wpsg"); ?></a>
- <a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" class="wpsg_form_help"></a>
- <?php echo wpsg_drawForm_TextEnd(__('Installierte DB Version', 'wpsg')); ?>
- <?php } ?>
-
- <?php echo wpsg_drawForm_Input('wpsg_currency', __('Währung', 'wpsg'), $this->get_option('wpsg_currency'), array('help' => 'Einstellungen_Allgemein_Waehrung')); ?>
-
- <?php if (wpsg_isSizedArray($this->view['arLanguages'])) { ?>
- <?php echo wpsg_drawForm_Select('wpsg_backend_language', __('Standardsprache (Backend)', 'wpsg'), $this->view['arLanguages'], $this->get_option('wpsg_backend_language'), array('help' => 'Einstellungen_Allgemein_Standardsprachebackend')); ?>
- <?php } ?>
-
- <?php echo wpsg_drawForm_Input('wpsg_produkte_perpage', __('Produkte pro Seite', 'wpsg'), $this->get_option('wpsg_produkte_perpage'), array('help' => 'ProduktePerPage')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_order_perpage', __('Bestellungen pro Seite', 'wpsg'), $this->get_option('wpsg_order_perpage')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_showincompleteorder', __('Unvollständige Best. in Bestellverwaltung anzeigen', 'wpsg'), $this->get_option('wpsg_showincompleteorder')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_emptyorder_clear', wpsg_translate(__('Bestellungen für 0 #1# direkt abschließen', 'wpsg'), $this->get_option('wpsg_currency')), $this->get_option('wpsg_emptyorder_clear')); ?>
- <?php echo wpsg_drawForm_Select('wpsg_afterinsert', __('Nach neuem Produkt im Warenkorb', 'wpsg'), array(
- '0' => __('Auf Seite bleiben', 'wpsg'),
- '1' => __('Zum Warenkorb leiten', 'wpsg'),
- '2' => __('Warenkorb im Fenster anzeigen', 'wpsg'),
- '3' => __('Lightbox Meldung', 'wpsg')
- ), $this->get_option('wpsg_afterinsert')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_skip_checkout2', __('Auswahl der Zahlung/Versandart überspringen wenn möglich', 'wpsg'), $this->get_option('wpsg_skip_checkout2')); ?>
- <?php echo wpsg_drawForm_Select('wpsg_afterorder', __('Kundendaten nach Bestellung', 'wpsg'), array(
- '0' => __('In Session belassen', 'wpsg'),
- '1' => __('Löschen', 'wpsg')
- ), $this->get_option('wpsg_afterorder')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_format_knr', __('Formatierung Kundennummer', 'wpsg'), $this->get_option('wpsg_format_knr'), array('help' => 'Formatierung_Kundennummer')); ?>
- <?php echo wpsg_drawForm_Select('wpsg_order_knr', __('Sortierung Kundennummer (Backend)', 'wpsg'), array('0' => __('Numerisch', 'wpsg'), '1' => __('Alphabetisch', 'wpsg')), $this->get_option('wpsg_order_knr')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_customer_start', __('Start für Kundennummer', 'wpsg'), $this->get_option('wpsg_customer_start')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_format_onr', __('Formatierung Bestellnummer', 'wpsg'), $this->get_option('wpsg_format_onr'), array('help' => 'Formatierung_Bestellnummer')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_order_start', __('Start für Bestellnummer', 'wpsg'), $this->get_option('wpsg_order_start')); ?>
-
- <script type="text/javascript">
+ </div>
+
+ <script type="text/javascript">/* <![CDATA[ */
jQuery(document).ready(function() {
@@ -122,7 +129,7 @@ } );
- </script>
+ /* ]]> */</script>
<input type="hidden" name="subaction" value="konfiguration" />
|
