-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomplainlist.tpl
76 lines (76 loc) · 3 KB
/
complainlist.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
{if isset($permoverview['b_client_complain_list']) AND empty($permoverview['b_client_complain_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">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{$lang['complainlist']}</h3>
</div>
<table class="table" cellpadding="1" cellspacing="0">
<tr>
<th style="width: 20%">{$lang['targetnick']}</th>
<th style="width: 20%">{$lang['sourcenick']}</th>
<th>{$lang['reason']}</th>
<th style="width: 15%"></th>
</tr>
{assign var=i value="1"}
{foreach key=key item=value from=$newcomplainlist}
{foreach key=key2 item=value2 from=$value}
<tr>
<td>
<a href="javascript:colapse_rows('{$i}')"><i class="mdi mdi-plus-box mdi-lg" title="aus/ein-klappen" id="Pic{$i}"></i></a>
{$key2}
</td>
<td> </td>
<td> {sprintf($lang['countcomplain'], count($value2))}</td>
<td>
{if !isset($permoverview['b_client_complain_delete']) OR $permoverview['b_client_complain_delete'] == 1}
<form method="post" action="index.php?site=complainlist&sid={$sid}">
<input type="hidden" name="tcldbid" value="{$key}" />
<input class="btn btn-flat btn-block btn-danger" type="submit" name="delall" value="{$lang['delall']}" />
</form>
{/if}
</td>
</tr>
<tr>
<td colspan="4" class="no-padding">
<table class="table" id="Lay{$i}" style="display:none;">
{foreach key=key3 item=value3 from=$value2}
<tr>
<td style="width: 20%;"> {date("d.m.Y - H:i", $value3['timestamp'])}</td>
<td style="width: 20%;">{secure($value3['fname'])}</td>
<td >{secure($value3['message'])}</td>
<td style="width: 15%;">
{if !isset($permoverview['b_client_complain_delete']) OR $permoverview['b_client_complain_delete'] == 1}
<form method="post" action="index.php?site=complainlist&sid={$sid}">
<input type="hidden" name="tcldbid" value="{$key}" />
<input type="hidden" name="fcldbid" value="{$key3}" />
<input class="btn btn-flat btn-block btn-danger" type="submit" name="delete" value="{$lang['delete']}" />
</form>
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
{assign var=i value="`$i+1`"}
{/foreach}
</table>
</div>
{/if}
</div>
</section>