forked from osiloke/template-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientareacreditcard.tpl
144 lines (139 loc) · 4.57 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
<div class="page-header">
<h1>{$LANG.clientareanavccdetails}</h1>
</div>
<div class="tabbable">
<ul class="nav nav-tabs">
<li><a href="clientarea.php?action=details">{$LANG.clientareanavdetails}</a></li>
<li class="active"><a href="clientarea.php?action=creditcard">{$LANG.clientareanavccdetails}</a></li>
<li><a href="clientarea.php?action=contacts">{$LANG.clientareanavcontacts}</a></li>
<li><a href="clientarea.php?action=changepw">{$LANG.clientareanavchangepw}</a></li>
{if $condlinks.security}<li><a href="clientarea.php?action=security">{$LANG.clientareanavsecurity}</a></li>{/if}
</ul>
</div>
{if $remoteupdatecode}
{$removeupdatecode}
{else}
{if $successful}
<div class="alert alert-success fade in">
<button class="close" data-dismiss="alert">×</button>
{$LANG.changessavedsuccessfully}
</div>
{/if}
{if $errormessage}
<div class="alert alert-error">
<h4 class="alert-heading">{$LANG.clientareaerrors}</h4>
<ul>
{$errormessage}
</ul>
</div>
{/if}
<form class="form-horizontal" method="post" action="clientarea.php">
<input type="hidden" name="action" value="creditcard">
<h3 class="marginbottom">{$LANG.creditcarddetails}</h3>
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardtype}</label>
<div class="controls">
<input type="text" value="{$cardtype}" readonly="readonly" class="span3">
</div>
</div>
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardnumber}</label>
<div class="controls">
<input type="text" value="{$cardnum}" readonly="readonly" class="span3">
</div>
</div>
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardexpires}</label>
<div class="controls">
<input type="text" value="{$cardexp}" readonly="readonly" class="span1">
</div>
</div>
{if $cardissuenum}
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardissuenum}</label>
<div class="controls">
<input type="text" value="{$cardissuenum}" readonly="readonly" class="span2">
</div>
</div>
{/if}
{if $cardstart}
<div class="control-group">
<label class="control-label">{$LANG.creditcardcardstart}</label>
<div class="controls">
<input type="text" value="{$cardstart}" readonly="readonly" class="span2">
</div>
</div>
{/if}
<hr>
<h3 class="marginbottom">{$LANG.creditcardenternewcard}</h3>
<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" class="span3">
</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="span1">
</div>
</div>
{/if}
<div class="control-group">
<label class="control-label" for="cardcvv">{$LANG.creditcardcvvnumber}</label>
<div class="controls">
<input type="text" class="span1" name="cardcvv" id="cardcvv" value="{$cardcvv}" autocomplete="off">
</div>
</div>
<div class="form-actions">
<input class="btn btn-primary" type="submit" name="submit" value="{$LANG.clientareasavechanges}">
<input class="btn" type="reset" value="{$LANG.cancel}">
{if $allowcustomerdelete && $cardtype}
<a href="clientarea.php?action=creditcard&delete=true" class="btn btn-danger">{$LANG.creditcarddelete}</a>
{/if}
</div>
</form>
{/if}