1{foreach from=$issues item=issue}
2
3 <div class="panel {if $issue.clientaffected}panel-warning{else}panel-info{/if}">
4 <div class="panel-heading">
5 {$issue.title} ({$issue.status})
6 </div>
7 <ul class="list-group">
8 <li id="issuePriorityLabel" 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>
9 {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}
10 <li class="list-group-item">
11 <p>
12 {$issue.description}
13 </p>
14 </li>
15 <li class="list-group-item"><strong>{$LANG.networkissuesdate}</strong> - {$issue.startdate}{if $issue.enddate} - {$issue.enddate}{/if}</li>
16 <li class="list-group-item"><strong>{$LANG.networkissueslastupdated}</strong> - {$issue.lastupdate}</li>
17 </ul>
18 </div>
19
20{foreachelse}
21 {include file="$template/includes/alert.tpl" type="success" msg=$noissuesmsg textcenter=true}
22{/foreach}
23
24<div class="btn-group">
25 <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>
26 <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>
27</div>
28
29{if $servers}
30
31 {include file="$template/includes/subheader.tpl" title=$LANG.serverstatustitle}
32
33 <p>{$LANG.serverstatusheadingtext}</p>
34
35 <div class="table-responsive">
36 <table class="table table-striped">
37 <thead>
38 <tr>
39 <th>{$LANG.servername}</th>
40 <th class="text-center">HTTP</th>
41 <th class="text-center">FTP</th>
42 <th class="text-center">POP3</th>
43 <th class="text-center">{$LANG.serverstatusphpinfo}</th>
44 <th class="text-center">{$LANG.serverstatusserverload}</th>
45 <th class="text-center">{$LANG.serverstatusuptime}</th>
46 </tr>
47 </thead>
48 <tbody>
49 {foreach from=$servers key=num item=server}
50 <tr>
51 <td>{$server.name}</td>
52 <td class="text-center" id="port80_{$num}">
53 <span class="fas fa-spinner fa-spin"></span>
54 </td>
55 <td class="text-center" id="port21_{$num}">
56 <span class="fas fa-spinner fa-spin"></span>
57 </td>
58 <td class="text-center" id="port110_{$num}">
59 <span class="fas fa-spinner fa-spin"></span>
60 </td>
61 <td class="text-center"><a href="{$server.phpinfourl}" target="_blank">{$LANG.serverstatusphpinfo}</a></td>
62 <td class="text-center" id="load{$num}">
63 <span class="fas fa-spinner fa-spin"></span>
64 </td>
65 <td class="text-center" id="uptime{$num}">
66 <span class="fas fa-spinner fa-spin"></span>
67 <script>
68 jQuery(document).ready(function() {
69 checkPort({$num}, 80);
70 checkPort({$num}, 21);
71 checkPort({$num}, 110);
72 getStats({$num});
73 });
74 </script>
75 </td>
76 </tr>
77 {foreachelse}
78 <tr>
79 <td colspan="7">{$LANG.serverstatusnoservers}</td>
80 </tr>
81 {/foreach}
82 </tbody>
83 </table>
84 </div>
85
86{/if}
87