Subversion Repositories wpShopGermany4

Rev

Rev 6463 | Rev 7558 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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&amp;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">
35
						<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&amp;subaction=allgemein&amp;do=update&amp;submit=1&amp;noheader=1">'.__("Aktualisieren", "wpsg").'</a>&nbsp;('.__("Produkte etc. werden dabei nicht gelöscht.", "wpsg"); ?>)</p>
5945 hartmut 36
						<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>
5401 daniel 37
					</div>
38
					<div class="wpsg_clear"></div>
5081 daniel 39
				</div>
5401 daniel 40
				<?php } else { ?>
41
				<?php wpsg_drawForm_TextStart(); ?>
42
				<?php echo WPSG_VERSION; ?>&nbsp;<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=allgemein&amp;do=update&amp;submit=1&amp;noheader=1"><?php echo __("Aktualisieren", "wpsg"); ?></a>
6463 daniel 43
				<?php echo wpsg_drawForm_TextEnd(__('Installierte DB Version', 'wpsg'), array('help' => 'DBUpdate')); ?>
5401 daniel 44
				<?php } ?>
5264 daniel 45
 
5401 daniel 46
				<?php echo wpsg_drawForm_Input('wpsg_currency', __('Währung', 'wpsg'), $this->get_option('wpsg_currency'), array('help' => 'Einstellungen_Allgemein_Waehrung')); ?>
47
 
48
				<?php if (wpsg_isSizedArray($this->view['arLanguages'])) { ?>
49
				<?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')); ?>
50
				<?php } ?>
51
 
52
				<?php echo wpsg_drawForm_Input('wpsg_produkte_perpage', __('Produkte pro Seite', 'wpsg'), $this->get_option('wpsg_produkte_perpage'), array('help' => 'ProduktePerPage')); ?>
6096 thomas 53
				<?php echo wpsg_drawForm_Input('wpsg_order_perpage', __('Bestellungen pro Seite', 'wpsg'), $this->get_option('wpsg_order_perpage'), array('help' => 'Bestellung_pro_Seite')); ?>
54
				<?php echo wpsg_drawForm_Checkbox('wpsg_showincompleteorder', __('Unvollständige Best. in Bestellverwaltung anzeigen', 'wpsg'), $this->get_option('wpsg_showincompleteorder'), array('help' => 'unvollstaendige_Bestellung')); ?>
55
				<?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 56
				<?php echo wpsg_drawForm_Select('wpsg_afterinsert', __('Nach neuem Produkt im Warenkorb', 'wpsg'), array(
57
					'0' => __('Auf Seite bleiben', 'wpsg'),
58
					'1' => __('Zum Warenkorb leiten', 'wpsg'),
59
					'2' => __('Warenkorb im Fenster anzeigen', 'wpsg'),
60
					'3' => __('Lightbox Meldung', 'wpsg')
6096 thomas 61
				), $this->get_option('wpsg_afterinsert'), array('help' => 'nach_Produkt_in_Warenkorb')); ?>
5401 daniel 62
				<?php echo wpsg_drawForm_Select('wpsg_afterorder', __('Kundendaten nach Bestellung', 'wpsg'), array(
63
					'0' => __('In Session belassen', 'wpsg'),
64
					'1' => __('Löschen', 'wpsg')
6096 thomas 65
				), $this->get_option('wpsg_afterorder'), array('help' => 'Kundendaten_nach_Bestellung')); ?>
5401 daniel 66
				<?php echo wpsg_drawForm_Input('wpsg_format_knr', __('Formatierung Kundennummer', 'wpsg'), $this->get_option('wpsg_format_knr'), array('help' => 'Formatierung_Kundennummer')); ?>
6096 thomas 67
				<?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')); ?>
68
				<?php echo wpsg_drawForm_Input('wpsg_customer_start', __('Start für Kundennummer', 'wpsg'), $this->get_option('wpsg_customer_start'), array('help' => 'Kundennummerstart')); ?>
5401 daniel 69
				<?php echo wpsg_drawForm_Input('wpsg_format_onr', __('Formatierung Bestellnummer', 'wpsg'), $this->get_option('wpsg_format_onr'), array('help' => 'Formatierung_Bestellnummer')); ?>
6096 thomas 70
				<?php echo wpsg_drawForm_Input('wpsg_order_start', __('Start für Bestellnummer', 'wpsg'), $this->get_option('wpsg_order_start'), array('help' => 'Bestellnummerstart')); ?>
5439 daniel 71
				<?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 72
			</div>
5439 daniel 73
		</div>
1067 daniel 74
 
75
		<input type="hidden" name="subaction" value="konfiguration" />
76
 
77
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
78
 
1417 daniel 79
	</form>
1067 daniel 80
</div>