summaryrefslogtreecommitdiff
path: root/views/mods/mod_prepayment/mail_html.phtml
blob: 272041f8591a799d1caed9fbaa298c9190fdc11a (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php

	/**
	 * Dieses Template dient zur Integration der Admin Kontodaten in eine Bestellung (HTML)
	 */

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

<table style="width:100%;">
	<tr>
		<td><?php echo __('Kontoinhaber', 'wpsg'); ?>:</td>
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?></td>
	</tr>
	<tr>
		<td><?php echo __('IBAN', 'wpsg'); ?>:</td>
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?></td>
	</tr>
	<tr>
		<td><?php echo __('Bank', 'wpsg'); ?>:</td>
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank')); ?></td>
	</tr>	
	<tr>
		<td><?php echo __('BIC-/SWIFT-Code', 'wpsg'); ?>:</td>
		<td style="text-align:right;"><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift')); ?></td>
	</tr> 
	<tr>
		<td><?php echo __('Betreff', 'wpsg'); ?>:</td>
		<td style="text-align:right;"><?php echo wpsg_translate(__('#1#', 'wpsg'), $this->view['mod_prepayment']['subject']); ?></td>
	</tr>
	<?php 
	
		if (isset($this->view['mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true)) {

			require_once WPSG_PATH_LIB.'phpgirocode.class.php';

			echo '<tr><td>'.__('Zahlen via QR Code', 'wpsg').':</td></tr>';
			
			if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') {

				$qrcodes = array();
				$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']));
				
				foreach ($qrcodes as $qr) {

					if ($qr['title'] == 'QR-Rechnung') echo '<tr style="margin-top:25px;" >';
					else echo '<tr>';
						echo '<td>'.__($qr['title'], 'wpsg').'</td>';
						echo '<td style="float:right;"><img style="max-width:120px;" width="120" height="120" src="data:image/png;base64,'.$qr['hash'].'" alt="qrcode" /></td>';
					echo '</tr>';

				}

			} else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { 

				$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']));
				
				echo '
					<tr>
						<td>'.__($qrcode['title'], 'wpsg').':</td>
						<td style="float:right;" alt="qrcode">'.$qrcode['hash'].'</td>
					</tr>
				';

			} else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') {

				$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']));

				echo '
					<tr>
						<td>'.__($qrcode['title'], 'wpsg').':</td>
						<td style="float:right;" alt="qrcode">'.$qrcode['hash'].'</td>
					</tr>
				';

			}
		
		}

	?>
</table>