This repository has been archived by the owner on Feb 23, 2020. It is now read-only.
forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 2
/
clientareacreditcard.tpl
136 lines (127 loc) · 5.8 KB
/
clientareacreditcard.tpl
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{if $remoteupdatecode}
<div align="center">
{$remoteupdatecode}
</div>
{else}
<div class="credit-card">
<div class="card-icon pull-right">
<b class="fa fa-2x
{if $cardtype eq "American Express"}
fa-cc-amex logo-amex
{elseif $cardtype eq "Visa"}
fa-cc-visa logo-visa
{elseif $cardtype eq "MasterCard"}
fa-cc-mastercard logo-mastercard
{elseif $cardtype eq "Discover"}
fa-cc-discover logo-discover
{else}
fa-credit-card
{/if}"> </b>
</div>
<div class="card-type">
{if $cardtype neq "American Express" && $cardtype neq "Visa" && $cardtype neq "MasterCard" && $cardtype neq "Discover"}
{$cardtype}
{/if}
</div>
<div class="card-number">
{if $cardlastfour}xxxx xxxx xxxx {$cardlastfour}{else}{$LANG.creditcardnonestored}{/if}
</div>
<div class="card-start">
{if $cardstart}Start: {$cardstart}{/if}
</div>
<div class="card-expiry">
{if $cardexp}Expires: {$cardexp}{/if}
</div>
<div class="end"></div>
</div>
{if $allowcustomerdelete && $cardtype}
<form method="post" action="clientarea.php?action=creditcard">
<input type="hidden" name="remove" value="1" />
<p class="text-center">
<button type="submit" class="btn btn-danger">
{$LANG.creditcarddelete}
</button>
</p>
</form>
{/if}
<h3>{$LANG.creditcardenternewcard}</h3>
{if $successful}
{include file="$template/includes/alert.tpl" type="success" msg=$LANG.changessavedsuccessfully textcenter=true}
{/if}
{if $errormessage}
{include file="$template/includes/alert.tpl" type="error" errorshtml=$errormessage}
{/if}
<form class="form-horizontal" role="form" method="post" action="{$smarty.server.PHP_SELF}?action=creditcard">
<div class="form-group">
<label for="inputCardType" class="col-sm-4 control-label">{$LANG.creditcardcardtype}</label>
<div class="col-sm-4">
<select name="cctype" id="inputCardType" class="form-control">
{foreach from=$acceptedcctypes item=fieldcardtype}
<option {if $fieldcardtype eq $cardtype}selected{/if}>{$fieldcardtype}</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label for="inputCardNumber" class="col-sm-4 control-label">{$LANG.creditcardcardnumber}</label>
<div class="col-sm-6">
<input type="number" class="form-control" id="inputCardNumber" name="ccnumber" autocomplete="off" />
</div>
</div>
{if $showccissuestart}
<div class="form-group">
<label for="inputCardStart" class="col-sm-4 control-label">{$LANG.creditcardcardstart}</label>
<div class="col-sm-6">
<select name="ccstartmonth" id="inputCardStart" class="form-control select-inline">
{foreach from=$months item=month}
<option{if $ccstartmonth eq $month} selected{/if}>{$month}</option>
{/foreach}
</select>
<select name="ccstartyear" class="form-control select-inline">
{foreach from=$startyears item=year}
<option{if $ccstartyear eq $year} selected{/if}>{$year}</option>
{/foreach}
</select>
</div>
</div>
{/if}
<div class="form-group">
<label for="inputCardExpiry" class="col-sm-4 control-label">{$LANG.creditcardcardexpires}</label>
<div class="col-sm-6">
<select name="ccexpirymonth" id="inputCardExpiry" class="form-control select-inline">
{foreach from=$months item=month}
<option{if $ccstartmonth eq $month} selected{/if}>{$month}</option>
{/foreach}
</select>
<select name="ccexpiryyear" class="form-control select-inline">
{foreach from=$expiryyears item=year}
<option{if $ccstartyear eq $year} selected{/if}>{$year}</option>
{/foreach}
</select>
</div>
</div>
{if $showccissuestart}
<div class="form-group">
<label for="inputCardIssue" class="col-sm-4 col-xs-12 control-label">{$LANG.creditcardcardissuenum}</label>
<div class="col-sm-2 col-xs-4">
<input type="number" class="form-control" id="inputCardIssue" name="ccissuenum" autocomplete="off" />
</div>
</div>
{/if}
<div class="form-group">
<label for="inputCardCVV" class="col-sm-4 col-xs-12 control-label">{$LANG.creditcardcvvnumber}</label>
<div class="col-sm-7">
<input type="number" class="form-control input-inline input-inline-100" id="inputCardCVV" name="cardcvv" autocomplete="off" />
<button type="button" class="btn btn-link" data-toggle="popover" data-content="<img src='{$BASE_PATH_IMG}/ccv.gif' width='210' />">
{$LANG.creditcardcvvwhere}
</button>
</div>
</div>
<div class="form-group">
<div class="text-center">
<input class="btn btn-primary" type="submit" name="submit" value="{$LANG.clientareasavechanges}" />
<input class="btn btn-default" type="reset" value="{$LANG.cancel}" />
</div>
</div>
</form>
{/if}