1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Templatedatei für die Einstellungsseite im Backend
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<div class="wpsg_admin_submenu">
|
5264 |
daniel |
9 |
|
|
|
10 |
<div class="list-group">
|
5370 |
daniel |
11 |
<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
|
5264 |
daniel |
12 |
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
|
|
|
13 |
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
|
|
|
14 |
<?php } ?>
|
1067 |
daniel |
15 |
</div>
|
|
|
16 |
|
|
|
17 |
</div>
|
1417 |
daniel |
18 |
|
5264 |
daniel |
19 |
<div class="wpsg_admin_content form-horizontal">
|
1559 |
daniel |
20 |
<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'); ?>">
|
7049 |
daniel |
21 |
|
|
|
22 |
<?php wp_nonce_field('wpsg-save-config'); ?>
|
|
|
23 |
|
5401 |
daniel |
24 |
<div class="panel panel-default">
|
|
|
25 |
<div class="panel-heading clearfix">
|
|
|
26 |
<h3 class="panel-title"><?php echo __('Allgemeine Einstellungen', 'wpsg'); ?></h3>
|
|
|
27 |
</div>
|
6425 |
daniel |
28 |
<div class="panel-body">
|
5401 |
daniel |
29 |
<?php if ($this->get_option("wpsg_version_installed", true) != WPSG_VERSION) { ?>
|
|
|
30 |
<div class="wpsg_form_field">
|
|
|
31 |
<div class="wpsg_form_left">
|
|
|
32 |
<span style="color:red;"><?php echo __("Update", "wpsg"); ?>:</span>
|
|
|
33 |
</div>
|
|
|
34 |
<div class="wpsg_form_right">
|
7558 |
daniel |
35 |
|
|
|
36 |
<p>
|
|
|
37 |
<?php echo wpsg_translate(
|
|
|
38 |
__('Die Version der Datenbank stimmt nicht mit der installierten Version überein!<br />Bitte klicken Sie auf <a href="#1#">Aktualisieren</a> Produkte etc. werden dabei nicht gelöscht.', 'wpsg'),
|
|
|
39 |
wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=allgemein&do=update&submit=1&noheader=1', 'wpsg-admin-db-update')
|
|
|
40 |
); ?>
|
|
|
41 |
</p>
|
|
|
42 |
|
5945 |
hartmut |
43 |
<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=DBUpdate" class="wpsg_glyphicon_right glyphicon glyphicon-question-sign"></a>
|
7558 |
daniel |
44 |
|
5401 |
daniel |
45 |
</div>
|
|
|
46 |
<div class="wpsg_clear"></div>
|
5081 |
daniel |
47 |
</div>
|
5401 |
daniel |
48 |
<?php } else { ?>
|
|
|
49 |
<?php wpsg_drawForm_TextStart(); ?>
|
7558 |
daniel |
50 |
<?php echo WPSG_VERSION; ?> <a href="<?php
|
|
|
51 |
|
|
|
52 |
echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=allgemein&do=update&submit=1&noheader=1', 'wpsg-admin-db-update');
|
|
|
53 |
|
|
|
54 |
?>"><?php echo __("Aktualisieren", "wpsg"); ?></a>
|
6463 |
daniel |
55 |
<?php echo wpsg_drawForm_TextEnd(__('Installierte DB Version', 'wpsg'), array('help' => 'DBUpdate')); ?>
|
5401 |
daniel |
56 |
<?php } ?>
|
5264 |
daniel |
57 |
|
5401 |
daniel |
58 |
<?php echo wpsg_drawForm_Input('wpsg_currency', __('Währung', 'wpsg'), $this->get_option('wpsg_currency'), array('help' => 'Einstellungen_Allgemein_Waehrung')); ?>
|
|
|
59 |
|
|
|
60 |
<?php if (wpsg_isSizedArray($this->view['arLanguages'])) { ?>
|
|
|
61 |
<?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')); ?>
|
|
|
62 |
<?php } ?>
|
|
|
63 |
|
|
|
64 |
<?php echo wpsg_drawForm_Input('wpsg_produkte_perpage', __('Produkte pro Seite', 'wpsg'), $this->get_option('wpsg_produkte_perpage'), array('help' => 'ProduktePerPage')); ?>
|
6096 |
thomas |
65 |
<?php echo wpsg_drawForm_Input('wpsg_order_perpage', __('Bestellungen pro Seite', 'wpsg'), $this->get_option('wpsg_order_perpage'), array('help' => 'Bestellung_pro_Seite')); ?>
|
|
|
66 |
<?php echo wpsg_drawForm_Checkbox('wpsg_showincompleteorder', __('Unvollständige Best. in Bestellverwaltung anzeigen', 'wpsg'), $this->get_option('wpsg_showincompleteorder'), array('help' => 'unvollstaendige_Bestellung')); ?>
|
|
|
67 |
<?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'), array('help' => 'Bestellung_0')); ?>
|
5401 |
daniel |
68 |
<?php echo wpsg_drawForm_Select('wpsg_afterinsert', __('Nach neuem Produkt im Warenkorb', 'wpsg'), array(
|
|
|
69 |
'0' => __('Auf Seite bleiben', 'wpsg'),
|
|
|
70 |
'1' => __('Zum Warenkorb leiten', 'wpsg'),
|
|
|
71 |
'2' => __('Warenkorb im Fenster anzeigen', 'wpsg'),
|
|
|
72 |
'3' => __('Lightbox Meldung', 'wpsg')
|
6096 |
thomas |
73 |
), $this->get_option('wpsg_afterinsert'), array('help' => 'nach_Produkt_in_Warenkorb')); ?>
|
5401 |
daniel |
74 |
<?php echo wpsg_drawForm_Select('wpsg_afterorder', __('Kundendaten nach Bestellung', 'wpsg'), array(
|
|
|
75 |
'0' => __('In Session belassen', 'wpsg'),
|
|
|
76 |
'1' => __('Löschen', 'wpsg')
|
6096 |
thomas |
77 |
), $this->get_option('wpsg_afterorder'), array('help' => 'Kundendaten_nach_Bestellung')); ?>
|
5401 |
daniel |
78 |
<?php echo wpsg_drawForm_Input('wpsg_format_knr', __('Formatierung Kundennummer', 'wpsg'), $this->get_option('wpsg_format_knr'), array('help' => 'Formatierung_Kundennummer')); ?>
|
6096 |
thomas |
79 |
<?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'), array('help' => 'Kundennummersortierung')); ?>
|
|
|
80 |
<?php echo wpsg_drawForm_Input('wpsg_customer_start', __('Start für Kundennummer', 'wpsg'), $this->get_option('wpsg_customer_start'), array('help' => 'Kundennummerstart')); ?>
|
5401 |
daniel |
81 |
<?php echo wpsg_drawForm_Input('wpsg_format_onr', __('Formatierung Bestellnummer', 'wpsg'), $this->get_option('wpsg_format_onr'), array('help' => 'Formatierung_Bestellnummer')); ?>
|
6096 |
thomas |
82 |
<?php echo wpsg_drawForm_Input('wpsg_order_start', __('Start für Bestellnummer', 'wpsg'), $this->get_option('wpsg_order_start'), array('help' => 'Bestellnummerstart')); ?>
|
5439 |
daniel |
83 |
<?php echo wpsg_drawForm_Checkbox('wpsg_skip_checkout2', __('Auswahl der Zahlung/Versandart überspringen wenn möglich', 'wpsg'), $this->get_option('wpsg_skip_checkout2')); ?>
|
1067 |
daniel |
84 |
</div>
|
5439 |
daniel |
85 |
</div>
|
1067 |
daniel |
86 |
|
|
|
87 |
<input type="hidden" name="subaction" value="konfiguration" />
|
|
|
88 |
|
|
|
89 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
|
|
90 |
|
1417 |
daniel |
91 |
</form>
|
1067 |
daniel |
92 |
</div>
|