Subversion Repositories wpShopGermany4

Rev

Rev 7618 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für den Admin Bereich der Preiskalkulation
5
	 */
6
 
7
?>
8
<div class="wpsg_admin_submenu">
9
 
5439 daniel 10
	<div class="list-group">
11
		<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
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>
1067 daniel 14
		<?php } ?>
5439 daniel 15
	</div>
1067 daniel 16
 
17
</div>
18
 
5439 daniel 19
<div class="wpsg_admin_content form-horizontal">
1067 daniel 20
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $_REQUEST['subaction']; ?>&amp;noheader=1">
7558 daniel 21
 
22
		<?php echo wp_nonce_field('wpsg-admin-kalkulation'); ?>
23
 
5439 daniel 24
		<div class="panel panel-default">
25
  			<div class="panel-heading clearfix">
26
          		<h3 class="panel-title"><?php echo __('Preiskalkulation', 'wpsg'); ?></h3>
27
        	</div>
28
  			<div class="panel-body">
5532 daniel 29
 
5439 daniel 30
				<div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_1">
31
					<?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
1889 daniel 32
				</div>
5439 daniel 33
 
34
				<div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_0">
35
					<?php echo wpsg_drawForm_Select('wpsg_preisangaben', __('Preisangaben im Shop (Backend)', 'wpsg'), array(
36
						WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg'),
37
						WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg')
38
					), $this->get_option('wpsg_preisangaben')); ?>
39
					<?php echo wpsg_drawForm_Select('wpsg_preisangaben_frontend', __('Preisangaben im Shop (Frontend)', 'wpsg'), array(WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg'), WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg')), $this->get_option('wpsg_preisangaben_frontend')); ?>
5532 daniel 40
				</div>
41
 
42
				<?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
5439 daniel 43
 
5532 daniel 44
				<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptyshipping', __('Versandkosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptyshipping'), array('help' => 'Preiskalkulation_wpsg_hideemptyshipping')); ?>
7614 daniel 45
				<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
7618 daniel 46
				<?php echo wpsg_drawForm_Checkbox('wpsg_noroundamount', __('Vor Multiplikation mit Menge nicht runden', 'wpsg'), $this->get_option('wpsg_noroundamount'), ['help' => 'Preiskalkulation_wpsg_noroundamount']); ?>
8134 daniel 47
				<?php echo wpsg_drawForm_Checkbox('wpsg_deliverycountrytax', __('Mwst. gemäß Lieferland berechnen', 'wpsg'), $this->get_option('wpsg_deliverycountrytax'), ['help' => 'Preiskalkulation_wpsg_deliverycountrytax']); ?>
48
 
1067 daniel 49
			</div>
5439 daniel 50
		</div>
51
 
1067 daniel 52
		<input type="hidden" name="subaction" value="kalkulation" />
53
 
54
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
1321 daniel 55
 
5439 daniel 56
		<script type="text/javascript">/* <![CDATA[ */
57
 
1321 daniel 58
			jQuery(document).ready(function() {
1889 daniel 59
 
60
				jQuery('#wpsg_kleinunternehmer').bind('change', function() {
61
 
5439 daniel 62
					jQuery('.wpsg_kleinunternehmer_layer').hide();
63
 
64
					if (jQuery(this).prop('checked')) jQuery('.wpsg_kleinunternehmer_layer_1').show();
65
					else jQuery('.wpsg_kleinunternehmer_layer_0').show();
1889 daniel 66
 
5439 daniel 67
				} ).change();
1321 daniel 68
 
69
			} );
70
 
5439 daniel 71
		/* ]]> */</script>
1067 daniel 72
 
73
	</form>
74
</div>