summaryrefslogtreecommitdiff
path: root/views/mods/mod_orderupload/settings_edit.phtml
blob: 8ad96c16d96aaaea6902c4eea17d2dcd9e836c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php

	/**
	 * Template für die Einstellungen des Bestell Upload Moduls
	 */

?>

<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')); ?>

<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>