Subversion Repositories wpShopGermany4

Rev

Rev 6683 | Rev 7584 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4719 daniel 1
<?php
2
 
3
	/**
4985 daniel 4
	 * Template für die Integration der PayPal Zahlungsart in die Bestellverwaltung
4719 daniel 5
	 */
7343 daniel 6
 
7
	$wpsg_mod_paypalapi_paymentid = $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentid');
8
	$wpsg_mod_paypalapi_saleid = $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_saleid')
9
 
4719 daniel 10
?>
11
 
7343 daniel 12
<?php if (wpsg_isSizedString($wpsg_mod_paypalapi_paymentid)) { ?>
6683 daniel 13
 
14
	<?php echo wpsg_drawForm_Text(
15
		wpsg_translate(
16
			__('PaymentID [<a href="#1#">Status Aktualisieren</a>]', 'wpsg'),
17
			WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_paypalapi&do=refresh&edit_id='.$this->view['oOrder']->id
18
		),
19
		wpsg_translate(__('#1# (#2#)', 'wpsg'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentid'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_paymentstate'))
20
	); ?>
21
 
4741 daniel 22
<?php } ?>
4719 daniel 23
 
7343 daniel 24
<?php if (wpsg_isSizedString($wpsg_mod_paypalapi_saleid)) { ?>
4741 daniel 25
 
6683 daniel 26
	<?php echo wpsg_drawForm_Text(__('SaleID', 'wpsg'), wpsg_translate(__('#1# (#2#)', 'wpsg'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_saleid'), $this->view['oOrder']->getMeta('wpsg_mod_paypalapi_salestate'))); ?>
5257 daniel 27
 
28
	<?php if ($this->view['oOrder']->getMeta('wpsg_mod_paypalapi_salestate') != 'refunded') { ?>
29
	<br />
6683 daniel 30
	<a onclick="return confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>');" class="button" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_paypalapi&do=refund&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Zahlung rückerstatten', 'wpsg'); ?></a>
5257 daniel 31
	<?php } ?>
4995 daniel 32
 
4741 daniel 33
<?php } ?>