-
Notifications
You must be signed in to change notification settings - Fork 0
/
report.tpl.php
125 lines (122 loc) · 4.76 KB
/
report.tpl.php
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
class reportTemplate extends template {
public $reportFormTPL = '
<div class="panel">
<div class="panel-head">Reporting {user.name}</div>
<div class="panel-body">
<form method="post" action="?page=report&action=report">
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="form-group">
<label class="pull-left"><strong>Reported User</strong> {user.name}</label>
<input type="text" class="form-control" name="reported_user" value="{user.id}" />
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="form-group">
<label class="pull-left"><strong>Reason</strong></label>
<select name="report_reason" class="form-control">
{#each reasons}
<option value="{id}">{name}</option>
{/each}
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="pull-left"><strong>Report</strong></label>
<br><small>Give more details in the box.</small>
<textarea class="form-control" name="report_text" rows="10" data-editor></textarea>
<div class="text-right">
<small>[BBCode] Enabled</small>
</div>
</div>
<div class="text-right">
<button class="btn btn-default" name="submit" type="submit" value="1">Report</button>
</div>
</form>
</div>
</div>
';
public $reportList = '
<table class="table table-condensed table-responsive table-striped table-bordered">
<thead>
<tr>
<th width="30px">#</th>
<th width="100px">Reported</th>
<th width="150px">Reason</th>
<th>text</th>
<th width="100px">By</th>
<th width="40px">Actions</th>
</tr>
</thead>
<tbody>
{#each Reports}
<tr>
<td>{id}</td>
<td><a href="?page=profile&view={user.id}" target="_blank">{user.name}</a></td>
<td>{reason}</td>
<td>{text}</td>
<td><a href="?page=profile&view={by.id}" target="_blank">{by.name}</a></td>
<td>[<a href="?page=admin&module=report&action=ban&id={id}">Ban</a>]</td>
</tr>
{/each}
</tbody>
</table>
';
public $userBan = '
<form method="post" action="?page=admin&module=report&action=ban&id={id}&commit=1">
<div class="text-center">
<p> Are you sure you want to Ban this Player?</p>
<p><em>"{user.name}"</em> - <a href="?page=profile&view={user.id}" target="_blank">Profile Page</a></p>
<button class="btn btn-danger" name="submit" type="submit" value="1">Yes Ban {user.name}</button>
</div>
</form>
';
public $reasonsList = '
<div class="row">
<div class="col-md-6">
<table class="table table-condensed table-responsive table-striped table-bordered">
<thead>
<tr>
<th width="30px">#</th>
<th>name</th>
<th width="40px">Actions</th>
</tr>
</thead>
<tbody>
{#each Reasons}
<tr>
<td>{id}</td>
<td>{name}</td>
<td>[<a href="?page=admin&module=report&action=deleteReason&id={id}">Delete</a>]</td>
</tr>
{/each}
</tbody>
</table>
</div>
<div class="col-md-6">
<form method="post" action="?page=admin&module=report&action=Reasons">
<div class="form-group">
<label class="pull-left">Reason Name</label>
<input type="text" class="form-control" name="name" value="">
</div>
<div class="text-right">
<button class="btn btn-default" name="submit" type="submit" value="1">Add</button>
</div>
</form>
</div>
</div>
';
public $reasonDelete = '
<form method="post" action="?page=admin&module=report&action=deleteReason&id={id}&commit=1">
<div class="text-center">
<p> Are you sure you want to delete this Report Reason?</p>
<p><em>"{name}"</em></p>
<button class="btn btn-danger" name="submit" type="submit" value="1">
Yes delete this Report Reason
</button>
</div>
</form>
';
}