forked from Abulhallaj/whmcs-template-six-rtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bulkdomainchecker.tpl
175 lines (161 loc) · 10.1 KB
/
bulkdomainchecker.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
{if $bulkdomainsearchenabled}
<div class="pull-right btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
{$LANG.domainbulksearch} <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="domainchecker.php">{$LANG.domainsimplesearch}</a></li>
<li><a href="domainchecker.php?search=bulkregister">{$LANG.domainbulksearch}</a></li>
<li><a href="domainchecker.php?search=bulktransfer">{$LANG.domainbulktransfersearch}</a></li>
</ul>
</div>
{/if}
{if $searchingFor == 'register'}
<p>{$LANG.domainbulksearchintro}</p>
{else}
<p>{$LANG.domainbulktransferdescription}</p>
{/if}
{if $invalidCaptcha}
{include file="$template/includes/alert.tpl" type="danger" msg="{lang key=$invalidCaptchaError}" textcenter=true}
{/if}
<div class="domain-checker-container">
<div class="domain-checker-bg clearfix">
<form method="post" action="domainchecker.php?search=bulk{if $searchingFor == 'transfer'}transfer{/if}">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-xs-10 col-xs-offset-1">
<div class="input-group-box">
<textarea name="bulkdomains" id="inputBulkDomains" rows="8" class="form-control margin-bottom-5">{$bulkdomains}</textarea>
<button type="submit" id="btnCheckAvailability" class="btn btn-primary btn-block">{$LANG.checkavailability}</button>
</div>
</div>
</div>
{include file="$template/includes/captcha.tpl"}
</form>
</div>
</div>
{if $invalidDomainsOmitted}
{include file="$template/includes/alert.tpl" type="danger" msg="{$LANG.domaincheckerbulkinvaliddomain}" textcenter=true}
{/if}
{if $bulkCheckResults}
{include file="$template/domainchecker-results.tpl"}
{else}
{if !$loggedin && $currencies && !$performingLookup}
<div class="currencychooser pull-right clearfix margin-bottom">
<div class="btn-group" role="group">
{foreach from=$currencies item=curr}
<a href="domainchecker.php?search=bulk{if $searchingFor == 'transfer'}transfer{/if}¤cy={$curr.id}" class="btn btn-default{if $currency.id eq $curr.id} active{/if}">
<img src="{$BASE_PATH_IMG}/flags/{if $curr.code eq "AUD"}au{elseif $curr.code eq "CAD"}ca{elseif $curr.code eq "EUR"}eu{elseif $curr.code eq "GBP"}gb{elseif $curr.code eq "INR"}in{elseif $curr.code eq "JPY"}jp{elseif $curr.code eq "USD"}us{elseif $curr.code eq "ZAR"}za{else}na{/if}.png" border="0" alt="" />
{$curr.code}
</a>
{/foreach}
</div>
</div>
<div class="clearfix"></div>
{/if}
<div id="pricingTable"{if $performingLookup} class="hidden"{/if}>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
{foreach $tldcategories as $tldCategory}
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading{$tldCategory->id}">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse{$tldCategory->id}" aria-expanded="{if $tldCategory@first}true{else}false{/if}" aria-controls="collapse{$tldCategory->id}" class="domain-tld-pricing-category">
{$tldCategory->category} {$LANG.tldpricing}
</a>
</h4>
</div>
<div id="collapse{$tldCategory->id}" class="panel-collapse collapse{if $tldCategory@first} in{/if}" role="tabpanel" aria-labelledby="heading{$tldCategory->id}">
<div class="panel-body">
<div class="row">
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2 table-responsive domain-tld-pricing-table-responsive">
<table class="table table-striped table-framed">
<thead>
<tr>
<th class="text-center">{$LANG.domaintld}</th>
<th class="text-center">{$LANG.domainminyears}</th>
<th class="text-center">{$LANG.domainsregister}</th>
<th class="text-center">{$LANG.domainstransfer}</th>
<th class="text-center">{$LANG.domainsrenew}</th>
</tr>
</thead>
<tbody>
{foreach $tldCategory->topLevelDomains as $tld}
<tr>
<td>{$tld->tld}</td>
<td class="text-center">{$tldpricing.{$tld->tld}.period}</td>
<td class="text-center">{if $tldpricing.{$tld->tld}.register}{$tldpricing.{$tld->tld}.register}{else}{$LANG.domainregnotavailable}{/if}</td>
<td class="text-center">{if $tldpricing.{$tld->tld}.transfer}{$tldpricing.{$tld->tld}.transfer}{else}{$LANG.domainregnotavailable}{/if}</td>
<td class="text-center">{if $tldpricing.{$tld->tld}.renew}{$tldpricing.{$tld->tld}.renew}{else}{$LANG.domainregnotavailable}{/if}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{/foreach}
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading{$tldCategory->id}">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseAll" aria-expanded="false" aria-controls="collapseAll" class="domain-tld-pricing-category">
{$LANG.alltldpricing}
</a>
</h4>
</div>
<div id="collapseAll" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingAll">
<div class="panel-body">
<div class="row">
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2 table-responsive domain-tld-pricing-table-responsive">
<table class="table table-striped table-framed">
<thead>
<tr>
<th class="text-center">{$LANG.domaintld}</th>
<th class="text-center">{$LANG.domainminyears}</th>
<th class="text-center">{$LANG.domainsregister}</th>
<th class="text-center">{$LANG.domainstransfer}</th>
<th class="text-center">{$LANG.domainsrenew}</th>
</tr>
</thead>
<tbody>
{foreach $tldpricelist as $tld}
<tr>
<td>{$tld.tld}</td>
<td class="text-center">{$tld.period}</td>
<td class="text-center">{if $tld.register}{$tld.register}{else}{$LANG.domainregnotavailable}{/if}</td>
<td class="text-center">{if $tld.transfer}{$tld.transfer}{else}{$LANG.domainregnotavailable}{/if}</td>
<td class="text-center">{if $tld.renew}{$tld.renew}{else}{$LANG.domainregnotavailable}{/if}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{if !$loggedin && $currencies && !$performingLookup}
<div class="currencychooser pull-right clearfix margin-bottom">
<div class="btn-group" role="group">
{foreach from=$currencies item=curr}
<a href="domainchecker.php?search=bulk{if $searchingFor == 'transfer'}transfer{/if}¤cy={$curr.id}" class="btn btn-default{if $currency.id eq $curr.id} active{/if}">
<img src="{$BASE_PATH_IMG}/flags/{if $curr.code eq "AUD"}au{elseif $curr.code eq "CAD"}ca{elseif $curr.code eq "EUR"}eu{elseif $curr.code eq "GBP"}gb{elseif $curr.code eq "INR"}in{elseif $curr.code eq "JPY"}jp{elseif $curr.code eq "USD"}us{elseif $curr.code eq "ZAR"}za{else}na{/if}.png" border="0" alt="" />
{$curr.code}
</a>
{/foreach}
</div>
</div>
<div class="clearfix"></div>
{/if}
{/if}
<script>
var langSearch = '{$LANG.search}';
var langAdding = '{$LANG.domaincheckeradding}';
var langAdded = '{$LANG.domaincheckeradded}';
var langUnavailable = '{$LANG.domainunavailable}';
var langBulkPlaceholder = '{$LANG.domaincheckerbulkplaceholder|escape:'quotes'|replace:"\n":'\n'}';
</script>
<script src="templates/{$template}/js/domainchecker.js"></script>
{include file="$template/includes/modal.tpl" name="Whois" title=$LANG.whoisresults|cat:' <span id="whoisDomainName"></span>'}