summaryrefslogtreecommitdiff
path: root/views/admin/kalkulation.phtml
blob: e41888a15ccfe7e62238a9298e99ed0ad9c50d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php

	/**
	 * Template für den Admin Bereich der Preiskalkulation
	 */

?>
<div class="wpsg_admin_submenu">
	
	<div class="head">
		<div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>			
		<div style="clear:both;"></div>
	</div>

	<ul>		
		<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>		
		<li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
		<?php } ?>
	</ul>
			
</div>

<div style="padding:0px; margin:0px; float:left;">		
	<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">
		<?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
		<?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
		<div class="wpsg_preisangaben_layer">
			<div class="wpsg_form_field">
				<div class="wpsg_form_left">
					<?php echo __("Preisangaben im Shop (Backend)", "wpsg"); ?>:
				</div>
				<div class="wpsg_form_right">
					<select name="wpsg_preisangaben">
						<option value="<?php echo WPSG_BRUTTO; ?>" <?php echo (($this->get_option('wpsg_preisangaben') == WPSG_BRUTTO)?'selected="selected"':''); ?>><?php echo __('Brutto (inkl. Steuer)', 'wpsg'); ?></option>
						<option value="<?php echo WPSG_NETTO; ?>" <?php echo (($this->get_option('wpsg_preisangaben') == WPSG_NETTO)?'selected="selected"':''); ?>><?php echo __('Netto (zzgl. Steuer)', 'wpsg'); ?></option>
					</select>
				</div>
				<div class="wpsg_clear"></div>
			</div>
			<?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')); ?>
		</div>			
			
		<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptyshipping', __('Versandkosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptyshipping'), array('help' => 'Preiskalkulation_wpsg_hideemptyshipping')); ?>
		<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
		
		<input type="hidden" name="subaction" value="kalkulation" />
			
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
		
		<script type="text/javascript">

			/**
			 * Wird beim ändern der Kleinunternehmerregelung aufgerufen
			 */
			function wpsg_setKleinunternehmer()
			{

				return;
				
				if (jQuery('#wpsg_kleinunternehmer').attr('checked'))
				{

					jQuery('.wpsg_preisangaben_layer').hide();
					
				}
				else
				{

					jQuery('.wpsg_preisangaben_layer').show();
					
				}
				
			} // function wpsg_setKleinunternehmer()
		
			jQuery(document).ready(function() {

				jQuery('#wpsg_kleinunternehmer').bind('change', function() {

					wpsg_setKleinunternehmer();
					
				} );
				
				jQuery('.wpsg_form_help').tipTip();
				wpsg_setKleinunternehmer();
				
			} );
		
		</script>
			
	</form>
</div>