summaryrefslogtreecommitdiff
path: root/views/mods/mod_orderupload/checkout_inner_prebutton.phtml
blob: e9df1a1dc39f3edf634e33c028f5b4a0224565b8 (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 Integration des Bestelluploads in den Bestellprozess
	 * @version 4.6.1
	 */

?>
<div class="wpsg_box wpsg_mod_orderupload">

	<div class="wpsg_head"><?php echo __('Dateiupload:', 'wpsg'); ?> 
		
		<?php if ($this->get_option('wpsg_mod_orderupload_optional') != '1') { ?>
		
			<span class="wpsg_required">*</span>
			
		<?php } ?>
		
	</div>
	
	<div class="wpsg_inner">

		<?php if ($this->view['wpsg_mod_orderupload']['uploadsum'] > 0) { ?>
			<input class="wpsg_orderupload_checkout_button" type="file" name="wpsg_mod_orderupload_file" />
 		<?php } ?>
 
 		<?php /* Auflistung der bereits hochgeladenen Dokumente */ ?>
		<?php if (wpsg_isSizedArray($_SESSION['wpsg']['wpsg_mod_orderupload'])) { ?>
		
			<br />
			
			<label class="wpsg_checkout"><?php echo __('Bisher hochgeladene Dokumente', 'wpsg'); ?>:</label><br />
			
			<?php foreach ($_SESSION['wpsg']['wpsg_mod_orderupload'] as $ou_index => $ou) { ?>
			
				<?php /* Dokument aus der Liste löschen */ ?>
				<a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie dieses Dokument aus der Bestellung entfernen möchten?', 'wpsg'); ?>');" href="?wpsg_plugin=wpsg_mod_orderupload&wpsg_action=remove&file_index=<?php echo $ou_index; ?>" class="wpsg_mod_orderupload_removelink">
					<img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
				</a>
				
				<a href="<?php echo $ou[2]; ?>"><?php echo wpsg_hspc($ou[0]); ?></a>&nbsp;<?php echo '('.wpsg_formatSize($ou[3]).')'; ?><br />	
					
			<?php } ?>
			
		<?php } ?>
			
	</div>
	
	<?php /* Counter, wie viel MB noch übrig sind */?>
	<label class="wpsg_fileweight">
		<?php echo wpsg_translate( __('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>