-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment.html
41 lines (40 loc) · 1.4 KB
/
comment.html
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
<hr>
<IF NAME="is_login">
<form method="POST" action="{formAction}">
<strong class="mr-auto">{olang.ADD_COMNT}</strong>
<div class="card">
<div class="toast-header">
<strong>{is_login}</strong>
</div>
<div class="toast-body">
{form_key}
<textarea class="form-control" name="comment" rows="3"></textarea>
<input type="hidden" name="file_id" value="{kj_comment_file_id}">
</div>
<input type="submit" name="submit" value="{olang.COMNT}" class="btn btn-primary">
</div>
</form>
<ELSE>
<strong class="mt_auto">{olang.NO_4_GUEST}</strong>
</IF>
<hr>
<LOOP NAME="comments">
<div class="card">
<div class="toast-header">
<strong class="mr-auto"><a target="_blank" href="{{user_link}}">{{name}}</a></strong>
<small>{{time}}</small>
<IF LOOP="del_btn">
<small><form action="{delFormAction}" method="POST">
{form_key}
<input type="hidden" name="file_id" value="{kj_comment_file_id}">
<input type="hidden" name="comment_id" value="{{id}}">
<input class="btn-primary" type="submit" name="del" value="X">
</form></small>
</IF>
</div>
<div class="toast-body">
{{comment}}
</div>
</div>
<br>
</LOOP>