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
/
clientareadomains.tpl
200 lines (196 loc) · 12.3 KB
/
clientareadomains.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
{if $warnings}
{include file="$template/includes/alert.tpl" type="warning" msg=$warnings textcenter=true}
{/if}
<div class="tab-content">
<div class="tab-pane fade in active" id="tabOverview">
{include file="$template/includes/tablelist.tpl" tableName="DomainsList" noSortColumns="0, 6" startOrderCol="1" filterColumn="5"}
<script type="text/javascript">
jQuery(document).ready( function ()
{
var table = jQuery('#tableDomainsList').removeClass('hidden').DataTable();
{if $orderby == 'domain'}
table.order(1, '{$sort}');
{elseif $orderby == 'regdate' || $orderby == 'registrationdate'}
table.order(2, '{$sort}');
{elseif $orderby == 'nextduedate'}
table.order(3, '{$sort}');
{elseif $orderby == 'autorenew'}
table.order(4, '{$sort}');
{elseif $orderby == 'status'}
table.order(5, '{$sort}');
{/if}
table.draw();
jQuery('#tableLoading').addClass('hidden');
});
</script>
<form id="domainForm" method="post" action="clientarea.php?action=bulkdomain">
<input id="bulkaction" name="update" type="hidden" />
<div class="table-container clearfix">
<table id="tableDomainsList" class="table table-list hidden">
<thead>
<tr>
<th width="20"></th>
<th>{$LANG.orderdomain}</th>
<th>{$LANG.regdate}</th>
<th>{$LANG.nextdue}</th>
<th>{$LANG.domainsautorenew}</th>
<th>{$LANG.domainstatus}</th>
<th> </th>
</tr>
</thead>
<tbody>
{foreach key=num item=domain from=$domains}
<tr onclick="clickableSafeRedirect(event, 'clientarea.php?action=domaindetails&id={$domain.id}', false)">
<td>
<input type="checkbox" name="domids[]" class="domids stopEventBubble" value="{$domain.id}" />
</td>
<td><a href="http://{$domain.domain}" target="_blank">{$domain.domain}</a></td>
<td><span class="hidden">{$domain.normalisedRegistrationDate}</span>{$domain.registrationdate}</td>
<td><span class="hidden">{$domain.normalisedNextDueDate}</span>{$domain.nextduedate}</td>
<td>
{if $domain.autorenew}
<i class="fa fa-fw fa-check text-success"></i> {$LANG.domainsautorenewenabled}
{else}
<i class="fa fa-fw fa-times text-danger"></i> {$LANG.domainsautorenewdisabled}
{/if}
</td>
<td>
<span class="label status status-{$domain.statusClass}">{$domain.statustext}</span>
<span class="hidden">
{if $domain.next30}{$LANG.domainsExpiringInTheNext30Days}<br />{/if}
{if $domain.next90}{$LANG.domainsExpiringInTheNext90Days}<br />{/if}
{if $domain.next180}{$LANG.domainsExpiringInTheNext180Days}<br />{/if}
{if $domain.after180}{$LANG.domainsExpiringInMoreThan180Days}{/if}
</span>
</td>
<td>
<div class="btn-group btn-group-sm">
<a href="clientarea.php?action=domaindetails&id={$domain.id}" class="btn btn-default"><i class="fa fa-wrench"></i></a>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu text-left" role="menu">
{if $domain.status eq 'Active'}
<li><a href="clientarea.php?action=domaindetails&id={$domain.id}#tabNameservers"><i class="glyphicon glyphicon-globe"></i> {$LANG.domainmanagens}</a></li>
<li><a href="clientarea.php?action=domaincontacts&domainid={$domain.id}"><i class="glyphicon glyphicon-user"></i> {$LANG.domaincontactinfoedit}</a></li>
<li><a href="clientarea.php?action=domaindetails&id={$domain.id}#tabAutorenew"><i class="glyphicon glyphicon-globe"></i> {$LANG.domainautorenewstatus}</a></li>
<li class="divider"></li>
{/if}
<li><a href="clientarea.php?action=domaindetails&id={$domain.id}"><i class="glyphicon glyphicon-pencil"></i> {$LANG.managedomain}</a></li>
</ul>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="text-center" id="tableLoading">
<p><i class="fa fa-spinner fa-spin"></i> {$LANG.loading}</p>
</div>
</div>
</form>
<div class="btn-group margin-bottom">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-folder-open"></span> {$LANG.withselected} <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" id="nameservers" class="setBulkAction"><i class="glyphicon glyphicon-globe"></i> {$LANG.domainmanagens}</a></li>
<li><a href="#" id="autorenew" class="setBulkAction"><i class="glyphicon glyphicon-refresh"></i> {$LANG.domainautorenewstatus}</a></li>
<li><a href="#" id="reglock" class="setBulkAction"><i class="glyphicon glyphicon-lock"></i> {$LANG.domainreglockstatus}</a></li>
<li><a href="#" id="contactinfo" class="setBulkAction"><i class="glyphicon glyphicon-user"></i> {$LANG.domaincontactinfoedit}</a></li>
</ul>
</div>
</div>
<div class="tab-pane fade in" id="tabRenew">
{include file="$template/includes/tablelist.tpl" tableName="RenewalsList" noSortColumns="3, 4, 5" startOrderCol="0" filterColumn="1" dontControlActiveClass=true}
<script type="text/javascript">
var observer = new MutationObserver(function(mutations) {
jQuery('#Secondary_Sidebar-My_Domains_Actions-Renew_Domain').toggleClass('active')
});
var target = document.querySelector('#tabRenew');
observer.observe(target, {
attributes: true
});
</script>
<div class="table-container clearfix">
<table id="tableRenewalsList" class="table table-list">
<thead>
<tr>
<th>{$LANG.orderdomain}</th>
<th>{$LANG.domainstatus}</th>
<th>{$LANG.clientareadomainexpirydate}</th>
<th>{$LANG.domaindaysuntilexpiry}</th>
<th> </th>
<th>
<div id="btnCheckout" style="display:none;">
<a href="cart.php?a=view" class="btn btn-default">{$LANG.domainsgotocheckout} »</a>
</div>
</th>
</tr>
</thead>
<tbody>
{foreach $renewals as $id => $renewal}
<tr id="domainRow{$renewal.id}" {if $selectedIDs && in_array($renewal.id, $selectedIDs)}class="highlight"{/if}>
<td id="domain{$renewal.id}">{$renewal.domain}</td>
<td id="status{$renewal.id}">
<span class="label status status-{$renewal.statusClass}">{$renewal.status}</span>
<span class="hidden">
{if $renewal.next30}{$LANG.domainsExpiringInTheNext30Days}<br />{/if}
{if $renewal.next90}{$LANG.domainsExpiringInTheNext90Days}<br />{/if}
{if $renewal.next180}{$LANG.domainsExpiringInTheNext180Days}<br />{/if}
{if $renewal.after180}{$LANG.domainsExpiringInMoreThan180Days}{/if}
</span>
</td>
<td id="expiry{$renewal.id}"><span class="hidden">{$renewal.normalisedExpiryDate}</span>{$renewal.expiryDate}</td>
<td id="days{$renewal.id}" class="text-center">
{if $renewal.daysUntilExpiry > 30}
<span class="text-success">{$renewal.daysUntilExpiry} {$LANG.domainrenewalsdays}</span>
{elseif $renewal.daysUntilExpiry > 0}
<span class="text-warning">{$renewal.daysUntilExpiry} {$LANG.domainrenewalsdays}</span>
{else}
<span class="text-danger">{$renewal.daysUntilExpiry*-1} {$LANG.domainrenewalsdaysago}</span>
{/if}
{if $renewal.inGracePeriod}
<br />
<span class="text-danger">{$LANG.domainrenewalsingraceperiod}</span>
{/if}
</td>
<td id="period{$renewal.id}" class="text-center">
{if $renewal.beforeRenewLimit}
<span class="text-danger">
{$LANG.domainrenewalsbeforerenewlimit|sprintf2:$renewal.beforeRenewLimitDays}
</span>
{elseif $renewal.pastGracePeriod}
<span class="textred">{$LANG.domainrenewalspastgraceperiod}</span>
{else}
<select id="renewalPeriod{$renewal.id}" name="renewalPeriod[{$renewal.id}]">
{foreach $renewal.renewalOptions as $renewalOption}
<option value="{$renewalOption.period}">
{$renewalOption.period} {$LANG.orderyears} @ {$renewalOption.price}
</option>
{/foreach}
</select>
{/if}
</td>
<td class="text-center">
{if !$renewal.beforeRenewLimit && !$renewal.pastGracePeriod}
<button type="button" class="btn btn-primary btn-sm" id="renewButton{$renewal.id}" onclick="addRenewalToCart({$renewal.id}, this)">
<span class="glyphicon glyphicon-shopping-cart"></span> {$LANG.addtocart}
</button>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="row">
<div class="col-xs-12" id="backLink">
<a href="#tabOverview" class="btn btn-default btn-sm" data-toggle="tab" id="back">
<i class="glyphicon glyphicon-backward"></i> {$LANG.clientareabacklink|replace:'« ':''}
</a>
</div>
</div>
</div>
</div>