-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsgroups.tpl
74 lines (73 loc) · 3.23 KB
/
sgroups.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
{if isset($permoverview['b_virtualserver_servergroup_list']) AND empty($permoverview['b_virtualserver_servergroup_list'])}
<section class="content container-fluid">
<div class="row">
<div class="col-xs-12 col-xs-offset-0 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-4 col-lg-offset-4">
<div class="box box-danger">
<div class="box-header"><h3 class="box-title">{$lang['error']}</h3></div>
<div class="box-body">
<p class="lead">{$lang['nopermissions']}</p>
</div>
</div>
</div>
</div>
</section>
{else}
<section class="content container-fluid">
<div class="col-xs-12 col-xs-offset-0 col-sm-10 col-sm-offset-1 col-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1 no-padding">
{if !empty($error)}
<div class="alert alert-danger">{$error}</div>
{/if}
{if !empty($noerror)}
<div class="alert alert-info">{$noerror}</div>
{/if}
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{$lang['servergroups']}</h3>
</div>
<div class="box-body">
<table class="table table-striped">
<tr>
<th class="text-center">{$lang['id']}</th>
<th>{$lang['name']}</th>
<th class="text-center">{$lang['type']}</th>
<th class="text-center">{$lang['iconid']}</th>
<th class="text-center">{$lang['savedb']}</th>
<th></th>
</tr>
{if !empty($servergroups)}
{foreach key=key item=value from=$servergroups}
<tr>
<td style="vertical-align: middle;" class="text-center">{$value['sgid']}</td>
<td style="vertical-align: middle;" class="no-padding">
<form method="post" action="index.php?site=sgroups&sid={$sid}&sgid={$value['sgid']}">
<div class="col-md-8 no-padding">
<input type="text" class="form-control" name="name" value="{$value['name']}" />
</div>
<div class="col-md-4 no-padding">
<input class="btn btn-flat btn-primary btn-block" type="submit" name="sendname" value="{$lang['rename']}" />
</div>
</form>
</td>
<td style="vertical-align: middle;" class="text-center">{$value['type']}</td>
<td style="vertical-align: middle;" class="text-center">{sprintf('%u', $value['iconid'] & 0xffffffff)}</td>
<td style="vertical-align: middle;" class="text-center">{$value['savedb']}</td>
<td style="vertical-align: middle;" class="text-right no-padding">
{if $value['type'] != '0'}
<a href="index.php?site=sgroupclients&sid={$sid}&sgid={$value['sgid']}" class="btn btn-sm btn-flat btn-info no-margin">{$lang['clients']}</a>
{/if}
<a href="index.php?site=sgroupeditperm&sid={$sid}&sgid={$value['sgid']}" class="btn btn-sm btn-flat btn-warning no-margin">{$lang['editperms']}</a>
{if !isset($permoverview['b_virtualserver_servergroup_delete']) or $permoverview['b_virtualserver_servergroup_delete'] == 1}
<form style="display: inline;" method="post" action="index.php?site=sgroups&sid={$sid}&sgid={$value['sgid']}">
<input type="submit" class="btn btn-sm btn-flat btn-danger" name="delgroup" value="{$lang['delete']}" onclick="return confirm('{$lang['deletemsgservergroup']}')" />
</form>
{/if}
</td>
</tr>
{/foreach}
{/if}
</table>
</div>
</div>
</div>
</section>
{/if}