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
/
serverstatus.tpl
86 lines (78 loc) · 4.23 KB
/
serverstatus.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
{foreach from=$issues item=issue}
<div class="panel {if $issue.clientaffected}panel-warning{else}panel-info{/if}">
<div class="panel-heading">
{$issue.title} ({$issue.status})
</div>
<ul class="list-group">
<li class="list-group-item {if $issue.rawPriority == 'Critical'}list-group-item-danger{elseif $issue.rawPriority == 'High'}list-group-item-warning{elseif $issue.rawPriority == 'Low'}list-group-item-success{else}list-group-item-info{/if}"><strong>{$LANG.networkissuespriority}</strong> - {$issue.priority}</li>
{if $issue.server or $issue.affecting}<li class="list-group-item"><strong>{$LANG.networkissuesaffecting} {$issue.type}</strong> - {if $issue.type eq $LANG.networkissuestypeserver}{$issue.server}{else}{$issue.affecting}{/if}</li>{/if}
<li class="list-group-item">
<p>
{$issue.description}
</p>
</li>
<li class="list-group-item"><strong>{$LANG.networkissuesdate}</strong> - {$issue.startdate}{if $issue.enddate} - {$issue.enddate}{/if}</li>
<li class="list-group-item"><strong>{$LANG.networkissueslastupdated}</strong> - {$issue.lastupdate}</li>
</ul>
</div>
{foreachelse}
{include file="$template/includes/alert.tpl" type="success" msg=$noissuesmsg textcenter=true}
{/foreach}
<div class="btn-group">
<a href="{if $prevpage}{$smarty.server.PHP_SELF}?{if $view}view={$view}&{/if}page={$prevpage}{else}#{/if}" class="btn btn-default {if !$prevpage}disabled{/if}">< {$LANG.previouspage}</a>
<a href="{if $nextpage}{$smarty.server.PHP_SELF}?{if $view}view={$view}&{/if}page={$nextpage}{else}#{/if}" class="btn btn-default {if !$nextpage}disabled{/if}">{$LANG.nextpage} ></a>
</div>
{if $servers}
{include file="$template/includes/subheader.tpl" title=$LANG.serverstatustitle}
<p>{$LANG.serverstatusheadingtext}</p>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{$LANG.servername}</th>
<th class="text-center">HTTP</th>
<th class="text-center">FTP</th>
<th class="text-center">POP3</th>
<th class="text-center">{$LANG.serverstatusphpinfo}</th>
<th class="text-center">{$LANG.serverstatusserverload}</th>
<th class="text-center">{$LANG.serverstatusuptime}</th>
</tr>
</thead>
<tbody>
{foreach from=$servers key=num item=server}
<tr>
<td>{$server.name}</td>
<td class="text-center" id="port80_{$num}">
<span class="fa fa-spinner fa-spin"></span>
</td>
<td class="text-center" id="port21_{$num}">
<span class="fa fa-spinner fa-spin"></span>
</td>
<td class="text-center" id="port110_{$num}">
<span class="fa fa-spinner fa-spin"></span>
</td>
<td class="text-center"><a href="{$server.phpinfourl}" target="_blank">{$LANG.serverstatusphpinfo}</a></td>
<td class="text-center" id="load{$num}">
<span class="fa fa-spinner fa-spin"></span>
</td>
<td class="text-center" id="uptime{$num}">
<span class="fa fa-spinner fa-spin"></span>
<script>
jQuery(document).ready(function() {
checkPort({$num}, 80);
checkPort({$num}, 21);
checkPort({$num}, 110);
getStats({$num});
});
</script>
</td>
</tr>
{foreachelse}
<tr>
<td colspan="7">{$LANG.serverstatusnoservers}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}