Subversion Repositories wpShopGermany4

Rev

Rev 8342 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8342 Rev 8344
1
<?php
1
<?php
2
 
2
 
3
	/**
3
	/**
4
	 * Dieses Template dient zur Integration der Admin Kontodaten in eine Bestellung (HTML)
4
	 * Dieses Template dient zur Integration der Admin Kontodaten in eine Bestellung (HTML)
5
	 */
5
	 */
6
 
6
 
7
?>
7
?>
8
<p>
8
<p>
9
	<?php echo wpsg_translate(__('Bitte überweisen Sie den Rechnungsbetrag in Höhe von #1# auf folgendes Konto und geben Sie als Betreff <strong>#2#</strong> an.', 'wpsg'), wpsg_ff($this->view['basket']['arCalculation']['sum']['topay_brutto'], $this->get_option('wpsg_currency')), $this->view['mod_prepayment']['subject']); ?>
9
	<?php echo wpsg_translate(__('Bitte überweisen Sie den Rechnungsbetrag in Höhe von #1# auf folgendes Konto und geben Sie als Betreff <strong>#2#</strong> an.', 'wpsg'), wpsg_ff($this->view['basket']['arCalculation']['sum']['topay_brutto'], $this->get_option('wpsg_currency')), $this->view['mod_prepayment']['subject']); ?>
10
</p> 
10
</p> 
11
 
11
 
12
<table style="width:100%;">
12
<table style="width:100%;">
13
	<tr>
13
	<tr>
14
		<td><?php echo __('Kontoinhaber', 'wpsg'); ?>:</td>
14
		<td><?php echo __('Kontoinhaber', 'wpsg'); ?>:</td>
15
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?></td>
15
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?></td>
16
	</tr>
16
	</tr>
17
	<tr>
17
	<tr>
18
		<td><?php echo __('IBAN', 'wpsg'); ?>:</td>
18
		<td><?php echo __('IBAN', 'wpsg'); ?>:</td>
19
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?></td>
19
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?></td>
20
	</tr>
20
	</tr>
21
	<tr>
21
	<tr>
22
		<td><?php echo __('Bank', 'wpsg'); ?>:</td>
22
		<td><?php echo __('Bank', 'wpsg'); ?>:</td>
23
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank')); ?></td>
23
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank')); ?></td>
24
	</tr>	
24
	</tr>	
25
	<tr>
25
	<tr>
26
		<td><?php echo __('BIC-/SWIFT-Code', 'wpsg'); ?>:</td>
26
		<td><?php echo __('BIC-/SWIFT-Code', 'wpsg'); ?>:</td>
27
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift')); ?></td>
27
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift')); ?></td>
28
	</tr> 
28
	</tr> 
29
	<tr>
29
	<tr>
30
		<td><?php echo __('Betreff', 'wpsg'); ?>:</td>
30
		<td><?php echo __('Betreff', 'wpsg'); ?>:</td>
31
		<td style="text-align:right;"><?php echo wpsg_translate(__('#1#', 'wpsg'), $this->view['mod_prepayment']['subject']); ?></td>
31
		<td style="text-align:right;"><?php echo wpsg_translate(__('#1#', 'wpsg'), $this->view['mod_prepayment']['subject']); ?></td>
32
	</tr>
32
	</tr>
33
	<?php 
33
	<?php 
34
 
34
	
35
		if (isset($this->view['mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true)) {
35
		if (isset($this->view['mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true)) {
36
 
36
 
37
			require_once WPSG_PATH_LIB.'phpgirocode.class.php';
37
			require_once WPSG_PATH_LIB.'phpgirocode.class.php';
38
 
38
 
39
			echo '<tr><td>'.__('Zahlen via QR Code', 'wpsg').':</td></tr>';
39
			echo '<tr><td>'.__('Zahlen via QR Code', 'wpsg').':</td></tr>';
40
			
40
			
41
			if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') {
41
			if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') {
42
 
42
 
43
				$qrcodes = array();
43
				$qrcodes = array();
44
				$qrcodes = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
44
				$qrcodes = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
-
 
45
				
45
				foreach ($qrcodes as $qr) {
46
				foreach ($qrcodes as $qr) {
46
 
47
 
47
					// Base64 QR-Image
-
 
48
					if ($qr['title'] == 'QR-Rechnung') echo '<tr style="margin-top:25px;" >';
48
					if ($qr['title'] == 'QR-Rechnung') echo '<tr style="margin-top:25px;" >';
49
					else echo '<tr>';
49
					else echo '<tr>';
50
						echo '<td>'.__($qr['title'], 'wpsg').'</td>';
50
						echo '<td>'.__($qr['title'], 'wpsg').'</td>';
51
						echo '<td style="float:right;"><img style="max-width:120px;" width="120" height="120" src="data:image/png;base64,'.$qr['hash'].'" alt="qrcode" /></td>';
51
						echo '<td style="float:right;"><img style="max-width:120px;" width="120" height="120" src="data:image/png;base64,'.$qr['hash'].'" alt="qrcode" /></td>';
52
					echo '</tr>';
52
					echo '</tr>';
53
 
53
 
54
				}
54
				}
55
 
55
 
56
			} else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { 
56
			} else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { 
57
 
57
 
58
				$qrcode = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
58
				$qrcode = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
59
				
59
				
60
				echo '
60
				echo '
61
					<tr>
61
					<tr>
62
						<td>'.__($qrcode['title'], 'wpsg').':</td>
62
						<td>'.__($qrcode['title'], 'wpsg').':</td>
63
						<td style="float:right;">'.$qrcode['hash'].'</td>
63
						<td style="float:right;" alt="qrcode">'.$qrcode['hash'].'</td>
64
					</tr>
64
					</tr>
65
				';
65
				';
66
 
66
 
67
			} else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') {
67
			} else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') {
68
 
68
 
69
				$qrcode = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
69
				$qrcode = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
70
 
70
 
71
				echo '
71
				echo '
72
					<tr>
72
					<tr>
73
						<td>'.__($qrcode['title'], 'wpsg').':</td>
73
						<td>'.__($qrcode['title'], 'wpsg').':</td>
74
						<td style="float:right;">'.$qrcode['hash'].'</td>
74
						<td style="float:right;" alt="qrcode">'.$qrcode['hash'].'</td>
75
					</tr>
75
					</tr>
76
				';
76
				';
77
 
77
 
78
			}
78
			}
79
		
79
		
80
		}
80
		}
81
 
81
 
82
	?>
82
	?>
83
</table>
83
</table>