-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathclientareadomains.tpl
93 lines (86 loc) · 4.91 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
<div class="page-header">
<h1>{$LANG.clientareanavdomains} <small>{$LANG.clientareadomainsintro}</small></h1>
</div>
<form class="form-inline well well-small pull-right" action="clientarea.php" method="post">
<input type="hidden" name="action" value="products">
<input type="text" class="span3" name="q" value="{if $q}{$q}{/if}" placeholder="{$LANG.searchenterdomain}">
<button type="submit" class="btn btn-success">{$LANG.searchfilter}</button>
</form>
<div style="padding-top:9px">{$numitems} {$LANG.recordsfound}, {$LANG.page} {$pagenumber} {$LANG.pageof} {$totalpages}</div>
<form method="post" action="clientarea.php" class="clearfix">
<input type="hidden" name="action" value="bulkdomain">
<table class="table table-bordered-outside table-striped table-sorted">
<thead>
<tr>
<th class="textcenter"><input type="checkbox" class="toggle-checkboxes" data-target=".domids"></th>
<th{if $orderby eq "domain"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=domain" title="{$LANG.clientareahostingdomain}">{$LANG.clientareahostingdomain}</a></th>
<th{if $orderby eq "regdate"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=regdate" title="{$LANG.clientareahostingregdate}">{$LANG.clientareahostingregdate}</a></th>
<th{if $orderby eq "nextduedate"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=nextduedate" title="{$LANG.clientareahostingnextduedate}">{$LANG.clientareahostingnextduedate}</a></th>
<th{if $orderby eq "status"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=status" title="{$LANG.clientareastatus}">{$LANG.clientareastatus}</a></th>
<th{if $orderby eq "autorenew"} class="sort-{$sort}"{/if}><a href="clientarea.php?action=domains{if $q}&q={$q}{/if}&orderby=autorenew" title="{$LANG.domainsautorenew}">{$LANG.domainsautorenew}</a></th>
<th> </th>
</tr>
</thead>
<tbody>
{foreach key=num item=domain from=$domains}
<tr>
<td class="textcenter"><input type="checkbox" name="domids[]" class="domids" value="{$domain.id}"></td>
<td><a href="http://{$domain.domain}/" target="_blank">{$domain.domain}</a></td>
<td>{$domain.registrationdate}</td>
<td>{$domain.nextduedate}</td>
<td><span class="label label-{$domain.rawstatus}">{$domain.statustext}</span></td>
<td>{if $domain.autorenew}{$LANG.domainsautorenewenabled}{else}{$LANG.domainsautorenewdisabled}{/if}</td>
<td><a href="clientarea.php?action=domaindetails&id={$domain.id}" class="btn" title="{$LANG.managedomain}">{$LANG.managedomain}</a></td>
</tr>
{foreachelse}
<tr>
<td colspan="7" class="textcenter">{$LANG.norecordsfound}</td>
</tr>
{/foreach}
</tbody>
<tfoot id="bulkmanagementactions" class="hide">
<tr>
<td colspan="7">
{$LANG.domainbulkmanagement}:
<input type="submit" name="nameservers" value="{$LANG.domainmanagens}" class="btn btn-inverse btn-small">
<input type="submit" name="autorenew" value="{$LANG.domainautorenewstatus}" class="btn btn-inverse btn-small">
<input type="submit" name="reglock" value="{$LANG.domainreglockstatus}" class="btn btn-inverse btn-small">
<input type="submit" name="contactinfo" value="{$LANG.domaincontactinfoedit}" class="btn btn-inverse btn-small">
<input type="submit" name="renew" value="{$LANG.domainmassrenew}" class="btn btn-inverse btn-small">
</td>
</tr>
</tfoot>
</table>
</form>
<form method="post" action="{$smarty.server.PHP_SELF}" class="pull-right">
<fieldset>
<input type="hidden" name="action" value="{$clientareaaction}">
<select name="itemlimit" onchange="submit()">
<option>{$LANG.resultsperpage}</option>
<option value="10"{if $itemlimit==10} selected="selected"{/if}>10</option>
<option value="25"{if $itemlimit==25} selected="selected"{/if}>25</option>
<option value="50"{if $itemlimit==50} selected="selected"{/if}>50</option>
<option value="100"{if $itemlimit==100} selected="selected"{/if}>100</option>
<option value="all"{if $itemlimit==99999999} selected="selected"{/if}>{$LANG.clientareaunlimited}</option>
</select>
</fieldset>
</form>
<div class="pagination">
<ul>
<li{if !$prevpage} class="disabled"{/if}><a href="{if $prevpage}clientarea.php?action=domains{if $q}&q={$q}{/if}&page={$prevpage}{else}javascript:return false;{/if}">← {$LANG.previouspage}</a></li>
<li{if !$nextpage} class="disabled"{/if}><a href="{if $nextpage}clientarea.php?action=domains{if $q}&q={$q}{/if}&page={$nextpage}{else}javascript:return false;{/if}">{$LANG.nextpage} →</a></li>
</ul>
</div>
{literal}
<script type="text/javascript">
$(function() {
$('.domids').change(function() {
if($('.domids').filter( ":checked" ).length > 0) {
$('#bulkmanagementactions').fadeIn();
} else {
$('#bulkmanagementactions').fadeOut();
}
});
});
</script>
{/literal}