Subversion Repositories wpShopGermany4

Rev

Rev 5439 | 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
	 * 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">
5439 daniel 21
 
22
		<div class="panel panel-default">
23
  			<div class="panel-heading clearfix">
24
          		<h3 class="panel-title"><?php echo __('Preiskalkulation', 'wpsg'); ?></h3>
25
        	</div>
26
  			<div class="panel-body">
5532 daniel 27
 
5439 daniel 28
				<div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_1">
29
					<?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
1889 daniel 30
				</div>
5439 daniel 31
 
32
				<div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_0">
33
					<?php echo wpsg_drawForm_Select('wpsg_preisangaben', __('Preisangaben im Shop (Backend)', 'wpsg'), array(
34
						WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg'),
35
						WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg')
36
					), $this->get_option('wpsg_preisangaben')); ?>
37
					<?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 38
				</div>
39
 
40
				<?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
5439 daniel 41
 
5532 daniel 42
				<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptyshipping', __('Versandkosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptyshipping'), array('help' => 'Preiskalkulation_wpsg_hideemptyshipping')); ?>
43
				<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
44
 
1067 daniel 45
			</div>
5439 daniel 46
		</div>
47
 
1067 daniel 48
		<input type="hidden" name="subaction" value="kalkulation" />
49
 
50
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
1321 daniel 51
 
5439 daniel 52
		<script type="text/javascript">/* <![CDATA[ */
53
 
1321 daniel 54
			jQuery(document).ready(function() {
1889 daniel 55
 
56
				jQuery('#wpsg_kleinunternehmer').bind('change', function() {
57
 
5439 daniel 58
					jQuery('.wpsg_kleinunternehmer_layer').hide();
59
 
60
					if (jQuery(this).prop('checked')) jQuery('.wpsg_kleinunternehmer_layer_1').show();
61
					else jQuery('.wpsg_kleinunternehmer_layer_0').show();
1889 daniel 62
 
5439 daniel 63
				} ).change();
1321 daniel 64
 
65
			} );
66
 
5439 daniel 67
		/* ]]> */</script>
1067 daniel 68
 
69
	</form>
70
</div>