summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomas <noreply@maennchen1.de>2017-04-24 11:21:56 +0000
committerthomas <noreply@maennchen1.de>2017-04-24 11:21:56 +0000
commit5ee53f6988d2f13fcdf79fd996ae2db212f6e820 (patch)
tree38fc00a6fc6a45c7d3bf92f79865b1429ac84300
parent9d8129eed6868433067cb6e691974a497be793db (diff)
- Bestellupload
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6227 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_orderupload/checkout_inner_prebutton.phtml9
-rw-r--r--views/mods/mod_orderupload/settings_edit.phtml43
2 files changed, 49 insertions, 3 deletions
diff --git a/views/mods/mod_orderupload/checkout_inner_prebutton.phtml b/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
index 7d1ecd0..7c400f7 100644
--- a/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
+++ b/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
@@ -7,8 +7,8 @@
?>
<div class="wpsg_box wpsg_mod_orderupload">
- <div class="wpsg_head"><?php echo __('Dateiupload', 'wpsg'); ?>
-
+ <div class="wpsg_head"><?php echo __('Dateiupload:', 'wpsg'); ?>
+
<?php if ($this->get_option('wpsg_mod_orderupload_optional') != '1') { ?>
<span class="wpsg_required">*</span>
@@ -43,4 +43,9 @@
</div>
+ <?php /* Counter, wie viel MB noch übrig sind */?>
+ <label class="wpsg_fileweight">
+ <?php echo __('Es stehen Ihnen #1# Mb von #2# Mb für den Upload zur Verfügung', 'wpsg'), $this->view['wpsg_mod_orderupload']['uploadsum'],$this->view['wpsg_mod_orderupload']['maxweight'];?>
+ </label>
+
</div> \ No newline at end of file
diff --git a/views/mods/mod_orderupload/settings_edit.phtml b/views/mods/mod_orderupload/settings_edit.phtml
index a8054f3..8ad96c1 100644
--- a/views/mods/mod_orderupload/settings_edit.phtml
+++ b/views/mods/mod_orderupload/settings_edit.phtml
@@ -5,9 +5,50 @@
*/
?>
+
<br/>
+
+<?php /* Platzhalter für Dateiname */ ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_orderupload_filename', __('Neuer Dateiname', 'wpsg'), $this->get_option('wpsg_mod_orderupload_filename'), array('help' => 'wpsg_mod_orderupload_filename')); ?>
+
+<?php /* erlaubte Dateitypen*/ ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_orderupload_allowedext', __('Erlaubte Endungen (kommagetrennt)', 'wpsg'), $this->get_option('wpsg_mod_orderupload_allowedext'), array('help' => 'wpsg_mod_orderupload_allowedext')); ?>
+
<br />
+
+<?php /* maximale Upload-Größe */?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_orderupload_maxweight', __('maximale Größe des Uploads (Angaben in MB)', 'wpsg'), $this->get_option('wpsg_mod_orderupload_maxweight'), array('help' => 'wpsg_mod_orderupload_maxweight'));?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_orderupload_maxweight_text', __('Text bei Überschreiten der max. Uploadgrenze', 'wpsg'), $this->get_option('wpsg_mod_orderupload_maxweight_text'), array('help' => '"wpsg_mod_orderupload_text')); ?>
+<br />
+
+<?php /* mehrere Dateien */?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_multifiles', __('Mehr als eine Datei erlauben', 'wpsg'), $this->get_option('wpsg_mod_orderupload_multifiles'), array('help' => 'wpsg_mod_orderupload_multifiles')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_optional', __('Upload ist kein Pflichtfeld', 'wpsg'), $this->get_option('wpsg_mod_orderupload_optional'), array('help' => 'wpsg_mod_orderupload_optional')); ?> \ No newline at end of file
+
+<br />
+
+<?php /* Pflichtfeld*/ ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_optional', __('Upload ist kein Pflichtfeld', 'wpsg'), $this->get_option('wpsg_mod_orderupload_optional'), array('help' => 'wpsg_mod_orderupload_optional')); ?>
+
+<?php /* Anhang an Adminmail */ ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_mail', __('Upload an Anhang an Adminmail', 'wpsg'), $this->get_option('wpsg_mod_orderupload_mail'), array('help' => 'wpsg_mod_orderupload_mail')); ?>
+
+<?php /* mehrere Anhänge zippen (wenn "mehrere Dateien" und wenn "Adminmail"*/ ?>
+<div class="wpsg_mod_orderupload_mail_activ" style="display:none;">
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_zip', __('Datei(en) als Zip anhängen', 'wpsg'), $this->get_option('wpsg_mod_orderupload_zip'), array('help' => 'wpsg_mod_orderupload_zip'));?>
+</div>
+
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_mod_orderupload_mail').bind('change', function() {
+
+ if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_orderupload_mail_activ').show();
+ else jQuery('.wpsg_mod_orderupload_mail_activ').hide();
+
+ } ).change();
+
+ } );
+
+/* ]]> */</script> \ No newline at end of file