Line 5... |
Line 5... |
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
<div class="wpsg_admin_submenu">
|
8 |
<div class="wpsg_admin_submenu">
|
9 |
|
9 |
|
10 |
<div class="head">
|
10 |
<div class="list-group">
|
11 |
<div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
|
11 |
<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
|
12 |
<div style="clear:both;"></div>
|
- |
|
13 |
</div>
|
- |
|
14 |
|
- |
|
15 |
<ul>
|
- |
|
16 |
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
|
12 |
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
|
17 |
<li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
|
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>
|
18 |
<?php } ?>
|
14 |
<?php } ?>
|
19 |
</ul>
|
15 |
</div>
|
20 |
|
16 |
|
21 |
</div>
|
17 |
</div>
|
22 |
|
18 |
|
23 |
<div style="padding:0px; margin:0px; float:left;">
|
19 |
<div class="wpsg_admin_content form-horizontal">
|
24 |
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $_REQUEST['subaction']; ?>&noheader=1">
|
20 |
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $_REQUEST['subaction']; ?>&noheader=1">
|
25 |
<?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
|
- |
|
26 |
<?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
|
- |
|
- |
|
21 |
|
27 |
<div class="wpsg_preisangaben_layer">
|
22 |
<div class="panel panel-default">
|
28 |
<div class="wpsg_form_field">
|
- |
|
29 |
<div class="wpsg_form_left">
|
23 |
<div class="panel-heading clearfix">
|
30 |
<?php echo __("Preisangaben im Shop (Backend)", "wpsg"); ?>:
|
24 |
<h3 class="panel-title"><?php echo __('Preiskalkulation', 'wpsg'); ?></h3>
|
31 |
</div>
|
25 |
</div>
|
32 |
<div class="wpsg_form_right">
|
26 |
<div class="panel-body">
|
- |
|
27 |
|
33 |
<select name="wpsg_preisangaben">
|
28 |
<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptyshipping', __('Versandkosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptyshipping'), array('help' => 'Preiskalkulation_wpsg_hideemptyshipping')); ?>
|
34 |
<option value="<?php echo WPSG_BRUTTO; ?>" <?php echo (($this->get_option('wpsg_preisangaben') == WPSG_BRUTTO)?'selected="selected"':''); ?>><?php echo __('Brutto (inkl. Steuer)', 'wpsg'); ?></option>
|
29 |
<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
|
- |
|
30 |
|
35 |
<option value="<?php echo WPSG_NETTO; ?>" <?php echo (($this->get_option('wpsg_preisangaben') == WPSG_NETTO)?'selected="selected"':''); ?>><?php echo __('Netto (zzgl. Steuer)', 'wpsg'); ?></option>
|
31 |
<?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
|
- |
|
32 |
|
36 |
</select>
|
33 |
<div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_1">
|
- |
|
34 |
<?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
|
37 |
</div>
|
35 |
</div>
|
- |
|
36 |
|
- |
|
37 |
<div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_0">
|
- |
|
38 |
<?php echo wpsg_drawForm_Select('wpsg_preisangaben', __('Preisangaben im Shop (Backend)', 'wpsg'), array(
|
- |
|
39 |
WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg'),
|
- |
|
40 |
WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg')
|
- |
|
41 |
), $this->get_option('wpsg_preisangaben')); ?>
|
38 |
<div class="wpsg_clear"></div>
|
42 |
<?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')); ?>
|
- |
|
43 |
</div>
|
- |
|
44 |
|
39 |
</div>
|
45 |
</div>
|
40 |
<?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')); ?>
|
- |
|
41 |
</div>
|
46 |
</div>
|
42 |
|
- |
|
43 |
<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptyshipping', __('Versandkosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptyshipping'), array('help' => 'Preiskalkulation_wpsg_hideemptyshipping')); ?>
|
- |
|
44 |
<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
|
- |
|
45 |
|
47 |
|
46 |
<input type="hidden" name="subaction" value="kalkulation" />
|
48 |
<input type="hidden" name="subaction" value="kalkulation" />
|
47 |
|
49 |
|
48 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
50 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
49 |
|
51 |
|
50 |
<script type="text/javascript">
|
52 |
<script type="text/javascript">/* <![CDATA[ */
|
51 |
|
- |
|
52 |
/**
|
- |
|
53 |
* Wird beim ändern der Kleinunternehmerregelung aufgerufen
|
- |
|
54 |
*/
|
- |
|
55 |
function wpsg_setKleinunternehmer()
|
- |
|
56 |
{
|
- |
|
57 |
|
- |
|
58 |
return;
|
- |
|
59 |
|
- |
|
60 |
if (jQuery('#wpsg_kleinunternehmer').attr('checked'))
|
- |
|
61 |
{
|
- |
|
62 |
|
- |
|
63 |
jQuery('.wpsg_preisangaben_layer').hide();
|
- |
|
64 |
|
- |
|
65 |
}
|
- |
|
66 |
else
|
- |
|
67 |
{
|
- |
|
68 |
|
- |
|
69 |
jQuery('.wpsg_preisangaben_layer').show();
|
- |
|
70 |
|
- |
|
71 |
}
|
- |
|
72 |
|
- |
|
73 |
} // function wpsg_setKleinunternehmer()
|
- |
|
74 |
|
53 |
|
75 |
jQuery(document).ready(function() {
|
54 |
jQuery(document).ready(function() {
|
76 |
|
55 |
|
77 |
jQuery('#wpsg_kleinunternehmer').bind('change', function() {
|
56 |
jQuery('#wpsg_kleinunternehmer').bind('change', function() {
|
78 |
|
57 |
|
79 |
wpsg_setKleinunternehmer();
|
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();
|
80 |
|
62 |
|
81 |
} );
|
63 |
} ).change();
|
82 |
|
- |
|
83 |
jQuery('.wpsg_form_help').tipTip();
|
- |
|
84 |
wpsg_setKleinunternehmer();
|
- |
|
85 |
|
64 |
|
86 |
} );
|
65 |
} );
|
87 |
|
66 |
|
88 |
</script>
|
67 |
/* ]]> */</script>
|
89 |
|
68 |
|
90 |
</form>
|
69 |
</form>
|
91 |
</div>
|
70 |
</div>
|
92 |
|
71 |
|