pp_express_refund.tpl
3.63 KB
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
<?php echo $header; ?><?php echo $column_left; ?>
<div id="content">
<div class="page-header">
<div class="container-fluid">
<div class="pull-right"> <a href="<?php echo $cancel; ?>" class="btn btn-primary"><i class="fa fa-reply"></i> <?php echo $button_cancel; ?></a> </div>
<h1><?php echo $heading_title; ?></h1>
<ul class="breadcrumb">
<?php foreach ($breadcrumbs as $breadcrumb) { ?>
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<div class="container-fluid">
<?php if ($error != '') { ?>
<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error; ?>
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
<?php } ?>
<?php if ($attention != '') { ?>
<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $attention; ?>
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
<?php } ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $text_refund; ?></h3>
</div>
<div class="panel-body">
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form" class="form-horizontal">
<input type="hidden" name="amount_original" value="<?php echo $amount_original; ?>"/>
<input type="hidden" name="currency_code" value="<?php echo $currency_code; ?>"/>
<div class="form-group">
<label class="col-sm-2 control-label" for="input-transaction-id"><?php echo $entry_transaction_id; ?></label>
<div class="col-sm-10">
<input type="text" name="transaction_id" value="<?php echo $transaction_id; ?>" placeholder="<?php echo $entry_transaction_id; ?>" id="input-transaction-id" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $entry_full_refund; ?></label>
<div class="col-sm-10">
<input type="hidden" name="refund_full" value="0"/>
<input type="checkbox" name="refund_full" id="refund_full" value="1" <?php echo ($refund_available == '' ? 'checked="checked"' : ''); ?> onchange="refundAmount();"/>
</div>
</div>
<div class="form-group" <?php echo ($refund_available == '' ? 'style="display:none;" ' : ''); ?>id="partial_amount_row">
<label class="col-sm-2 control-label"><?php echo $entry_amount; ?></label>
<div class="col-sm-10">
<input type="text" name="amount" value="<?php echo ($refund_available != '' ? $refund_available : ''); ?>" placeholder="<?php echo $entry_amount; ?>" class="form-control"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><?php echo $entry_message; ?></label>
<div class="col-sm-10">
<textarea name="refund_message" id="paypal_refund_message" cols="40" rows="5"></textarea>
</div>
</div>
<div class="pull-right"> <a onclick="$('#form').submit();" class="btn btn-primary"><?php echo $button_refund; ?></a> </div>
</form>
</div>
</div>
</div>
</div>
<script type="text/javascript"><!--
function refundAmount() {
var valChecked = $('#refund_full').prop('checked');
if (valChecked == true) {
$('#partial_amount_row').hide();
} else {
$('#partial_amount_row').show();
}
}
//--></script>
<?php echo $footer; ?>