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
/
domainchecker-results.tpl
237 lines (233 loc) · 14.7 KB
/
domainchecker-results.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
{if $validDomain}
{if $searchResults}
<div class="domain-checker-result-headline">
{if $searchResults.isRegistered}
<p class="domain-checker-unavailable">
{$LANG.domainunavailable1} <strong>{$searchResults.domainName}</strong> {$LANG.domainunavailable2}
</p>
{elseif $searchResults.status == 'reserved'}
<p class="domain-checker-available">
{$LANG.domainreserved1} <strong>{$searchResults.domainName}</strong> {$LANG.domainreserved2}
</p>
{else}
<p class="domain-checker-available">
{$LANG.domainavailable1} <strong>{$searchResults.domainName}</strong> {$LANG.domainavailable2}
</p>
{/if}
</div>
{/if}
{if ($searchResults && !$searchResults.isRegistered) || $bulkCheckResults}
<div class="domainresults" id="primarySearchResults">
<div id="btnCheckout" class="domain-checkout-area">
<a href="cart.php?a=view" class="btn btn-default">{$LANG.domainsgotocheckout} »</a>
</div>
<div>
{$LANG.domainssearchresults}
</div>
<table class="table table-curved table-hover" id="searchResults">
<tbody>
{if $searchResults}
<tr>
<td><strong>{$searchResults.domainName}</strong></td>
<td class="text-center">
{if $searchResults.status == 'reserved'}
<span class="label label-success">{$LANG.domainreserved}</span>
{else}
<span class="label label-success">{$LANG.domaincheckeravailable}</span>
{/if}
</td>
<td class="text-center">
{$searchResults.shortestPeriod.register}
</td>
<td class="text-center">
{if count($searchResults.pricing) == 1}
<button type="button" onclick="addToCart(this, false, 'register')" class="btn btn-primary btn-sm">
<span class="glyphicon glyphicon-shopping-cart"></span>
{$LANG.addtocart}
</button>
{else}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-sm" onclick="addToCart(this, false, 'register')">
<b class="glyphicon glyphicon-shopping-cart"></b>
{$LANG.addtocart}
</button>
<button type="button" class="btn btn-primary btn-sm dropdown-toggle additional-options" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<b class="caret"></b>
<span class="sr-only">
{lang key="domainChecker.additionalPricingOptions" domain=$searchResults.domainName}
</span>
</button>
<ul class="dropdown-menu" role="menu">
{foreach $searchResults.pricing as $years => $price}
{if $price@iteration eq 1}
{* Don't output the first as this is default *}
{continue}
{/if}
<li>
<a onclick="addToCart(this, false, 'register', {$years});return false;">
{$years} {$LANG.orderyears} @ {$price.register}
</a>
</li>
{/foreach}
</ul>
</div>
{/if}
</td>
</tr>
{/if}
{foreach $bulkCheckResults as $result}
<tr>
<td><strong>{$result.domainName}</strong></td>
<td class="text-center">
{if $searchingFor == 'register'}
{if $result.isAvailable}
{if $result.status == 'reserved'}
<span class="label label-success">{$LANG.domainreserved}</span>
{else}
<span class="label label-success">{$LANG.domaincheckeravailable}</span>
{/if}
{elseif $result.isRegistered}
<span class="label label-danger">{$LANG.domaincheckertaken}</span>
{else}
<span class="label label-danger">Status Unknown</span>
{/if}
{else}
{if $result.isRegistered}
<span class="label label-success">{$LANG.domaincheckertransferable}</span>
{elseif $result.isAvailable}
<span class="label label-danger">Not Registered</span>
{else}
<span class="label label-danger">Status Unknown</span>
{/if}
{/if}
</td>
<td class="text-center">
{if ($searchingFor == 'register' && $result.isAvailable)}
{$result.shortestPeriod.register}
{elseif ($searchingFor == 'transfer' && $result.isRegistered)}
{$result.shortestPeriod.transfer}
{/if}
</td>
<td class="text-right">
{if ($searchingFor == 'register' && $result.isAvailable)}
{if count($result.pricing) == 1}
<button type="button" onclick="addToCart(this, false, 'register')" class="btn btn-primary btn-sm">
<span class="glyphicon glyphicon-shopping-cart"></span>
{$LANG.addtocart}
</button>
{else}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-sm" onclick="addToCart(this, false, 'register')">
<b class="glyphicon glyphicon-shopping-cart"></b>
{$LANG.addtocart}
</button>
<button type="button" class="btn btn-primary btn-sm dropdown-toggle additional-options" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<b class="caret"></b>
<span class="sr-only">
{lang key="domainChecker.additionalPricingOptions" domain=$result.domainName}
</span>
</button>
<ul class="dropdown-menu" role="menu">
{foreach $result.pricing as $years => $price}
{if $price@iteration eq 1}
{* Don't output the first as this is default *}
{continue}
{/if}
<li>
<a onclick="addToCart(this, false, 'register', {$years});return false;">
{$years} {$LANG.orderyears} @ {$price.register}
</a>
</li>
{/foreach}
</ul>
</div>
{/if}
{elseif ($searchingFor == 'transfer' && $result.isRegistered)}
<button type="button" onclick="addToCart(this, false, 'transfer')" class="btn btn-primary btn-sm">
<span class="glyphicon glyphicon-shopping-cart"></span>
{$LANG.addtocart}
</button>
{elseif $result.isRegistered}
<a href="http://{$result.domainName}" target="_blank" class="btn btn-default btn-sm">www</a>
<button type="button" onclick="viewWhois('{$result.domainName}')" class="btn btn-default btn-sm">WHOIS</button>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
{/if}
{if $searchResults && count($searchResults.suggestions) > 0}
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="domainresults" id="suggestionSearchResults">
<div>
{$LANG.domainssuggestions} <span>{$LANG.domainsothersuggestions}</span>
</div>
<table class="table table-curved table-hover" id="suggestionResults">
<tbody>
{foreach $searchResults.suggestions as $i => $result}
<tr{if $i >= 10} class="hidden"{/if}>
<td>
<strong>{$result.domainName}</strong>
</td>
<td class="text-center">
{$result.shortestPeriod.register}
</td>
<td class="text-right">
{if count($result.pricing) == 1}
<button type="button" onclick="addToCart(this, true, 'register')" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-shopping-cart"></span>
{$LANG.addtocart}
</button>
{else}
<div class="btn-group">
<button type="button" class="btn btn-default btn-sm" onclick="addToCart(this, true, 'register')">
<b class="glyphicon glyphicon-shopping-cart"></b>
{$LANG.addtocart}
</button>
<button type="button" class="btn btn-default btn-sm dropdown-toggle additional-options" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<b class="caret"></b>
<span class="sr-only">
{lang key="domainChecker.additionalPricingOptions" domain=$result.domainName}
</span>
</button>
<ul class="dropdown-menu" role="menu">
{foreach $result.pricing as $years => $price}
{if $price@iteration eq 1}
{* Don't output the first as this is default *}
{continue}
{/if}
<li>
<a onclick="addToCart(this, true, 'register', {$years});return false;">
{$years} {$LANG.orderyears} @ {$price.register}
</a>
</li>
{/foreach}
</ul>
</div>
{/if}
</td>
</tr>
{/foreach}
<tr id="trNoMoreSuggestions" class="hidden">
<td colspan="3" class="text-muted text-center">
{$LANG.domaincheckernomoresuggestions}
</td>
</tr>
</tbody>
</table>
</div>
{if $moreSuggestionsAvailable}
<p class="text-center">
<a href="#" class="btn btn-link" id="btnMoreSuggestions" onclick="showMoreSuggestions();return false">{$LANG.domainsmoresuggestions}</a>
</p>
{/if}
<div class="domain-disclaimer-area">
<p class="text-muted"><strong>{$LANG.disclaimers}</strong><br />{$LANG.domainssuggestionswarnings}</p>
</div>
</div>
</div>
{/if}