diff options
Diffstat (limited to 'views/admin/kalkulation.phtml')
| -rw-r--r-- | views/admin/kalkulation.phtml | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/views/admin/kalkulation.phtml b/views/admin/kalkulation.phtml new file mode 100644 index 0000000..e41888a --- /dev/null +++ b/views/admin/kalkulation.phtml @@ -0,0 +1,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&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&subaction=<?php echo $_REQUEST['subaction']; ?>&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>
\ No newline at end of file |
