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&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&subaction=<?php echo $_REQUEST['subaction']; ?>&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')); ?>
|
|
|
45 |
<?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
|
|
|
46 |
|
1067 |
daniel |
47 |
</div>
|
5439 |
daniel |
48 |
</div>
|
|
|
49 |
|
1067 |
daniel |
50 |
<input type="hidden" name="subaction" value="kalkulation" />
|
|
|
51 |
|
|
|
52 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
1321 |
daniel |
53 |
|
5439 |
daniel |
54 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
55 |
|
1321 |
daniel |
56 |
jQuery(document).ready(function() {
|
1889 |
daniel |
57 |
|
|
|
58 |
jQuery('#wpsg_kleinunternehmer').bind('change', function() {
|
|
|
59 |
|
5439 |
daniel |
60 |
jQuery('.wpsg_kleinunternehmer_layer').hide();
|
|
|
61 |
|
|
|
62 |
if (jQuery(this).prop('checked')) jQuery('.wpsg_kleinunternehmer_layer_1').show();
|
|
|
63 |
else jQuery('.wpsg_kleinunternehmer_layer_0').show();
|
1889 |
daniel |
64 |
|
5439 |
daniel |
65 |
} ).change();
|
1321 |
daniel |
66 |
|
|
|
67 |
} );
|
|
|
68 |
|
5439 |
daniel |
69 |
/* ]]> */</script>
|
1067 |
daniel |
70 |
|
|
|
71 |
</form>
|
|
|
72 |
</div>
|