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 |
|
|
|
10 |
<div class="head">
|
|
|
11 |
<div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
|
|
|
12 |
<div style="clear:both;"></div>
|
|
|
13 |
</div>
|
|
|
14 |
|
|
|
15 |
<ul>
|
|
|
16 |
<?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>
|
|
|
18 |
<?php } ?>
|
|
|
19 |
</ul>
|
|
|
20 |
|
|
|
21 |
</div>
|
|
|
22 |
|
|
|
23 |
<div style="padding:0px; margin:0px; float:left;">
|
|
|
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">
|
2416 |
daniel |
25 |
<?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
|
2643 |
david |
26 |
<?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
|
1889 |
daniel |
27 |
<div class="wpsg_preisangaben_layer">
|
|
|
28 |
<div class="wpsg_form_field">
|
|
|
29 |
<div class="wpsg_form_left">
|
|
|
30 |
<?php echo __("Preisangaben im Shop (Backend)", "wpsg"); ?>:
|
|
|
31 |
</div>
|
|
|
32 |
<div class="wpsg_form_right">
|
|
|
33 |
<select name="wpsg_preisangaben">
|
|
|
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>
|
|
|
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>
|
|
|
36 |
</select>
|
|
|
37 |
</div>
|
|
|
38 |
<div class="wpsg_clear"></div>
|
1067 |
daniel |
39 |
</div>
|
4049 |
daniel |
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')); ?>
|
1889 |
daniel |
41 |
</div>
|
|
|
42 |
|
1401 |
daniel |
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')); ?>
|
1067 |
daniel |
45 |
|
|
|
46 |
<input type="hidden" name="subaction" value="kalkulation" />
|
|
|
47 |
|
|
|
48 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
1321 |
daniel |
49 |
|
|
|
50 |
<script type="text/javascript">
|
|
|
51 |
|
1889 |
daniel |
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 |
|
1321 |
daniel |
75 |
jQuery(document).ready(function() {
|
1889 |
daniel |
76 |
|
|
|
77 |
jQuery('#wpsg_kleinunternehmer').bind('change', function() {
|
|
|
78 |
|
|
|
79 |
wpsg_setKleinunternehmer();
|
|
|
80 |
|
|
|
81 |
} );
|
1321 |
daniel |
82 |
|
|
|
83 |
jQuery('.wpsg_form_help').tipTip();
|
1889 |
daniel |
84 |
wpsg_setKleinunternehmer();
|
1321 |
daniel |
85 |
|
|
|
86 |
} );
|
|
|
87 |
|
|
|
88 |
</script>
|
1067 |
daniel |
89 |
|
|
|
90 |
</form>
|
|
|
91 |
</div>
|