forked from osiloke/template-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbulkdomainchecker.tpl
173 lines (160 loc) · 5.64 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
<div class="page-header">
<h1>{$LANG.domaintitle} <small>{$LANG.domaincheckerintro}</small></h1>
</div>
{if $inccode}
<div class="alert alert-error fade in">
<button class="close" data-dismiss="alert">×</button>
{$LANG.captchaverifyincorrect}
</div>
{/if}
{if $bulkdomainsearchenabled}
<div class="tabbable">
<ul class="nav nav-tabs">
<li><a href="domainchecker.php">{$LANG.domainsimplesearch}</a></li>
<li class="active"><a href="domainchecker.php?search=bulkregister">{$LANG.domainbulksearch}</a></li>
<li><a href="domainchecker.php?search=bulktransfer">{$LANG.domainbulktransfersearch}</a></li>
</ul>
</div>
{/if}
<div class="well text-center">
<form method="post" action="domainchecker.php">
<input type="hidden" name="search" value="bulk">
<p>{$LANG.domainbulksearchintro}</p>
<div class="text-center">
<textarea name="bulkdomains" rows="8" class="span8">{$bulkdomains}</textarea>
</div>
{if $capatacha}
<p>{$LANG.captchaverify}</p>
{if $capatacha eq "recaptcha"}
<p>{$recapatchahtml}</p>
{else}
<img src="includes/verifyimage.php" alt="captcha"> <input type="text" name="code" class="span1" style="margin-bottom:0" maxlength="5">
{/if}
<hr>
{/if}
<input type="submit" value="{$LANG.checkavailability}" class="btn btn-primary btn-large" onclick="$('#modalpleasewait').modal();">
</form>
</div>
{if $invalid}
<div class="alert alert-error text-center">
<h4>{$LANG.domaincheckerbulkinvaliddomain}</h4>
</div>
{/if}
{if $availabilityresults}
<div class="row">
<div class="span10 offset1">
<form method="post" action="{$systemsslurl}cart.php" class="form-horizontal">
<input type="hidden" name="a" value="add">
<input type="hidden" name="domain" value="register">
<table class="table table-striped table-bordered">
<tbody>
{foreach from=$availabilityresults key=num item=result}
<tr>
<td class="text-center">
{if $result.status eq "available"}
<input type="checkbox" name="domains[]" value="{$result.domain}"{if $num eq "0" && $available} checked="checked"{/if}>
<input type="hidden" name="domainsregperiod[{$result.domain}]" value="{$result.period}">
{else}
×
{/if}
</td>
<td>{$result.domain}</td>
<td class="text-center">
{if $result.status eq "available"}
<span class="badge badge-success">{$LANG.domainavailable}</span>
{else}
<span class="badge badge-important">{$LANG.domainunavailable}</span>
{/if}
</td>
<td class="text-center">
{if $result.status eq "unavailable"}
<a href="http://{$result.domain}" target="_blank">www</a>
|
<a href="#" onclick="showWhois('{$result.domain}');return false;">whois</a>
{else}
<select name="domainsregperiod[{$result.domain}]">
{foreach key=period item=regoption from=$result.regoptions}
<option value="{$period}">{$period} {$LANG.orderyears} @ {$regoption.register}</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{/foreach}
</tbody>
<tfoot>
<tr>
<td colspan="4" class="text-right">
<input type="submit" value="{$LANG.ordernowbutton} »" class="btn btn-large btn-danger">
</td>
</tr>
</tfoot>
</table>
</form>
</div>
</div>
{else}
<div class="page-header">
<h1>{$LANG.domainspricing}</h1>
</div>
<div class="row">
<div class="span10 offset1">
<table class="table table-striped table-bordered">
<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 from=$tldpricelist item=tldpricelist}
<tr>
<td>{$tldpricelist.tld}</td>
<td class="text-center">{$tldpricelist.period}</td>
<td class="text-center">{if $tldpricelist.register}{$tldpricelist.register}{else}{$LANG.domainregnotavailable}{/if}</td>
<td class="text-center">{if $tldpricelist.transfer}{$tldpricelist.transfer}{else}{$LANG.domainregnotavailable}{/if}</td>
<td class="text-center">{if $tldpricelist.renew}{$tldpricelist.renew}{else}{$LANG.domainregnotavailable}{/if}</td>
</tr>
{/foreach}
</tbody>
</table>
{if !$loggedin && $currencies}
<form method="post" action="domainchecker.php" class="text-right">
{$LANG.choosecurrency}: <select name="currency" onchange="submit()">
{foreach from=$currencies item=curr}
<option value="{$curr.id}"{if $curr.id eq $currency.id} selected="selected"{/if}>{$curr.code}</option>
{/foreach}
</select>
</form>
{/if}
</div>
</div>
{/if}
<div class="modal hide fade in" id="modalpleasewait">
<div class="modal-header text-center">
<h3><img src="images/loadingsml.gif" alt="{$LANG.pleasewait}" class="valignbaseline"> {$LANG.pleasewait}</h3>
</div>
</div>
<div class="modal hide fade in" id="modalwhois">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h3>{$LANG.whoisresults} <span><img src="images/loadingsml.gif" alt="{$LANG.pleasewait}" class="valignbaseline"></span></h3>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button class="close" data-dismiss="modal">Close</button>
</div>
</div>
<script type="text/javascript">
{literal}
function showWhois(domain) {
$('#modalwhois .modal-body').html('<div class="text-center"><img src="images/loadingsml.gif" alt="{$LANG.pleasewait}"></div>');
$('#modalwhois .modal-header h3 span').html(domain);
$('#modalwhois .modal-body').load('whois.php?domain='+domain);
$('#modalwhois').modal();
}
{/literal}
</script>