-
Notifications
You must be signed in to change notification settings - Fork 279
/
clientareadomains.tpl
123 lines (120 loc) · 8.08 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
{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, 1, 6" startOrderCol="2" filterColumn="6"}
<script type="text/javascript">
jQuery(document).ready( function ()
{
var table = jQuery('#tableDomainsList').removeClass('hidden').DataTable();
{if $orderby == 'domain'}
table.order(2, '{$sort}');
{elseif $orderby == 'regdate' || $orderby == 'registrationdate'}
table.order(3, '{$sort}');
{elseif $orderby == 'nextduedate'}
table.order(4, '{$sort}');
{elseif $orderby == 'autorenew'}
table.order(5, '{$sort}');
{elseif $orderby == 'status'}
table.order(6, '{$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></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 class="text-center ssl-info" data-element-id="{$domain.id}" data-type="domain" data-domain="{$domain.domain}">
{if $domain.sslStatus}
<img src="{$domain.sslStatus->getImagePath()}" data-toggle="tooltip" title="{$domain.sslStatus->getTooltipContent()}" class="{$domain.sslStatus->getClass()}"/>
{elseif !$domain.isActive}
<img src="{$BASE_PATH_IMG}/ssl/ssl-inactive-domain.png" data-toggle="tooltip" title="{lang key='sslState.sslInactiveDomain'}">
{/if}
</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="fas fa-fw fa-check text-success"></i> {$LANG.domainsautorenewenabled}
{else}
<i class="fas 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.expiringSoon}<span>{lang key="domainsExpiringSoon"}</span>{/if}
</span>
</td>
<td>
<div class="btn-group btn-group-sm" style="width:60px;">
<a href="clientarea.php?action=domaindetails&id={$domain.id}" class="btn btn-default"><i class="fas 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 dropdown-menu-right" 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>
{if $allowrenew}
{if $domain.canDomainBeManaged}
<li><a href="{routePath('domain-renewal', $domain.domain)}"><i class="glyphicon glyphicon-refresh"></i> {lang key='domainsrenew'}</a></li>
{else}
<li class="disabled"><a href="#" onclick="return false;" class="disabled" disabled="disabled"><i class="glyphicon glyphicon-refresh"></i> {lang key='domainsrenew'}</a></li>
{/if}
{/if}
</ul>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="text-center" id="tableLoading">
<p><i class="fas 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>
{if $allowrenew}
<li><a href="#" id="renewDomains" class="setBulkAction"><i class="glyphicon glyphicon-refresh"></i> {lang key='domainmassrenew'}</a></li>
{/if}
</ul>
</div>
</div>
</div>