-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientareacreditcard.tpl
144 lines (119 loc) · 4.88 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
137
138
139
140
141
142
143
144
<script type="text/javascript" src="includes/jscript/creditcard.js"></script>
{include file="$template/pageheader.tpl" title=$LANG.clientareanavccdetails}
{include file="$template/clientareadetailslinks.tpl"}
{if $remoteupdatecode}
<div align="center">
{$remoteupdatecode}
</div>
{else}
{if $successful}
<div class="alert alert-success">
<p>{if $deletecc}{$LANG.creditcarddeleteconfirmation}{else}{$LANG.changessavedsuccessfully}{/if}</p>
</div>
{/if}
{if $errormessage}
<div class="alert alert-error">
<p class="bold">{$LANG.clientareaerrors}</p>
<ul>
{$errormessage}
</ul>
</div>
{/if}
<fieldset class="onecol">
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardtype}</label>
<div class="controls">
<input type="text" value="{$cardtype}" disabled="true" class="input-medium" />
</div>
</div>
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardnumber}</label>
<div class="controls">
<div style="float:left">
<input type="text" value="{$cardnum}" disabled="true" />
</div>
{if $allowcustomerdelete && $cardtype}
<div style="float:left;margin-left:25px;">
<form method="post" action="{$smarty.server.PHP_SELF}?action=creditcard">
<input type="submit" name="remove" value="{$LANG.creditcarddelete}" class="btn btn-danger" />
</form>
</div>
{/if}
<div class="clear"></div>
</div>
</div>
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardexpires}</label>
<div class="controls">
<input type="text" value="{$cardexp}" disabled="true" class="input-small" />
</div>
</div>
{if $cardstart}
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardstart}</label>
<div class="controls">
<input type="text" value="{$cardstart}" disabled="true" class="input-small" />
</div>
</div>
{/if}{if $cardissuenum}
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardissuenum}</label>
<div class="controls">
<input type="text" value="{$cardissuenum}" disabled="true" class="input-mini" />
</div>
</div>
{/if}
</fieldset>
<div class="styled_title"><h3>{$LANG.creditcardenternewcard}</h3></div>
<br />
<form class="form-horizontal" method="post" action="{$smarty.server.PHP_SELF}?action=creditcard">
<fieldset class="onecol">
<div class="control-group">
<label class="control-label" for="cctype">{$LANG.creditcardcardtype}</label>
<div class="controls">
<select name="cctype" id="cctype">
{foreach key=num item=cardtype from=$acceptedcctypes}
<option>{$cardtype}</option>
{/foreach}
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="ccnumber">{$LANG.creditcardcardnumber}</label>
<div class="controls">
<input type="text" name="ccnumber" id="ccnumber" autocomplete="off" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="ccexpirymonth">{$LANG.creditcardcardexpires}</label>
<div class="controls">
<select name="ccexpirymonth" id="ccexpirymonth">{foreach from=$months item=month}<option>{$month}</option>{/foreach}</select> / <select name="ccexpiryyear">{foreach from=$expiryyears item=year}<option>{$year}</option>{/foreach}</select>
</div>
</div>
{if $showccissuestart}
<div class="control-group">
<label class="control-label" for="ccstartmonth">{$LANG.creditcardcardstart}</label>
<div class="controls">
<select name="ccstartmonth" id="ccstartmonth">{foreach from=$months item=month}<option>{$month}</option>{/foreach}</select> / <select name="ccstartyear">{foreach from=$startyears item=year}<option>{$year}</option>{/foreach}</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="ccissuenum">{$LANG.creditcardcardissuenum}</label>
<div class="controls">
<input type="text" name="ccissuenum" id="ccissuenum" maxlength="3" class="input-mini" autocomplete="off" />
</div>
</div>
{/if}
<div class="control-group">
<label class="control-label">{$LANG.creditcardcvvnumber}</label>
<div class="controls">
<input type="text" name="cardcvv" id="cardcvv" value="{$cardcvv}" maxlength="3" class="input-mini" autocomplete="off" />
</div>
</div>
</fieldset>
<div class="form-actions">
<input class="btn btn-primary" type="submit" name="submit" value="{$LANG.clientareasavechanges}" />
<input class="btn" type="reset" value="{$LANG.cancel}" />
</div>
</form>
{/if}